Class ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder (2.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceUsageExportConfig.ConsumptionMeteringConfig build()
Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig

buildPartial()

public ResourceUsageExportConfig.ConsumptionMeteringConfig buildPartial()
Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig

clear()

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder clone()
Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder
Overrides

getDefaultInstanceForType()

public ResourceUsageExportConfig.ConsumptionMeteringConfig getDefaultInstanceForType()
Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceUsageExportConfig.ConsumptionMeteringConfig other)

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder mergeFrom(ResourceUsageExportConfig.ConsumptionMeteringConfig other)
Parameter
NameDescription
otherResourceUsageExportConfig.ConsumptionMeteringConfig
Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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