Class ResourceUsageExportConfig.Builder (2.57.0)

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

Configuration for exporting cluster resource usages.

Protobuf type google.container.v1beta1.ResourceUsageExportConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceUsageExportConfig build()
Returns
Type Description
ResourceUsageExportConfig

buildPartial()

public ResourceUsageExportConfig buildPartial()
Returns
Type Description
ResourceUsageExportConfig

clear()

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

clearBigqueryDestination()

public ResourceUsageExportConfig.Builder clearBigqueryDestination()

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Returns
Type Description
ResourceUsageExportConfig.Builder

clearConsumptionMeteringConfig()

public ResourceUsageExportConfig.Builder clearConsumptionMeteringConfig()

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Returns
Type Description
ResourceUsageExportConfig.Builder

clearEnableNetworkEgressMetering()

public ResourceUsageExportConfig.Builder clearEnableNetworkEgressMetering()

Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.

bool enable_network_egress_metering = 2;

Returns
Type Description
ResourceUsageExportConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBigqueryDestination()

public ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination()

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Returns
Type Description
ResourceUsageExportConfig.BigQueryDestination

The bigqueryDestination.

getBigqueryDestinationBuilder()

public ResourceUsageExportConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder()

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Returns
Type Description
ResourceUsageExportConfig.BigQueryDestination.Builder

getBigqueryDestinationOrBuilder()

public ResourceUsageExportConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder()

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Returns
Type Description
ResourceUsageExportConfig.BigQueryDestinationOrBuilder

getConsumptionMeteringConfig()

public ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig()

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig

The consumptionMeteringConfig.

getConsumptionMeteringConfigBuilder()

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder getConsumptionMeteringConfigBuilder()

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

getConsumptionMeteringConfigOrBuilder()

public ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder()

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Returns
Type Description
ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder

getDefaultInstanceForType()

public ResourceUsageExportConfig getDefaultInstanceForType()
Returns
Type Description
ResourceUsageExportConfig

getDescriptorForType()

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

getEnableNetworkEgressMetering()

public boolean getEnableNetworkEgressMetering()

Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.

bool enable_network_egress_metering = 2;

Returns
Type Description
boolean

The enableNetworkEgressMetering.

hasBigqueryDestination()

public boolean hasBigqueryDestination()

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Returns
Type Description
boolean

Whether the bigqueryDestination field is set.

hasConsumptionMeteringConfig()

public boolean hasConsumptionMeteringConfig()

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Returns
Type Description
boolean

Whether the consumptionMeteringConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

public ResourceUsageExportConfig.Builder mergeBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Parameter
Name Description
value ResourceUsageExportConfig.BigQueryDestination
Returns
Type Description
ResourceUsageExportConfig.Builder

mergeConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

public ResourceUsageExportConfig.Builder mergeConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Parameter
Name Description
value ResourceUsageExportConfig.ConsumptionMeteringConfig
Returns
Type Description
ResourceUsageExportConfig.Builder

mergeFrom(ResourceUsageExportConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

public ResourceUsageExportConfig.Builder setBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Parameter
Name Description
value ResourceUsageExportConfig.BigQueryDestination
Returns
Type Description
ResourceUsageExportConfig.Builder

setBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination.Builder builderForValue)

public ResourceUsageExportConfig.Builder setBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination.Builder builderForValue)

Configuration to use BigQuery as usage export destination.

.google.container.v1beta1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Parameter
Name Description
builderForValue ResourceUsageExportConfig.BigQueryDestination.Builder
Returns
Type Description
ResourceUsageExportConfig.Builder

setConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

public ResourceUsageExportConfig.Builder setConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Parameter
Name Description
value ResourceUsageExportConfig.ConsumptionMeteringConfig
Returns
Type Description
ResourceUsageExportConfig.Builder

setConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder builderForValue)

public ResourceUsageExportConfig.Builder setConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder builderForValue)

Configuration to enable resource consumption metering.

.google.container.v1beta1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3;

Parameter
Name Description
builderForValue ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder
Returns
Type Description
ResourceUsageExportConfig.Builder

setEnableNetworkEgressMetering(boolean value)

public ResourceUsageExportConfig.Builder setEnableNetworkEgressMetering(boolean value)

Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.

bool enable_network_egress_metering = 2;

Parameter
Name Description
value boolean

The enableNetworkEgressMetering to set.

Returns
Type Description
ResourceUsageExportConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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