Class CostManagementConfig.Builder (2.57.0)

public static final class CostManagementConfig.Builder extends GeneratedMessageV3.Builder<CostManagementConfig.Builder> implements CostManagementConfigOrBuilder

Configuration for fine-grained cost management feature.

Protobuf type google.container.v1beta1.CostManagementConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CostManagementConfig build()
Returns
Type Description
CostManagementConfig

buildPartial()

public CostManagementConfig buildPartial()
Returns
Type Description
CostManagementConfig

clear()

public CostManagementConfig.Builder clear()
Returns
Type Description
CostManagementConfig.Builder
Overrides

clearEnabled()

public CostManagementConfig.Builder clearEnabled()

Whether the feature is enabled or not.

bool enabled = 1;

Returns
Type Description
CostManagementConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CostManagementConfig.Builder clone()
Returns
Type Description
CostManagementConfig.Builder
Overrides

getDefaultInstanceForType()

public CostManagementConfig getDefaultInstanceForType()
Returns
Type Description
CostManagementConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Whether the feature is enabled or not.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CostManagementConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public CostManagementConfig.Builder setEnabled(boolean value)

Whether the feature is enabled or not.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
CostManagementConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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