Package com.google.storage.v2
Class RewriteObjectRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.RewriteObjectRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RewriteObjectRequestOrBuilder,Serializable
public final class RewriteObjectRequest
extends com.google.protobuf.GeneratedMessageV3
implements RewriteObjectRequestOrBuilder
Request message for RewriteObject. If the source object is encrypted using a Customer-Supplied Encryption Key the key information must be provided in the copy_source_encryption_algorithm, copy_source_encryption_key_bytes, and copy_source_encryption_key_sha256_bytes fields. If the destination object should be encrypted the keying information should be provided in the encryption_algorithm, encryption_key_bytes, and encryption_key_sha256_bytes fields of the common_object_request_params.customer_encryption field.Protobuf type
google.storage.v2.RewriteObjectRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for RewriteObject.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanA 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 RewriteObjectRequeststatic final com.google.protobuf.Descriptors.DescriptorProperties of the destination, post-rewrite object.Required.com.google.protobuf.ByteStringRequired.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.com.google.protobuf.Parser<RewriteObjectRequest>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.intRequired.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.inthashCode()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 booleanstatic RewriteObjectRequest.Builderstatic RewriteObjectRequest.BuildernewBuilder(RewriteObjectRequest prototype) protected RewriteObjectRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static RewriteObjectRequestparseDelimitedFrom(InputStream input) static RewriteObjectRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RewriteObjectRequestparseFrom(byte[] data) static RewriteObjectRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RewriteObjectRequestparseFrom(com.google.protobuf.ByteString data) static RewriteObjectRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RewriteObjectRequestparseFrom(com.google.protobuf.CodedInputStream input) static RewriteObjectRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RewriteObjectRequestparseFrom(InputStream input) static RewriteObjectRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RewriteObjectRequestparseFrom(ByteBuffer data) static RewriteObjectRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RewriteObjectRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DESTINATION_NAME_FIELD_NUMBER
public static final int DESTINATION_NAME_FIELD_NUMBER- See Also:
-
DESTINATION_BUCKET_FIELD_NUMBER
public static final int DESTINATION_BUCKET_FIELD_NUMBER- See Also:
-
DESTINATION_KMS_KEY_FIELD_NUMBER
public static final int DESTINATION_KMS_KEY_FIELD_NUMBER- See Also:
-
DESTINATION_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER- See Also:
-
SOURCE_BUCKET_FIELD_NUMBER
public static final int SOURCE_BUCKET_FIELD_NUMBER- See Also:
-
SOURCE_OBJECT_FIELD_NUMBER
public static final int SOURCE_OBJECT_FIELD_NUMBER- See Also:
-
SOURCE_GENERATION_FIELD_NUMBER
public static final int SOURCE_GENERATION_FIELD_NUMBER- See Also:
-
REWRITE_TOKEN_FIELD_NUMBER
public static final int REWRITE_TOKEN_FIELD_NUMBER- See Also:
-
DESTINATION_PREDEFINED_ACL_FIELD_NUMBER
public static final int DESTINATION_PREDEFINED_ACL_FIELD_NUMBER- See Also:
-
IF_GENERATION_MATCH_FIELD_NUMBER
public static final int IF_GENERATION_MATCH_FIELD_NUMBER- See Also:
-
IF_GENERATION_NOT_MATCH_FIELD_NUMBER
public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER- See Also:
-
IF_METAGENERATION_MATCH_FIELD_NUMBER
public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER- See Also:
-
IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER
public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER- See Also:
-
IF_SOURCE_GENERATION_MATCH_FIELD_NUMBER
public static final int IF_SOURCE_GENERATION_MATCH_FIELD_NUMBER- See Also:
-
IF_SOURCE_GENERATION_NOT_MATCH_FIELD_NUMBER
public static final int IF_SOURCE_GENERATION_NOT_MATCH_FIELD_NUMBER- See Also:
-
IF_SOURCE_METAGENERATION_MATCH_FIELD_NUMBER
public static final int IF_SOURCE_METAGENERATION_MATCH_FIELD_NUMBER- See Also:
-
IF_SOURCE_METAGENERATION_NOT_MATCH_FIELD_NUMBER
public static final int IF_SOURCE_METAGENERATION_NOT_MATCH_FIELD_NUMBER- See Also:
-
MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER
public static final int MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER- See Also:
-
COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER
public static final int COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER- See Also:
-
COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER
public static final int COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER- See Also:
-
COPY_SOURCE_ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER
public static final int COPY_SOURCE_ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER- See Also:
-
COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER
public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER- See Also:
-
OBJECT_CHECKSUMS_FIELD_NUMBER
public static final int OBJECT_CHECKSUMS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RewriteObjectRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RewriteObjectRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RewriteObjectRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RewriteObjectRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RewriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RewriteObjectRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RewriteObjectRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RewriteObjectRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RewriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RewriteObjectRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RewriteObjectRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-