Class ObjectRangeData.Builder

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

public static final class ObjectRangeData.Builder extends com.google.protobuf.GeneratedMessage.Builder<ObjectRangeData.Builder> implements ObjectRangeDataOrBuilder
 Contains data and metadata for a range of an object.
 
Protobuf type google.storage.v2.ObjectRangeData
  • 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<ObjectRangeData.Builder>
    • clear

      public ObjectRangeData.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<ObjectRangeData.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<ObjectRangeData.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ObjectRangeData.Builder mergeFrom(ObjectRangeData other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ObjectRangeData.Builder>
    • mergeFrom

      public ObjectRangeData.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<ObjectRangeData.Builder>
      Throws:
      IOException
    • hasChecksummedData

      public boolean hasChecksummedData()
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
      Specified by:
      hasChecksummedData in interface ObjectRangeDataOrBuilder
      Returns:
      Whether the checksummedData field is set.
    • getChecksummedData

      public ChecksummedData getChecksummedData()
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
      Specified by:
      getChecksummedData in interface ObjectRangeDataOrBuilder
      Returns:
      The checksummedData.
    • setChecksummedData

      public ObjectRangeData.Builder setChecksummedData(ChecksummedData value)
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
    • setChecksummedData

      public ObjectRangeData.Builder setChecksummedData(ChecksummedData.Builder builderForValue)
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
    • mergeChecksummedData

      public ObjectRangeData.Builder mergeChecksummedData(ChecksummedData value)
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
    • clearChecksummedData

      public ObjectRangeData.Builder clearChecksummedData()
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
    • getChecksummedDataBuilder

      public ChecksummedData.Builder getChecksummedDataBuilder()
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
    • getChecksummedDataOrBuilder

      public ChecksummedDataOrBuilder getChecksummedDataOrBuilder()
       A portion of the data for the object.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
      Specified by:
      getChecksummedDataOrBuilder in interface ObjectRangeDataOrBuilder
    • hasReadRange

      public boolean hasReadRange()
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
      Specified by:
      hasReadRange in interface ObjectRangeDataOrBuilder
      Returns:
      Whether the readRange field is set.
    • getReadRange

      public ReadRange getReadRange()
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
      Specified by:
      getReadRange in interface ObjectRangeDataOrBuilder
      Returns:
      The readRange.
    • setReadRange

      public ObjectRangeData.Builder setReadRange(ReadRange value)
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
    • setReadRange

      public ObjectRangeData.Builder setReadRange(ReadRange.Builder builderForValue)
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
    • mergeReadRange

      public ObjectRangeData.Builder mergeReadRange(ReadRange value)
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
    • clearReadRange

      public ObjectRangeData.Builder clearReadRange()
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
    • getReadRangeBuilder

      public ReadRange.Builder getReadRangeBuilder()
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
    • getReadRangeOrBuilder

      public ReadRangeOrBuilder getReadRangeOrBuilder()
       The `ReadRange` describes the content being returned with `read_id` set to
       the corresponding `ReadObjectRequest` in the stream. Multiple
       `ObjectRangeData` messages might have the same read_id but increasing
       offsets. `ReadObjectResponse` messages with the same `read_id` are
       guaranteed to be delivered in increasing offset order.
       
      .google.storage.v2.ReadRange read_range = 2;
      Specified by:
      getReadRangeOrBuilder in interface ObjectRangeDataOrBuilder
    • getRangeEnd

      public boolean getRangeEnd()
       If set, indicates there are no more bytes to read for the given ReadRange.
       
      bool range_end = 3;
      Specified by:
      getRangeEnd in interface ObjectRangeDataOrBuilder
      Returns:
      The rangeEnd.
    • setRangeEnd

      public ObjectRangeData.Builder setRangeEnd(boolean value)
       If set, indicates there are no more bytes to read for the given ReadRange.
       
      bool range_end = 3;
      Parameters:
      value - The rangeEnd to set.
      Returns:
      This builder for chaining.
    • clearRangeEnd

      public ObjectRangeData.Builder clearRangeEnd()
       If set, indicates there are no more bytes to read for the given ReadRange.
       
      bool range_end = 3;
      Returns:
      This builder for chaining.