Class RewriteObjectRequest

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

public final class RewriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 implements RewriteObjectRequestOrBuilder
 Request message for RewriteObject.
 If the source object is encrypted using a Customer-Supplied Encryption Key
 the key information must be provided in the copy_source_encryption_algorithm,
 copy_source_encryption_key_bytes, and copy_source_encryption_key_sha256_bytes
 fields. If the destination object should be encrypted the keying information
 should be provided in the encryption_algorithm, encryption_key_bytes, and
 encryption_key_sha256_bytes fields of the
 common_object_request_params.customer_encryption field.
 
Protobuf type google.storage.v2.RewriteObjectRequest
See Also:
  • Field Details

    • DESTINATION_NAME_FIELD_NUMBER

      public static final int DESTINATION_NAME_FIELD_NUMBER
      See Also:
    • DESTINATION_BUCKET_FIELD_NUMBER

      public static final int DESTINATION_BUCKET_FIELD_NUMBER
      See Also:
    • DESTINATION_KMS_KEY_FIELD_NUMBER

      public static final int DESTINATION_KMS_KEY_FIELD_NUMBER
      See Also:
    • DESTINATION_FIELD_NUMBER

      public static final int DESTINATION_FIELD_NUMBER
      See Also:
    • SOURCE_BUCKET_FIELD_NUMBER

      public static final int SOURCE_BUCKET_FIELD_NUMBER
      See Also:
    • SOURCE_OBJECT_FIELD_NUMBER

      public static final int SOURCE_OBJECT_FIELD_NUMBER
      See Also:
    • SOURCE_GENERATION_FIELD_NUMBER

      public static final int SOURCE_GENERATION_FIELD_NUMBER
      See Also:
    • REWRITE_TOKEN_FIELD_NUMBER

      public static final int REWRITE_TOKEN_FIELD_NUMBER
      See Also:
    • DESTINATION_PREDEFINED_ACL_FIELD_NUMBER

      public static final int DESTINATION_PREDEFINED_ACL_FIELD_NUMBER
      See Also:
    • IF_GENERATION_MATCH_FIELD_NUMBER

      public static final int IF_GENERATION_MATCH_FIELD_NUMBER
      See Also:
    • IF_GENERATION_NOT_MATCH_FIELD_NUMBER

      public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER
      See Also:
    • IF_METAGENERATION_MATCH_FIELD_NUMBER

      public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER
      See Also:
    • IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER

      public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER
      See Also:
    • IF_SOURCE_GENERATION_MATCH_FIELD_NUMBER

      public static final int IF_SOURCE_GENERATION_MATCH_FIELD_NUMBER
      See Also:
    • IF_SOURCE_GENERATION_NOT_MATCH_FIELD_NUMBER

      public static final int IF_SOURCE_GENERATION_NOT_MATCH_FIELD_NUMBER
      See Also:
    • IF_SOURCE_METAGENERATION_MATCH_FIELD_NUMBER

      public static final int IF_SOURCE_METAGENERATION_MATCH_FIELD_NUMBER
      See Also:
    • IF_SOURCE_METAGENERATION_NOT_MATCH_FIELD_NUMBER

      public static final int IF_SOURCE_METAGENERATION_NOT_MATCH_FIELD_NUMBER
      See Also:
    • MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER

      public static final int MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER
      See Also:
    • COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER

      public static final int COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER
      See Also:
    • COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER

      public static final int COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER
      See Also:
    • COPY_SOURCE_ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER

      public static final int COPY_SOURCE_ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER
      See Also:
    • COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER

      public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER
      See Also:
    • OBJECT_CHECKSUMS_FIELD_NUMBER

      public static final int OBJECT_CHECKSUMS_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
    • getDestinationName

      public String getDestinationName()
       Required. Immutable. The name of the destination object.
       See the
       [Naming Guidelines](https://cloud.google.com/storage/docs/objects#naming).
       Example: `test.txt`
       The `name` field by itself does not uniquely identify a Cloud Storage
       object. A Cloud Storage object is uniquely identified by the tuple of
       (bucket, object, generation).
       
      string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDestinationName in interface RewriteObjectRequestOrBuilder
      Returns:
      The destinationName.
    • getDestinationNameBytes

      public com.google.protobuf.ByteString getDestinationNameBytes()
       Required. Immutable. The name of the destination object.
       See the
       [Naming Guidelines](https://cloud.google.com/storage/docs/objects#naming).
       Example: `test.txt`
       The `name` field by itself does not uniquely identify a Cloud Storage
       object. A Cloud Storage object is uniquely identified by the tuple of
       (bucket, object, generation).
       
      string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDestinationNameBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for destinationName.
    • getDestinationBucket

      public String getDestinationBucket()
       Required. Immutable. The name of the bucket containing the destination
       object.
       
      string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationBucket in interface RewriteObjectRequestOrBuilder
      Returns:
      The destinationBucket.
    • getDestinationBucketBytes

      public com.google.protobuf.ByteString getDestinationBucketBytes()
       Required. Immutable. The name of the bucket containing the destination
       object.
       
      string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationBucketBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for destinationBucket.
    • getDestinationKmsKey

      public String getDestinationKmsKey()
       Optional. The name of the Cloud KMS key that will be used to encrypt the
       destination object. The Cloud KMS key must be located in same location as
       the object. If the parameter is not specified, the request uses the
       destination bucket's default encryption key, if any, or else the
       Google-managed encryption key.
       
      string destination_kms_key = 27 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationKmsKey in interface RewriteObjectRequestOrBuilder
      Returns:
      The destinationKmsKey.
    • getDestinationKmsKeyBytes

      public com.google.protobuf.ByteString getDestinationKmsKeyBytes()
       Optional. The name of the Cloud KMS key that will be used to encrypt the
       destination object. The Cloud KMS key must be located in same location as
       the object. If the parameter is not specified, the request uses the
       destination bucket's default encryption key, if any, or else the
       Google-managed encryption key.
       
      string destination_kms_key = 27 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationKmsKeyBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for destinationKmsKey.
    • hasDestination

      public boolean hasDestination()
       Optional. Properties of the destination, post-rewrite object.
       The `name`, `bucket` and `kms_key` fields must not be populated (these
       values are specified in the `destination_name`, `destination_bucket`, and
       `destination_kms_key` fields).
       If `destination` is present it will be used to construct the destination
       object's metadata; otherwise the destination object's metadata will be
       copied from the source object.
       
      .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDestination in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the destination field is set.
    • getDestination

      public Object getDestination()
       Optional. Properties of the destination, post-rewrite object.
       The `name`, `bucket` and `kms_key` fields must not be populated (these
       values are specified in the `destination_name`, `destination_bucket`, and
       `destination_kms_key` fields).
       If `destination` is present it will be used to construct the destination
       object's metadata; otherwise the destination object's metadata will be
       copied from the source object.
       
      .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestination in interface RewriteObjectRequestOrBuilder
      Returns:
      The destination.
    • getDestinationOrBuilder

      public ObjectOrBuilder getDestinationOrBuilder()
       Optional. Properties of the destination, post-rewrite object.
       The `name`, `bucket` and `kms_key` fields must not be populated (these
       values are specified in the `destination_name`, `destination_bucket`, and
       `destination_kms_key` fields).
       If `destination` is present it will be used to construct the destination
       object's metadata; otherwise the destination object's metadata will be
       copied from the source object.
       
      .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationOrBuilder in interface RewriteObjectRequestOrBuilder
    • getSourceBucket

      public String getSourceBucket()
       Required. Name of the bucket in which to find the source object.
       
      string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBucket in interface RewriteObjectRequestOrBuilder
      Returns:
      The sourceBucket.
    • getSourceBucketBytes

      public com.google.protobuf.ByteString getSourceBucketBytes()
       Required. Name of the bucket in which to find the source object.
       
      string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBucketBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for sourceBucket.
    • getSourceObject

      public String getSourceObject()
       Required. Name of the source object.
       
      string source_object = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceObject in interface RewriteObjectRequestOrBuilder
      Returns:
      The sourceObject.
    • getSourceObjectBytes

      public com.google.protobuf.ByteString getSourceObjectBytes()
       Required. Name of the source object.
       
      string source_object = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceObjectBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for sourceObject.
    • getSourceGeneration

      public long getSourceGeneration()
       Optional. If present, selects a specific revision of the source object (as
       opposed to the latest version, the default).
       
      int64 source_generation = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSourceGeneration in interface RewriteObjectRequestOrBuilder
      Returns:
      The sourceGeneration.
    • getRewriteToken

      public String getRewriteToken()
       Optional. Include this field (from the previous rewrite response) on each
       rewrite request after the first one, until the rewrite response 'done' flag
       is true. Calls that provide a rewriteToken can omit all other request
       fields, but if included those fields must match the values provided in the
       first rewrite request.
       
      string rewrite_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRewriteToken in interface RewriteObjectRequestOrBuilder
      Returns:
      The rewriteToken.
    • getRewriteTokenBytes

      public com.google.protobuf.ByteString getRewriteTokenBytes()
       Optional. Include this field (from the previous rewrite response) on each
       rewrite request after the first one, until the rewrite response 'done' flag
       is true. Calls that provide a rewriteToken can omit all other request
       fields, but if included those fields must match the values provided in the
       first rewrite request.
       
      string rewrite_token = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRewriteTokenBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for rewriteToken.
    • getDestinationPredefinedAcl

      public String getDestinationPredefinedAcl()
       Optional. Apply a predefined set of access controls to the destination
       object. Valid values are "authenticatedRead", "bucketOwnerFullControl",
       "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
       
      string destination_predefined_acl = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationPredefinedAcl in interface RewriteObjectRequestOrBuilder
      Returns:
      The destinationPredefinedAcl.
    • getDestinationPredefinedAclBytes

      public com.google.protobuf.ByteString getDestinationPredefinedAclBytes()
       Optional. Apply a predefined set of access controls to the destination
       object. Valid values are "authenticatedRead", "bucketOwnerFullControl",
       "bucketOwnerRead", "private", "projectPrivate", or "publicRead".
       
      string destination_predefined_acl = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationPredefinedAclBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for destinationPredefinedAcl.
    • hasIfGenerationMatch

      public boolean hasIfGenerationMatch()
       Makes the operation conditional on whether the object's current generation
       matches the given value. Setting to 0 makes the operation succeed only if
       there are no live versions of the object.
       
      optional int64 if_generation_match = 7;
      Specified by:
      hasIfGenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifGenerationMatch field is set.
    • getIfGenerationMatch

      public long getIfGenerationMatch()
       Makes the operation conditional on whether the object's current generation
       matches the given value. Setting to 0 makes the operation succeed only if
       there are no live versions of the object.
       
      optional int64 if_generation_match = 7;
      Specified by:
      getIfGenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifGenerationMatch.
    • hasIfGenerationNotMatch

      public boolean hasIfGenerationNotMatch()
       Makes the operation conditional on whether the object's live generation
       does not match the given value. If no live object exists, the precondition
       fails. Setting to 0 makes the operation succeed only if there is a live
       version of the object.
       
      optional int64 if_generation_not_match = 8;
      Specified by:
      hasIfGenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifGenerationNotMatch field is set.
    • getIfGenerationNotMatch

      public long getIfGenerationNotMatch()
       Makes the operation conditional on whether the object's live generation
       does not match the given value. If no live object exists, the precondition
       fails. Setting to 0 makes the operation succeed only if there is a live
       version of the object.
       
      optional int64 if_generation_not_match = 8;
      Specified by:
      getIfGenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifGenerationNotMatch.
    • hasIfMetagenerationMatch

      public boolean hasIfMetagenerationMatch()
       Makes the operation conditional on whether the destination object's current
       metageneration matches the given value.
       
      optional int64 if_metageneration_match = 9;
      Specified by:
      hasIfMetagenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifMetagenerationMatch field is set.
    • getIfMetagenerationMatch

      public long getIfMetagenerationMatch()
       Makes the operation conditional on whether the destination object's current
       metageneration matches the given value.
       
      optional int64 if_metageneration_match = 9;
      Specified by:
      getIfMetagenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifMetagenerationMatch.
    • hasIfMetagenerationNotMatch

      public boolean hasIfMetagenerationNotMatch()
       Makes the operation conditional on whether the destination object's current
       metageneration does not match the given value.
       
      optional int64 if_metageneration_not_match = 10;
      Specified by:
      hasIfMetagenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifMetagenerationNotMatch field is set.
    • getIfMetagenerationNotMatch

      public long getIfMetagenerationNotMatch()
       Makes the operation conditional on whether the destination object's current
       metageneration does not match the given value.
       
      optional int64 if_metageneration_not_match = 10;
      Specified by:
      getIfMetagenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifMetagenerationNotMatch.
    • hasIfSourceGenerationMatch

      public boolean hasIfSourceGenerationMatch()
       Makes the operation conditional on whether the source object's live
       generation matches the given value.
       
      optional int64 if_source_generation_match = 11;
      Specified by:
      hasIfSourceGenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifSourceGenerationMatch field is set.
    • getIfSourceGenerationMatch

      public long getIfSourceGenerationMatch()
       Makes the operation conditional on whether the source object's live
       generation matches the given value.
       
      optional int64 if_source_generation_match = 11;
      Specified by:
      getIfSourceGenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifSourceGenerationMatch.
    • hasIfSourceGenerationNotMatch

      public boolean hasIfSourceGenerationNotMatch()
       Makes the operation conditional on whether the source object's live
       generation does not match the given value.
       
      optional int64 if_source_generation_not_match = 12;
      Specified by:
      hasIfSourceGenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifSourceGenerationNotMatch field is set.
    • getIfSourceGenerationNotMatch

      public long getIfSourceGenerationNotMatch()
       Makes the operation conditional on whether the source object's live
       generation does not match the given value.
       
      optional int64 if_source_generation_not_match = 12;
      Specified by:
      getIfSourceGenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifSourceGenerationNotMatch.
    • hasIfSourceMetagenerationMatch

      public boolean hasIfSourceMetagenerationMatch()
       Makes the operation conditional on whether the source object's current
       metageneration matches the given value.
       
      optional int64 if_source_metageneration_match = 13;
      Specified by:
      hasIfSourceMetagenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifSourceMetagenerationMatch field is set.
    • getIfSourceMetagenerationMatch

      public long getIfSourceMetagenerationMatch()
       Makes the operation conditional on whether the source object's current
       metageneration matches the given value.
       
      optional int64 if_source_metageneration_match = 13;
      Specified by:
      getIfSourceMetagenerationMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifSourceMetagenerationMatch.
    • hasIfSourceMetagenerationNotMatch

      public boolean hasIfSourceMetagenerationNotMatch()
       Makes the operation conditional on whether the source object's current
       metageneration does not match the given value.
       
      optional int64 if_source_metageneration_not_match = 14;
      Specified by:
      hasIfSourceMetagenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the ifSourceMetagenerationNotMatch field is set.
    • getIfSourceMetagenerationNotMatch

      public long getIfSourceMetagenerationNotMatch()
       Makes the operation conditional on whether the source object's current
       metageneration does not match the given value.
       
      optional int64 if_source_metageneration_not_match = 14;
      Specified by:
      getIfSourceMetagenerationNotMatch in interface RewriteObjectRequestOrBuilder
      Returns:
      The ifSourceMetagenerationNotMatch.
    • getMaxBytesRewrittenPerCall

      public long getMaxBytesRewrittenPerCall()
       Optional. The maximum number of bytes that will be rewritten per rewrite
       request. Most callers shouldn't need to specify this parameter - it is
       primarily in place to support testing. If specified the value must be an
       integral multiple of 1 MiB (1048576). Also, this only applies to requests
       where the source and destination span locations and/or storage classes.
       Finally, this value must not change across rewrite calls else you'll get an
       error that the `rewriteToken` is invalid.
       
      int64 max_bytes_rewritten_per_call = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxBytesRewrittenPerCall in interface RewriteObjectRequestOrBuilder
      Returns:
      The maxBytesRewrittenPerCall.
    • getCopySourceEncryptionAlgorithm

      public String getCopySourceEncryptionAlgorithm()
       Optional. The algorithm used to encrypt the source object, if any. Used if
       the source object was encrypted with a Customer-Supplied Encryption Key.
       
      string copy_source_encryption_algorithm = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCopySourceEncryptionAlgorithm in interface RewriteObjectRequestOrBuilder
      Returns:
      The copySourceEncryptionAlgorithm.
    • getCopySourceEncryptionAlgorithmBytes

      public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes()
       Optional. The algorithm used to encrypt the source object, if any. Used if
       the source object was encrypted with a Customer-Supplied Encryption Key.
       
      string copy_source_encryption_algorithm = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCopySourceEncryptionAlgorithmBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for copySourceEncryptionAlgorithm.
    • getCopySourceEncryptionKeyBytes

      public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes()
       Optional. The raw bytes (not base64-encoded) AES-256 encryption key used to
       encrypt the source object, if it was encrypted with a Customer-Supplied
       Encryption Key.
       
      bytes copy_source_encryption_key_bytes = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCopySourceEncryptionKeyBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The copySourceEncryptionKeyBytes.
    • getCopySourceEncryptionKeySha256Bytes

      public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes()
       Optional. The raw bytes (not base64-encoded) SHA256 hash of the encryption
       key used to encrypt the source object, if it was encrypted with a
       Customer-Supplied Encryption Key.
       
      bytes copy_source_encryption_key_sha256_bytes = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCopySourceEncryptionKeySha256Bytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The copySourceEncryptionKeySha256Bytes.
    • hasCommonObjectRequestParams

      public boolean hasCommonObjectRequestParams()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCommonObjectRequestParams in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the commonObjectRequestParams field is set.
    • getCommonObjectRequestParams

      public CommonObjectRequestParams getCommonObjectRequestParams()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommonObjectRequestParams in interface RewriteObjectRequestOrBuilder
      Returns:
      The commonObjectRequestParams.
    • getCommonObjectRequestParamsOrBuilder

      public CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder()
       Optional. A set of parameters common to Storage API requests concerning an
       object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCommonObjectRequestParamsOrBuilder in interface RewriteObjectRequestOrBuilder
    • hasObjectChecksums

      public boolean hasObjectChecksums()
       Optional. The checksums of the complete object. This will be used to
       validate the destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasObjectChecksums in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the objectChecksums field is set.
    • getObjectChecksums

      public ObjectChecksums getObjectChecksums()
       Optional. The checksums of the complete object. This will be used to
       validate the destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectChecksums in interface RewriteObjectRequestOrBuilder
      Returns:
      The objectChecksums.
    • getObjectChecksumsOrBuilder

      public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()
       Optional. The checksums of the complete object. This will be used to
       validate the destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getObjectChecksumsOrBuilder in interface RewriteObjectRequestOrBuilder
    • 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 RewriteObjectRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static RewriteObjectRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static RewriteObjectRequest getDefaultInstance()
    • parser

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

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