Class CostManagementConfig.Builder (2.15.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CostManagementConfig build()
Returns
TypeDescription
CostManagementConfig

buildPartial()

public CostManagementConfig buildPartial()
Returns
TypeDescription
CostManagementConfig

clear()

public CostManagementConfig.Builder clear()
Returns
TypeDescription
CostManagementConfig.Builder
Overrides

clearEnabled()

public CostManagementConfig.Builder clearEnabled()

Whether the feature is enabled or not.

bool enabled = 1;

Returns
TypeDescription
CostManagementConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CostManagementConfig.Builder clone()
Returns
TypeDescription
CostManagementConfig.Builder
Overrides

getDefaultInstanceForType()

public CostManagementConfig getDefaultInstanceForType()
Returns
TypeDescription
CostManagementConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether the feature is enabled or not.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CostManagementConfig other)

public CostManagementConfig.Builder mergeFrom(CostManagementConfig other)
Parameter
NameDescription
otherCostManagementConfig
Returns
TypeDescription
CostManagementConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CostManagementConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CostManagementConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CostManagementConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CostManagementConfig.Builder
Overrides

setEnabled(boolean value)

public CostManagementConfig.Builder setEnabled(boolean value)

Whether the feature is enabled or not.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
CostManagementConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CostManagementConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CostManagementConfig.Builder
Overrides

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CostManagementConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CostManagementConfig.Builder
Overrides