Class MonitoringConfig.Builder (0.32.0)

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

Parameters that describe the Monitoring configuration in a cluster.

Protobuf type google.cloud.gkemulticloud.v1.MonitoringConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MonitoringConfig build()
Returns
TypeDescription
MonitoringConfig

buildPartial()

public MonitoringConfig buildPartial()
Returns
TypeDescription
MonitoringConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearManagedPrometheusConfig()

public MonitoringConfig.Builder clearManagedPrometheusConfig()

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Returns
TypeDescription
MonitoringConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MonitoringConfig getDefaultInstanceForType()
Returns
TypeDescription
MonitoringConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getManagedPrometheusConfig()

public ManagedPrometheusConfig getManagedPrometheusConfig()

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Returns
TypeDescription
ManagedPrometheusConfig

The managedPrometheusConfig.

getManagedPrometheusConfigBuilder()

public ManagedPrometheusConfig.Builder getManagedPrometheusConfigBuilder()

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Returns
TypeDescription
ManagedPrometheusConfig.Builder

getManagedPrometheusConfigOrBuilder()

public ManagedPrometheusConfigOrBuilder getManagedPrometheusConfigOrBuilder()

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Returns
TypeDescription
ManagedPrometheusConfigOrBuilder

hasManagedPrometheusConfig()

public boolean hasManagedPrometheusConfig()

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Returns
TypeDescription
boolean

Whether the managedPrometheusConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MonitoringConfig other)

public MonitoringConfig.Builder mergeFrom(MonitoringConfig other)
Parameter
NameDescription
otherMonitoringConfig
Returns
TypeDescription
MonitoringConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeManagedPrometheusConfig(ManagedPrometheusConfig value)

public MonitoringConfig.Builder mergeManagedPrometheusConfig(ManagedPrometheusConfig value)

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Parameter
NameDescription
valueManagedPrometheusConfig
Returns
TypeDescription
MonitoringConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setManagedPrometheusConfig(ManagedPrometheusConfig value)

public MonitoringConfig.Builder setManagedPrometheusConfig(ManagedPrometheusConfig value)

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Parameter
NameDescription
valueManagedPrometheusConfig
Returns
TypeDescription
MonitoringConfig.Builder

setManagedPrometheusConfig(ManagedPrometheusConfig.Builder builderForValue)

public MonitoringConfig.Builder setManagedPrometheusConfig(ManagedPrometheusConfig.Builder builderForValue)

Enable Google Cloud Managed Service for Prometheus in the cluster.

.google.cloud.gkemulticloud.v1.ManagedPrometheusConfig managed_prometheus_config = 2;

Parameter
NameDescription
builderForValueManagedPrometheusConfig.Builder
Returns
TypeDescription
MonitoringConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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