Class ResourceUsageExportConfig.Builder (2.25.0)

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

Configuration for exporting cluster resource usages.

Protobuf type google.container.v1.ResourceUsageExportConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResourceUsageExportConfig build()
Returns
TypeDescription
ResourceUsageExportConfig

buildPartial()

public ResourceUsageExportConfig buildPartial()
Returns
TypeDescription
ResourceUsageExportConfig

clear()

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

clearBigqueryDestination()

public ResourceUsageExportConfig.Builder clearBigqueryDestination()

Configuration to use BigQuery as usage export destination.

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

Returns
TypeDescription
ResourceUsageExportConfig.Builder

clearConsumptionMeteringConfig()

public ResourceUsageExportConfig.Builder clearConsumptionMeteringConfig()

Configuration to enable resource consumption metering.

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

Returns
TypeDescription
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
TypeDescription
ResourceUsageExportConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBigqueryDestination()

public ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination()

Configuration to use BigQuery as usage export destination.

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

Returns
TypeDescription
ResourceUsageExportConfig.BigQueryDestination

The bigqueryDestination.

getBigqueryDestinationBuilder()

public ResourceUsageExportConfig.BigQueryDestination.Builder getBigqueryDestinationBuilder()

Configuration to use BigQuery as usage export destination.

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

Returns
TypeDescription
ResourceUsageExportConfig.BigQueryDestination.Builder

getBigqueryDestinationOrBuilder()

public ResourceUsageExportConfig.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder()

Configuration to use BigQuery as usage export destination.

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

Returns
TypeDescription
ResourceUsageExportConfig.BigQueryDestinationOrBuilder

getConsumptionMeteringConfig()

public ResourceUsageExportConfig.ConsumptionMeteringConfig getConsumptionMeteringConfig()

Configuration to enable resource consumption metering.

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

Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig

The consumptionMeteringConfig.

getConsumptionMeteringConfigBuilder()

public ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder getConsumptionMeteringConfigBuilder()

Configuration to enable resource consumption metering.

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

Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder

getConsumptionMeteringConfigOrBuilder()

public ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder getConsumptionMeteringConfigOrBuilder()

Configuration to enable resource consumption metering.

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

Returns
TypeDescription
ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder

getDefaultInstanceForType()

public ResourceUsageExportConfig getDefaultInstanceForType()
Returns
TypeDescription
ResourceUsageExportConfig

getDescriptorForType()

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

The enableNetworkEgressMetering.

hasBigqueryDestination()

public boolean hasBigqueryDestination()

Configuration to use BigQuery as usage export destination.

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

Returns
TypeDescription
boolean

Whether the bigqueryDestination field is set.

hasConsumptionMeteringConfig()

public boolean hasConsumptionMeteringConfig()

Configuration to enable resource consumption metering.

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

Returns
TypeDescription
boolean

Whether the consumptionMeteringConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

public ResourceUsageExportConfig.Builder mergeBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

Configuration to use BigQuery as usage export destination.

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

Parameter
NameDescription
valueResourceUsageExportConfig.BigQueryDestination
Returns
TypeDescription
ResourceUsageExportConfig.Builder

mergeConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

public ResourceUsageExportConfig.Builder mergeConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

Configuration to enable resource consumption metering.

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

Parameter
NameDescription
valueResourceUsageExportConfig.ConsumptionMeteringConfig
Returns
TypeDescription
ResourceUsageExportConfig.Builder

mergeFrom(ResourceUsageExportConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

public ResourceUsageExportConfig.Builder setBigqueryDestination(ResourceUsageExportConfig.BigQueryDestination value)

Configuration to use BigQuery as usage export destination.

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

Parameter
NameDescription
valueResourceUsageExportConfig.BigQueryDestination
Returns
TypeDescription
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.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1;

Parameter
NameDescription
builderForValueResourceUsageExportConfig.BigQueryDestination.Builder
Returns
TypeDescription
ResourceUsageExportConfig.Builder

setConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

public ResourceUsageExportConfig.Builder setConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig value)

Configuration to enable resource consumption metering.

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

Parameter
NameDescription
valueResourceUsageExportConfig.ConsumptionMeteringConfig
Returns
TypeDescription
ResourceUsageExportConfig.Builder

setConsumptionMeteringConfig(ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder builderForValue)

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

Configuration to enable resource consumption metering.

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

Parameter
NameDescription
builderForValueResourceUsageExportConfig.ConsumptionMeteringConfig.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The enableNetworkEgressMetering to set.

Returns
TypeDescription
ResourceUsageExportConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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