Class DataprocMetricConfig.Builder (4.45.0)

public static final class DataprocMetricConfig.Builder extends GeneratedMessageV3.Builder<DataprocMetricConfig.Builder> implements DataprocMetricConfigOrBuilder

Dataproc metric config.

Protobuf type google.cloud.dataproc.v1.DataprocMetricConfig

Static Methods

getDescriptor()

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

Methods

addAllMetrics(Iterable<? extends DataprocMetricConfig.Metric> values)

public DataprocMetricConfig.Builder addAllMetrics(Iterable<? extends DataprocMetricConfig.Metric> values)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric>
Returns
Type Description
DataprocMetricConfig.Builder

addMetrics(DataprocMetricConfig.Metric value)

public DataprocMetricConfig.Builder addMetrics(DataprocMetricConfig.Metric value)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DataprocMetricConfig.Metric
Returns
Type Description
DataprocMetricConfig.Builder

addMetrics(DataprocMetricConfig.Metric.Builder builderForValue)

public DataprocMetricConfig.Builder addMetrics(DataprocMetricConfig.Metric.Builder builderForValue)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DataprocMetricConfig.Metric.Builder
Returns
Type Description
DataprocMetricConfig.Builder

addMetrics(int index, DataprocMetricConfig.Metric value)

public DataprocMetricConfig.Builder addMetrics(int index, DataprocMetricConfig.Metric value)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DataprocMetricConfig.Metric
Returns
Type Description
DataprocMetricConfig.Builder

addMetrics(int index, DataprocMetricConfig.Metric.Builder builderForValue)

public DataprocMetricConfig.Builder addMetrics(int index, DataprocMetricConfig.Metric.Builder builderForValue)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DataprocMetricConfig.Metric.Builder
Returns
Type Description
DataprocMetricConfig.Builder

addMetricsBuilder()

public DataprocMetricConfig.Metric.Builder addMetricsBuilder()

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataprocMetricConfig.Metric.Builder

addMetricsBuilder(int index)

public DataprocMetricConfig.Metric.Builder addMetricsBuilder(int index)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataprocMetricConfig.Metric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataprocMetricConfig build()
Returns
Type Description
DataprocMetricConfig

buildPartial()

public DataprocMetricConfig buildPartial()
Returns
Type Description
DataprocMetricConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetrics()

public DataprocMetricConfig.Builder clearMetrics()

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataprocMetricConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DataprocMetricConfig getDefaultInstanceForType()
Returns
Type Description
DataprocMetricConfig

getDescriptorForType()

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

getMetrics(int index)

public DataprocMetricConfig.Metric getMetrics(int index)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataprocMetricConfig.Metric

getMetricsBuilder(int index)

public DataprocMetricConfig.Metric.Builder getMetricsBuilder(int index)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataprocMetricConfig.Metric.Builder

getMetricsBuilderList()

public List<DataprocMetricConfig.Metric.Builder> getMetricsBuilderList()

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getMetricsCount()

public int getMetricsCount()

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getMetricsList()

public List<DataprocMetricConfig.Metric> getMetricsList()

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Metric>

getMetricsOrBuilder(int index)

public DataprocMetricConfig.MetricOrBuilder getMetricsOrBuilder(int index)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataprocMetricConfig.MetricOrBuilder

getMetricsOrBuilderList()

public List<? extends DataprocMetricConfig.MetricOrBuilder> getMetricsOrBuilderList()

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataprocMetricConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMetrics(int index)

public DataprocMetricConfig.Builder removeMetrics(int index)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
DataprocMetricConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetrics(int index, DataprocMetricConfig.Metric value)

public DataprocMetricConfig.Builder setMetrics(int index, DataprocMetricConfig.Metric value)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value DataprocMetricConfig.Metric
Returns
Type Description
DataprocMetricConfig.Builder

setMetrics(int index, DataprocMetricConfig.Metric.Builder builderForValue)

public DataprocMetricConfig.Builder setMetrics(int index, DataprocMetricConfig.Metric.Builder builderForValue)

Required. Metrics sources to enable.

repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue DataprocMetricConfig.Metric.Builder
Returns
Type Description
DataprocMetricConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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