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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • getDefaultInstanceForType

      public StreamingPullResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public StreamingPullResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StreamingPullResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • setField

      public StreamingPullResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • clearField

      public StreamingPullResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • clearOneof

      public StreamingPullResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • addRepeatedField

      public StreamingPullResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • mergeFrom

      public StreamingPullResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingPullResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingPullResponse.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getReceivedMessagesList in interface StreamingPullResponseOrBuilder
    • 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];
      Specified by:
      getReceivedMessagesCount in interface StreamingPullResponseOrBuilder
    • getReceivedMessages

      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];
      Specified by:
      getReceivedMessages in interface StreamingPullResponseOrBuilder
    • setReceivedMessages

      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];
    • setReceivedMessages

      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];
    • addReceivedMessages

      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];
    • addReceivedMessages

      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];
    • addReceivedMessages

      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];
    • addReceivedMessages

      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];
    • addAllReceivedMessages

      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];
    • 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];
    • removeReceivedMessages

      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];
    • getReceivedMessagesBuilder

      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];
    • getReceivedMessagesOrBuilder

      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];
      Specified by:
      getReceivedMessagesOrBuilder in interface StreamingPullResponseOrBuilder
    • 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];
      Specified by:
      getReceivedMessagesOrBuilderList in interface StreamingPullResponseOrBuilder
    • 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];
    • addReceivedMessagesBuilder

      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];
    • 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];
    • 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];
      Specified by:
      hasAcknowledgeConfirmation in interface StreamingPullResponseOrBuilder
      Returns:
      Whether the acknowledgeConfirmation field is set.
    • 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];
      Specified by:
      getAcknowledgeConfirmation in interface StreamingPullResponseOrBuilder
      Returns:
      The acknowledgeConfirmation.
    • setAcknowledgeConfirmation

       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];
    • setAcknowledgeConfirmation

      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];
    • mergeAcknowledgeConfirmation

       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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getAcknowledgeConfirmationOrBuilder in interface StreamingPullResponseOrBuilder
    • 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];
      Specified by:
      hasModifyAckDeadlineConfirmation in interface StreamingPullResponseOrBuilder
      Returns:
      Whether the modifyAckDeadlineConfirmation field is set.
    • 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];
      Specified by:
      getModifyAckDeadlineConfirmation in interface StreamingPullResponseOrBuilder
      Returns:
      The modifyAckDeadlineConfirmation.
    • setModifyAckDeadlineConfirmation

       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];
    • setModifyAckDeadlineConfirmation

      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];
    • mergeModifyAckDeadlineConfirmation

       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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getModifyAckDeadlineConfirmationOrBuilder in interface StreamingPullResponseOrBuilder
    • hasSubscriptionProperties

      public boolean hasSubscriptionProperties()
       Optional. Properties associated with this subscription.
       
      .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSubscriptionProperties in interface StreamingPullResponseOrBuilder
      Returns:
      Whether the subscriptionProperties field is set.
    • getSubscriptionProperties

      public StreamingPullResponse.SubscriptionProperties getSubscriptionProperties()
       Optional. Properties associated with this subscription.
       
      .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubscriptionProperties in interface StreamingPullResponseOrBuilder
      Returns:
      The subscriptionProperties.
    • setSubscriptionProperties

       Optional. Properties associated with this subscription.
       
      .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setSubscriptionProperties

      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];
    • mergeSubscriptionProperties

       Optional. Properties associated with this subscription.
       
      .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearSubscriptionProperties

      public StreamingPullResponse.Builder clearSubscriptionProperties()
       Optional. Properties associated with this subscription.
       
      .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
    • 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];
    • getSubscriptionPropertiesOrBuilder

      public StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()
       Optional. Properties associated with this subscription.
       
      .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubscriptionPropertiesOrBuilder in interface StreamingPullResponseOrBuilder
    • setUnknownFields

      public final StreamingPullResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>
    • mergeUnknownFields

      public final StreamingPullResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingPullResponse.Builder>