All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.pubsub.v1.StreamingPullRequest Maven / Gradle / Ivy

There is a newer version: 1.116.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/pubsub/v1/pubsub.proto

package com.google.pubsub.v1;

/**
 * 
 * Request for the `StreamingPull` streaming RPC method. This request is used to
 * establish the initial stream as well as to stream acknowledgements and ack
 * deadline modifications from the client to the server.
 * 
* * Protobuf type {@code google.pubsub.v1.StreamingPullRequest} */ public final class StreamingPullRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest) StreamingPullRequestOrBuilder { // Use StreamingPullRequest.newBuilder() to construct. private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamingPullRequest() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; modifyDeadlineSeconds_ = java.util.Collections.emptyList(); modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; streamAckDeadlineSeconds_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StreamingPullRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); subscription_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } ackIds_.add(s); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { modifyDeadlineSeconds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } modifyDeadlineSeconds_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { modifyDeadlineSeconds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { modifyDeadlineSeconds_.add(input.readInt32()); } input.popLimit(limit); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } modifyDeadlineAckIds_.add(s); break; } case 40: { streamAckDeadlineSeconds_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = ackIds_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { modifyDeadlineSeconds_ = java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class); } private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** *
   * 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}`.
   * 
* * optional string subscription = 1; */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** *
   * 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}`.
   * 
* * optional string subscription = 1; */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ACK_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList ackIds_; /** *
   * List of acknowledgement IDs for acknowledging previously received messages
   * (received on this stream or a different stream). If an ack ID has expired,
   * the corresponding message may be redelivered later. Acknowledging a message
   * more than once will not result in an error. If the acknowledgement ID is
   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
   * 
* * repeated string ack_ids = 2; */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** *
   * List of acknowledgement IDs for acknowledging previously received messages
   * (received on this stream or a different stream). If an ack ID has expired,
   * the corresponding message may be redelivered later. Acknowledging a message
   * more than once will not result in an error. If the acknowledgement ID is
   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
   * 
* * repeated string ack_ids = 2; */ public int getAckIdsCount() { return ackIds_.size(); } /** *
   * List of acknowledgement IDs for acknowledging previously received messages
   * (received on this stream or a different stream). If an ack ID has expired,
   * the corresponding message may be redelivered later. Acknowledging a message
   * more than once will not result in an error. If the acknowledgement ID is
   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
   * 
* * repeated string ack_ids = 2; */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** *
   * List of acknowledgement IDs for acknowledging previously received messages
   * (received on this stream or a different stream). If an ack ID has expired,
   * the corresponding message may be redelivered later. Acknowledging a message
   * more than once will not result in an error. If the acknowledgement ID is
   * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
   * 
* * repeated string ack_ids = 2; */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; private java.util.List modifyDeadlineSeconds_; /** *
   * The list of new ack deadlines for the IDs listed in
   * `modify_deadline_ack_ids`. The size of this list must be the same as the
   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
   * element in the same position in `modify_deadline_ack_ids`. The new ack
   * deadline is with respect to the time this request was sent to the Pub/Sub
   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
   * will expire 10 seconds after this request is received. If the value is 0,
   * the message is immediately made available for another streaming or
   * non-streaming pull request. If the value is < 0 (an error), the stream will
   * be aborted with status `INVALID_ARGUMENT`.
   * 
* * repeated int32 modify_deadline_seconds = 3; */ public java.util.List getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } /** *
   * The list of new ack deadlines for the IDs listed in
   * `modify_deadline_ack_ids`. The size of this list must be the same as the
   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
   * element in the same position in `modify_deadline_ack_ids`. The new ack
   * deadline is with respect to the time this request was sent to the Pub/Sub
   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
   * will expire 10 seconds after this request is received. If the value is 0,
   * the message is immediately made available for another streaming or
   * non-streaming pull request. If the value is < 0 (an error), the stream will
   * be aborted with status `INVALID_ARGUMENT`.
   * 
* * repeated int32 modify_deadline_seconds = 3; */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** *
   * The list of new ack deadlines for the IDs listed in
   * `modify_deadline_ack_ids`. The size of this list must be the same as the
   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
   * element in the same position in `modify_deadline_ack_ids`. The new ack
   * deadline is with respect to the time this request was sent to the Pub/Sub
   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
   * will expire 10 seconds after this request is received. If the value is 0,
   * the message is immediately made available for another streaming or
   * non-streaming pull request. If the value is < 0 (an error), the stream will
   * be aborted with status `INVALID_ARGUMENT`.
   * 
* * repeated int32 modify_deadline_seconds = 3; */ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.get(index); } private int modifyDeadlineSecondsMemoizedSerializedSize = -1; public static final int MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList modifyDeadlineAckIds_; /** *
   * List of acknowledgement IDs whose deadline will be modified based on the
   * corresponding element in `modify_deadline_seconds`. This field can be used
   * to indicate that more time is needed to process a message by the
   * subscriber, or to make the message available for redelivery if the
   * processing was interrupted.
   * 
* * repeated string modify_deadline_ack_ids = 4; */ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; } /** *
   * List of acknowledgement IDs whose deadline will be modified based on the
   * corresponding element in `modify_deadline_seconds`. This field can be used
   * to indicate that more time is needed to process a message by the
   * subscriber, or to make the message available for redelivery if the
   * processing was interrupted.
   * 
* * repeated string modify_deadline_ack_ids = 4; */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** *
   * List of acknowledgement IDs whose deadline will be modified based on the
   * corresponding element in `modify_deadline_seconds`. This field can be used
   * to indicate that more time is needed to process a message by the
   * subscriber, or to make the message available for redelivery if the
   * processing was interrupted.
   * 
* * repeated string modify_deadline_ack_ids = 4; */ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** *
   * List of acknowledgement IDs whose deadline will be modified based on the
   * corresponding element in `modify_deadline_seconds`. This field can be used
   * to indicate that more time is needed to process a message by the
   * subscriber, or to make the message available for redelivery if the
   * processing was interrupted.
   * 
* * repeated string modify_deadline_ack_ids = 4; */ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int streamAckDeadlineSeconds_; /** *
   * The ack deadline to use for the stream. This must be provided in the
   * first request on the stream, but it can also be updated on subsequent
   * requests from client to server. The minimum deadline you can specify is 10
   * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
   * 
* * optional int32 stream_ack_deadline_seconds = 5; */ public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!getSubscriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } for (int i = 0; i < ackIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ackIds_.getRaw(i)); } if (getModifyDeadlineSecondsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(modifyDeadlineSecondsMemoizedSerializedSize); } for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { output.writeInt32NoTag(modifyDeadlineSeconds_.get(i)); } for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modifyDeadlineAckIds_.getRaw(i)); } if (streamAckDeadlineSeconds_ != 0) { output.writeInt32(5, streamAckDeadlineSeconds_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSubscriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } { int dataSize = 0; for (int i = 0; i < ackIds_.size(); i++) { dataSize += computeStringSizeNoTag(ackIds_.getRaw(i)); } size += dataSize; size += 1 * getAckIdsList().size(); } { int dataSize = 0; for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(modifyDeadlineSeconds_.get(i)); } size += dataSize; if (!getModifyDeadlineSecondsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } modifyDeadlineSecondsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { dataSize += computeStringSizeNoTag(modifyDeadlineAckIds_.getRaw(i)); } size += dataSize; size += 1 * getModifyDeadlineAckIdsList().size(); } if (streamAckDeadlineSeconds_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, streamAckDeadlineSeconds_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @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()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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 static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Request for the `StreamingPull` streaming RPC method. This request is used to
   * establish the initial stream as well as to stream acknowledgements and ack
   * deadline modifications from the client to the server.
   * 
* * Protobuf type {@code google.pubsub.v1.StreamingPullRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullRequest) com.google.pubsub.v1.StreamingPullRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class); } // Construct using com.google.pubsub.v1.StreamingPullRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); modifyDeadlineSeconds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); streamAckDeadlineSeconds_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance(); } public com.google.pubsub.v1.StreamingPullRequest build() { com.google.pubsub.v1.StreamingPullRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; if (((bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = ackIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.ackIds_ = ackIds_; if (((bitField0_ & 0x00000004) == 0x00000004)) { modifyDeadlineSeconds_ = java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); bitField0_ = (bitField0_ & ~0x00000004); } result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; if (((bitField0_ & 0x00000008) == 0x00000008)) { modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; result.streamAckDeadlineSeconds_ = streamAckDeadlineSeconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullRequest) { return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other); } else { super.mergeFrom(other); return this; } } 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(); } if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); } onChanged(); } if (!other.modifyDeadlineSeconds_.isEmpty()) { if (modifyDeadlineSeconds_.isEmpty()) { modifyDeadlineSeconds_ = other.modifyDeadlineSeconds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addAll(other.modifyDeadlineSeconds_); } onChanged(); } if (!other.modifyDeadlineAckIds_.isEmpty()) { if (modifyDeadlineAckIds_.isEmpty()) { modifyDeadlineAckIds_ = other.modifyDeadlineAckIds_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.addAll(other.modifyDeadlineAckIds_); } onChanged(); } if (other.getStreamAckDeadlineSeconds() != 0) { setStreamAckDeadlineSeconds(other.getStreamAckDeadlineSeconds()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.pubsub.v1.StreamingPullRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.pubsub.v1.StreamingPullRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object subscription_ = ""; /** *
     * 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}`.
     * 
* * optional string subscription = 1; */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * 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}`.
     * 
* * optional string subscription = 1; */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subscription_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * 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}`.
     * 
* * optional string subscription = 1; */ public Builder setSubscription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subscription_ = value; onChanged(); return this; } /** *
     * 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}`.
     * 
* * optional string subscription = 1; */ public Builder clearSubscription() { subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** *
     * 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}`.
     * 
* * optional string subscription = 1; */ public Builder setSubscriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subscription_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000002; } } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public int getAckIdsCount() { return ackIds_.size(); } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public Builder setAckIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public Builder addAckIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public Builder addAllAckIds( java.lang.Iterable values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ackIds_); onChanged(); return this; } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * List of acknowledgement IDs for acknowledging previously received messages
     * (received on this stream or a different stream). If an ack ID has expired,
     * the corresponding message may be redelivered later. Acknowledging a message
     * more than once will not result in an error. If the acknowledgement ID is
     * malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated string ack_ids = 2; */ public Builder addAckIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } private java.util.List modifyDeadlineSeconds_ = java.util.Collections.emptyList(); private void ensureModifyDeadlineSecondsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { modifyDeadlineSeconds_ = new java.util.ArrayList(modifyDeadlineSeconds_); bitField0_ |= 0x00000004; } } /** *
     * The list of new ack deadlines for the IDs listed in
     * `modify_deadline_ack_ids`. The size of this list must be the same as the
     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
     * element in the same position in `modify_deadline_ack_ids`. The new ack
     * deadline is with respect to the time this request was sent to the Pub/Sub
     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
     * will expire 10 seconds after this request is received. If the value is 0,
     * the message is immediately made available for another streaming or
     * non-streaming pull request. If the value is < 0 (an error), the stream will
     * be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated int32 modify_deadline_seconds = 3; */ public java.util.List getModifyDeadlineSecondsList() { return java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); } /** *
     * The list of new ack deadlines for the IDs listed in
     * `modify_deadline_ack_ids`. The size of this list must be the same as the
     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
     * element in the same position in `modify_deadline_ack_ids`. The new ack
     * deadline is with respect to the time this request was sent to the Pub/Sub
     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
     * will expire 10 seconds after this request is received. If the value is 0,
     * the message is immediately made available for another streaming or
     * non-streaming pull request. If the value is < 0 (an error), the stream will
     * be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated int32 modify_deadline_seconds = 3; */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } /** *
     * The list of new ack deadlines for the IDs listed in
     * `modify_deadline_ack_ids`. The size of this list must be the same as the
     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
     * element in the same position in `modify_deadline_ack_ids`. The new ack
     * deadline is with respect to the time this request was sent to the Pub/Sub
     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
     * will expire 10 seconds after this request is received. If the value is 0,
     * the message is immediately made available for another streaming or
     * non-streaming pull request. If the value is < 0 (an error), the stream will
     * be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated int32 modify_deadline_seconds = 3; */ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.get(index); } /** *
     * The list of new ack deadlines for the IDs listed in
     * `modify_deadline_ack_ids`. The size of this list must be the same as the
     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
     * element in the same position in `modify_deadline_ack_ids`. The new ack
     * deadline is with respect to the time this request was sent to the Pub/Sub
     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
     * will expire 10 seconds after this request is received. If the value is 0,
     * the message is immediately made available for another streaming or
     * non-streaming pull request. If the value is < 0 (an error), the stream will
     * be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated int32 modify_deadline_seconds = 3; */ public Builder setModifyDeadlineSeconds( int index, int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.set(index, value); onChanged(); return this; } /** *
     * The list of new ack deadlines for the IDs listed in
     * `modify_deadline_ack_ids`. The size of this list must be the same as the
     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
     * element in the same position in `modify_deadline_ack_ids`. The new ack
     * deadline is with respect to the time this request was sent to the Pub/Sub
     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
     * will expire 10 seconds after this request is received. If the value is 0,
     * the message is immediately made available for another streaming or
     * non-streaming pull request. If the value is < 0 (an error), the stream will
     * be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated int32 modify_deadline_seconds = 3; */ public Builder addModifyDeadlineSeconds(int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.add(value); onChanged(); return this; } /** *
     * The list of new ack deadlines for the IDs listed in
     * `modify_deadline_ack_ids`. The size of this list must be the same as the
     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
     * element in the same position in `modify_deadline_ack_ids`. The new ack
     * deadline is with respect to the time this request was sent to the Pub/Sub
     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
     * will expire 10 seconds after this request is received. If the value is 0,
     * the message is immediately made available for another streaming or
     * non-streaming pull request. If the value is < 0 (an error), the stream will
     * be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated int32 modify_deadline_seconds = 3; */ public Builder addAllModifyDeadlineSeconds( java.lang.Iterable values) { ensureModifyDeadlineSecondsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, modifyDeadlineSeconds_); onChanged(); return this; } /** *
     * The list of new ack deadlines for the IDs listed in
     * `modify_deadline_ack_ids`. The size of this list must be the same as the
     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
     * element in the same position in `modify_deadline_ack_ids`. The new ack
     * deadline is with respect to the time this request was sent to the Pub/Sub
     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
     * will expire 10 seconds after this request is received. If the value is 0,
     * the message is immediately made available for another streaming or
     * non-streaming pull request. If the value is < 0 (an error), the stream will
     * be aborted with status `INVALID_ARGUMENT`.
     * 
* * repeated int32 modify_deadline_seconds = 3; */ public Builder clearModifyDeadlineSeconds() { modifyDeadlineSeconds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureModifyDeadlineAckIdsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); bitField0_ |= 0x00000008; } } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_.getUnmodifiableView(); } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public Builder setModifyDeadlineAckIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.set(index, value); onChanged(); return this; } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public Builder addModifyDeadlineAckIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); return this; } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public Builder addAllModifyDeadlineAckIds( java.lang.Iterable values) { ensureModifyDeadlineAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, modifyDeadlineAckIds_); onChanged(); return this; } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public Builder clearModifyDeadlineAckIds() { modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * List of acknowledgement IDs whose deadline will be modified based on the
     * corresponding element in `modify_deadline_seconds`. This field can be used
     * to indicate that more time is needed to process a message by the
     * subscriber, or to make the message available for redelivery if the
     * processing was interrupted.
     * 
* * repeated string modify_deadline_ack_ids = 4; */ public Builder addModifyDeadlineAckIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); onChanged(); return this; } private int streamAckDeadlineSeconds_ ; /** *
     * The ack deadline to use for the stream. This must be provided in the
     * first request on the stream, but it can also be updated on subsequent
     * requests from client to server. The minimum deadline you can specify is 10
     * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
     * 
* * optional int32 stream_ack_deadline_seconds = 5; */ public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } /** *
     * The ack deadline to use for the stream. This must be provided in the
     * first request on the stream, but it can also be updated on subsequent
     * requests from client to server. The minimum deadline you can specify is 10
     * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
     * 
* * optional int32 stream_ack_deadline_seconds = 5; */ public Builder setStreamAckDeadlineSeconds(int value) { streamAckDeadlineSeconds_ = value; onChanged(); return this; } /** *
     * The ack deadline to use for the stream. This must be provided in the
     * first request on the stream, but it can also be updated on subsequent
     * requests from client to server. The minimum deadline you can specify is 10
     * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
     * 
* * optional int32 stream_ack_deadline_seconds = 5; */ public Builder clearStreamAckDeadlineSeconds() { streamAckDeadlineSeconds_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder setSubscriptionWithSubscriptionName(com.google.pubsub.v1.SubscriptionName value) { if (value == null) { return setSubscription(""); } return setSubscription(value.toString()); } public final com.google.pubsub.v1.SubscriptionName getSubscriptionAsSubscriptionName() { java.lang.String str = getSubscription(); if (str.isEmpty()) { return null; } return com.google.pubsub.v1.SubscriptionName.parse(str); } // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullRequest) } public final com.google.pubsub.v1.SubscriptionName getSubscriptionAsSubscriptionName() { java.lang.String str = getSubscription(); if (str.isEmpty()) { return null; } return com.google.pubsub.v1.SubscriptionName.parse(str); } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest) private static final com.google.pubsub.v1.StreamingPullRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullRequest(); } public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StreamingPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamingPullRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy