Class RewriteObjectRequest.Builder

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

public static final class RewriteObjectRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder> 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
  • 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<RewriteObjectRequest.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<RewriteObjectRequest.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<RewriteObjectRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public RewriteObjectRequest.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<RewriteObjectRequest.Builder>
      Throws:
      IOException
    • 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.
    • setDestinationName

      public RewriteObjectRequest.Builder setDestinationName(String value)
       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];
      Parameters:
      value - The destinationName to set.
      Returns:
      This builder for chaining.
    • clearDestinationName

      public RewriteObjectRequest.Builder clearDestinationName()
       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];
      Returns:
      This builder for chaining.
    • setDestinationNameBytes

      public RewriteObjectRequest.Builder setDestinationNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for destinationName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDestinationBucket

      public RewriteObjectRequest.Builder setDestinationBucket(String value)
       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) = { ... }
      Parameters:
      value - The destinationBucket to set.
      Returns:
      This builder for chaining.
    • clearDestinationBucket

      public RewriteObjectRequest.Builder clearDestinationBucket()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setDestinationBucketBytes

      public RewriteObjectRequest.Builder setDestinationBucketBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for destinationBucket to set.
      Returns:
      This builder for chaining.
    • getDestinationKmsKey

      public String getDestinationKmsKey()
       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.resource_reference) = { ... }
      Specified by:
      getDestinationKmsKey in interface RewriteObjectRequestOrBuilder
      Returns:
      The destinationKmsKey.
    • getDestinationKmsKeyBytes

      public com.google.protobuf.ByteString getDestinationKmsKeyBytes()
       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.resource_reference) = { ... }
      Specified by:
      getDestinationKmsKeyBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for destinationKmsKey.
    • setDestinationKmsKey

      public RewriteObjectRequest.Builder setDestinationKmsKey(String value)
       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.resource_reference) = { ... }
      Parameters:
      value - The destinationKmsKey to set.
      Returns:
      This builder for chaining.
    • clearDestinationKmsKey

      public RewriteObjectRequest.Builder clearDestinationKmsKey()
       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.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDestinationKmsKeyBytes

      public RewriteObjectRequest.Builder setDestinationKmsKeyBytes(com.google.protobuf.ByteString value)
       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.resource_reference) = { ... }
      Parameters:
      value - The bytes for destinationKmsKey to set.
      Returns:
      This builder for chaining.
    • hasDestination

      public boolean hasDestination()
       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;
      Specified by:
      hasDestination in interface RewriteObjectRequestOrBuilder
      Returns:
      Whether the destination field is set.
    • getDestination

      public Object getDestination()
       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;
      Specified by:
      getDestination in interface RewriteObjectRequestOrBuilder
      Returns:
      The destination.
    • setDestination

      public RewriteObjectRequest.Builder setDestination(Object value)
       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;
    • setDestination

      public RewriteObjectRequest.Builder setDestination(Object.Builder builderForValue)
       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;
    • mergeDestination

      public RewriteObjectRequest.Builder mergeDestination(Object value)
       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;
    • clearDestination

      public RewriteObjectRequest.Builder clearDestination()
       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;
    • getDestinationBuilder

      public Object.Builder getDestinationBuilder()
       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;
    • getDestinationOrBuilder

      public ObjectOrBuilder getDestinationOrBuilder()
       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;
      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.
    • setSourceBucket

      public RewriteObjectRequest.Builder setSourceBucket(String value)
       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) = { ... }
      Parameters:
      value - The sourceBucket to set.
      Returns:
      This builder for chaining.
    • clearSourceBucket

      public RewriteObjectRequest.Builder clearSourceBucket()
       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) = { ... }
      Returns:
      This builder for chaining.
    • setSourceBucketBytes

      public RewriteObjectRequest.Builder setSourceBucketBytes(com.google.protobuf.ByteString value)
       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) = { ... }
      Parameters:
      value - The bytes for sourceBucket to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSourceObject

      public RewriteObjectRequest.Builder setSourceObject(String value)
       Required. Name of the source object.
       
      string source_object = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sourceObject to set.
      Returns:
      This builder for chaining.
    • clearSourceObject

      public RewriteObjectRequest.Builder clearSourceObject()
       Required. Name of the source object.
       
      string source_object = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSourceObjectBytes

      public RewriteObjectRequest.Builder setSourceObjectBytes(com.google.protobuf.ByteString value)
       Required. Name of the source object.
       
      string source_object = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for sourceObject to set.
      Returns:
      This builder for chaining.
    • getSourceGeneration

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

      public RewriteObjectRequest.Builder setSourceGeneration(long value)
       If present, selects a specific revision of the source object (as opposed to
       the latest version, the default).
       
      int64 source_generation = 4;
      Parameters:
      value - The sourceGeneration to set.
      Returns:
      This builder for chaining.
    • clearSourceGeneration

      public RewriteObjectRequest.Builder clearSourceGeneration()
       If present, selects a specific revision of the source object (as opposed to
       the latest version, the default).
       
      int64 source_generation = 4;
      Returns:
      This builder for chaining.
    • getRewriteToken

      public String getRewriteToken()
       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;
      Specified by:
      getRewriteToken in interface RewriteObjectRequestOrBuilder
      Returns:
      The rewriteToken.
    • getRewriteTokenBytes

      public com.google.protobuf.ByteString getRewriteTokenBytes()
       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;
      Specified by:
      getRewriteTokenBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for rewriteToken.
    • setRewriteToken

      public RewriteObjectRequest.Builder setRewriteToken(String value)
       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;
      Parameters:
      value - The rewriteToken to set.
      Returns:
      This builder for chaining.
    • clearRewriteToken

      public RewriteObjectRequest.Builder clearRewriteToken()
       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;
      Returns:
      This builder for chaining.
    • setRewriteTokenBytes

      public RewriteObjectRequest.Builder setRewriteTokenBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for rewriteToken to set.
      Returns:
      This builder for chaining.
    • getDestinationPredefinedAcl

      public String getDestinationPredefinedAcl()
       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;
      Specified by:
      getDestinationPredefinedAcl in interface RewriteObjectRequestOrBuilder
      Returns:
      The destinationPredefinedAcl.
    • getDestinationPredefinedAclBytes

      public com.google.protobuf.ByteString getDestinationPredefinedAclBytes()
       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;
      Specified by:
      getDestinationPredefinedAclBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for destinationPredefinedAcl.
    • setDestinationPredefinedAcl

      public RewriteObjectRequest.Builder setDestinationPredefinedAcl(String value)
       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;
      Parameters:
      value - The destinationPredefinedAcl to set.
      Returns:
      This builder for chaining.
    • clearDestinationPredefinedAcl

      public RewriteObjectRequest.Builder clearDestinationPredefinedAcl()
       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;
      Returns:
      This builder for chaining.
    • setDestinationPredefinedAclBytes

      public RewriteObjectRequest.Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for destinationPredefinedAcl to set.
      Returns:
      This builder for chaining.
    • 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.
    • setIfGenerationMatch

      public RewriteObjectRequest.Builder setIfGenerationMatch(long value)
       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;
      Parameters:
      value - The ifGenerationMatch to set.
      Returns:
      This builder for chaining.
    • clearIfGenerationMatch

      public RewriteObjectRequest.Builder clearIfGenerationMatch()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setIfGenerationNotMatch

      public RewriteObjectRequest.Builder setIfGenerationNotMatch(long value)
       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;
      Parameters:
      value - The ifGenerationNotMatch to set.
      Returns:
      This builder for chaining.
    • clearIfGenerationNotMatch

      public RewriteObjectRequest.Builder clearIfGenerationNotMatch()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setIfMetagenerationMatch

      public RewriteObjectRequest.Builder setIfMetagenerationMatch(long value)
       Makes the operation conditional on whether the destination object's current
       metageneration matches the given value.
       
      optional int64 if_metageneration_match = 9;
      Parameters:
      value - The ifMetagenerationMatch to set.
      Returns:
      This builder for chaining.
    • clearIfMetagenerationMatch

      public RewriteObjectRequest.Builder clearIfMetagenerationMatch()
       Makes the operation conditional on whether the destination object's current
       metageneration matches the given value.
       
      optional int64 if_metageneration_match = 9;
      Returns:
      This builder for chaining.
    • 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.
    • setIfMetagenerationNotMatch

      public RewriteObjectRequest.Builder setIfMetagenerationNotMatch(long value)
       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;
      Parameters:
      value - The ifMetagenerationNotMatch to set.
      Returns:
      This builder for chaining.
    • clearIfMetagenerationNotMatch

      public RewriteObjectRequest.Builder clearIfMetagenerationNotMatch()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setIfSourceGenerationMatch

      public RewriteObjectRequest.Builder setIfSourceGenerationMatch(long value)
       Makes the operation conditional on whether the source object's live
       generation matches the given value.
       
      optional int64 if_source_generation_match = 11;
      Parameters:
      value - The ifSourceGenerationMatch to set.
      Returns:
      This builder for chaining.
    • clearIfSourceGenerationMatch

      public RewriteObjectRequest.Builder clearIfSourceGenerationMatch()
       Makes the operation conditional on whether the source object's live
       generation matches the given value.
       
      optional int64 if_source_generation_match = 11;
      Returns:
      This builder for chaining.
    • 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.
    • setIfSourceGenerationNotMatch

      public RewriteObjectRequest.Builder setIfSourceGenerationNotMatch(long value)
       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;
      Parameters:
      value - The ifSourceGenerationNotMatch to set.
      Returns:
      This builder for chaining.
    • clearIfSourceGenerationNotMatch

      public RewriteObjectRequest.Builder clearIfSourceGenerationNotMatch()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setIfSourceMetagenerationMatch

      public RewriteObjectRequest.Builder setIfSourceMetagenerationMatch(long value)
       Makes the operation conditional on whether the source object's current
       metageneration matches the given value.
       
      optional int64 if_source_metageneration_match = 13;
      Parameters:
      value - The ifSourceMetagenerationMatch to set.
      Returns:
      This builder for chaining.
    • clearIfSourceMetagenerationMatch

      public RewriteObjectRequest.Builder clearIfSourceMetagenerationMatch()
       Makes the operation conditional on whether the source object's current
       metageneration matches the given value.
       
      optional int64 if_source_metageneration_match = 13;
      Returns:
      This builder for chaining.
    • 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.
    • setIfSourceMetagenerationNotMatch

      public RewriteObjectRequest.Builder setIfSourceMetagenerationNotMatch(long value)
       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;
      Parameters:
      value - The ifSourceMetagenerationNotMatch to set.
      Returns:
      This builder for chaining.
    • clearIfSourceMetagenerationNotMatch

      public RewriteObjectRequest.Builder clearIfSourceMetagenerationNotMatch()
       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;
      Returns:
      This builder for chaining.
    • getMaxBytesRewrittenPerCall

      public long getMaxBytesRewrittenPerCall()
       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;
      Specified by:
      getMaxBytesRewrittenPerCall in interface RewriteObjectRequestOrBuilder
      Returns:
      The maxBytesRewrittenPerCall.
    • setMaxBytesRewrittenPerCall

      public RewriteObjectRequest.Builder setMaxBytesRewrittenPerCall(long value)
       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;
      Parameters:
      value - The maxBytesRewrittenPerCall to set.
      Returns:
      This builder for chaining.
    • clearMaxBytesRewrittenPerCall

      public RewriteObjectRequest.Builder clearMaxBytesRewrittenPerCall()
       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;
      Returns:
      This builder for chaining.
    • getCopySourceEncryptionAlgorithm

      public String getCopySourceEncryptionAlgorithm()
       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;
      Specified by:
      getCopySourceEncryptionAlgorithm in interface RewriteObjectRequestOrBuilder
      Returns:
      The copySourceEncryptionAlgorithm.
    • getCopySourceEncryptionAlgorithmBytes

      public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes()
       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;
      Specified by:
      getCopySourceEncryptionAlgorithmBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The bytes for copySourceEncryptionAlgorithm.
    • setCopySourceEncryptionAlgorithm

      public RewriteObjectRequest.Builder setCopySourceEncryptionAlgorithm(String value)
       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;
      Parameters:
      value - The copySourceEncryptionAlgorithm to set.
      Returns:
      This builder for chaining.
    • clearCopySourceEncryptionAlgorithm

      public RewriteObjectRequest.Builder clearCopySourceEncryptionAlgorithm()
       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;
      Returns:
      This builder for chaining.
    • setCopySourceEncryptionAlgorithmBytes

      public RewriteObjectRequest.Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for copySourceEncryptionAlgorithm to set.
      Returns:
      This builder for chaining.
    • getCopySourceEncryptionKeyBytes

      public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes()
       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;
      Specified by:
      getCopySourceEncryptionKeyBytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The copySourceEncryptionKeyBytes.
    • setCopySourceEncryptionKeyBytes

      public RewriteObjectRequest.Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The copySourceEncryptionKeyBytes to set.
      Returns:
      This builder for chaining.
    • clearCopySourceEncryptionKeyBytes

      public RewriteObjectRequest.Builder clearCopySourceEncryptionKeyBytes()
       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;
      Returns:
      This builder for chaining.
    • getCopySourceEncryptionKeySha256Bytes

      public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes()
       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;
      Specified by:
      getCopySourceEncryptionKeySha256Bytes in interface RewriteObjectRequestOrBuilder
      Returns:
      The copySourceEncryptionKeySha256Bytes.
    • setCopySourceEncryptionKeySha256Bytes

      public RewriteObjectRequest.Builder setCopySourceEncryptionKeySha256Bytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The copySourceEncryptionKeySha256Bytes to set.
      Returns:
      This builder for chaining.
    • clearCopySourceEncryptionKeySha256Bytes

      public RewriteObjectRequest.Builder clearCopySourceEncryptionKeySha256Bytes()
       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;
      Returns:
      This builder for chaining.
    • hasCommonObjectRequestParams

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

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

      public RewriteObjectRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams value)
       A set of parameters common to Storage API requests concerning an object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19;
    • setCommonObjectRequestParams

      public RewriteObjectRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams.Builder builderForValue)
       A set of parameters common to Storage API requests concerning an object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19;
    • mergeCommonObjectRequestParams

      public RewriteObjectRequest.Builder mergeCommonObjectRequestParams(CommonObjectRequestParams value)
       A set of parameters common to Storage API requests concerning an object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19;
    • clearCommonObjectRequestParams

      public RewriteObjectRequest.Builder clearCommonObjectRequestParams()
       A set of parameters common to Storage API requests concerning an object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19;
    • getCommonObjectRequestParamsBuilder

      public CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder()
       A set of parameters common to Storage API requests concerning an object.
       
      .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19;
    • getCommonObjectRequestParamsOrBuilder

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

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

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

      public RewriteObjectRequest.Builder setObjectChecksums(ObjectChecksums value)
       The checksums of the complete object. This will be used to validate the
       destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29;
    • setObjectChecksums

      public RewriteObjectRequest.Builder setObjectChecksums(ObjectChecksums.Builder builderForValue)
       The checksums of the complete object. This will be used to validate the
       destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29;
    • mergeObjectChecksums

      public RewriteObjectRequest.Builder mergeObjectChecksums(ObjectChecksums value)
       The checksums of the complete object. This will be used to validate the
       destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29;
    • clearObjectChecksums

      public RewriteObjectRequest.Builder clearObjectChecksums()
       The checksums of the complete object. This will be used to validate the
       destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29;
    • getObjectChecksumsBuilder

      public ObjectChecksums.Builder getObjectChecksumsBuilder()
       The checksums of the complete object. This will be used to validate the
       destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29;
    • getObjectChecksumsOrBuilder

      public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()
       The checksums of the complete object. This will be used to validate the
       destination object after rewriting.
       
      .google.storage.v2.ObjectChecksums object_checksums = 29;
      Specified by:
      getObjectChecksumsOrBuilder in interface RewriteObjectRequestOrBuilder
    • setUnknownFields

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

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