Class BidiReadObjectRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<BidiReadObjectRequest.Builder> implements BidiReadObjectRequestOrBuilder
 Request message for
 [BidiReadObject][google.storage.v2.Storage.BidiReadObject].
 
Protobuf type google.storage.v2.BidiReadObjectRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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.GeneratedMessage.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 is 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 is 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 is 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 is 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 is 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 is 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 is 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 is 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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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
       delivered in increasing offset order. There are no ordering guarantees
       across ranges. When no ranges are provided, the response message
       doesn't  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];