Class MetricUpdate (0.12.0)

public final class MetricUpdate extends GeneratedMessageV3 implements MetricUpdateOrBuilder

Describes the state of a metric.

Protobuf type google.dataflow.v1beta3.MetricUpdate

Static Fields

CUMULATIVE_FIELD_NUMBER

public static final int CUMULATIVE_FIELD_NUMBER
Field Value
TypeDescription
int

DISTRIBUTION_FIELD_NUMBER

public static final int DISTRIBUTION_FIELD_NUMBER
Field Value
TypeDescription
int

GAUGE_FIELD_NUMBER

public static final int GAUGE_FIELD_NUMBER
Field Value
TypeDescription
int

INTERNAL_FIELD_NUMBER

public static final int INTERNAL_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

MEAN_COUNT_FIELD_NUMBER

public static final int MEAN_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MEAN_SUM_FIELD_NUMBER

public static final int MEAN_SUM_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SCALAR_FIELD_NUMBER

public static final int SCALAR_FIELD_NUMBER
Field Value
TypeDescription
int

SET_FIELD_NUMBER

public static final int SET_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MetricUpdate getDefaultInstance()
Returns
TypeDescription
MetricUpdate

getDescriptor()

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

newBuilder()

public static MetricUpdate.Builder newBuilder()
Returns
TypeDescription
MetricUpdate.Builder

newBuilder(MetricUpdate prototype)

public static MetricUpdate.Builder newBuilder(MetricUpdate prototype)
Parameter
NameDescription
prototypeMetricUpdate
Returns
TypeDescription
MetricUpdate.Builder

parseDelimitedFrom(InputStream input)

public static MetricUpdate parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetricUpdate
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static MetricUpdate parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MetricUpdate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static MetricUpdate parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MetricUpdate
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static MetricUpdate parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MetricUpdate
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static MetricUpdate parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MetricUpdate
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<MetricUpdate> parser()
Returns
TypeDescription
Parser<MetricUpdate>

Methods

equals(Object obj)

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

getCumulative()

public boolean getCumulative()

True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.

bool cumulative = 3;

Returns
TypeDescription
boolean

The cumulative.

getDefaultInstanceForType()

public MetricUpdate getDefaultInstanceForType()
Returns
TypeDescription
MetricUpdate

getDistribution()

public Value getDistribution()

A struct value describing properties of a distribution of numeric values.

.google.protobuf.Value distribution = 11;

Returns
TypeDescription
Value

The distribution.

getDistributionOrBuilder()

public ValueOrBuilder getDistributionOrBuilder()

A struct value describing properties of a distribution of numeric values.

.google.protobuf.Value distribution = 11;

Returns
TypeDescription
ValueOrBuilder

getGauge()

public Value getGauge()

A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.

.google.protobuf.Value gauge = 12;

Returns
TypeDescription
Value

The gauge.

getGaugeOrBuilder()

public ValueOrBuilder getGaugeOrBuilder()

A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.

.google.protobuf.Value gauge = 12;

Returns
TypeDescription
ValueOrBuilder

getInternal()

public Value getInternal()

Worker-computed aggregate value for internal use by the Dataflow service.

.google.protobuf.Value internal = 8;

Returns
TypeDescription
Value

The internal.

getInternalOrBuilder()

public ValueOrBuilder getInternalOrBuilder()

Worker-computed aggregate value for internal use by the Dataflow service.

.google.protobuf.Value internal = 8;

Returns
TypeDescription
ValueOrBuilder

getKind()

public String getKind()

Metric aggregation kind. The possible metric aggregation kinds are "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.

string kind = 2;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Metric aggregation kind. The possible metric aggregation kinds are "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". The specified aggregation kind is case-insensitive. If omitted, this is not an aggregated value but instead a single metric sample value.

string kind = 2;

Returns
TypeDescription
ByteString

The bytes for kind.

getMeanCount()

public Value getMeanCount()

Worker-computed aggregate value for the "Mean" aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.

.google.protobuf.Value mean_count = 6;

Returns
TypeDescription
Value

The meanCount.

getMeanCountOrBuilder()

public ValueOrBuilder getMeanCountOrBuilder()

Worker-computed aggregate value for the "Mean" aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.

.google.protobuf.Value mean_count = 6;

Returns
TypeDescription
ValueOrBuilder

getMeanSum()

public Value getMeanSum()

Worker-computed aggregate value for the "Mean" aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.

.google.protobuf.Value mean_sum = 5;

Returns
TypeDescription
Value

The meanSum.

getMeanSumOrBuilder()

public ValueOrBuilder getMeanSumOrBuilder()

Worker-computed aggregate value for the "Mean" aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.

.google.protobuf.Value mean_sum = 5;

Returns
TypeDescription
ValueOrBuilder

getName()

public MetricStructuredName getName()

Name of the metric.

.google.dataflow.v1beta3.MetricStructuredName name = 1;

Returns
TypeDescription
MetricStructuredName

The name.

getNameOrBuilder()

public MetricStructuredNameOrBuilder getNameOrBuilder()

Name of the metric.

.google.dataflow.v1beta3.MetricStructuredName name = 1;

Returns
TypeDescription
MetricStructuredNameOrBuilder

getParserForType()

public Parser<MetricUpdate> getParserForType()
Returns
TypeDescription
Parser<MetricUpdate>
Overrides

getScalar()

public Value getScalar()

Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or". The possible value types are Long, Double, and Boolean.

.google.protobuf.Value scalar = 4;

Returns
TypeDescription
Value

The scalar.

getScalarOrBuilder()

public ValueOrBuilder getScalarOrBuilder()

Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or". The possible value types are Long, Double, and Boolean.

.google.protobuf.Value scalar = 4;

Returns
TypeDescription
ValueOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSet()

public Value getSet()

Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric's type. All Values in the list must be of the same type.

.google.protobuf.Value set = 7;

Returns
TypeDescription
Value

The set.

getSetOrBuilder()

public ValueOrBuilder getSetOrBuilder()

Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric's type. All Values in the list must be of the same type.

.google.protobuf.Value set = 7;

Returns
TypeDescription
ValueOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
TimestampOrBuilder

hasDistribution()

public boolean hasDistribution()

A struct value describing properties of a distribution of numeric values.

.google.protobuf.Value distribution = 11;

Returns
TypeDescription
boolean

Whether the distribution field is set.

hasGauge()

public boolean hasGauge()

A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.

.google.protobuf.Value gauge = 12;

Returns
TypeDescription
boolean

Whether the gauge field is set.

hasInternal()

public boolean hasInternal()

Worker-computed aggregate value for internal use by the Dataflow service.

.google.protobuf.Value internal = 8;

Returns
TypeDescription
boolean

Whether the internal field is set.

hasMeanCount()

public boolean hasMeanCount()

Worker-computed aggregate value for the "Mean" aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.

.google.protobuf.Value mean_count = 6;

Returns
TypeDescription
boolean

Whether the meanCount field is set.

hasMeanSum()

public boolean hasMeanSum()

Worker-computed aggregate value for the "Mean" aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.

.google.protobuf.Value mean_sum = 5;

Returns
TypeDescription
boolean

Whether the meanSum field is set.

hasName()

public boolean hasName()

Name of the metric.

.google.dataflow.v1beta3.MetricStructuredName name = 1;

Returns
TypeDescription
boolean

Whether the name field is set.

hasScalar()

public boolean hasScalar()

Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or". The possible value types are Long, Double, and Boolean.

.google.protobuf.Value scalar = 4;

Returns
TypeDescription
boolean

Whether the scalar field is set.

hasSet()

public boolean hasSet()

Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric's type. All Values in the list must be of the same type.

.google.protobuf.Value set = 7;

Returns
TypeDescription
boolean

Whether the set field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

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 MetricUpdate.Builder newBuilderForType()
Returns
TypeDescription
MetricUpdate.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public MetricUpdate.Builder toBuilder()
Returns
TypeDescription
MetricUpdate.Builder

writeTo(CodedOutputStream output)

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