/** * * * <pre> * The error that resulted in this change, if applicable. * </pre> * * <code>.google.rpc.Status cause = 3;</code> */ public com.google.rpc.StatusOrBuilder getCauseOrBuilder() { return getCause(); }
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCause());
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (targetChangeType_ != com.google.firestore.v1beta1.TargetChange.TargetChangeType.NO_CHANGE.getNumber()) { output.writeEnum(1, targetChangeType_); } if (getTargetIdsList().size() > 0) { output.writeUInt32NoTag(18); output.writeUInt32NoTag(targetIdsMemoizedSerializedSize); } for (int i = 0; i < targetIds_.size(); i++) { output.writeInt32NoTag(targetIds_.get(i)); } if (cause_ != null) { output.writeMessage(3, getCause()); } if (!resumeToken_.isEmpty()) { output.writeBytes(4, resumeToken_); } if (readTime_ != null) { output.writeMessage(6, getReadTime()); } unknownFields.writeTo(output); }
@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; }
@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; }
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; }