Class AddTrialMeasurementRequest.Builder (3.35.0)

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

Request message for VizierService.AddTrialMeasurement.

Protobuf type google.cloud.aiplatform.v1.AddTrialMeasurementRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AddTrialMeasurementRequest build()
Returns
TypeDescription
AddTrialMeasurementRequest

buildPartial()

public AddTrialMeasurementRequest buildPartial()
Returns
TypeDescription
AddTrialMeasurementRequest

clear()

public AddTrialMeasurementRequest.Builder clear()
Returns
TypeDescription
AddTrialMeasurementRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMeasurement()

public AddTrialMeasurementRequest.Builder clearMeasurement()

Required. The measurement to be added to a Trial.

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

Returns
TypeDescription
AddTrialMeasurementRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AddTrialMeasurementRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AddTrialMeasurementRequest.Builder

This builder for chaining.

clone()

public AddTrialMeasurementRequest.Builder clone()
Returns
TypeDescription
AddTrialMeasurementRequest.Builder
Overrides

getDefaultInstanceForType()

public AddTrialMeasurementRequest getDefaultInstanceForType()
Returns
TypeDescription
AddTrialMeasurementRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMeasurement()

public Measurement getMeasurement()

Required. The measurement to be added to a Trial.

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

Returns
TypeDescription
Measurement

The measurement.

getMeasurementBuilder()

public Measurement.Builder getMeasurementBuilder()

Required. The measurement to be added to a Trial.

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

Returns
TypeDescription
Measurement.Builder

getMeasurementOrBuilder()

public MeasurementOrBuilder getMeasurementOrBuilder()

Required. The measurement to be added to a Trial.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for trialName.

hasMeasurement()

public boolean hasMeasurement()

Required. The measurement to be added to a Trial.

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

Returns
TypeDescription
boolean

Whether the measurement field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AddTrialMeasurementRequest other)

public AddTrialMeasurementRequest.Builder mergeFrom(AddTrialMeasurementRequest other)
Parameter
NameDescription
otherAddTrialMeasurementRequest
Returns
TypeDescription
AddTrialMeasurementRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMeasurement(Measurement value)

public AddTrialMeasurementRequest.Builder mergeMeasurement(Measurement value)

Required. The measurement to be added to a Trial.

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

Parameter
NameDescription
valueMeasurement
Returns
TypeDescription
AddTrialMeasurementRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMeasurement(Measurement value)

public AddTrialMeasurementRequest.Builder setMeasurement(Measurement value)

Required. The measurement to be added to a Trial.

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

Parameter
NameDescription
valueMeasurement
Returns
TypeDescription
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.v1.Measurement measurement = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueMeasurement.Builder
Returns
TypeDescription
AddTrialMeasurementRequest.Builder

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

public AddTrialMeasurementRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The trialName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for trialName to set.

Returns
TypeDescription
AddTrialMeasurementRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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