Class PatchJobs.GcsObject.Builder (2.53.0)

public static final class PatchJobs.GcsObject.Builder extends GeneratedMessageV3.Builder<PatchJobs.GcsObject.Builder> implements PatchJobs.GcsObjectOrBuilder

Cloud Storage object representation.

Protobuf type google.cloud.osconfig.v1.GcsObject

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchJobs.GcsObject build()
Returns
Type Description
PatchJobs.GcsObject

buildPartial()

public PatchJobs.GcsObject buildPartial()
Returns
Type Description
PatchJobs.GcsObject

clear()

public PatchJobs.GcsObject.Builder clear()
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides

clearBucket()

public PatchJobs.GcsObject.Builder clearBucket()

Required. Bucket of the Cloud Storage object.

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

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGenerationNumber()

public PatchJobs.GcsObject.Builder clearGenerationNumber()

Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.

int64 generation_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

clearObject()

public PatchJobs.GcsObject.Builder clearObject()

Required. Name of the Cloud Storage object.

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

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public PatchJobs.GcsObject.Builder clone()
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides

getBucket()

public String getBucket()

Required. Bucket of the Cloud Storage object.

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

Returns
Type Description
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Required. Bucket of the Cloud Storage object.

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

Returns
Type Description
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public PatchJobs.GcsObject getDefaultInstanceForType()
Returns
Type Description
PatchJobs.GcsObject

getDescriptorForType()

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

getGenerationNumber()

public long getGenerationNumber()

Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.

int64 generation_number = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The generationNumber.

getObject()

public String getObject()

Required. Name of the Cloud Storage object.

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

Returns
Type Description
String

The object.

getObjectBytes()

public ByteString getObjectBytes()

Required. Name of the Cloud Storage object.

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

Returns
Type Description
ByteString

The bytes for object.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PatchJobs.GcsObject other)

public PatchJobs.GcsObject.Builder mergeFrom(PatchJobs.GcsObject other)
Parameter
Name Description
other PatchJobs.GcsObject
Returns
Type Description
PatchJobs.GcsObject.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchJobs.GcsObject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PatchJobs.GcsObject.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.GcsObject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides

setBucket(String value)

public PatchJobs.GcsObject.Builder setBucket(String value)

Required. Bucket of the Cloud Storage object.

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

Parameter
Name Description
value String

The bucket to set.

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public PatchJobs.GcsObject.Builder setBucketBytes(ByteString value)

Required. Bucket of the Cloud Storage object.

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

Parameter
Name Description
value ByteString

The bytes for bucket to set.

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.GcsObject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides

setGenerationNumber(long value)

public PatchJobs.GcsObject.Builder setGenerationNumber(long value)

Required. Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.

int64 generation_number = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The generationNumber to set.

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

setObject(String value)

public PatchJobs.GcsObject.Builder setObject(String value)

Required. Name of the Cloud Storage object.

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

Parameter
Name Description
value String

The object to set.

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

setObjectBytes(ByteString value)

public PatchJobs.GcsObject.Builder setObjectBytes(ByteString value)

Required. Name of the Cloud Storage object.

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

Parameter
Name Description
value ByteString

The bytes for object to set.

Returns
Type Description
PatchJobs.GcsObject.Builder

This builder for chaining.

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

public PatchJobs.GcsObject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.GcsObject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PatchJobs.GcsObject.Builder
Overrides