Class OSPolicy.Resource.File.Gcs.Builder (2.36.0)

public static final class OSPolicy.Resource.File.Gcs.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.File.Gcs.Builder> implements OSPolicy.Resource.File.GcsOrBuilder

Specifies a file available as a Cloud Storage Object.

Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.File.Gcs

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicy.Resource.File.Gcs.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

build()

public OSPolicy.Resource.File.Gcs build()
Returns
TypeDescription
OSPolicy.Resource.File.Gcs

buildPartial()

public OSPolicy.Resource.File.Gcs buildPartial()
Returns
TypeDescription
OSPolicy.Resource.File.Gcs

clear()

public OSPolicy.Resource.File.Gcs.Builder clear()
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

clearBucket()

public OSPolicy.Resource.File.Gcs.Builder clearBucket()

Required. Bucket of the Cloud Storage object.

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

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OSPolicy.Resource.File.Gcs.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

clearGeneration()

public OSPolicy.Resource.File.Gcs.Builder clearGeneration()

Generation number of the Cloud Storage object.

int64 generation = 3;

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

clearObject()

public OSPolicy.Resource.File.Gcs.Builder clearObject()

Required. Name of the Cloud Storage object.

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

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicy.Resource.File.Gcs.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

clone()

public OSPolicy.Resource.File.Gcs.Builder clone()
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

getBucket()

public String getBucket()

Required. Bucket of the Cloud Storage object.

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

Returns
TypeDescription
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Required. Bucket of the Cloud Storage object.

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

Returns
TypeDescription
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public OSPolicy.Resource.File.Gcs getDefaultInstanceForType()
Returns
TypeDescription
OSPolicy.Resource.File.Gcs

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGeneration()

public long getGeneration()

Generation number of the Cloud Storage object.

int64 generation = 3;

Returns
TypeDescription
long

The generation.

getObject()

public String getObject()

Required. Name of the Cloud Storage object.

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

Returns
TypeDescription
String

The object.

getObjectBytes()

public ByteString getObjectBytes()

Required. Name of the 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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OSPolicy.Resource.File.Gcs other)

public OSPolicy.Resource.File.Gcs.Builder mergeFrom(OSPolicy.Resource.File.Gcs other)
Parameter
NameDescription
otherOSPolicy.Resource.File.Gcs
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OSPolicy.Resource.File.Gcs.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OSPolicy.Resource.File.Gcs.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicy.Resource.File.Gcs.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

setBucket(String value)

public OSPolicy.Resource.File.Gcs.Builder setBucket(String value)

Required. Bucket of the Cloud Storage object.

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

Parameter
NameDescription
valueString

The bucket to set.

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public OSPolicy.Resource.File.Gcs.Builder setBucketBytes(ByteString value)

Required. Bucket of the Cloud Storage object.

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

Parameter
NameDescription
valueByteString

The bytes for bucket to set.

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OSPolicy.Resource.File.Gcs.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

setGeneration(long value)

public OSPolicy.Resource.File.Gcs.Builder setGeneration(long value)

Generation number of the Cloud Storage object.

int64 generation = 3;

Parameter
NameDescription
valuelong

The generation to set.

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

setObject(String value)

public OSPolicy.Resource.File.Gcs.Builder setObject(String value)

Required. Name of the Cloud Storage object.

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

Parameter
NameDescription
valueString

The object to set.

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

setObjectBytes(ByteString value)

public OSPolicy.Resource.File.Gcs.Builder setObjectBytes(ByteString value)

Required. Name of the Cloud Storage object.

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

Parameter
NameDescription
valueByteString

The bytes for object to set.

Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder

This builder for chaining.

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

public OSPolicy.Resource.File.Gcs.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OSPolicy.Resource.File.Gcs.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OSPolicy.Resource.File.Gcs.Builder
Overrides