Package com.google.storage.v2
Class MoveObjectRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MoveObjectRequest.Builder>
com.google.storage.v2.MoveObjectRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MoveObjectRequestOrBuilder,Cloneable
- Enclosing class:
- MoveObjectRequest
public static final class MoveObjectRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MoveObjectRequest.Builder>
implements MoveObjectRequestOrBuilder
Request message for MoveObject.Protobuf type
google.storage.v2.MoveObjectRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required.Required.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Required.clone()Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.longOptional.longOptional.longOptional.longOptional.longOptional.longOptional.longOptional.longOptional.Required.com.google.protobuf.ByteStringRequired.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(MoveObjectRequest other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Required.setBucketBytes(com.google.protobuf.ByteString value) Required.setDestinationObject(String value) Required.setDestinationObjectBytes(com.google.protobuf.ByteString value) Required.setIfGenerationMatch(long value) Optional.setIfGenerationNotMatch(long value) Optional.setIfMetagenerationMatch(long value) Optional.setIfMetagenerationNotMatch(long value) Optional.setIfSourceGenerationMatch(long value) Optional.setIfSourceGenerationNotMatch(long value) Optional.setIfSourceMetagenerationMatch(long value) Optional.setIfSourceMetagenerationNotMatch(long value) Optional.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<MoveObjectRequest.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<MoveObjectRequest.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<MoveObjectRequest.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<MoveObjectRequest.Builder>
-
setField
public MoveObjectRequest.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<MoveObjectRequest.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MoveObjectRequest.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MoveObjectRequest.Builder>
-
setRepeatedField
public MoveObjectRequest.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<MoveObjectRequest.Builder>
-
addRepeatedField
public MoveObjectRequest.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<MoveObjectRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MoveObjectRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MoveObjectRequest.Builder>
-
mergeFrom
public MoveObjectRequest.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<MoveObjectRequest.Builder>- Throws:
IOException
-
getBucket
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getBucketin interfaceMoveObjectRequestOrBuilder- Returns:
- The bucket.
-
getBucketBytes
public com.google.protobuf.ByteString getBucketBytes()Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getBucketBytesin interfaceMoveObjectRequestOrBuilder- Returns:
- The bytes for bucket.
-
setBucket
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bucket to set.- Returns:
- This builder for chaining.
-
clearBucket
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setBucketBytes
Required. Name of the bucket in which the object resides.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for bucket to set.- Returns:
- This builder for chaining.
-
getSourceObject
Required. Name of the source object.
string source_object = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceObjectin interfaceMoveObjectRequestOrBuilder- Returns:
- The sourceObject.
-
getSourceObjectBytes
public com.google.protobuf.ByteString getSourceObjectBytes()Required. Name of the source object.
string source_object = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSourceObjectBytesin interfaceMoveObjectRequestOrBuilder- Returns:
- The bytes for sourceObject.
-
setSourceObject
Required. Name of the source object.
string source_object = 2 [(.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 = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSourceObjectBytes
Required. Name of the source object.
string source_object = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for sourceObject to set.- Returns:
- This builder for chaining.
-
getDestinationObject
Required. Name of the destination object.
string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationObjectin interfaceMoveObjectRequestOrBuilder- Returns:
- The destinationObject.
-
getDestinationObjectBytes
public com.google.protobuf.ByteString getDestinationObjectBytes()Required. Name of the destination object.
string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationObjectBytesin interfaceMoveObjectRequestOrBuilder- Returns:
- The bytes for destinationObject.
-
setDestinationObject
Required. Name of the destination object.
string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The destinationObject to set.- Returns:
- This builder for chaining.
-
clearDestinationObject
Required. Name of the destination object.
string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDestinationObjectBytes
Required. Name of the destination object.
string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for destinationObject to set.- Returns:
- This builder for chaining.
-
hasIfSourceGenerationMatch
public boolean hasIfSourceGenerationMatch()Optional. Makes the operation conditional on whether the source object's current generation matches the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_match = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfSourceGenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifSourceGenerationMatch field is set.
-
getIfSourceGenerationMatch
public long getIfSourceGenerationMatch()Optional. Makes the operation conditional on whether the source object's current generation matches the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_match = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfSourceGenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifSourceGenerationMatch.
-
setIfSourceGenerationMatch
Optional. Makes the operation conditional on whether the source object's current generation matches the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_match = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifSourceGenerationMatch to set.- Returns:
- This builder for chaining.
-
clearIfSourceGenerationMatch
Optional. Makes the operation conditional on whether the source object's current generation matches the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_match = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIfSourceGenerationNotMatch
public boolean hasIfSourceGenerationNotMatch()Optional. Makes the operation conditional on whether the source object's current generation does not match the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_not_match = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfSourceGenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifSourceGenerationNotMatch field is set.
-
getIfSourceGenerationNotMatch
public long getIfSourceGenerationNotMatch()Optional. Makes the operation conditional on whether the source object's current generation does not match the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_not_match = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfSourceGenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifSourceGenerationNotMatch.
-
setIfSourceGenerationNotMatch
Optional. Makes the operation conditional on whether the source object's current generation does not match the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_not_match = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifSourceGenerationNotMatch to set.- Returns:
- This builder for chaining.
-
clearIfSourceGenerationNotMatch
Optional. Makes the operation conditional on whether the source object's current generation does not match the given value. `if_source_generation_match` and `if_source_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_generation_not_match = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIfSourceMetagenerationMatch
public boolean hasIfSourceMetagenerationMatch()Optional. Makes the operation conditional on whether the source object's current metageneration matches the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_match = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfSourceMetagenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifSourceMetagenerationMatch field is set.
-
getIfSourceMetagenerationMatch
public long getIfSourceMetagenerationMatch()Optional. Makes the operation conditional on whether the source object's current metageneration matches the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_match = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfSourceMetagenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifSourceMetagenerationMatch.
-
setIfSourceMetagenerationMatch
Optional. Makes the operation conditional on whether the source object's current metageneration matches the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_match = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifSourceMetagenerationMatch to set.- Returns:
- This builder for chaining.
-
clearIfSourceMetagenerationMatch
Optional. Makes the operation conditional on whether the source object's current metageneration matches the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_match = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIfSourceMetagenerationNotMatch
public boolean hasIfSourceMetagenerationNotMatch()Optional. Makes the operation conditional on whether the source object's current metageneration does not match the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_not_match = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfSourceMetagenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifSourceMetagenerationNotMatch field is set.
-
getIfSourceMetagenerationNotMatch
public long getIfSourceMetagenerationNotMatch()Optional. Makes the operation conditional on whether the source object's current metageneration does not match the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_not_match = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfSourceMetagenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifSourceMetagenerationNotMatch.
-
setIfSourceMetagenerationNotMatch
Optional. Makes the operation conditional on whether the source object's current metageneration does not match the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_not_match = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifSourceMetagenerationNotMatch to set.- Returns:
- This builder for chaining.
-
clearIfSourceMetagenerationNotMatch
Optional. Makes the operation conditional on whether the source object's current metageneration does not match the given value. `if_source_metageneration_match` and `if_source_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_source_metageneration_not_match = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIfGenerationMatch
public boolean hasIfGenerationMatch()Optional. Makes the operation conditional on whether the destination 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_match = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfGenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifGenerationMatch field is set.
-
getIfGenerationMatch
public long getIfGenerationMatch()Optional. Makes the operation conditional on whether the destination 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_match = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfGenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifGenerationMatch.
-
setIfGenerationMatch
Optional. Makes the operation conditional on whether the destination 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_match = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifGenerationMatch to set.- Returns:
- This builder for chaining.
-
clearIfGenerationMatch
Optional. Makes the operation conditional on whether the destination 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_match = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIfGenerationNotMatch
public boolean hasIfGenerationNotMatch()Optional. Makes the operation conditional on whether the destination object's current 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_not_match = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfGenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifGenerationNotMatch field is set.
-
getIfGenerationNotMatch
public long getIfGenerationNotMatch()Optional. Makes the operation conditional on whether the destination object's current 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_not_match = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfGenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifGenerationNotMatch.
-
setIfGenerationNotMatch
Optional. Makes the operation conditional on whether the destination object's current 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_not_match = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifGenerationNotMatch to set.- Returns:
- This builder for chaining.
-
clearIfGenerationNotMatch
Optional. Makes the operation conditional on whether the destination object's current 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. `if_generation_match` and `if_generation_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_generation_not_match = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIfMetagenerationMatch
public boolean hasIfMetagenerationMatch()Optional. Makes the operation conditional on whether the destination object's current metageneration matches the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_match = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfMetagenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifMetagenerationMatch field is set.
-
getIfMetagenerationMatch
public long getIfMetagenerationMatch()Optional. Makes the operation conditional on whether the destination object's current metageneration matches the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_match = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfMetagenerationMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifMetagenerationMatch.
-
setIfMetagenerationMatch
Optional. Makes the operation conditional on whether the destination object's current metageneration matches the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_match = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifMetagenerationMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationMatch
Optional. Makes the operation conditional on whether the destination object's current metageneration matches the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_match = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasIfMetagenerationNotMatch
public boolean hasIfMetagenerationNotMatch()Optional. Makes the operation conditional on whether the destination object's current metageneration does not match the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_not_match = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIfMetagenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- Whether the ifMetagenerationNotMatch field is set.
-
getIfMetagenerationNotMatch
public long getIfMetagenerationNotMatch()Optional. Makes the operation conditional on whether the destination object's current metageneration does not match the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_not_match = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIfMetagenerationNotMatchin interfaceMoveObjectRequestOrBuilder- Returns:
- The ifMetagenerationNotMatch.
-
setIfMetagenerationNotMatch
Optional. Makes the operation conditional on whether the destination object's current metageneration does not match the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_not_match = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The ifMetagenerationNotMatch to set.- Returns:
- This builder for chaining.
-
clearIfMetagenerationNotMatch
Optional. Makes the operation conditional on whether the destination object's current metageneration does not match the given value. `if_metageneration_match` and `if_metageneration_not_match` conditions are mutually exclusive: it's an error for both of them to be set in the request.
optional int64 if_metageneration_not_match = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setUnknownFields
public final MoveObjectRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MoveObjectRequest.Builder>
-
mergeUnknownFields
public final MoveObjectRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MoveObjectRequest.Builder>
-