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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Name | Description |
values | Iterable<? extends com.google.pubsub.v1.ReceivedMessage>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addReceivedMessagesBuilder()
public ReceivedMessage.Builder addReceivedMessagesBuilder()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StreamingPullResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StreamingPullResponse build()
Returns
buildPartial()
public StreamingPullResponse buildPartial()
Returns
clear()
public StreamingPullResponse.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public StreamingPullResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public StreamingPullResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearReceivedMessages()
public StreamingPullResponse.Builder clearReceivedMessages()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
clearSubscriptionProperties()
public StreamingPullResponse.Builder clearSubscriptionProperties()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
Returns
clone()
public StreamingPullResponse.Builder clone()
Returns
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
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
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
getDefaultInstanceForType()
public StreamingPullResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
Returns
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
Returns
getReceivedMessagesBuilderList()
public List<ReceivedMessage.Builder> getReceivedMessagesBuilderList()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
getReceivedMessagesCount()
public int getReceivedMessagesCount()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
getReceivedMessagesList()
public List<ReceivedMessage> getReceivedMessagesList()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
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
Returns
getReceivedMessagesOrBuilderList()
public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
Type | Description |
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
getSubscriptionPropertiesBuilder()
public StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
Returns
getSubscriptionPropertiesOrBuilder()
public StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
Returns
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
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the subscriptionProperties field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
public StreamingPullResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StreamingPullResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(StreamingPullResponse other)
public StreamingPullResponse.Builder mergeFrom(StreamingPullResponse other)
Parameter
Returns
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
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StreamingPullResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StreamingPullResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StreamingPullResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final StreamingPullResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides