Class Bucket.Billing.Builder (2.62.1)

public static final class Bucket.Billing.Builder extends GeneratedMessage.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

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

clearRequesterPays()

public Bucket.Billing.Builder clearRequesterPays()

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

bool requester_pays = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Bucket.Billing.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getRequesterPays()

public boolean getRequesterPays()

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

bool requester_pays = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The requesterPays.

internalGetFieldAccessorTable()

protected GeneratedMessage.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

setRequesterPays(boolean value)

public Bucket.Billing.Builder setRequesterPays(boolean value)

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

bool requester_pays = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The requesterPays to set.

Returns
Type Description
Bucket.Billing.Builder

This builder for chaining.