Class StreamingPullResponse.Builder (1.120.24)

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
TypeDescription
Descriptor

Methods

addAllReceivedMessages(Iterable<? extends ReceivedMessage> values)

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

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.pubsub.v1.ReceivedMessage>
Returns
TypeDescription
StreamingPullResponse.Builder

addReceivedMessages(ReceivedMessage value)

public StreamingPullResponse.Builder addReceivedMessages(ReceivedMessage value)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
valueReceivedMessage
Returns
TypeDescription
StreamingPullResponse.Builder

addReceivedMessages(ReceivedMessage.Builder builderForValue)

public StreamingPullResponse.Builder addReceivedMessages(ReceivedMessage.Builder builderForValue)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
builderForValueReceivedMessage.Builder
Returns
TypeDescription
StreamingPullResponse.Builder

addReceivedMessages(int index, ReceivedMessage value)

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

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameters
NameDescription
indexint
valueReceivedMessage
Returns
TypeDescription
StreamingPullResponse.Builder

addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)

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

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameters
NameDescription
indexint
builderForValueReceivedMessage.Builder
Returns
TypeDescription
StreamingPullResponse.Builder

addReceivedMessagesBuilder()

public ReceivedMessage.Builder addReceivedMessagesBuilder()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
ReceivedMessage.Builder

addReceivedMessagesBuilder(int index)

public ReceivedMessage.Builder addReceivedMessagesBuilder(int index)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingPullResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

build()

public StreamingPullResponse build()
Returns
TypeDescription
StreamingPullResponse

buildPartial()

public StreamingPullResponse buildPartial()
Returns
TypeDescription
StreamingPullResponse

clear()

public StreamingPullResponse.Builder clear()
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

clearAcknowledgeConfirmation()

public StreamingPullResponse.Builder clearAcknowledgeConfirmation()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
StreamingPullResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamingPullResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

clearModifyAckDeadlineConfirmation()

public StreamingPullResponse.Builder clearModifyAckDeadlineConfirmation()

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;

Returns
TypeDescription
StreamingPullResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingPullResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

clearReceivedMessages()

public StreamingPullResponse.Builder clearReceivedMessages()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
StreamingPullResponse.Builder

clearSubscriptionProperties()

public StreamingPullResponse.Builder clearSubscriptionProperties()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
StreamingPullResponse.Builder

clone()

public StreamingPullResponse.Builder clone()
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

getAcknowledgeConfirmation()

public StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation

The acknowledgeConfirmation.

getAcknowledgeConfirmationBuilder()

public StreamingPullResponse.AcknowledgeConfirmation.Builder getAcknowledgeConfirmationBuilder()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation.Builder

getAcknowledgeConfirmationOrBuilder()

public StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmationOrBuilder

getDefaultInstanceForType()

public StreamingPullResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamingPullResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getModifyAckDeadlineConfirmation()

public StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation()

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;

Returns
TypeDescription
StreamingPullResponse.ModifyAckDeadlineConfirmation

The modifyAckDeadlineConfirmation.

getModifyAckDeadlineConfirmationBuilder()

public StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder getModifyAckDeadlineConfirmationBuilder()

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;

Returns
TypeDescription
StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder

getModifyAckDeadlineConfirmationOrBuilder()

public StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder()

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;

Returns
TypeDescription
StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder

getReceivedMessages(int index)

public ReceivedMessage getReceivedMessages(int index)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessage

getReceivedMessagesBuilder(int index)

public ReceivedMessage.Builder getReceivedMessagesBuilder(int index)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessage.Builder

getReceivedMessagesBuilderList()

public List<ReceivedMessage.Builder> getReceivedMessagesBuilderList()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
List<Builder>

getReceivedMessagesCount()

public int getReceivedMessagesCount()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
int

getReceivedMessagesList()

public List<ReceivedMessage> getReceivedMessagesList()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
List<ReceivedMessage>

getReceivedMessagesOrBuilder(int index)

public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessageOrBuilder

getReceivedMessagesOrBuilderList()

public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

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

getSubscriptionProperties()

public StreamingPullResponse.SubscriptionProperties getSubscriptionProperties()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
StreamingPullResponse.SubscriptionProperties

The subscriptionProperties.

getSubscriptionPropertiesBuilder()

public StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
StreamingPullResponse.SubscriptionProperties.Builder

getSubscriptionPropertiesOrBuilder()

public StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
StreamingPullResponse.SubscriptionPropertiesOrBuilder

hasAcknowledgeConfirmation()

public boolean hasAcknowledgeConfirmation()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
boolean

Whether the acknowledgeConfirmation field is set.

hasModifyAckDeadlineConfirmation()

public boolean hasModifyAckDeadlineConfirmation()

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;

Returns
TypeDescription
boolean

Whether the modifyAckDeadlineConfirmation field is set.

hasSubscriptionProperties()

public boolean hasSubscriptionProperties()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
boolean

Whether the subscriptionProperties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

public StreamingPullResponse.Builder mergeAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Parameter
NameDescription
valueStreamingPullResponse.AcknowledgeConfirmation
Returns
TypeDescription
StreamingPullResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingPullResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public StreamingPullResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

mergeFrom(StreamingPullResponse other)

public StreamingPullResponse.Builder mergeFrom(StreamingPullResponse other)
Parameter
NameDescription
otherStreamingPullResponse
Returns
TypeDescription
StreamingPullResponse.Builder

mergeModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

public StreamingPullResponse.Builder mergeModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

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;

Parameter
NameDescription
valueStreamingPullResponse.ModifyAckDeadlineConfirmation
Returns
TypeDescription
StreamingPullResponse.Builder

mergeSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

public StreamingPullResponse.Builder mergeSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Parameter
NameDescription
valueStreamingPullResponse.SubscriptionProperties
Returns
TypeDescription
StreamingPullResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingPullResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

removeReceivedMessages(int index)

public StreamingPullResponse.Builder removeReceivedMessages(int index)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
StreamingPullResponse.Builder

setAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

public StreamingPullResponse.Builder setAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation value)

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Parameter
NameDescription
valueStreamingPullResponse.AcknowledgeConfirmation
Returns
TypeDescription
StreamingPullResponse.Builder

setAcknowledgeConfirmation(StreamingPullResponse.AcknowledgeConfirmation.Builder builderForValue)

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

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Parameter
NameDescription
builderForValueStreamingPullResponse.AcknowledgeConfirmation.Builder
Returns
TypeDescription
StreamingPullResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingPullResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

setModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

public StreamingPullResponse.Builder setModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation value)

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;

Parameter
NameDescription
valueStreamingPullResponse.ModifyAckDeadlineConfirmation
Returns
TypeDescription
StreamingPullResponse.Builder

setModifyAckDeadlineConfirmation(StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder builderForValue)

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

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;

Parameter
NameDescription
builderForValueStreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
Returns
TypeDescription
StreamingPullResponse.Builder

setReceivedMessages(int index, ReceivedMessage value)

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

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameters
NameDescription
indexint
valueReceivedMessage
Returns
TypeDescription
StreamingPullResponse.Builder

setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)

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

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Parameters
NameDescription
indexint
builderForValueReceivedMessage.Builder
Returns
TypeDescription
StreamingPullResponse.Builder

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

public StreamingPullResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

public StreamingPullResponse.Builder setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value)

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Parameter
NameDescription
valueStreamingPullResponse.SubscriptionProperties
Returns
TypeDescription
StreamingPullResponse.Builder

setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties.Builder builderForValue)

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

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Parameter
NameDescription
builderForValueStreamingPullResponse.SubscriptionProperties.Builder
Returns
TypeDescription
StreamingPullResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingPullResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides