public static final class DataprocMetricConfig.Builder extends GeneratedMessageV3.Builder<DataprocMetricConfig.Builder> implements DataprocMetricConfigOrBuilder
Dataproc metric config.
Protobuf type google.cloud.dataproc.v1.DataprocMetricConfig
Inherited Members
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
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
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
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
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
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataprocMetricConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DataprocMetricConfig build()
Returns
buildPartial()
public DataprocMetricConfig buildPartial()
Returns
clear()
public DataprocMetricConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public DataprocMetricConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
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
Returns
Overrides
clone()
public DataprocMetricConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public DataprocMetricConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
getMetricsCount()
public int getMetricsCount()
Required. Metrics sources to enable.
repeated .google.cloud.dataproc.v1.DataprocMetricConfig.Metric metrics = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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
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
Type | Description |
List<? extends com.google.cloud.dataproc.v1.DataprocMetricConfig.MetricOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DataprocMetricConfig other)
public DataprocMetricConfig.Builder mergeFrom(DataprocMetricConfig other)
Parameter
Returns
public DataprocMetricConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DataprocMetricConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataprocMetricConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DataprocMetricConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
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
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataprocMetricConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DataprocMetricConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides