Class BidiReadObjectResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<BidiReadObjectResponse.Builder> implements BidiReadObjectResponseOrBuilder
 Response message for BidiReadObject.
 
Protobuf type google.storage.v2.BidiReadObjectResponse
  • 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<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.GeneratedMessageV3.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.GeneratedMessageV3.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
    • 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<BidiReadObjectResponse.Builder>
    • setField

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

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

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

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

      public BidiReadObjectResponse.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<BidiReadObjectResponse.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.GeneratedMessageV3.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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 **may** 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 **may** pipeline multiple responses belonging to different read
       requests. Each ObjectRangeData entry will have a read_id
       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 will be periodically refreshed, however it may 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 will be periodically refreshed, however it may 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 will be periodically refreshed, however it may 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 will be periodically refreshed, however it may 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 will be periodically refreshed, however it may 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 will be periodically refreshed, however it may 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 will be periodically refreshed, however it may 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 will be periodically refreshed, however it may 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
    • setUnknownFields

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

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