Package com.google.storage.v2
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()A set of parameters common to Storage API requests concerning an object.The algorithm used to encrypt the source object, if any.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.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.Properties of the destination, post-rewrite object.Required.The name of the Cloud KMS key that will be used to encrypt the destination object.Required.Apply a predefined set of access controls to the destination object.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Makes the operation conditional on whether the object's current generation matches the given value.Makes the operation conditional on whether the object's live generation does not match the given value.Makes the operation conditional on whether the destination object's current metageneration matches the given value.Makes the operation conditional on whether the destination object's current metageneration does not match the given value.Makes the operation conditional on whether the source object's live generation matches the given value.Makes the operation conditional on whether the source object's live generation does not match the given value.Makes the operation conditional on whether the source object's current metageneration matches the given value.Makes the operation conditional on whether the source object's current metageneration does not match the given value.The maximum number of bytes that will be rewritten per rewrite request.The checksums of the complete object.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true.Required.If present, selects a specific revision of the source object (as opposed to the latest version, the default).Required.clone()A set of parameters common to Storage API requests concerning an object.A set of parameters common to Storage API requests concerning an object.A set of parameters common to Storage API requests concerning an object.The algorithm used to encrypt the source object, if any.com.google.protobuf.ByteStringThe algorithm used to encrypt the source object, if any.com.google.protobuf.ByteStringThe 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.com.google.protobuf.ByteStringThe 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorProperties of the destination, post-rewrite object.Required.com.google.protobuf.ByteStringRequired.Properties of the destination, post-rewrite object.The name of the Cloud KMS key that will be used to encrypt the destination object.com.google.protobuf.ByteStringThe name of the Cloud KMS key that will be used to encrypt the destination object.Required.com.google.protobuf.ByteStringRequired.Properties of the destination, post-rewrite object.Apply a predefined set of access controls to the destination object.com.google.protobuf.ByteStringApply a predefined set of access controls to the destination object.longMakes the operation conditional on whether the object's current generation matches the given value.longMakes the operation conditional on whether the object's live generation does not match the given value.longMakes the operation conditional on whether the destination object's current metageneration matches the given value.longMakes the operation conditional on whether the destination object's current metageneration does not match the given value.longMakes the operation conditional on whether the source object's live generation matches the given value.longMakes the operation conditional on whether the source object's live generation does not match the given value.longMakes the operation conditional on whether the source object's current metageneration matches the given value.longMakes the operation conditional on whether the source object's current metageneration does not match the given value.longThe maximum number of bytes that will be rewritten per rewrite request.The checksums of the complete object.The checksums of the complete object.The checksums of the complete object.Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true.com.google.protobuf.ByteStringInclude this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true.Required.com.google.protobuf.ByteStringRequired.longIf present, selects a specific revision of the source object (as opposed to the latest version, the default).Required.com.google.protobuf.ByteStringRequired.booleanA set of parameters common to Storage API requests concerning an object.booleanProperties of the destination, post-rewrite object.booleanMakes the operation conditional on whether the object's current generation matches the given value.booleanMakes the operation conditional on whether the object's live generation does not match the given value.booleanMakes the operation conditional on whether the destination object's current metageneration matches the given value.booleanMakes the operation conditional on whether the destination object's current metageneration does not match the given value.booleanMakes the operation conditional on whether the source object's live generation matches the given value.booleanMakes the operation conditional on whether the source object's live generation does not match the given value.booleanMakes the operation conditional on whether the source object's current metageneration matches the given value.booleanMakes the operation conditional on whether the source object's current metageneration does not match the given value.booleanThe checksums of the complete object.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanA set of parameters common to Storage API requests concerning an object.mergeDestination(Object value) Properties of the destination, post-rewrite object.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RewriteObjectRequest other) The checksums of the complete object.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) A set of parameters common to Storage API requests concerning an object.setCommonObjectRequestParams(CommonObjectRequestParams.Builder builderForValue) A set of parameters common to Storage API requests concerning an object.The algorithm used to encrypt the source object, if any.setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) The algorithm used to encrypt the source object, if any.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.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.setDestination(Object value) Properties of the destination, post-rewrite object.setDestination(Object.Builder builderForValue) Properties of the destination, post-rewrite object.setDestinationBucket(String value) Required.setDestinationBucketBytes(com.google.protobuf.ByteString value) Required.setDestinationKmsKey(String value) The name of the Cloud KMS key that will be used to encrypt the destination object.setDestinationKmsKeyBytes(com.google.protobuf.ByteString value) The name of the Cloud KMS key that will be used to encrypt the destination object.setDestinationName(String value) Required.setDestinationNameBytes(com.google.protobuf.ByteString value) Required.Apply a predefined set of access controls to the destination object.setDestinationPredefinedAclBytes(com.google.protobuf.ByteString value) Apply a predefined set of access controls to the destination object.setIfGenerationMatch(long value) Makes the operation conditional on whether the object's current generation matches the given value.setIfGenerationNotMatch(long value) Makes the operation conditional on whether the object's live generation does not match the given value.setIfMetagenerationMatch(long value) Makes the operation conditional on whether the destination object's current metageneration matches the given value.setIfMetagenerationNotMatch(long value) Makes the operation conditional on whether the destination object's current metageneration does not match the given value.setIfSourceGenerationMatch(long value) Makes the operation conditional on whether the source object's live generation matches the given value.setIfSourceGenerationNotMatch(long value) Makes the operation conditional on whether the source object's live generation does not match the given value.setIfSourceMetagenerationMatch(long value) Makes the operation conditional on whether the source object's current metageneration matches the given value.setIfSourceMetagenerationNotMatch(long value) Makes the operation conditional on whether the source object's current metageneration does not match the given value.setMaxBytesRewrittenPerCall(long value) The maximum number of bytes that will be rewritten per rewrite request.The checksums of the complete object.setObjectChecksums(ObjectChecksums.Builder builderForValue) The checksums of the complete object.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.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.setSourceBucket(String value) Required.setSourceBucketBytes(com.google.protobuf.ByteString value) Required.setSourceGeneration(long value) If present, selects a specific revision of the source object (as opposed to the latest version, the default).setSourceObject(String value) Required.setSourceObjectBytes(com.google.protobuf.ByteString value) Required.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
setField
public RewriteObjectRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
clearField
public RewriteObjectRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
clearOneof
public RewriteObjectRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
setRepeatedField
public RewriteObjectRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
addRepeatedField
public RewriteObjectRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RewriteObjectRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RewriteObjectRequest.Builder>- Throws:
IOException
-
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:
getDestinationNamein interfaceRewriteObjectRequestOrBuilder- 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:
getDestinationNameBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for destinationName.
-
setDestinationName
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
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
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
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:
getDestinationBucketin interfaceRewriteObjectRequestOrBuilder- 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:
getDestinationBucketBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for destinationBucket.
-
setDestinationBucket
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
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
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
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:
getDestinationKmsKeyin interfaceRewriteObjectRequestOrBuilder- 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:
getDestinationKmsKeyBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for destinationKmsKey.
-
setDestinationKmsKey
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
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
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:
hasDestinationin interfaceRewriteObjectRequestOrBuilder- Returns:
- Whether the destination field is set.
-
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:
getDestinationin interfaceRewriteObjectRequestOrBuilder- Returns:
- The destination.
-
setDestination
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
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
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
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
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
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:
getDestinationOrBuilderin interfaceRewriteObjectRequestOrBuilder
-
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:
getSourceBucketin interfaceRewriteObjectRequestOrBuilder- 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:
getSourceBucketBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for sourceBucket.
-
setSourceBucket
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
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
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
Required. Name of the source object.
string source_object = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceObjectin interfaceRewriteObjectRequestOrBuilder- 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:
getSourceObjectBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for sourceObject.
-
setSourceObject
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
Required. Name of the source object.
string source_object = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSourceObjectBytes
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:
getSourceGenerationin interfaceRewriteObjectRequestOrBuilder- Returns:
- The sourceGeneration.
-
setSourceGeneration
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
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
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:
getRewriteTokenin interfaceRewriteObjectRequestOrBuilder- 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:
getRewriteTokenBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for rewriteToken.
-
setRewriteToken
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
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
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
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:
getDestinationPredefinedAclin interfaceRewriteObjectRequestOrBuilder- 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:
getDestinationPredefinedAclBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for destinationPredefinedAcl.
-
setDestinationPredefinedAcl
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
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:
hasIfGenerationMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfGenerationMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifGenerationMatch.
-
setIfGenerationMatch
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
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:
hasIfGenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfGenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifGenerationNotMatch.
-
setIfGenerationNotMatch
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
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:
hasIfMetagenerationMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfMetagenerationMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifMetagenerationMatch.
-
setIfMetagenerationMatch
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
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:
hasIfMetagenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfMetagenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifMetagenerationNotMatch.
-
setIfMetagenerationNotMatch
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
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:
hasIfSourceGenerationMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfSourceGenerationMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifSourceGenerationMatch.
-
setIfSourceGenerationMatch
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
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:
hasIfSourceGenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfSourceGenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifSourceGenerationNotMatch.
-
setIfSourceGenerationNotMatch
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
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:
hasIfSourceMetagenerationMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfSourceMetagenerationMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifSourceMetagenerationMatch.
-
setIfSourceMetagenerationMatch
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
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:
hasIfSourceMetagenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- 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:
getIfSourceMetagenerationNotMatchin interfaceRewriteObjectRequestOrBuilder- Returns:
- The ifSourceMetagenerationNotMatch.
-
setIfSourceMetagenerationNotMatch
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
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:
getMaxBytesRewrittenPerCallin interfaceRewriteObjectRequestOrBuilder- Returns:
- The maxBytesRewrittenPerCall.
-
setMaxBytesRewrittenPerCall
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
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
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:
getCopySourceEncryptionAlgorithmin interfaceRewriteObjectRequestOrBuilder- 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:
getCopySourceEncryptionAlgorithmBytesin interfaceRewriteObjectRequestOrBuilder- Returns:
- The bytes for copySourceEncryptionAlgorithm.
-
setCopySourceEncryptionAlgorithm
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
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:
getCopySourceEncryptionKeyBytesin interfaceRewriteObjectRequestOrBuilder- 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
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:
getCopySourceEncryptionKeySha256Bytesin interfaceRewriteObjectRequestOrBuilder- 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
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:
hasCommonObjectRequestParamsin interfaceRewriteObjectRequestOrBuilder- Returns:
- Whether the commonObjectRequestParams field is set.
-
getCommonObjectRequestParams
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 19;- Specified by:
getCommonObjectRequestParamsin interfaceRewriteObjectRequestOrBuilder- Returns:
- The commonObjectRequestParams.
-
setCommonObjectRequestParams
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
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; -
clearCommonObjectRequestParams
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; -
getCommonObjectRequestParamsBuilder
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; -
getCommonObjectRequestParamsOrBuilder
A set of parameters common to Storage API requests concerning an object.
.google.storage.v2.CommonObjectRequestParams common_object_request_params = 19;- Specified by:
getCommonObjectRequestParamsOrBuilderin interfaceRewriteObjectRequestOrBuilder
-
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:
hasObjectChecksumsin interfaceRewriteObjectRequestOrBuilder- Returns:
- Whether the objectChecksums field is set.
-
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:
getObjectChecksumsin interfaceRewriteObjectRequestOrBuilder- Returns:
- The objectChecksums.
-
setObjectChecksums
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
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
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
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
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
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:
getObjectChecksumsOrBuilderin interfaceRewriteObjectRequestOrBuilder
-
setUnknownFields
public final RewriteObjectRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-
mergeUnknownFields
public final RewriteObjectRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RewriteObjectRequest.Builder>
-