Class Measurement.Metric.Builder (3.9.0)

public static final class Measurement.Metric.Builder extends GeneratedMessageV3.Builder<Measurement.Metric.Builder> implements Measurement.MetricOrBuilder

A message representing a metric in the measurement.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Measurement.Metric.Builder clear()
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Measurement.Metric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

clearMetricId()

public Measurement.Metric.Builder clearMetricId()

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
Measurement.Metric.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Measurement.Metric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

clearValue()

public Measurement.Metric.Builder clearValue()

Output only. The value for this metric.

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

Returns
TypeDescription
Measurement.Metric.Builder

This builder for chaining.

clone()

public Measurement.Metric.Builder clone()
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Measurement.Metric other)

public Measurement.Metric.Builder mergeFrom(Measurement.Metric other)
Parameter
NameDescription
otherMeasurement.Metric
Returns
TypeDescription
Measurement.Metric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Measurement.Metric.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Measurement.Metric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Measurement.Metric.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

setMetricId(String value)

public Measurement.Metric.Builder setMetricId(String value)

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];

Parameter
NameDescription
valueString

The metricId to set.

Returns
TypeDescription
Measurement.Metric.Builder

This builder for chaining.

setMetricIdBytes(ByteString value)

public Measurement.Metric.Builder setMetricIdBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for metricId to set.

Returns
TypeDescription
Measurement.Metric.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Measurement.Metric.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Measurement.Metric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Measurement.Metric.Builder
Overrides

setValue(double value)

public Measurement.Metric.Builder setValue(double value)

Output only. The value for this metric.

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

Parameter
NameDescription
valuedouble

The value to set.

Returns
TypeDescription
Measurement.Metric.Builder

This builder for chaining.