Class BidiReadObjectRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BidiReadObjectRequest.Builder>
com.google.storage.v2.BidiReadObjectRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BidiReadObjectRequestOrBuilder, Cloneable
Enclosing class:
BidiReadObjectRequest

public static final class BidiReadObjectRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BidiReadObjectRequest.Builder> implements BidiReadObjectRequestOrBuilder
 Request message for BidiReadObject.
 
Protobuf type google.storage.v2.BidiReadObjectRequest
  • 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<BidiReadObjectRequest.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<BidiReadObjectRequest.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<BidiReadObjectRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public BidiReadObjectRequest.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<BidiReadObjectRequest.Builder>
      Throws:
      IOException
    • hasReadObjectSpec

      public boolean hasReadObjectSpec()
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasReadObjectSpec in interface BidiReadObjectRequestOrBuilder
      Returns:
      Whether the readObjectSpec field is set.
    • getReadObjectSpec

      public BidiReadObjectSpec getReadObjectSpec()
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReadObjectSpec in interface BidiReadObjectRequestOrBuilder
      Returns:
      The readObjectSpec.
    • setReadObjectSpec

      public BidiReadObjectRequest.Builder setReadObjectSpec(BidiReadObjectSpec value)
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setReadObjectSpec

      public BidiReadObjectRequest.Builder setReadObjectSpec(BidiReadObjectSpec.Builder builderForValue)
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeReadObjectSpec

      public BidiReadObjectRequest.Builder mergeReadObjectSpec(BidiReadObjectSpec value)
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearReadObjectSpec

      public BidiReadObjectRequest.Builder clearReadObjectSpec()
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getReadObjectSpecBuilder

      public BidiReadObjectSpec.Builder getReadObjectSpecBuilder()
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getReadObjectSpecOrBuilder

      public BidiReadObjectSpecOrBuilder getReadObjectSpecOrBuilder()
       Optional. The first message of each stream should set this field. If this
       is not the first message, an error will be returned. Describes the object
       to read.
       
      .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReadObjectSpecOrBuilder in interface BidiReadObjectRequestOrBuilder
    • getReadRangesList

      public List<ReadRange> getReadRangesList()
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReadRangesList in interface BidiReadObjectRequestOrBuilder
    • getReadRangesCount

      public int getReadRangesCount()
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReadRangesCount in interface BidiReadObjectRequestOrBuilder
    • getReadRanges

      public ReadRange getReadRanges(int index)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReadRanges in interface BidiReadObjectRequestOrBuilder
    • setReadRanges

      public BidiReadObjectRequest.Builder setReadRanges(int index, ReadRange value)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setReadRanges

      public BidiReadObjectRequest.Builder setReadRanges(int index, ReadRange.Builder builderForValue)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • addReadRanges

      public BidiReadObjectRequest.Builder addReadRanges(ReadRange value)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • addReadRanges

      public BidiReadObjectRequest.Builder addReadRanges(int index, ReadRange value)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • addReadRanges

      public BidiReadObjectRequest.Builder addReadRanges(ReadRange.Builder builderForValue)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • addReadRanges

      public BidiReadObjectRequest.Builder addReadRanges(int index, ReadRange.Builder builderForValue)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • addAllReadRanges

      public BidiReadObjectRequest.Builder addAllReadRanges(Iterable<? extends ReadRange> values)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • clearReadRanges

      public BidiReadObjectRequest.Builder clearReadRanges()
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • removeReadRanges

      public BidiReadObjectRequest.Builder removeReadRanges(int index)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getReadRangesBuilder

      public ReadRange.Builder getReadRangesBuilder(int index)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getReadRangesOrBuilder

      public ReadRangeOrBuilder getReadRangesOrBuilder(int index)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReadRangesOrBuilder in interface BidiReadObjectRequestOrBuilder
    • getReadRangesOrBuilderList

      public List<? extends ReadRangeOrBuilder> getReadRangesOrBuilderList()
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReadRangesOrBuilderList in interface BidiReadObjectRequestOrBuilder
    • addReadRangesBuilder

      public ReadRange.Builder addReadRangesBuilder()
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • addReadRangesBuilder

      public ReadRange.Builder addReadRangesBuilder(int index)
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getReadRangesBuilderList

      public List<ReadRange.Builder> getReadRangesBuilderList()
       Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
       single range is large enough to require multiple responses, they are
       guaranteed to be delivered in increasing offset order. There are no
       ordering guarantees across ranges. When no ranges are provided, the
       response message will not include ObjectRangeData. For full object
       downloads, the offset and size can be set to 0.
       
      repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
    • setUnknownFields

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

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