Class Measurement.Metric (3.17.0)

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

A message representing a metric in the measurement.

Protobuf type google.cloud.aiplatform.v1.Measurement.Metric

Static Fields

METRIC_ID_FIELD_NUMBER

public static final int METRIC_ID_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(Measurement.Metric prototype)

public static Measurement.Metric.Builder newBuilder(Measurement.Metric prototype)
Parameter
NameDescription
prototypeMeasurement.Metric
Returns
TypeDescription
Measurement.Metric.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getMetricId()

public String getMetricId()

Output only. The ID of the Metric. The Metric should be defined in StudySpec's Metrics.

string metric_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The metricId.

getMetricIdBytes()

public ByteString getMetricIdBytes()

Output only. The ID of the Metric. The Metric should be defined in StudySpec's Metrics.

string metric_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for metricId.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValue()

public double getValue()

Output only. The value for this metric.

double value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
double

The value.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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