/** * * * <pre> * The subscription for which to initialize the new stream. This must be * provided in the first request on the stream, and must not be set in * subsequent requests from client to server. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
@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; }
public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (other == com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged();
@Override public void onNext(StreamingPullRequest request) { synchronized (stream) { if (!request.getSubscription().isEmpty()) { if (!subscription.isEmpty() && !subscription.equals(request.getSubscription())) { responseObserver.onError( new StatusException( subscription = request.getSubscription(); subscriptionInitialized.set(true); subscriptionInitialized.notifyAll();
/** * * * <pre> * The subscription for which to initialize the new stream. This must be * provided in the first request on the stream, and must not be set in * subsequent requests from client to server. * Format is `projects/{project}/subscriptions/{sub}`. * </pre> * * <code>string subscription = 1;</code> */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /**
@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; }
public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (other == com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; onChanged();