Class ManagedPrometheusConfig.Builder (0.26.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.cloud.gkemulticloud.v1.ManagedPrometheusConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedPrometheusConfig build()
Returns
TypeDescription
ManagedPrometheusConfig

buildPartial()

public ManagedPrometheusConfig buildPartial()
Returns
TypeDescription
ManagedPrometheusConfig

clear()

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

clearEnabled()

public ManagedPrometheusConfig.Builder clearEnabled()

Enable Managed Collection.

bool enabled = 1;

Returns
TypeDescription
ManagedPrometheusConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ManagedPrometheusConfig getDefaultInstanceForType()
Returns
TypeDescription
ManagedPrometheusConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Enable Managed Collection.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ManagedPrometheusConfig other)

public ManagedPrometheusConfig.Builder mergeFrom(ManagedPrometheusConfig other)
Parameter
NameDescription
otherManagedPrometheusConfig
Returns
TypeDescription
ManagedPrometheusConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public ManagedPrometheusConfig.Builder setEnabled(boolean value)

Enable Managed Collection.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
ManagedPrometheusConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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