@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); switch (sourceCase_) { case 2: hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); break; case 3: hash = (37 * hash) + GCS_CONTENT_URI_FIELD_NUMBER; hash = (53 * hash) + getGcsContentUri().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1.Document)) { return super.equals(obj); } com.google.cloud.language.v1.Document other = (com.google.cloud.language.v1.Document) obj; boolean result = true; result = result && type_ == other.type_; result = result && getLanguage().equals(other.getLanguage()); result = result && getSourceCase().equals(other.getSourceCase()); if (!result) return false; switch (sourceCase_) { case 2: result = result && getContent().equals(other.getContent()); break; case 3: result = result && getGcsContentUri().equals(other.getGcsContentUri()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); switch (sourceCase_) { case 2: hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); break; case 3: hash = (37 * hash) + GCS_CONTENT_URI_FIELD_NUMBER; hash = (53 * hash) + getGcsContentUri().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1.Document)) { return super.equals(obj); } com.google.cloud.language.v1.Document other = (com.google.cloud.language.v1.Document) obj; boolean result = true; result = result && type_ == other.type_; result = result && getLanguage().equals(other.getLanguage()); result = result && getSourceCase().equals(other.getSourceCase()); if (!result) return false; switch (sourceCase_) { case 2: result = result && getContent().equals(other.getContent()); break; case 3: result = result && getGcsContentUri().equals(other.getGcsContentUri()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; }