@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.firestore.v1beta1.TargetChange)) { return super.equals(obj); } com.google.firestore.v1beta1.TargetChange other = (com.google.firestore.v1beta1.TargetChange) obj; boolean result = true; result = result && targetChangeType_ == other.targetChangeType_; result = result && getTargetIdsList().equals(other.getTargetIdsList()); result = result && (hasCause() == other.hasCause()); if (hasCause()) { result = result && getCause().equals(other.getCause()); } result = result && getResumeToken().equals(other.getResumeToken()); result = result && (hasReadTime() == other.hasReadTime()); if (hasReadTime()) { result = result && getReadTime().equals(other.getReadTime()); } 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) + TARGET_CHANGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + targetChangeType_; if (getTargetIdsCount() > 0) { hash = (37 * hash) + TARGET_IDS_FIELD_NUMBER; hash = (53 * hash) + getTargetIdsList().hashCode(); } if (hasCause()) { hash = (37 * hash) + CAUSE_FIELD_NUMBER; hash = (53 * hash) + getCause().hashCode(); } hash = (37 * hash) + RESUME_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResumeToken().hashCode(); if (hasReadTime()) { hash = (37 * hash) + READ_TIME_FIELD_NUMBER; hash = (53 * hash) + getReadTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.firestore.v1beta1.TargetChange other) { if (other == com.google.firestore.v1beta1.TargetChange.getDefaultInstance()) return this; if (other.targetChangeType_ != 0) { setTargetChangeTypeValue(other.getTargetChangeTypeValue()); } if (!other.targetIds_.isEmpty()) { if (targetIds_.isEmpty()) { targetIds_ = other.targetIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTargetIdsIsMutable(); targetIds_.addAll(other.targetIds_); } onChanged(); } if (other.hasCause()) { mergeCause(other.getCause()); } if (other.getResumeToken() != com.google.protobuf.ByteString.EMPTY) { setResumeToken(other.getResumeToken()); } if (other.hasReadTime()) { mergeReadTime(other.getReadTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
case REMOVE: Status status = change.hasCause() ? Status.fromCodeValue(change.getCause().getCode()) : Status.CANCELLED;
case REMOVE: Status status = change.hasCause() ? Status.fromCodeValue(change.getCause().getCode()) : Status.CANCELLED;