Package com.google.storage.v2
Class MoveObjectRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.v2.MoveObjectRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MoveObjectRequestOrBuilder,Serializable
public final class MoveObjectRequest
extends com.google.protobuf.GeneratedMessageV3
implements MoveObjectRequestOrBuilder
Request message for MoveObject.Protobuf type
google.storage.v2.MoveObjectRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for MoveObject.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 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 TypeMethodDescriptionbooleanRequired.com.google.protobuf.ByteStringRequired.static MoveObjectRequeststatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.longOptional.longOptional.longOptional.longOptional.longOptional.longOptional.longOptional.longOptional.com.google.protobuf.Parser<MoveObjectRequest>intRequired.com.google.protobuf.ByteStringRequired.inthashCode()booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic MoveObjectRequest.Builderstatic MoveObjectRequest.BuildernewBuilder(MoveObjectRequest prototype) protected MoveObjectRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MoveObjectRequestparseDelimitedFrom(InputStream input) static MoveObjectRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MoveObjectRequestparseFrom(byte[] data) static MoveObjectRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MoveObjectRequestparseFrom(com.google.protobuf.ByteString data) static MoveObjectRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MoveObjectRequestparseFrom(com.google.protobuf.CodedInputStream input) static MoveObjectRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MoveObjectRequestparseFrom(InputStream input) static MoveObjectRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MoveObjectRequestparseFrom(ByteBuffer data) static MoveObjectRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MoveObjectRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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
-
BUCKET_FIELD_NUMBER
public static final int BUCKET_FIELD_NUMBER- See Also:
-
SOURCE_OBJECT_FIELD_NUMBER
public static final int SOURCE_OBJECT_FIELD_NUMBER- See Also:
-
DESTINATION_OBJECT_FIELD_NUMBER
public static final int DESTINATION_OBJECT_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:
-
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:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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 MoveObjectRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MoveObjectRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MoveObjectRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MoveObjectRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MoveObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MoveObjectRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MoveObjectRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MoveObjectRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MoveObjectRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MoveObjectRequest 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 MoveObjectRequest.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
-