@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1.EntityMention)) { return super.equals(obj); } com.google.cloud.language.v1.EntityMention other = (com.google.cloud.language.v1.EntityMention) obj; boolean result = true; result = result && (hasText() == other.hasText()); if (hasText()) { result = result && getText().equals(other.getText()); } result = result && type_ == other.type_; result = result && (hasSentiment() == other.hasSentiment()); if (hasSentiment()) { result = result && getSentiment().equals(other.getSentiment()); } 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 (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasSentiment()) { hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + getSentiment().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.language.v1.EntityMention other) { if (other == com.google.cloud.language.v1.EntityMention.getDefaultInstance()) return this; if (other.hasText()) { mergeText(other.getText()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasSentiment()) { mergeSentiment(other.getSentiment()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.language.v1.EntityMention)) { return super.equals(obj); } com.google.cloud.language.v1.EntityMention other = (com.google.cloud.language.v1.EntityMention) obj; boolean result = true; result = result && (hasText() == other.hasText()); if (hasText()) { result = result && getText().equals(other.getText()); } result = result && type_ == other.type_; result = result && (hasSentiment() == other.hasSentiment()); if (hasSentiment()) { result = result && getSentiment().equals(other.getSentiment()); } 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 (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasSentiment()) { hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; hash = (53 * hash) + getSentiment().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.cloud.language.v1.EntityMention other) { if (other == com.google.cloud.language.v1.EntityMention.getDefaultInstance()) return this; if (other.hasText()) { mergeText(other.getText()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasSentiment()) { mergeSentiment(other.getSentiment()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }