Class TunedModel.Builder (3.50.0)

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

The Model Registry Model and Online Prediction Endpoint assiociated 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

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

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

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

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