Class AddTrialMeasurementRequest.Builder (3.50.0)

public static final class AddTrialMeasurementRequest.Builder extends GeneratedMessageV3.Builder<AddTrialMeasurementRequest.Builder> implements AddTrialMeasurementRequestOrBuilder

Request message for VizierService.AddTrialMeasurement.

Protobuf type google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AddTrialMeasurementRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

build()

public AddTrialMeasurementRequest build()
Returns
Type Description
AddTrialMeasurementRequest

buildPartial()

public AddTrialMeasurementRequest buildPartial()
Returns
Type Description
AddTrialMeasurementRequest

clear()

public AddTrialMeasurementRequest.Builder clear()
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AddTrialMeasurementRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

clearMeasurement()

public AddTrialMeasurementRequest.Builder clearMeasurement()

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddTrialMeasurementRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AddTrialMeasurementRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

clearTrialName()

public AddTrialMeasurementRequest.Builder clearTrialName()

Required. The name of the trial to add measurement. Format: projects/{project}/locations/{location}/studies/{study}/trials/{trial}

string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
AddTrialMeasurementRequest.Builder

This builder for chaining.

clone()

public AddTrialMeasurementRequest.Builder clone()
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

getDefaultInstanceForType()

public AddTrialMeasurementRequest getDefaultInstanceForType()
Returns
Type Description
AddTrialMeasurementRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMeasurement()

public Measurement getMeasurement()

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Measurement

The measurement.

getMeasurementBuilder()

public Measurement.Builder getMeasurementBuilder()

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Measurement.Builder

getMeasurementOrBuilder()

public MeasurementOrBuilder getMeasurementOrBuilder()

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MeasurementOrBuilder

getTrialName()

public String getTrialName()

Required. The name of the trial to add measurement. Format: projects/{project}/locations/{location}/studies/{study}/trials/{trial}

string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The trialName.

getTrialNameBytes()

public ByteString getTrialNameBytes()

Required. The name of the trial to add measurement. Format: projects/{project}/locations/{location}/studies/{study}/trials/{trial}

string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for trialName.

hasMeasurement()

public boolean hasMeasurement()

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the measurement field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AddTrialMeasurementRequest other)

public AddTrialMeasurementRequest.Builder mergeFrom(AddTrialMeasurementRequest other)
Parameter
Name Description
other AddTrialMeasurementRequest
Returns
Type Description
AddTrialMeasurementRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AddTrialMeasurementRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AddTrialMeasurementRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

mergeMeasurement(Measurement value)

public AddTrialMeasurementRequest.Builder mergeMeasurement(Measurement value)

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Measurement
Returns
Type Description
AddTrialMeasurementRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AddTrialMeasurementRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AddTrialMeasurementRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

setMeasurement(Measurement value)

public AddTrialMeasurementRequest.Builder setMeasurement(Measurement value)

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Measurement
Returns
Type Description
AddTrialMeasurementRequest.Builder

setMeasurement(Measurement.Builder builderForValue)

public AddTrialMeasurementRequest.Builder setMeasurement(Measurement.Builder builderForValue)

Required. The measurement to be added to a Trial.

.google.cloud.aiplatform.v1beta1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Measurement.Builder
Returns
Type Description
AddTrialMeasurementRequest.Builder

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

public AddTrialMeasurementRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides

setTrialName(String value)

public AddTrialMeasurementRequest.Builder setTrialName(String value)

Required. The name of the trial to add measurement. Format: projects/{project}/locations/{location}/studies/{study}/trials/{trial}

string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The trialName to set.

Returns
Type Description
AddTrialMeasurementRequest.Builder

This builder for chaining.

setTrialNameBytes(ByteString value)

public AddTrialMeasurementRequest.Builder setTrialNameBytes(ByteString value)

Required. The name of the trial to add measurement. Format: projects/{project}/locations/{location}/studies/{study}/trials/{trial}

string trial_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for trialName to set.

Returns
Type Description
AddTrialMeasurementRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AddTrialMeasurementRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AddTrialMeasurementRequest.Builder
Overrides