Class ReadObjectResponse.Builder

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

public static final class ReadObjectResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReadObjectResponse.Builder> implements ReadObjectResponseOrBuilder
 Response message for ReadObject.
 
Protobuf type google.storage.v2.ReadObjectResponse
  • 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<ReadObjectResponse.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<ReadObjectResponse.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<ReadObjectResponse.Builder>
    • getDefaultInstanceForType

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

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

      public ReadObjectResponse 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<ReadObjectResponse.Builder>
    • setField

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

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

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

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

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

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

      public ReadObjectResponse.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<ReadObjectResponse.Builder>
      Throws:
      IOException
    • 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.
    • setChecksummedData

      public ReadObjectResponse.Builder setChecksummedData(ChecksummedData value)
       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;
    • setChecksummedData

      public ReadObjectResponse.Builder setChecksummedData(ChecksummedData.Builder builderForValue)
       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;
    • mergeChecksummedData

      public ReadObjectResponse.Builder mergeChecksummedData(ChecksummedData value)
       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;
    • clearChecksummedData

      public ReadObjectResponse.Builder clearChecksummedData()
       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;
    • getChecksummedDataBuilder

      public ChecksummedData.Builder getChecksummedDataBuilder()
       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;
    • 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.
    • setObjectChecksums

      public ReadObjectResponse.Builder setObjectChecksums(ObjectChecksums value)
       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;
    • setObjectChecksums

      public ReadObjectResponse.Builder setObjectChecksums(ObjectChecksums.Builder builderForValue)
       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;
    • mergeObjectChecksums

      public ReadObjectResponse.Builder mergeObjectChecksums(ObjectChecksums value)
       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;
    • clearObjectChecksums

      public ReadObjectResponse.Builder clearObjectChecksums()
       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;
    • getObjectChecksumsBuilder

      public ObjectChecksums.Builder getObjectChecksumsBuilder()
       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;
    • 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.
    • setContentRange

      public ReadObjectResponse.Builder setContentRange(ContentRange value)
       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;
    • setContentRange

      public ReadObjectResponse.Builder setContentRange(ContentRange.Builder builderForValue)
       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;
    • mergeContentRange

      public ReadObjectResponse.Builder mergeContentRange(ContentRange value)
       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;
    • clearContentRange

      public ReadObjectResponse.Builder clearContentRange()
       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;
    • getContentRangeBuilder

      public ContentRange.Builder getContentRangeBuilder()
       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;
    • 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.
    • setMetadata

      public ReadObjectResponse.Builder setMetadata(Object value)
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream.
       
      .google.storage.v2.Object metadata = 4;
    • setMetadata

      public ReadObjectResponse.Builder setMetadata(Object.Builder builderForValue)
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream.
       
      .google.storage.v2.Object metadata = 4;
    • mergeMetadata

      public ReadObjectResponse.Builder mergeMetadata(Object value)
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream.
       
      .google.storage.v2.Object metadata = 4;
    • clearMetadata

      public ReadObjectResponse.Builder clearMetadata()
       Metadata of the object whose media is being returned.
       Only populated in the first response in the stream.
       
      .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.
       
      .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.
       
      .google.storage.v2.Object metadata = 4;
      Specified by:
      getMetadataOrBuilder in interface ReadObjectResponseOrBuilder
    • setUnknownFields

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

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