Class MonitoringComponentConfig.Builder (2.49.0)

public static final class MonitoringComponentConfig.Builder extends GeneratedMessageV3.Builder<MonitoringComponentConfig.Builder> implements MonitoringComponentConfigOrBuilder

MonitoringComponentConfig is cluster monitoring component configuration.

Protobuf type google.container.v1.MonitoringComponentConfig

Static Methods

getDescriptor()

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

Methods

addAllEnableComponents(Iterable<? extends MonitoringComponentConfig.Component> values)

public MonitoringComponentConfig.Builder addAllEnableComponents(Iterable<? extends MonitoringComponentConfig.Component> values)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
Name Description
values Iterable<? extends com.google.container.v1.MonitoringComponentConfig.Component>

The enableComponents to add.

Returns
Type Description
MonitoringComponentConfig.Builder

This builder for chaining.

addAllEnableComponentsValue(Iterable<Integer> values)

public MonitoringComponentConfig.Builder addAllEnableComponentsValue(Iterable<Integer> values)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for enableComponents to add.

Returns
Type Description
MonitoringComponentConfig.Builder

This builder for chaining.

addEnableComponents(MonitoringComponentConfig.Component value)

public MonitoringComponentConfig.Builder addEnableComponents(MonitoringComponentConfig.Component value)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
Name Description
value MonitoringComponentConfig.Component

The enableComponents to add.

Returns
Type Description
MonitoringComponentConfig.Builder

This builder for chaining.

addEnableComponentsValue(int value)

public MonitoringComponentConfig.Builder addEnableComponentsValue(int value)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for enableComponents to add.

Returns
Type Description
MonitoringComponentConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MonitoringComponentConfig build()
Returns
Type Description
MonitoringComponentConfig

buildPartial()

public MonitoringComponentConfig buildPartial()
Returns
Type Description
MonitoringComponentConfig

clear()

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

clearEnableComponents()

public MonitoringComponentConfig.Builder clearEnableComponents()

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Returns
Type Description
MonitoringComponentConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MonitoringComponentConfig getDefaultInstanceForType()
Returns
Type Description
MonitoringComponentConfig

getDescriptorForType()

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

getEnableComponents(int index)

public MonitoringComponentConfig.Component getEnableComponents(int index)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
MonitoringComponentConfig.Component

The enableComponents at the given index.

getEnableComponentsCount()

public int getEnableComponentsCount()

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Returns
Type Description
int

The count of enableComponents.

getEnableComponentsList()

public List<MonitoringComponentConfig.Component> getEnableComponentsList()

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Returns
Type Description
List<Component>

A list containing the enableComponents.

getEnableComponentsValue(int index)

public int getEnableComponentsValue(int index)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of enableComponents at the given index.

getEnableComponentsValueList()

public List<Integer> getEnableComponentsValueList()

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for enableComponents.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MonitoringComponentConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnableComponents(int index, MonitoringComponentConfig.Component value)

public MonitoringComponentConfig.Builder setEnableComponents(int index, MonitoringComponentConfig.Component value)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameters
Name Description
index int

The index to set the value at.

value MonitoringComponentConfig.Component

The enableComponents to set.

Returns
Type Description
MonitoringComponentConfig.Builder

This builder for chaining.

setEnableComponentsValue(int index, int value)

public MonitoringComponentConfig.Builder setEnableComponentsValue(int index, int value)

Select components to collect metrics. An empty set would disable all monitoring.

repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for enableComponents to set.

Returns
Type Description
MonitoringComponentConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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