Class ReadObjectResponse

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

public final class ReadObjectResponse extends com.google.protobuf.GeneratedMessageV3 implements ReadObjectResponseOrBuilder
 Response message for ReadObject.
 
Protobuf type google.storage.v2.ReadObjectResponse
See Also:
  • Field Details

    • CHECKSUMMED_DATA_FIELD_NUMBER

      public static final int CHECKSUMMED_DATA_FIELD_NUMBER
      See Also:
    • OBJECT_CHECKSUMS_FIELD_NUMBER

      public static final int OBJECT_CHECKSUMS_FIELD_NUMBER
      See Also:
    • CONTENT_RANGE_FIELD_NUMBER

      public static final int CONTENT_RANGE_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_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
    • hasChecksummedData

      public boolean hasChecksummedData()
       A portion of the data for the object. 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.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
      Specified by:
      hasChecksummedData in interface ReadObjectResponseOrBuilder
      Returns:
      Whether the checksummedData field is set.
    • getChecksummedData

      public ChecksummedData getChecksummedData()
       A portion of the data for the object. 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.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
      Specified by:
      getChecksummedData in interface ReadObjectResponseOrBuilder
      Returns:
      The checksummedData.
    • getChecksummedDataOrBuilder

      public ChecksummedDataOrBuilder getChecksummedDataOrBuilder()
       A portion of the data for the object. 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.
       
      .google.storage.v2.ChecksummedData checksummed_data = 1;
      Specified by:
      getChecksummedDataOrBuilder in interface ReadObjectResponseOrBuilder
    • hasObjectChecksums

      public boolean hasObjectChecksums()
       The checksums of the complete object. If the object is downloaded in full,
       the client should compute one of these checksums over the downloaded object
       and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums object_checksums = 2;
      Specified by:
      hasObjectChecksums in interface ReadObjectResponseOrBuilder
      Returns:
      Whether the objectChecksums field is set.
    • getObjectChecksums

      public ObjectChecksums getObjectChecksums()
       The checksums of the complete object. If the object is downloaded in full,
       the client should compute one of these checksums over the downloaded object
       and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums object_checksums = 2;
      Specified by:
      getObjectChecksums in interface ReadObjectResponseOrBuilder
      Returns:
      The objectChecksums.
    • getObjectChecksumsOrBuilder

      public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()
       The checksums of the complete object. If the object is downloaded in full,
       the client should compute one of these checksums over the downloaded object
       and compare it against the value provided here.
       
      .google.storage.v2.ObjectChecksums object_checksums = 2;
      Specified by:
      getObjectChecksumsOrBuilder in interface ReadObjectResponseOrBuilder
    • hasContentRange

      public boolean hasContentRange()
       If read_offset and or read_limit was specified on the
       ReadObjectRequest, ContentRange will be populated on the first
       ReadObjectResponse message of the read stream.
       
      .google.storage.v2.ContentRange content_range = 3;
      Specified by:
      hasContentRange in interface ReadObjectResponseOrBuilder
      Returns:
      Whether the contentRange field is set.
    • getContentRange

      public ContentRange getContentRange()
       If read_offset and or read_limit was specified on the
       ReadObjectRequest, ContentRange will be populated on the first
       ReadObjectResponse message of the read stream.
       
      .google.storage.v2.ContentRange content_range = 3;
      Specified by:
      getContentRange in interface ReadObjectResponseOrBuilder
      Returns:
      The contentRange.
    • getContentRangeOrBuilder

      public ContentRangeOrBuilder getContentRangeOrBuilder()
       If read_offset and or read_limit was specified on the
       ReadObjectRequest, ContentRange will be populated on the first
       ReadObjectResponse message of the read stream.
       
      .google.storage.v2.ContentRange content_range = 3;
      Specified by:
      getContentRangeOrBuilder in interface ReadObjectResponseOrBuilder
    • hasMetadata

      public boolean hasMetadata()
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream.
       
      .google.storage.v2.Object metadata = 4;
      Specified by:
      hasMetadata in interface ReadObjectResponseOrBuilder
      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.
       
      .google.storage.v2.Object metadata = 4;
      Specified by:
      getMetadata in interface ReadObjectResponseOrBuilder
      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.
       
      .google.storage.v2.Object metadata = 4;
      Specified by:
      getMetadataOrBuilder in interface ReadObjectResponseOrBuilder
    • 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 ReadObjectResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ReadObjectResponse.Builder newBuilder()
    • newBuilder

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

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

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

      public static ReadObjectResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ReadObjectResponse> 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 ReadObjectResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder