Class MessagePublishResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder
All Implemented Interfaces:
MessagePublishResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MessagePublishResponse

public static final class MessagePublishResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder> implements MessagePublishResponseOrBuilder
 Response to a MessagePublishRequest.
 
Protobuf type google.cloud.pubsublite.v1.MessagePublishResponse
  • 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<MessagePublishResponse.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<MessagePublishResponse.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<MessagePublishResponse.Builder>
    • getDefaultInstanceForType

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

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

      public MessagePublishResponse 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<MessagePublishResponse.Builder>
    • setField

      public MessagePublishResponse.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<MessagePublishResponse.Builder>
    • clearField

      public MessagePublishResponse.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<MessagePublishResponse.Builder>
    • clearOneof

      public MessagePublishResponse.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<MessagePublishResponse.Builder>
    • setRepeatedField

      public MessagePublishResponse.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<MessagePublishResponse.Builder>
    • addRepeatedField

      public MessagePublishResponse.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<MessagePublishResponse.Builder>
    • mergeFrom

      public MessagePublishResponse.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<MessagePublishResponse.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<MessagePublishResponse.Builder>
    • mergeFrom

      public MessagePublishResponse.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<MessagePublishResponse.Builder>
      Throws:
      IOException
    • hasStartCursor

      public boolean hasStartCursor()
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
      Specified by:
      hasStartCursor in interface MessagePublishResponseOrBuilder
      Returns:
      Whether the startCursor field is set.
    • getStartCursor

      public Cursor getStartCursor()
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
      Specified by:
      getStartCursor in interface MessagePublishResponseOrBuilder
      Returns:
      The startCursor.
    • setStartCursor

      public MessagePublishResponse.Builder setStartCursor(Cursor value)
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
    • setStartCursor

      public MessagePublishResponse.Builder setStartCursor(Cursor.Builder builderForValue)
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
    • mergeStartCursor

      public MessagePublishResponse.Builder mergeStartCursor(Cursor value)
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
    • clearStartCursor

      public MessagePublishResponse.Builder clearStartCursor()
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
    • getStartCursorBuilder

      public Cursor.Builder getStartCursorBuilder()
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
    • getStartCursorOrBuilder

      public CursorOrBuilder getStartCursorOrBuilder()
       The cursor of the first published message in the batch. The cursors for any
       remaining messages in the batch are guaranteed to be sequential.
       
      .google.cloud.pubsublite.v1.Cursor start_cursor = 1;
      Specified by:
      getStartCursorOrBuilder in interface MessagePublishResponseOrBuilder
    • getCursorRangesList

      public List<MessagePublishResponse.CursorRange> getCursorRangesList()
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
      Specified by:
      getCursorRangesList in interface MessagePublishResponseOrBuilder
    • getCursorRangesCount

      public int getCursorRangesCount()
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
      Specified by:
      getCursorRangesCount in interface MessagePublishResponseOrBuilder
    • getCursorRanges

      public MessagePublishResponse.CursorRange getCursorRanges(int index)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
      Specified by:
      getCursorRanges in interface MessagePublishResponseOrBuilder
    • setCursorRanges

      public MessagePublishResponse.Builder setCursorRanges(int index, MessagePublishResponse.CursorRange value)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • setCursorRanges

      public MessagePublishResponse.Builder setCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • addCursorRanges

       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • addCursorRanges

      public MessagePublishResponse.Builder addCursorRanges(int index, MessagePublishResponse.CursorRange value)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • addCursorRanges

       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • addCursorRanges

      public MessagePublishResponse.Builder addCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • addAllCursorRanges

      public MessagePublishResponse.Builder addAllCursorRanges(Iterable<? extends MessagePublishResponse.CursorRange> values)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • clearCursorRanges

      public MessagePublishResponse.Builder clearCursorRanges()
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • removeCursorRanges

      public MessagePublishResponse.Builder removeCursorRanges(int index)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • getCursorRangesBuilder

      public MessagePublishResponse.CursorRange.Builder getCursorRangesBuilder(int index)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • getCursorRangesOrBuilder

      public MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder(int index)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
      Specified by:
      getCursorRangesOrBuilder in interface MessagePublishResponseOrBuilder
    • getCursorRangesOrBuilderList

      public List<? extends MessagePublishResponse.CursorRangeOrBuilder> getCursorRangesOrBuilderList()
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
      Specified by:
      getCursorRangesOrBuilderList in interface MessagePublishResponseOrBuilder
    • addCursorRangesBuilder

      public MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder()
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • addCursorRangesBuilder

      public MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder(int index)
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • getCursorRangesBuilderList

      public List<MessagePublishResponse.CursorRange.Builder> getCursorRangesBuilderList()
       Cursors for messages published in the batch. There will exist multiple
       ranges when cursors are not contiguous within the batch.
      
       The cursor ranges may not account for all messages in the batch when
       publish idempotency is enabled. A missing range indicates that cursors
       could not be determined for messages within the range, as they were
       deduplicated and the necessary data was not available at publish time.
       These messages will have offsets when received by a subscriber.
       
      repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;
    • setUnknownFields

      public final MessagePublishResponse.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<MessagePublishResponse.Builder>
    • mergeUnknownFields

      public final MessagePublishResponse.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<MessagePublishResponse.Builder>