Class PatchJobs.GcsObject.Builder (2.17.0)

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

Google Cloud Storage object representation.

Protobuf type google.cloud.osconfig.v1beta.GcsObject

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchJobs.GcsObject build()
Returns
TypeDescription
PatchJobs.GcsObject

buildPartial()

public PatchJobs.GcsObject buildPartial()
Returns
TypeDescription
PatchJobs.GcsObject

clear()

public PatchJobs.GcsObject.Builder clear()
Returns
TypeDescription
PatchJobs.GcsObject.Builder
Overrides

clearBucket()

public PatchJobs.GcsObject.Builder clearBucket()

Required. Bucket of the Google Cloud Storage object.

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

Returns
TypeDescription
PatchJobs.GcsObject.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PatchJobs.GcsObject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PatchJobs.GcsObject.Builder
Overrides

clearGenerationNumber()

public PatchJobs.GcsObject.Builder clearGenerationNumber()

Required. Generation number of the Google 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
TypeDescription
PatchJobs.GcsObject.Builder

This builder for chaining.

clearObject()

public PatchJobs.GcsObject.Builder clearObject()

Required. Name of the Google Cloud Storage object.

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

Returns
TypeDescription
PatchJobs.GcsObject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchJobs.GcsObject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PatchJobs.GcsObject.Builder
Overrides

clone()

public PatchJobs.GcsObject.Builder clone()
Returns
TypeDescription
PatchJobs.GcsObject.Builder
Overrides

getBucket()

public String getBucket()

Required. Bucket of the Google Cloud Storage object.

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

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Required. Bucket of the Google Cloud Storage object.

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

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public PatchJobs.GcsObject getDefaultInstanceForType()
Returns
TypeDescription
PatchJobs.GcsObject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGenerationNumber()

public long getGenerationNumber()

Required. Generation number of the Google 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
TypeDescription
long

The generationNumber.

getObject()

public String getObject()

Required. Name of the Google Cloud Storage object.

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

Returns
TypeDescription
String

The object.

getObjectBytes()

public ByteString getObjectBytes()

Required. Name of the Google Cloud Storage object.

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

Returns
TypeDescription
ByteString

The bytes for object.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides