Class Bucket.Billing.Builder (2.40.0)

public static final class Bucket.Billing.Builder extends GeneratedMessageV3.Builder<Bucket.Billing.Builder> implements Bucket.BillingOrBuilder

Billing properties of a bucket.

Protobuf type google.storage.v2.Bucket.Billing

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Bucket.Billing build()
Returns
Type Description
Bucket.Billing

buildPartial()

public Bucket.Billing buildPartial()
Returns
Type Description
Bucket.Billing

clear()

public Bucket.Billing.Builder clear()
Returns
Type Description
Bucket.Billing.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequesterPays()

public Bucket.Billing.Builder clearRequesterPays()

When set to true, Requester Pays is enabled for this bucket.

bool requester_pays = 1;

Returns
Type Description
Bucket.Billing.Builder

This builder for chaining.

clone()

public Bucket.Billing.Builder clone()
Returns
Type Description
Bucket.Billing.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Billing getDefaultInstanceForType()
Returns
Type Description
Bucket.Billing

getDescriptorForType()

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

getRequesterPays()

public boolean getRequesterPays()

When set to true, Requester Pays is enabled for this bucket.

bool requester_pays = 1;

Returns
Type Description
boolean

The requesterPays.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Bucket.Billing.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Bucket.Billing.Builder
Overrides

mergeFrom(Bucket.Billing other)

public Bucket.Billing.Builder mergeFrom(Bucket.Billing other)
Parameter
Name Description
other Bucket.Billing
Returns
Type Description
Bucket.Billing.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Billing.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Billing.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRequesterPays(boolean value)

public Bucket.Billing.Builder setRequesterPays(boolean value)

When set to true, Requester Pays is enabled for this bucket.

bool requester_pays = 1;

Parameter
Name Description
value boolean

The requesterPays to set.

Returns
Type Description
Bucket.Billing.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Billing.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Billing.Builder
Overrides