Class BidiReadObjectResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.BidiReadObjectResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BidiReadObjectResponseOrBuilder, Serializable

public final class BidiReadObjectResponse extends com.google.protobuf.GeneratedMessageV3 implements BidiReadObjectResponseOrBuilder
 Response message for BidiReadObject.
 
Protobuf type google.storage.v2.BidiReadObjectResponse
See Also:
  • Field Details

    • OBJECT_DATA_RANGES_FIELD_NUMBER

      public static final int OBJECT_DATA_RANGES_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • READ_HANDLE_FIELD_NUMBER

      public static final int READ_HANDLE_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BidiReadObjectResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BidiReadObjectResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BidiReadObjectResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BidiReadObjectResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static BidiReadObjectResponse.Builder newBuilder()
    • newBuilder

      public static BidiReadObjectResponse.Builder newBuilder(BidiReadObjectResponse prototype)
    • toBuilder

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

      protected BidiReadObjectResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static BidiReadObjectResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BidiReadObjectResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<BidiReadObjectResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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