Class StreamingPullResponse.Builder (1.129.1)

public static final class StreamingPullResponse.Builder extends GeneratedMessageV3.Builder<StreamingPullResponse.Builder> implements StreamingPullResponseOrBuilder

Response for the StreamingPull method. This response is used to stream messages from the server to the client.

Protobuf type google.pubsub.v1.StreamingPullResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllReceivedMessages(Iterable<? extends ReceivedMessage> values)

public StreamingPullResponse.Builder addAllReceivedMessages(Iterable<? extends ReceivedMessage> values)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.pubsub.v1.ReceivedMessage>
Returns
Type Description
StreamingPullResponse.Builder

addReceivedMessages(ReceivedMessage value)

public StreamingPullResponse.Builder addReceivedMessages(ReceivedMessage value)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ReceivedMessage
Returns
Type Description
StreamingPullResponse.Builder

addReceivedMessages(ReceivedMessage.Builder builderForValue)

public StreamingPullResponse.Builder addReceivedMessages(ReceivedMessage.Builder builderForValue)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ReceivedMessage.Builder
Returns
Type Description
StreamingPullResponse.Builder

addReceivedMessages(int index, ReceivedMessage value)

public StreamingPullResponse.Builder addReceivedMessages(int index, ReceivedMessage value)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ReceivedMessage
Returns
Type Description
StreamingPullResponse.Builder

addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)

public StreamingPullResponse.Builder addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ReceivedMessage.Builder
Returns
Type Description
StreamingPullResponse.Builder

addReceivedMessagesBuilder()

public ReceivedMessage.Builder addReceivedMessagesBuilder()

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ReceivedMessage.Builder

addReceivedMessagesBuilder(int index)

public ReceivedMessage.Builder addReceivedMessagesBuilder(int index)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReceivedMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingPullResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingPullResponse.Builder
Overrides

build()

public StreamingPullResponse build()
Returns
Type Description
StreamingPullResponse

buildPartial()

public StreamingPullResponse buildPartial()
Returns
Type Description
StreamingPullResponse

clear()

public StreamingPullResponse.Builder clear()
Returns
Type Description
StreamingPullResponse.Builder
Overrides

clearAcknowledgeConfirmation()

public StreamingPullResponse.Builder clearAcknowledgeConfirmation()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamingPullResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamingPullResponse.Builder
Overrides

clearModifyAckDeadlineConfirmation()

public StreamingPullResponse.Builder clearModifyAckDeadlineConfirmation()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingPullResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamingPullResponse.Builder
Overrides

clearReceivedMessages()

public StreamingPullResponse.Builder clearReceivedMessages()

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.Builder

clearSubscriptionProperties()

public StreamingPullResponse.Builder clearSubscriptionProperties()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.Builder

clone()

public StreamingPullResponse.Builder clone()
Returns
Type Description
StreamingPullResponse.Builder
Overrides

getAcknowledgeConfirmation()

public StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.AcknowledgeConfirmation

The acknowledgeConfirmation.

getAcknowledgeConfirmationBuilder()

public StreamingPullResponse.AcknowledgeConfirmation.Builder getAcknowledgeConfirmationBuilder()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.AcknowledgeConfirmation.Builder

getAcknowledgeConfirmationOrBuilder()

public StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.AcknowledgeConfirmationOrBuilder

getDefaultInstanceForType()

public StreamingPullResponse getDefaultInstanceForType()
Returns
Type Description
StreamingPullResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getModifyAckDeadlineConfirmation()

public StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.ModifyAckDeadlineConfirmation

The modifyAckDeadlineConfirmation.

getModifyAckDeadlineConfirmationBuilder()

public StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder getModifyAckDeadlineConfirmationBuilder()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder

getModifyAckDeadlineConfirmationOrBuilder()

public StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder

getReceivedMessages(int index)

public ReceivedMessage getReceivedMessages(int index)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReceivedMessage

getReceivedMessagesBuilder(int index)

public ReceivedMessage.Builder getReceivedMessagesBuilder(int index)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReceivedMessage.Builder

getReceivedMessagesBuilderList()

public List<ReceivedMessage.Builder> getReceivedMessagesBuilderList()

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getReceivedMessagesCount()

public int getReceivedMessagesCount()

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getReceivedMessagesList()

public List<ReceivedMessage> getReceivedMessagesList()

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ReceivedMessage>

getReceivedMessagesOrBuilder(int index)

public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ReceivedMessageOrBuilder

getReceivedMessagesOrBuilderList()

public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.pubsub.v1.ReceivedMessageOrBuilder>

getSubscriptionProperties()

public StreamingPullResponse.SubscriptionProperties getSubscriptionProperties()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.SubscriptionProperties

The subscriptionProperties.

getSubscriptionPropertiesBuilder()

public StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.SubscriptionProperties.Builder

getSubscriptionPropertiesOrBuilder()

public StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamingPullResponse.SubscriptionPropertiesOrBuilder

hasAcknowledgeConfirmation()

public boolean hasAcknowledgeConfirmation()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the acknowledgeConfirmation field is set.

hasModifyAckDeadlineConfirmation()

public boolean hasModifyAckDeadlineConfirmation()

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the modifyAckDeadlineConfirmation field is set.

hasSubscriptionProperties()

public boolean hasSubscriptionProperties()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the subscriptionProperties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

public StreamingPullResponse.Builder mergeAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StreamingPullResponse.AcknowledgeConfirmation
Returns
Type Description
StreamingPullResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingPullResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingPullResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingPullResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamingPullResponse.Builder
Overrides

mergeFrom(StreamingPullResponse other)

public StreamingPullResponse.Builder mergeFrom(StreamingPullResponse other)
Parameter
Name Description
other StreamingPullResponse
Returns
Type Description
StreamingPullResponse.Builder

mergeModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

public StreamingPullResponse.Builder mergeModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StreamingPullResponse.ModifyAckDeadlineConfirmation
Returns
Type Description
StreamingPullResponse.Builder

mergeSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

public StreamingPullResponse.Builder mergeSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StreamingPullResponse.SubscriptionProperties
Returns
Type Description
StreamingPullResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingPullResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingPullResponse.Builder
Overrides

removeReceivedMessages(int index)

public StreamingPullResponse.Builder removeReceivedMessages(int index)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
StreamingPullResponse.Builder

setAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

public StreamingPullResponse.Builder setAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StreamingPullResponse.AcknowledgeConfirmation
Returns
Type Description
StreamingPullResponse.Builder

setAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation.Builder builderForValue)

public StreamingPullResponse.Builder setAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation.Builder builderForValue)

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue StreamingPullResponse.AcknowledgeConfirmation.Builder
Returns
Type Description
StreamingPullResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingPullResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingPullResponse.Builder
Overrides

setModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

public StreamingPullResponse.Builder setModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StreamingPullResponse.ModifyAckDeadlineConfirmation
Returns
Type Description
StreamingPullResponse.Builder

setModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder builderForValue)

public StreamingPullResponse.Builder setModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder builderForValue)

Optional. This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
Returns
Type Description
StreamingPullResponse.Builder

setReceivedMessages(int index, ReceivedMessage value)

public StreamingPullResponse.Builder setReceivedMessages(int index, ReceivedMessage value)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ReceivedMessage
Returns
Type Description
StreamingPullResponse.Builder

setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)

public StreamingPullResponse.Builder setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)

Optional. Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ReceivedMessage.Builder
Returns
Type Description
StreamingPullResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StreamingPullResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamingPullResponse.Builder
Overrides

setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

public StreamingPullResponse.Builder setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value StreamingPullResponse.SubscriptionProperties
Returns
Type Description
StreamingPullResponse.Builder

setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties.Builder builderForValue)

public StreamingPullResponse.Builder setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties.Builder builderForValue)

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue StreamingPullResponse.SubscriptionProperties.Builder
Returns
Type Description
StreamingPullResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingPullResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingPullResponse.Builder
Overrides