Class MoveObjectRequest.Builder (2.60.0)

public static final class MoveObjectRequest.Builder extends GeneratedMessageV3.Builder<MoveObjectRequest.Builder> implements MoveObjectRequestOrBuilder

Request message for MoveObject.

Protobuf type google.storage.v2.MoveObjectRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MoveObjectRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MoveObjectRequest.Builder
Overrides

build()

public MoveObjectRequest build()
Returns
Type Description
MoveObjectRequest

buildPartial()

public MoveObjectRequest buildPartial()
Returns
Type Description
MoveObjectRequest

clear()

public MoveObjectRequest.Builder clear()
Returns
Type Description
MoveObjectRequest.Builder
Overrides

clearBucket()

public MoveObjectRequest.Builder clearBucket()

Required. Name of the bucket in which the object resides.

string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearDestinationObject()

public MoveObjectRequest.Builder clearDestinationObject()

Required. Name of the destination object.

string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MoveObjectRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MoveObjectRequest.Builder
Overrides

clearIfGenerationMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearIfGenerationNotMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearIfMetagenerationMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearIfMetagenerationNotMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearIfSourceGenerationMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearIfSourceGenerationNotMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearIfSourceMetagenerationMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearIfSourceMetagenerationNotMatch()

public MoveObjectRequest.Builder 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
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MoveObjectRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MoveObjectRequest.Builder
Overrides

clearSourceObject()

public MoveObjectRequest.Builder clearSourceObject()

Required. Name of the source object.

string source_object = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MoveObjectRequest.Builder

This builder for chaining.

clone()

public MoveObjectRequest.Builder clone()
Returns
Type Description
MoveObjectRequest.Builder
Overrides

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) = { ... }

Returns
Type Description
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Required. Name of the bucket in which the object resides.

string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public MoveObjectRequest getDefaultInstanceForType()
Returns
Type Description
MoveObjectRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationObject()

public String getDestinationObject()

Required. Name of the destination object.

string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The destinationObject.

getDestinationObjectBytes()

public ByteString getDestinationObjectBytes()

Required. Name of the destination object.

string destination_object = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for destinationObject.

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];

Returns
Type Description
long

The ifGenerationMatch.

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];

Returns
Type Description
long

The ifGenerationNotMatch.

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];

Returns
Type Description
long

The ifMetagenerationMatch.

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];

Returns
Type Description
long

The ifMetagenerationNotMatch.

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];

Returns
Type Description
long

The ifSourceGenerationMatch.

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];

Returns
Type Description
long

The ifSourceGenerationNotMatch.

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];

Returns
Type Description
long

The ifSourceMetagenerationMatch.

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];

Returns
Type Description
long

The ifSourceMetagenerationNotMatch.

getSourceObject()

public String getSourceObject()

Required. Name of the source object.

string source_object = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sourceObject.

getSourceObjectBytes()

public ByteString getSourceObjectBytes()

Required. Name of the source object.

string source_object = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sourceObject.

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];

Returns
Type Description
boolean

Whether the ifGenerationMatch field is set.

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];

Returns
Type Description
boolean

Whether the ifGenerationNotMatch field is set.

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];

Returns
Type Description
boolean

Whether the ifMetagenerationMatch field is set.

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];

Returns
Type Description
boolean

Whether the ifMetagenerationNotMatch field is set.

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];

Returns
Type Description
boolean

Whether the ifSourceGenerationMatch field is set.

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];

Returns
Type Description
boolean

Whether the ifSourceGenerationNotMatch field is set.

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];

Returns
Type Description
boolean

Whether the ifSourceMetagenerationMatch field is set.

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];

Returns
Type Description