Class BidiReadObjectResponse.Builder

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

public static final class BidiReadObjectResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<BidiReadObjectResponse.Builder> implements BidiReadObjectResponseOrBuilder
 Response message for
 [BidiReadObject][google.storage.v2.Storage.BidiReadObject].
 
Protobuf type google.storage.v2.BidiReadObjectResponse
  • 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<BidiReadObjectResponse.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<BidiReadObjectResponse.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<BidiReadObjectResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BidiReadObjectResponse.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<BidiReadObjectResponse.Builder>
      Throws:
      IOException
    • getObjectDataRangesList

      public List<ObjectRangeData> getObjectDataRangesList()
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
      Specified by:
      getObjectDataRangesList in interface BidiReadObjectResponseOrBuilder
    • getObjectDataRangesCount

      public int getObjectDataRangesCount()
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
      Specified by:
      getObjectDataRangesCount in interface BidiReadObjectResponseOrBuilder
    • getObjectDataRanges

      public ObjectRangeData getObjectDataRanges(int index)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
      Specified by:
      getObjectDataRanges in interface BidiReadObjectResponseOrBuilder
    • setObjectDataRanges

      public BidiReadObjectResponse.Builder setObjectDataRanges(int index, ObjectRangeData value)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • setObjectDataRanges

      public BidiReadObjectResponse.Builder setObjectDataRanges(int index, ObjectRangeData.Builder builderForValue)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • addObjectDataRanges

      public BidiReadObjectResponse.Builder addObjectDataRanges(ObjectRangeData value)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • addObjectDataRanges

      public BidiReadObjectResponse.Builder addObjectDataRanges(int index, ObjectRangeData value)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • addObjectDataRanges

      public BidiReadObjectResponse.Builder addObjectDataRanges(ObjectRangeData.Builder builderForValue)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • addObjectDataRanges

      public BidiReadObjectResponse.Builder addObjectDataRanges(int index, ObjectRangeData.Builder builderForValue)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • addAllObjectDataRanges

      public BidiReadObjectResponse.Builder addAllObjectDataRanges(Iterable<? extends ObjectRangeData> values)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • clearObjectDataRanges

      public BidiReadObjectResponse.Builder clearObjectDataRanges()
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • removeObjectDataRanges

      public BidiReadObjectResponse.Builder removeObjectDataRanges(int index)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • getObjectDataRangesBuilder

      public ObjectRangeData.Builder getObjectDataRangesBuilder(int index)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • getObjectDataRangesOrBuilder

      public ObjectRangeDataOrBuilder getObjectDataRangesOrBuilder(int index)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
      Specified by:
      getObjectDataRangesOrBuilder in interface BidiReadObjectResponseOrBuilder
    • getObjectDataRangesOrBuilderList

      public List<? extends ObjectRangeDataOrBuilder> getObjectDataRangesOrBuilderList()
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
      Specified by:
      getObjectDataRangesOrBuilderList in interface BidiReadObjectResponseOrBuilder
    • addObjectDataRangesBuilder

      public ObjectRangeData.Builder addObjectDataRangesBuilder()
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • addObjectDataRangesBuilder

      public ObjectRangeData.Builder addObjectDataRangesBuilder(int index)
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • getObjectDataRangesBuilderList

      public List<ObjectRangeData.Builder> getObjectDataRangesBuilderList()
       A portion of the object's data. The service might leave data
       empty for any given `ReadResponse`. This enables the service to inform the
       client that the request is still live while it is running an operation to
       generate more data.
       The service might pipeline multiple responses belonging to different read
       requests. Each `ObjectRangeData` entry has a `read_id` that is set
       to the same value as the corresponding source read request.
       
      repeated .google.storage.v2.ObjectRangeData object_data_ranges = 6;
    • hasMetadata

      public boolean hasMetadata()
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
      Specified by:
      hasMetadata in interface BidiReadObjectResponseOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public Object getMetadata()
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
      Specified by:
      getMetadata in interface BidiReadObjectResponseOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public BidiReadObjectResponse.Builder setMetadata(Object value)
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
    • setMetadata

      public BidiReadObjectResponse.Builder setMetadata(Object.Builder builderForValue)
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
    • mergeMetadata

      public BidiReadObjectResponse.Builder mergeMetadata(Object value)
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
    • clearMetadata

      public BidiReadObjectResponse.Builder clearMetadata()
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
    • getMetadataBuilder

      public Object.Builder getMetadataBuilder()
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
    • getMetadataOrBuilder

      public ObjectOrBuilder getMetadataOrBuilder()
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream and not populated when
       the stream is opened with a read handle.
       
      .google.storage.v2.Object metadata = 4;
      Specified by:
      getMetadataOrBuilder in interface BidiReadObjectResponseOrBuilder
    • hasReadHandle

      public boolean hasReadHandle()
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
      Specified by:
      hasReadHandle in interface BidiReadObjectResponseOrBuilder
      Returns:
      Whether the readHandle field is set.
    • getReadHandle

      public BidiReadHandle getReadHandle()
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
      Specified by:
      getReadHandle in interface BidiReadObjectResponseOrBuilder
      Returns:
      The readHandle.
    • setReadHandle

      public BidiReadObjectResponse.Builder setReadHandle(BidiReadHandle value)
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
    • setReadHandle

      public BidiReadObjectResponse.Builder setReadHandle(BidiReadHandle.Builder builderForValue)
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
    • mergeReadHandle

      public BidiReadObjectResponse.Builder mergeReadHandle(BidiReadHandle value)
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
    • clearReadHandle

      public BidiReadObjectResponse.Builder clearReadHandle()
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
    • getReadHandleBuilder

      public BidiReadHandle.Builder getReadHandleBuilder()
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
    • getReadHandleOrBuilder

      public BidiReadHandleOrBuilder getReadHandleOrBuilder()
       This field is periodically refreshed, however it might not be set in
       every response. It allows the client to more efficiently open subsequent
       bidirectional streams to the same object.
       
      .google.storage.v2.BidiReadHandle read_handle = 7;
      Specified by:
      getReadHandleOrBuilder in interface BidiReadObjectResponseOrBuilder