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:
  • 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getBucket

      public String 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:
      getBucket in interface MoveObjectRequestOrBuilder
      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:
      getBucketBytes in interface MoveObjectRequestOrBuilder
      Returns:
      The bytes for bucket.
    • getSourceObject

      public String getSourceObject()
       Required. Name of the source object.
       
      string source_object = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceObject in interface MoveObjectRequestOrBuilder
      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:
      getSourceObjectBytes in interface MoveObjectRequestOrBuilder
      Returns:
      The bytes for sourceObject.
    • getDestinationObject

      public String getDestinationObject()
       Required. Name of the destination object.
       
      string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinationObject in interface MoveObjectRequestOrBuilder
      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:
      getDestinationObjectBytes in interface MoveObjectRequestOrBuilder
      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:
      hasIfSourceGenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfSourceGenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      hasIfSourceGenerationNotMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfSourceGenerationNotMatch in interface MoveObjectRequestOrBuilder
      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:
      hasIfSourceMetagenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfSourceMetagenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      hasIfSourceMetagenerationNotMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfSourceMetagenerationNotMatch in interface MoveObjectRequestOrBuilder
      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:
      hasIfGenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfGenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      hasIfGenerationNotMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfGenerationNotMatch in interface MoveObjectRequestOrBuilder
      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:
      hasIfMetagenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfMetagenerationMatch in interface MoveObjectRequestOrBuilder
      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:
      hasIfMetagenerationNotMatch in interface MoveObjectRequestOrBuilder
      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:
      getIfMetagenerationNotMatch in interface MoveObjectRequestOrBuilder
      Returns:
      The ifMetagenerationNotMatch.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static MoveObjectRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MoveObjectRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MoveObjectRequest parseDelimitedFrom(InputStream input) throws IOException
      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

      public MoveObjectRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MoveObjectRequest.Builder newBuilder()
    • newBuilder

      public static MoveObjectRequest.Builder newBuilder(MoveObjectRequest prototype)
    • toBuilder

      public MoveObjectRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MoveObjectRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static MoveObjectRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MoveObjectRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<MoveObjectRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public MoveObjectRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder