Package com.google.pubsub.v1
Class StreamingPullResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
com.google.pubsub.v1.StreamingPullResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,StreamingPullResponseOrBuilder
,Cloneable
- Enclosing class:
- StreamingPullResponse
public static final class StreamingPullResponse.Builder
extends com.google.protobuf.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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllReceivedMessages
(Iterable<? extends ReceivedMessage> values) Received Pub/Sub messages.addReceivedMessages
(int index, ReceivedMessage value) Received Pub/Sub messages.addReceivedMessages
(int index, ReceivedMessage.Builder builderForValue) Received Pub/Sub messages.Received Pub/Sub messages.addReceivedMessages
(ReceivedMessage.Builder builderForValue) Received Pub/Sub messages.Received Pub/Sub messages.addReceivedMessagesBuilder
(int index) Received Pub/Sub messages.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
This field will only be set if `enable_exactly_once_delivery` is set to `true`.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) This field will only be set if `enable_exactly_once_delivery` is set to `true`.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Received Pub/Sub messages.Properties associated with this subscription.clone()
This field will only be set if `enable_exactly_once_delivery` is set to `true`.This field will only be set if `enable_exactly_once_delivery` is set to `true`.This field will only be set if `enable_exactly_once_delivery` is set to `true`.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
This field will only be set if `enable_exactly_once_delivery` is set to `true`.This field will only be set if `enable_exactly_once_delivery` is set to `true`.This field will only be set if `enable_exactly_once_delivery` is set to `true`.getReceivedMessages
(int index) Received Pub/Sub messages.getReceivedMessagesBuilder
(int index) Received Pub/Sub messages.Received Pub/Sub messages.int
Received Pub/Sub messages.Received Pub/Sub messages.getReceivedMessagesOrBuilder
(int index) Received Pub/Sub messages.List<? extends ReceivedMessageOrBuilder>
Received Pub/Sub messages.Properties associated with this subscription.Properties associated with this subscription.Properties associated with this subscription.boolean
This field will only be set if `enable_exactly_once_delivery` is set to `true`.boolean
This field will only be set if `enable_exactly_once_delivery` is set to `true`.boolean
Properties associated with this subscription.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
This field will only be set if `enable_exactly_once_delivery` is set to `true`.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(StreamingPullResponse other) This field will only be set if `enable_exactly_once_delivery` is set to `true`.Properties associated with this subscription.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeReceivedMessages
(int index) Received Pub/Sub messages.This field will only be set if `enable_exactly_once_delivery` is set to `true`.This field will only be set if `enable_exactly_once_delivery` is set to `true`.This field will only be set if `enable_exactly_once_delivery` is set to `true`.setModifyAckDeadlineConfirmation
(StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder builderForValue) This field will only be set if `enable_exactly_once_delivery` is set to `true`.setReceivedMessages
(int index, ReceivedMessage value) Received Pub/Sub messages.setReceivedMessages
(int index, ReceivedMessage.Builder builderForValue) Received Pub/Sub messages.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Properties associated with this subscription.Properties associated with this subscription.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
setField
public StreamingPullResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
clearField
public StreamingPullResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
clearOneof
public StreamingPullResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
setRepeatedField
public StreamingPullResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
addRepeatedField
public StreamingPullResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StreamingPullResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
mergeFrom
public StreamingPullResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StreamingPullResponse.Builder>
- Throws:
IOException
-
getReceivedMessagesList
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessagesList
in interfaceStreamingPullResponseOrBuilder
-
getReceivedMessagesCount
public int getReceivedMessagesCount()Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessagesCount
in interfaceStreamingPullResponseOrBuilder
-
getReceivedMessages
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessages
in interfaceStreamingPullResponseOrBuilder
-
setReceivedMessages
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
setReceivedMessages
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;
-
addReceivedMessages
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
addReceivedMessages
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
addReceivedMessages
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
addReceivedMessages
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;
-
addAllReceivedMessages
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;
-
clearReceivedMessages
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
removeReceivedMessages
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
getReceivedMessagesBuilder
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
getReceivedMessagesOrBuilder
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessagesOrBuilder
in interfaceStreamingPullResponseOrBuilder
-
getReceivedMessagesOrBuilderList
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessagesOrBuilderList
in interfaceStreamingPullResponseOrBuilder
-
addReceivedMessagesBuilder
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
addReceivedMessagesBuilder
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
getReceivedMessagesBuilderList
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
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;
- Specified by:
hasAcknowledgeConfirmation
in interfaceStreamingPullResponseOrBuilder
- Returns:
- Whether the acknowledgeConfirmation field is set.
-
getAcknowledgeConfirmation
This field will only be set if `enable_exactly_once_delivery` is set to `true`.
.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;
- Specified by:
getAcknowledgeConfirmation
in interfaceStreamingPullResponseOrBuilder
- Returns:
- The acknowledgeConfirmation.
-
setAcknowledgeConfirmation
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;
-
setAcknowledgeConfirmation
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;
-
mergeAcknowledgeConfirmation
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;
-
clearAcknowledgeConfirmation
This field will only be set if `enable_exactly_once_delivery` is set to `true`.
.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;
-
getAcknowledgeConfirmationBuilder
This field will only be set if `enable_exactly_once_delivery` is set to `true`.
.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;
-
getAcknowledgeConfirmationOrBuilder
This field will only be set if `enable_exactly_once_delivery` is set to `true`.
.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;
- Specified by:
getAcknowledgeConfirmationOrBuilder
in interfaceStreamingPullResponseOrBuilder
-
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;
- Specified by:
hasModifyAckDeadlineConfirmation
in interfaceStreamingPullResponseOrBuilder
- Returns:
- Whether the modifyAckDeadlineConfirmation field is set.
-
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;
- Specified by:
getModifyAckDeadlineConfirmation
in interfaceStreamingPullResponseOrBuilder
- Returns:
- The modifyAckDeadlineConfirmation.
-
setModifyAckDeadlineConfirmation
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;
-
setModifyAckDeadlineConfirmation
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;
-
mergeModifyAckDeadlineConfirmation
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;
-
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;
-
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;
-
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;
- Specified by:
getModifyAckDeadlineConfirmationOrBuilder
in interfaceStreamingPullResponseOrBuilder
-
hasSubscriptionProperties
public boolean hasSubscriptionProperties()Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
- Specified by:
hasSubscriptionProperties
in interfaceStreamingPullResponseOrBuilder
- Returns:
- Whether the subscriptionProperties field is set.
-
getSubscriptionProperties
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
- Specified by:
getSubscriptionProperties
in interfaceStreamingPullResponseOrBuilder
- Returns:
- The subscriptionProperties.
-
setSubscriptionProperties
public StreamingPullResponse.Builder setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value) Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
-
setSubscriptionProperties
public StreamingPullResponse.Builder setSubscriptionProperties(StreamingPullResponse.SubscriptionProperties.Builder builderForValue) Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
-
mergeSubscriptionProperties
public StreamingPullResponse.Builder mergeSubscriptionProperties(StreamingPullResponse.SubscriptionProperties value) Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
-
clearSubscriptionProperties
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
-
getSubscriptionPropertiesBuilder
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
-
getSubscriptionPropertiesOrBuilder
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
- Specified by:
getSubscriptionPropertiesOrBuilder
in interfaceStreamingPullResponseOrBuilder
-
setUnknownFields
public final StreamingPullResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-
mergeUnknownFields
public final StreamingPullResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
-