@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXTRACT_SYNTAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExtractSyntax()); hash = (37 * hash) + EXTRACT_ENTITIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExtractEntities()); hash = (37 * hash) + EXTRACT_DOCUMENT_SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExtractDocumentSentiment()); hash = (37 * hash) + EXTRACT_ENTITY_SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExtractEntitySentiment()); hash = (37 * hash) + CLASSIFY_TEXT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClassifyText()); 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.v1beta2.AnnotateTextRequest.Features)) { return super.equals(obj); } com.google.cloud.language.v1beta2.AnnotateTextRequest.Features other = (com.google.cloud.language.v1beta2.AnnotateTextRequest.Features) obj; boolean result = true; result = result && (getExtractSyntax() == other.getExtractSyntax()); result = result && (getExtractEntities() == other.getExtractEntities()); result = result && (getExtractDocumentSentiment() == other.getExtractDocumentSentiment()); result = result && (getExtractEntitySentiment() == other.getExtractEntitySentiment()); result = result && (getClassifyText() == other.getClassifyText()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom( com.google.cloud.language.v1beta2.AnnotateTextRequest.Features other) { if (other == com.google.cloud.language.v1beta2.AnnotateTextRequest.Features.getDefaultInstance()) return this; if (other.getExtractSyntax() != false) { setExtractSyntax(other.getExtractSyntax()); } if (other.getExtractEntities() != false) { setExtractEntities(other.getExtractEntities()); } if (other.getExtractDocumentSentiment() != false) { setExtractDocumentSentiment(other.getExtractDocumentSentiment()); } if (other.getExtractEntitySentiment() != false) { setExtractEntitySentiment(other.getExtractEntitySentiment()); } if (other.getClassifyText() != false) { setClassifyText(other.getClassifyText()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }