Class DataprocMetricConfig.Builder (4.1.0)

See more code actions.
public static final class DataprocMetricConfig.Builder extends GeneratedMessageV3.Builder<DataprocMetricConfig.Builder> implements DataprocMetricConfigOrBuilder

Dataproc metric config.

Protobuf type google.cloud.dataproc.v1.DataprocMetricConfig

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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

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

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

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

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

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataprocMetricConfig build()
Returns
TypeDescription
DataprocMetricConfig

buildPartial()

public DataprocMetricConfig buildPartial()
Returns
TypeDescription
DataprocMetricConfig

clear()

public DataprocMetricConfig.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public DataprocMetricConfig.Builder clone()
Returns 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

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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 Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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