Class ManagedPrometheusConfig.Builder (2.48.0)

public static final class ManagedPrometheusConfig.Builder extends GeneratedMessageV3.Builder<ManagedPrometheusConfig.Builder> implements ManagedPrometheusConfigOrBuilder

ManagedPrometheusConfig defines the configuration for Google Cloud Managed Service for Prometheus.

Protobuf type google.container.v1beta1.ManagedPrometheusConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedPrometheusConfig build()
Returns
Type Description
ManagedPrometheusConfig

buildPartial()

public ManagedPrometheusConfig buildPartial()
Returns
Type Description
ManagedPrometheusConfig

clear()

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

clearEnabled()

public ManagedPrometheusConfig.Builder clearEnabled()

Enable Managed Collection.

bool enabled = 1;

Returns
Type Description
ManagedPrometheusConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ManagedPrometheusConfig getDefaultInstanceForType()
Returns
Type Description
ManagedPrometheusConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Enable Managed Collection.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ManagedPrometheusConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public ManagedPrometheusConfig.Builder setEnabled(boolean value)

Enable Managed Collection.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
ManagedPrometheusConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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