public final class StreamingPullRequest extends com.google.protobuf.GeneratedMessageV3 implements StreamingPullRequestOrBuilder
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
google.pubsub.v1.StreamingPullRequest| Modifier and Type | Class and Description |
|---|---|
static class |
StreamingPullRequest.Builder
Request for the `StreamingPull` streaming RPC method.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ACK_IDS_FIELD_NUMBER |
static int |
MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER |
static int |
MODIFY_DEADLINE_SECONDS_FIELD_NUMBER |
static int |
STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER |
static int |
SUBSCRIPTION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAckIds(int index)
List of acknowledgement IDs for acknowledging previously received messages
(received on this stream or a different stream).
|
com.google.protobuf.ByteString |
getAckIdsBytes(int index)
List of acknowledgement IDs for acknowledging previously received messages
(received on this stream or a different stream).
|
int |
getAckIdsCount()
List of acknowledgement IDs for acknowledging previously received messages
(received on this stream or a different stream).
|
com.google.protobuf.ProtocolStringList |
getAckIdsList()
List of acknowledgement IDs for acknowledging previously received messages
(received on this stream or a different stream).
|
static StreamingPullRequest |
getDefaultInstance() |
StreamingPullRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getModifyDeadlineAckIds(int index)
List of acknowledgement IDs whose deadline will be modified based on the
corresponding element in `modify_deadline_seconds`.
|
com.google.protobuf.ByteString |
getModifyDeadlineAckIdsBytes(int index)
List of acknowledgement IDs whose deadline will be modified based on the
corresponding element in `modify_deadline_seconds`.
|
int |
getModifyDeadlineAckIdsCount()
List of acknowledgement IDs whose deadline will be modified based on the
corresponding element in `modify_deadline_seconds`.
|
com.google.protobuf.ProtocolStringList |
getModifyDeadlineAckIdsList()
List of acknowledgement IDs whose deadline will be modified based on the
corresponding element in `modify_deadline_seconds`.
|
int |
getModifyDeadlineSeconds(int index)
The list of new ack deadlines for the IDs listed in
`modify_deadline_ack_ids`.
|
int |
getModifyDeadlineSecondsCount()
The list of new ack deadlines for the IDs listed in
`modify_deadline_ack_ids`.
|
java.util.List<java.lang.Integer> |
getModifyDeadlineSecondsList()
The list of new ack deadlines for the IDs listed in
`modify_deadline_ack_ids`.
|
com.google.protobuf.Parser<StreamingPullRequest> |
getParserForType() |
int |
getSerializedSize() |
int |
getStreamAckDeadlineSeconds()
The ack deadline to use for the stream.
|
java.lang.String |
getSubscription()
The subscription for which to initialize the new stream.
|
SubscriptionName |
getSubscriptionAsSubscriptionName() |
com.google.protobuf.ByteString |
getSubscriptionBytes()
The subscription for which to initialize the new stream.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StreamingPullRequest.Builder |
newBuilder() |
static StreamingPullRequest.Builder |
newBuilder(StreamingPullRequest prototype) |
StreamingPullRequest.Builder |
newBuilderForType() |
protected StreamingPullRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static StreamingPullRequest |
parseDelimitedFrom(java.io.InputStream input) |
static StreamingPullRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingPullRequest |
parseFrom(byte[] data) |
static StreamingPullRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingPullRequest |
parseFrom(com.google.protobuf.ByteString data) |
static StreamingPullRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingPullRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StreamingPullRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingPullRequest |
parseFrom(java.io.InputStream input) |
static StreamingPullRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StreamingPullRequest> |
parser() |
StreamingPullRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SUBSCRIPTION_FIELD_NUMBER
public static final int ACK_IDS_FIELD_NUMBER
public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER
public static final int MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER
public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getSubscription()
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;getSubscription in interface StreamingPullRequestOrBuilderpublic com.google.protobuf.ByteString getSubscriptionBytes()
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;getSubscriptionBytes in interface StreamingPullRequestOrBuilderpublic com.google.protobuf.ProtocolStringList getAckIdsList()
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;getAckIdsList in interface StreamingPullRequestOrBuilderpublic int getAckIdsCount()
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;getAckIdsCount in interface StreamingPullRequestOrBuilderpublic java.lang.String getAckIds(int 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;getAckIds in interface StreamingPullRequestOrBuilderpublic com.google.protobuf.ByteString getAckIdsBytes(int 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;getAckIdsBytes in interface StreamingPullRequestOrBuilderpublic java.util.List<java.lang.Integer> getModifyDeadlineSecondsList()
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;getModifyDeadlineSecondsList in interface StreamingPullRequestOrBuilderpublic int getModifyDeadlineSecondsCount()
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;getModifyDeadlineSecondsCount in interface StreamingPullRequestOrBuilderpublic int getModifyDeadlineSeconds(int 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;getModifyDeadlineSeconds in interface StreamingPullRequestOrBuilderpublic com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList()
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;getModifyDeadlineAckIdsList in interface StreamingPullRequestOrBuilderpublic int getModifyDeadlineAckIdsCount()
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;getModifyDeadlineAckIdsCount in interface StreamingPullRequestOrBuilderpublic java.lang.String getModifyDeadlineAckIds(int 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;getModifyDeadlineAckIds in interface StreamingPullRequestOrBuilderpublic com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int 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;getModifyDeadlineAckIdsBytes in interface StreamingPullRequestOrBuilderpublic int getStreamAckDeadlineSeconds()
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;getStreamAckDeadlineSeconds in interface StreamingPullRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamingPullRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingPullRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingPullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingPullRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingPullRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StreamingPullRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static StreamingPullRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StreamingPullRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static StreamingPullRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static StreamingPullRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic StreamingPullRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingPullRequest.Builder newBuilder()
public static StreamingPullRequest.Builder newBuilder(StreamingPullRequest prototype)
public StreamingPullRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingPullRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public final SubscriptionName getSubscriptionAsSubscriptionName()
public static StreamingPullRequest getDefaultInstance()
public static com.google.protobuf.Parser<StreamingPullRequest> parser()
public com.google.protobuf.Parser<StreamingPullRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingPullRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder