Class ComposeObjectRequest.SourceObject.Builder (2.20.1)

public static final class ComposeObjectRequest.SourceObject.Builder extends GeneratedMessageV3.Builder<ComposeObjectRequest.SourceObject.Builder> implements ComposeObjectRequest.SourceObjectOrBuilder

Description of a source object for a composition request.

Protobuf type google.storage.v2.ComposeObjectRequest.SourceObject

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComposeObjectRequest.SourceObject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

build()

public ComposeObjectRequest.SourceObject build()
Returns
TypeDescription
ComposeObjectRequest.SourceObject

buildPartial()

public ComposeObjectRequest.SourceObject buildPartial()
Returns
TypeDescription
ComposeObjectRequest.SourceObject

clear()

public ComposeObjectRequest.SourceObject.Builder clear()
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComposeObjectRequest.SourceObject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

clearGeneration()

public ComposeObjectRequest.SourceObject.Builder clearGeneration()

The generation of this object to use as the source.

int64 generation = 2;

Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

This builder for chaining.

clearName()

public ComposeObjectRequest.SourceObject.Builder clearName()

Required. The source object's name. All source objects must reside in the same bucket.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

This builder for chaining.

clearObjectPreconditions()

public ComposeObjectRequest.SourceObject.Builder clearObjectPreconditions()

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComposeObjectRequest.SourceObject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

clone()

public ComposeObjectRequest.SourceObject.Builder clone()
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

getDefaultInstanceForType()

public ComposeObjectRequest.SourceObject getDefaultInstanceForType()
Returns
TypeDescription
ComposeObjectRequest.SourceObject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGeneration()

public long getGeneration()

The generation of this object to use as the source.

int64 generation = 2;

Returns
TypeDescription
long

The generation.

getName()

public String getName()

Required. The source object's name. All source objects must reside in the same bucket.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The source object's name. All source objects must reside in the same bucket.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getObjectPreconditions()

public ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions()

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Returns
TypeDescription
ComposeObjectRequest.SourceObject.ObjectPreconditions

The objectPreconditions.

getObjectPreconditionsBuilder()

public ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder getObjectPreconditionsBuilder()

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Returns
TypeDescription
ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder

getObjectPreconditionsOrBuilder()

public ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder()

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Returns
TypeDescription
ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder

hasObjectPreconditions()

public boolean hasObjectPreconditions()

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Returns
TypeDescription
boolean

Whether the objectPreconditions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComposeObjectRequest.SourceObject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ComposeObjectRequest.SourceObject.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

mergeFrom(ComposeObjectRequest.SourceObject other)

public ComposeObjectRequest.SourceObject.Builder mergeFrom(ComposeObjectRequest.SourceObject other)
Parameter
NameDescription
otherComposeObjectRequest.SourceObject
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

mergeObjectPreconditions(ComposeObjectRequest.SourceObject.ObjectPreconditions value)

public ComposeObjectRequest.SourceObject.Builder mergeObjectPreconditions(ComposeObjectRequest.SourceObject.ObjectPreconditions value)

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Parameter
NameDescription
valueComposeObjectRequest.SourceObject.ObjectPreconditions
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComposeObjectRequest.SourceObject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComposeObjectRequest.SourceObject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

setGeneration(long value)

public ComposeObjectRequest.SourceObject.Builder setGeneration(long value)

The generation of this object to use as the source.

int64 generation = 2;

Parameter
NameDescription
valuelong

The generation to set.

Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

This builder for chaining.

setName(String value)

public ComposeObjectRequest.SourceObject.Builder setName(String value)

Required. The source object's name. All source objects must reside in the same bucket.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ComposeObjectRequest.SourceObject.Builder setNameBytes(ByteString value)

Required. The source object's name. All source objects must reside in the same bucket.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

This builder for chaining.

setObjectPreconditions(ComposeObjectRequest.SourceObject.ObjectPreconditions value)

public ComposeObjectRequest.SourceObject.Builder setObjectPreconditions(ComposeObjectRequest.SourceObject.ObjectPreconditions value)

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Parameter
NameDescription
valueComposeObjectRequest.SourceObject.ObjectPreconditions
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

setObjectPreconditions(ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder builderForValue)

public ComposeObjectRequest.SourceObject.Builder setObjectPreconditions(ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder builderForValue)

Conditions that must be met for this operation to execute.

.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3;

Parameter
NameDescription
builderForValueComposeObjectRequest.SourceObject.ObjectPreconditions.Builder
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComposeObjectRequest.SourceObject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ComposeObjectRequest.SourceObject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComposeObjectRequest.SourceObject.Builder
Overrides