Class DataprocMetricConfig.Metric (4.1.0)

public static final class DataprocMetricConfig.Metric extends GeneratedMessageV3 implements DataprocMetricConfig.MetricOrBuilder

A Dataproc OSS metric.

Protobuf type google.cloud.dataproc.v1.DataprocMetricConfig.Metric

Static Fields

METRIC_OVERRIDES_FIELD_NUMBER

public static final int METRIC_OVERRIDES_FIELD_NUMBER
Field Value
TypeDescription
int

METRIC_SOURCE_FIELD_NUMBER

public static final int METRIC_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DataprocMetricConfig.Metric getDefaultInstance()
Returns
TypeDescription
DataprocMetricConfig.Metric

getDescriptor()

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

newBuilder()

public static DataprocMetricConfig.Metric.Builder newBuilder()
Returns
TypeDescription
DataprocMetricConfig.Metric.Builder

newBuilder(DataprocMetricConfig.Metric prototype)

public static DataprocMetricConfig.Metric.Builder newBuilder(DataprocMetricConfig.Metric prototype)
Parameter
NameDescription
prototypeDataprocMetricConfig.Metric
Returns
TypeDescription
DataprocMetricConfig.Metric.Builder

parseDelimitedFrom(InputStream input)

public static DataprocMetricConfig.Metric parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataprocMetricConfig.Metric parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DataprocMetricConfig.Metric parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataprocMetricConfig.Metric parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataprocMetricConfig.Metric parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataprocMetricConfig.Metric parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataprocMetricConfig.Metric parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataprocMetricConfig.Metric parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DataprocMetricConfig.Metric parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataprocMetricConfig.Metric parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DataprocMetricConfig.Metric parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataprocMetricConfig.Metric parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataprocMetricConfig.Metric
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DataprocMetricConfig.Metric> parser()
Returns
TypeDescription
Parser<Metric>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DataprocMetricConfig.Metric getDefaultInstanceForType()
Returns
TypeDescription
DataprocMetricConfig.Metric

getMetricOverrides(int index)

public String getMetricOverrides(int index)

Optional. Specify one or more available OSS metrics to collect for the metric course (for the SPARK metric source, any Spark metric can be specified). Provide metrics in the following format: <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code> Use camelcase as appropriate. Examples: ` yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes:

  • Only the specified overridden metrics will be collected for the metric source. For example, if one or more
spark:executive metrics are listed as metric overrides, other SPARK metrics will not be collected. The collection of the default metrics for other OSS metric sources is unaffected. For example, if both SPARK andd YARN` metric sources are enabled, and overrides are provided for Spark metrics only, all default YARN metrics will be collected.

repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The metricOverrides at the given index.

getMetricOverridesBytes(int index)

public ByteString getMetricOverridesBytes(int index)

Optional. Specify one or more available OSS metrics to collect for the metric course (for the SPARK metric source, any Spark metric can be specified). Provide metrics in the following format: <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code> Use camelcase as appropriate. Examples: ` yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes:

  • Only the specified overridden metrics will be collected for the metric source. For example, if one or more
spark:executive metrics are listed as metric overrides, other SPARK metrics will not be collected. The collection of the default metrics for other OSS metric sources is unaffected. For example, if both SPARK andd YARN` metric sources are enabled, and overrides are provided for Spark metrics only, all default YARN metrics will be collected.

repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the metricOverrides at the given index.

getMetricOverridesCount()

public int getMetricOverridesCount()

Optional. Specify one or more available OSS metrics to collect for the metric course (for the SPARK metric source, any Spark metric can be specified). Provide metrics in the following format: <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code> Use camelcase as appropriate. Examples: ` yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes:

  • Only the specified overridden metrics will be collected for the metric source. For example, if one or more
spark:executive metrics are listed as metric overrides, other SPARK metrics will not be collected. The collection of the default metrics for other OSS metric sources is unaffected. For example, if both SPARK andd YARN` metric sources are enabled, and overrides are provided for Spark metrics only, all default YARN metrics will be collected.

repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of metricOverrides.

getMetricOverridesList()

public ProtocolStringList getMetricOverridesList()

Optional. Specify one or more available OSS metrics to collect for the metric course (for the SPARK metric source, any Spark metric can be specified). Provide metrics in the following format: <code><var>METRIC_SOURCE</var>:<var>INSTANCE</var>:<var>GROUP</var>:<var>METRIC</var></code> Use camelcase as appropriate. Examples: ` yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes:

  • Only the specified overridden metrics will be collected for the metric source. For example, if one or more
spark:executive metrics are listed as metric overrides, other SPARK metrics will not be collected. The collection of the default metrics for other OSS metric sources is unaffected. For example, if both SPARK andd YARN` metric sources are enabled, and overrides are provided for Spark metrics only, all default YARN metrics will be collected.

repeated string metric_overrides = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the metricOverrides.

getMetricSource()

public DataprocMetricConfig.MetricSource getMetricSource()

Required. Default metrics are collected unless metricOverrides are specified for the metric source (see Available OSS metrics for more information).

.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataprocMetricConfig.MetricSource

The metricSource.

getMetricSourceValue()

public int getMetricSourceValue()

Required. Default metrics are collected unless metricOverrides are specified for the metric source (see Available OSS metrics for more information).

.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSource metric_source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for metricSource.

getParserForType()

public Parser<DataprocMetricConfig.Metric> getParserForType()
Returns
TypeDescription
Parser<Metric>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DataprocMetricConfig.Metric.Builder newBuilderForType()
Returns
TypeDescription
DataprocMetricConfig.Metric.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataprocMetricConfig.Metric.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DataprocMetricConfig.Metric.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DataprocMetricConfig.Metric.Builder toBuilder()
Returns
TypeDescription
DataprocMetricConfig.Metric.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException