@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.firestore.v1beta1.UpdateDocumentRequest)) { return super.equals(obj); } com.google.firestore.v1beta1.UpdateDocumentRequest other = (com.google.firestore.v1beta1.UpdateDocumentRequest) obj; boolean result = true; result = result && (hasDocument() == other.hasDocument()); if (hasDocument()) { result = result && getDocument().equals(other.getDocument()); } result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask().equals(other.getUpdateMask()); } result = result && (hasMask() == other.hasMask()); if (hasMask()) { result = result && getMask().equals(other.getMask()); } result = result && (hasCurrentDocument() == other.hasCurrentDocument()); if (hasCurrentDocument()) { result = result && getCurrentDocument().equals(other.getCurrentDocument()); } 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 (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } if (hasMask()) { hash = (37 * hash) + MASK_FIELD_NUMBER; hash = (53 * hash) + getMask().hashCode(); } if (hasCurrentDocument()) { hash = (37 * hash) + CURRENT_DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getCurrentDocument().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.firestore.v1beta1.UpdateDocumentRequest other) { if (other == com.google.firestore.v1beta1.UpdateDocumentRequest.getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } if (other.hasMask()) { mergeMask(other.getMask()); } if (other.hasCurrentDocument()) { mergeCurrentDocument(other.getCurrentDocument()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }