Class ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder (2.57.0)

public static final class ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder extends GeneratedMessageV3.Builder<ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder> implements ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder

Parameters for controlling consumption metering.

Protobuf type google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceUsageExportConfig.ConsumptionMeteringConfig build()
Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig

buildPartial()

public ResourceUsageExportConfig.ConsumptionMeteringConfig buildPartial()
Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig

clear()

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder clear()
Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder
Overrides

clearEnabled()

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder clearEnabled()

Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.

bool enabled = 1;

Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder clone()
Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder
Overrides

getDefaultInstanceForType()

public ResourceUsageExportConfig.ConsumptionMeteringConfig getDefaultInstanceForType()
Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.

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(ResourceUsageExportConfig.ConsumptionMeteringConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder setEnabled(boolean value)

Whether to enable consumption metering for this cluster. If enabled, a second BigQuery table will be created to hold resource consumption records.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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