Class DataprocMetricConfig.Builder (4.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.Metric>
Returns
TypeDescription
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
NameDescription
valueDataprocMetricConfig.Metric
Returns
TypeDescription
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
NameDescription
builderForValueDataprocMetricConfig.Metric.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDataprocMetricConfig.Metric
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDataprocMetricConfig.Metric.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DataprocMetricConfig.Metric.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataprocMetricConfig build()
Returns
TypeDescription
DataprocMetricConfig

buildPartial()

public DataprocMetricConfig buildPartial()
Returns
TypeDescription
DataprocMetricConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DataprocMetricConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DataprocMetricConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DataprocMetricConfig getDefaultInstanceForType()
Returns
TypeDescription
DataprocMetricConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataprocMetricConfig other)

public DataprocMetricConfig.Builder mergeFrom(DataprocMetricConfig other)
Parameter
NameDescription
otherDataprocMetricConfig
Returns
TypeDescription
DataprocMetricConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataprocMetricConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DataprocMetricConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataprocMetricConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueDataprocMetricConfig.Metric
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDataprocMetricConfig.Metric.Builder
Returns
TypeDescription
DataprocMetricConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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