@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1beta2.AnnotateTextRequest)) { return super.equals(obj); } com.google.cloud.language.v1beta2.AnnotateTextRequest other = (com.google.cloud.language.v1beta2.AnnotateTextRequest) obj; boolean result = true; result = result && (hasDocument() == other.hasDocument()); if (hasDocument()) { result = result && getDocument().equals(other.getDocument()); } result = result && (hasFeatures() == other.hasFeatures()); if (hasFeatures()) { result = result && getFeatures().equals(other.getFeatures()); } result = result && encodingType_ == other.encodingType_; 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(); if (hasDocument()) { hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getDocument().hashCode(); } if (hasFeatures()) { hash = (37 * hash) + FEATURES_FIELD_NUMBER; hash = (53 * hash) + getFeatures().hashCode(); } hash = (37 * hash) + ENCODING_TYPE_FIELD_NUMBER; hash = (53 * hash) + encodingType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.language.v1beta2.AnnotateTextRequest other) { if (other == com.google.cloud.language.v1beta2.AnnotateTextRequest.getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } if (other.hasFeatures()) { mergeFeatures(other.getFeatures()); } if (other.encodingType_ != 0) { setEncodingTypeValue(other.getEncodingTypeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }