Class TunedModel.Builder (3.64.0)

public static final class TunedModel.Builder extends GeneratedMessageV3.Builder.Builder> implements TunedModelOrBuilder

The Model Registry Model and Online Prediction Endpoint associated with this TuningJob.

Protobuf type google.cloud.aiplatform.v1.TunedModel

Implements

TunedModelOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllCheckpoints(Iterable values)

public TunedModel.Builder addAllCheckpoints(Iterable<? extends TunedModelCheckpoint> values)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.TunedModelCheckpoint>
Returns
Type Description
TunedModel.Builder

addCheckpoints(TunedModelCheckpoint value)

public TunedModel.Builder addCheckpoints(TunedModelCheckpoint value)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TunedModelCheckpoint
Returns
Type Description
TunedModel.Builder

addCheckpoints(TunedModelCheckpoint.Builder builderForValue)

public TunedModel.Builder addCheckpoints(TunedModelCheckpoint.Builder builderForValue)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue TunedModelCheckpoint.Builder
Returns
Type Description
TunedModel.Builder

addCheckpoints(int index, TunedModelCheckpoint value)

public TunedModel.Builder addCheckpoints(int index, TunedModelCheckpoint value)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value TunedModelCheckpoint
Returns
Type Description
TunedModel.Builder

addCheckpoints(int index, TunedModelCheckpoint.Builder builderForValue)

public TunedModel.Builder addCheckpoints(int index, TunedModelCheckpoint.Builder builderForValue)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue TunedModelCheckpoint.Builder
Returns
Type Description
TunedModel.Builder

addCheckpointsBuilder()

public TunedModelCheckpoint.Builder addCheckpointsBuilder()

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TunedModelCheckpoint.Builder

addCheckpointsBuilder(int index)

public TunedModelCheckpoint.Builder addCheckpointsBuilder(int index)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TunedModelCheckpoint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TunedModel build()
Returns
Type Description
TunedModel

buildPartial()

public TunedModel buildPartial()
Returns
Type Description
TunedModel

clear()

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

clearCheckpoints()

public TunedModel.Builder clearCheckpoints()

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TunedModel.Builder

clearEndpoint()

public TunedModel.Builder clearEndpoint()

Output only. A resource name of an Endpoint. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.

string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
TunedModel.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearModel()

public TunedModel.Builder clearModel()

Output only. The resource name of the TunedModel. Format: projects/{project}/locations/{location}/models/{model}.

string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
TunedModel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCheckpoints(int index)

public TunedModelCheckpoint getCheckpoints(int index)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TunedModelCheckpoint

getCheckpointsBuilder(int index)

public TunedModelCheckpoint.Builder getCheckpointsBuilder(int index)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TunedModelCheckpoint.Builder

getCheckpointsBuilderList()

public List.Builder> getCheckpointsBuilderList()

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getCheckpointsCount()

public int getCheckpointsCount()

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getCheckpointsList()

public List getCheckpointsList()

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<TunedModelCheckpoint>

getCheckpointsOrBuilder(int index)

public TunedModelCheckpointOrBuilder getCheckpointsOrBuilder(int index)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TunedModelCheckpointOrBuilder

getCheckpointsOrBuilderList()

public List<? extends TunedModelCheckpointOrBuilder> getCheckpointsOrBuilderList()

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.TunedModelCheckpointOrBuilder>

getDefaultInstanceForType()

public TunedModel getDefaultInstanceForType()
Returns
Type Description
TunedModel

getDescriptorForType()

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

getEndpoint()

public String getEndpoint()

Output only. A resource name of an Endpoint. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.

string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The endpoint.

getEndpointBytes()

public ByteString getEndpointBytes()

Output only. A resource name of an Endpoint. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.

string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for endpoint.

getModel()

public String getModel()

Output only. The resource name of the TunedModel. Format: projects/{project}/locations/{location}/models/{model}.

string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Output only. The resource name of the TunedModel. Format: projects/{project}/locations/{location}/models/{model}.

string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for model.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TunedModel other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCheckpoints(int index)

public TunedModel.Builder removeCheckpoints(int index)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TunedModel.Builder

setCheckpoints(int index, TunedModelCheckpoint value)

public TunedModel.Builder setCheckpoints(int index, TunedModelCheckpoint value)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value TunedModelCheckpoint
Returns
Type Description
TunedModel.Builder

setCheckpoints(int index, TunedModelCheckpoint.Builder builderForValue)

public TunedModel.Builder setCheckpoints(int index, TunedModelCheckpoint.Builder builderForValue)

Output only. The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.

repeated .google.cloud.aiplatform.v1.TunedModelCheckpoint checkpoints = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue TunedModelCheckpoint.Builder
Returns
Type Description
TunedModel.Builder

setEndpoint(String value)

public TunedModel.Builder setEndpoint(String value)

Output only. A resource name of an Endpoint. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.

string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The endpoint to set.

Returns
Type Description
TunedModel.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

public TunedModel.Builder setEndpointBytes(ByteString value)

Output only. A resource name of an Endpoint. Format: projects/{project}/locations/{location}/endpoints/{endpoint}.

string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for endpoint to set.

Returns
Type Description
TunedModel.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setModel(String value)

public TunedModel.Builder setModel(String value)

Output only. The resource name of the TunedModel. Format: projects/{project}/locations/{location}/models/{model}.

string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The model to set.

Returns
Type Description
TunedModel.Builder

This builder for chaining.

setModelBytes(ByteString value)

public TunedModel.Builder setModelBytes(ByteString value)

Output only. The resource name of the TunedModel. Format: projects/{project}/locations/{location}/models/{model}.

string model = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
TunedModel.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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