Class MonitoringComponentConfig.Builder (2.38.0)

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

MonitoringComponentConfig is cluster monitoring component configuration.

Protobuf type google.container.v1beta1.MonitoringComponentConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.MonitoringComponentConfig.Component>

The enableComponents to add.

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valueMonitoringComponentConfig.Component

The enableComponents to add.

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
MonitoringComponentConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MonitoringComponentConfig build()
Returns
TypeDescription
MonitoringComponentConfig

buildPartial()

public MonitoringComponentConfig buildPartial()
Returns
TypeDescription
MonitoringComponentConfig

clear()

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

clearEnableComponents()

public MonitoringComponentConfig.Builder clearEnableComponents()

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

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

Returns
TypeDescription
MonitoringComponentConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MonitoringComponentConfig getDefaultInstanceForType()
Returns
TypeDescription
MonitoringComponentConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Returns
TypeDescription
List<Integer>

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MonitoringComponentConfig other)

public MonitoringComponentConfig.Builder mergeFrom(MonitoringComponentConfig other)
Parameter
NameDescription
otherMonitoringComponentConfig
Returns
TypeDescription
MonitoringComponentConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MonitoringComponentConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueMonitoringComponentConfig.Component

The enableComponents to set.

Returns
TypeDescription
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.v1beta1.MonitoringComponentConfig.Component enable_components = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
MonitoringComponentConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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