@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.pubsub.v1.StreamingPullRequest)) { return super.equals(obj); } com.google.pubsub.v1.StreamingPullRequest other = (com.google.pubsub.v1.StreamingPullRequest) obj; boolean result = true; result = result && getSubscription().equals(other.getSubscription()); result = result && getAckIdsList().equals(other.getAckIdsList()); result = result && getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList()); result = result && getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList()); result = result && (getStreamAckDeadlineSeconds() == other.getStreamAckDeadlineSeconds()); 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) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); if (getAckIdsCount() > 0) { hash = (37 * hash) + ACK_IDS_FIELD_NUMBER; hash = (53 * hash) + getAckIdsList().hashCode(); } if (getModifyDeadlineSecondsCount() > 0) { hash = (37 * hash) + MODIFY_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getModifyDeadlineSecondsList().hashCode(); } if (getModifyDeadlineAckIdsCount() > 0) { hash = (37 * hash) + MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER; hash = (53 * hash) + getModifyDeadlineAckIdsList().hashCode(); } hash = (37 * hash) + STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getStreamAckDeadlineSeconds(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
size += 1 * getModifyDeadlineAckIdsList().size();
return; Iterator<String> ackIds = request.getModifyDeadlineAckIdsList().iterator(); Iterator<Integer> seconds = request.getModifyDeadlineSecondsList().iterator(); while (ackIds.hasNext() && seconds.hasNext()) {
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.pubsub.v1.StreamingPullRequest)) { return super.equals(obj); } com.google.pubsub.v1.StreamingPullRequest other = (com.google.pubsub.v1.StreamingPullRequest) obj; boolean result = true; result = result && getSubscription().equals(other.getSubscription()); result = result && getAckIdsList().equals(other.getAckIdsList()); result = result && getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList()); result = result && getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList()); result = result && (getStreamAckDeadlineSeconds() == other.getStreamAckDeadlineSeconds()); result = result && unknownFields.equals(other.unknownFields); return result; }
size += 1 * getModifyDeadlineAckIdsList().size();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); if (getAckIdsCount() > 0) { hash = (37 * hash) + ACK_IDS_FIELD_NUMBER; hash = (53 * hash) + getAckIdsList().hashCode(); } if (getModifyDeadlineSecondsCount() > 0) { hash = (37 * hash) + MODIFY_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getModifyDeadlineSecondsList().hashCode(); } if (getModifyDeadlineAckIdsCount() > 0) { hash = (37 * hash) + MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER; hash = (53 * hash) + getModifyDeadlineAckIdsList().hashCode(); } hash = (37 * hash) + STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getStreamAckDeadlineSeconds(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }