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 typegoogle.pubsub.v1.StreamingPullResponse
-
-
Method Summary
-
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
-
-
-
-
Method Detail
-
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
public 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
public StreamingPullResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public StreamingPullResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StreamingPullResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StreamingPullResponse.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
public StreamingPullResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StreamingPullResponse.Builder>
-
mergeFrom
public StreamingPullResponse.Builder mergeFrom(StreamingPullResponse other)
-
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
public List<ReceivedMessage> 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
public ReceivedMessage getReceivedMessages(int index)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessages
in interfaceStreamingPullResponseOrBuilder
-
setReceivedMessages
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;
-
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
public StreamingPullResponse.Builder addReceivedMessages(ReceivedMessage value)
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 value)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
addReceivedMessages
public StreamingPullResponse.Builder addReceivedMessages(ReceivedMessage.Builder builderForValue)
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
public StreamingPullResponse.Builder clearReceivedMessages()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
removeReceivedMessages
public StreamingPullResponse.Builder removeReceivedMessages(int index)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
getReceivedMessagesBuilder
public ReceivedMessage.Builder getReceivedMessagesBuilder(int index)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
getReceivedMessagesOrBuilder
public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessagesOrBuilder
in interfaceStreamingPullResponseOrBuilder
-
getReceivedMessagesOrBuilderList
public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
- Specified by:
getReceivedMessagesOrBuilderList
in interfaceStreamingPullResponseOrBuilder
-
addReceivedMessagesBuilder
public ReceivedMessage.Builder addReceivedMessagesBuilder()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
addReceivedMessagesBuilder
public ReceivedMessage.Builder addReceivedMessagesBuilder(int index)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
-
getReceivedMessagesBuilderList
public List<ReceivedMessage.Builder> 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
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;
- 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
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;
-
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;
-
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;
- 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
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;
- 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
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;
-
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
public StreamingPullResponse.SubscriptionProperties 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
public StreamingPullResponse.Builder clearSubscriptionProperties()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
-
getSubscriptionPropertiesBuilder
public StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
-
getSubscriptionPropertiesOrBuilder
public StreamingPullResponse.SubscriptionPropertiesOrBuilder 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>
-
-