Class CloudMonitoringConfig.Builder (0.55.0)

public static final class CloudMonitoringConfig.Builder extends GeneratedMessageV3.Builder<CloudMonitoringConfig.Builder> implements CloudMonitoringConfigOrBuilder

CloudMonitoringConfig defines the configuration for built-in Cloud Logging and Monitoring. Only for Attached Clusters.

Protobuf type google.cloud.gkemulticloud.v1.CloudMonitoringConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudMonitoringConfig build()
Returns
Type Description
CloudMonitoringConfig

buildPartial()

public CloudMonitoringConfig buildPartial()
Returns
Type Description
CloudMonitoringConfig

clear()

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

clearEnabled()

public CloudMonitoringConfig.Builder clearEnabled()

Enable GKE-native logging and metrics. Only for Attached Clusters.

optional bool enabled = 1;

Returns
Type Description
CloudMonitoringConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CloudMonitoringConfig getDefaultInstanceForType()
Returns
Type Description
CloudMonitoringConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Enable GKE-native logging and metrics. Only for Attached Clusters.

optional bool enabled = 1;

Returns
Type Description
boolean

The enabled.

hasEnabled()

public boolean hasEnabled()

Enable GKE-native logging and metrics. Only for Attached Clusters.

optional bool enabled = 1;

Returns
Type Description
boolean

Whether the enabled field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CloudMonitoringConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public CloudMonitoringConfig.Builder setEnabled(boolean value)

Enable GKE-native logging and metrics. Only for Attached Clusters.

optional bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
CloudMonitoringConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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