Class MonitoringConfig.Builder (1.55.0)

public static final class MonitoringConfig.Builder extends GeneratedMessageV3.Builder<MonitoringConfig.Builder> implements MonitoringConfigOrBuilder

MonitoringConfig specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]

Protobuf type google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig

Static Methods

getDescriptor()

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

Methods

addAllBackends(Iterable<? extends MonitoringConfig.MonitoringBackend> values)

public MonitoringConfig.Builder addAllBackends(Iterable<? extends MonitoringConfig.MonitoringBackend> values)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend>

The backends to add.

Returns
Type Description
MonitoringConfig.Builder

This builder for chaining.

addAllBackendsValue(Iterable<Integer> values)

public MonitoringConfig.Builder addAllBackendsValue(Iterable<Integer> values)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
MonitoringConfig.Builder

This builder for chaining.

addBackends(MonitoringConfig.MonitoringBackend value)

public MonitoringConfig.Builder addBackends(MonitoringConfig.MonitoringBackend value)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Parameter
Name Description
value MonitoringConfig.MonitoringBackend

The backends to add.

Returns
Type Description
MonitoringConfig.Builder

This builder for chaining.

addBackendsValue(int value)

public MonitoringConfig.Builder addBackendsValue(int value)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Parameter
Name Description
value int

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

Returns
Type Description
MonitoringConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MonitoringConfig build()
Returns
Type Description
MonitoringConfig

buildPartial()

public MonitoringConfig buildPartial()
Returns
Type Description
MonitoringConfig

clear()

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

clearBackends()

public MonitoringConfig.Builder clearBackends()

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Returns
Type Description
MonitoringConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBackends(int index)

public MonitoringConfig.MonitoringBackend getBackends(int index)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
MonitoringConfig.MonitoringBackend

The backends at the given index.

getBackendsCount()

public int getBackendsCount()

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Returns
Type Description
int

The count of backends.

getBackendsList()

public List<MonitoringConfig.MonitoringBackend> getBackendsList()

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Returns
Type Description
List<MonitoringBackend>

A list containing the backends.

getBackendsValue(int index)

public int getBackendsValue(int index)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 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 backends at the given index.

getBackendsValueList()

public List<Integer> getBackendsValueList()

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Returns
Type Description
List<Integer>

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

getDefaultInstanceForType()

public MonitoringConfig getDefaultInstanceForType()
Returns
Type Description
MonitoringConfig

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MonitoringConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBackends(int index, MonitoringConfig.MonitoringBackend value)

public MonitoringConfig.Builder setBackends(int index, MonitoringConfig.MonitoringBackend value)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Parameters
Name Description
index int

The index to set the value at.

value MonitoringConfig.MonitoringBackend

The backends to set.

Returns
Type Description
MonitoringConfig.Builder

This builder for chaining.

setBackendsValue(int index, int value)

public MonitoringConfig.Builder setBackendsValue(int index, int value)

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export.

repeated .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig.MonitoringBackend backends = 1;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
MonitoringConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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