if (!getTargetIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
@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; }
&& affectsTarget(change.getTargetIdsList(), WATCH_TARGET_ID)) { nextAttempt = backoff.createFirstAttempt();
&& affectsTarget(change.getTargetIdsList(), WATCH_TARGET_ID)) { nextAttempt = backoff.createFirstAttempt();