Class DeployRequest.CustomModel.Builder (3.84.0)

public static final class DeployRequest.CustomModel.Builder extends GeneratedMessage.Builder<DeployRequest.CustomModel.Builder> implements DeployRequest.CustomModelOrBuilder

The custom model to deploy from model weights in a Google Cloud Storage URI or Model Registry model.

Protobuf type google.cloud.aiplatform.v1beta1.DeployRequest.CustomModel

Static Methods

getDescriptor()

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

Methods

build()

public DeployRequest.CustomModel build()
Returns
Type Description
DeployRequest.CustomModel

buildPartial()

public DeployRequest.CustomModel buildPartial()
Returns
Type Description
DeployRequest.CustomModel

clear()

public DeployRequest.CustomModel.Builder clear()
Returns
Type Description
DeployRequest.CustomModel.Builder
Overrides

clearGcsUri()

public DeployRequest.CustomModel.Builder clearGcsUri()

Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model).

string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DeployRequest.CustomModel.Builder

This builder for chaining.

clearModelSource()

public DeployRequest.CustomModel.Builder clearModelSource()
Returns
Type Description
DeployRequest.CustomModel.Builder

getDefaultInstanceForType()

public DeployRequest.CustomModel getDefaultInstanceForType()
Returns
Type Description
DeployRequest.CustomModel

getDescriptorForType()

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

getGcsUri()

public String getGcsUri()

Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model).

string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The gcsUri.

getGcsUriBytes()

public ByteString getGcsUriBytes()

Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model).

string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for gcsUri.

getModelSourceCase()

public DeployRequest.CustomModel.ModelSourceCase getModelSourceCase()
Returns
Type Description
DeployRequest.CustomModel.ModelSourceCase

hasGcsUri()

public boolean hasGcsUri()

Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model).

string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the gcsUri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeployRequest.CustomModel other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGcsUri(String value)

public DeployRequest.CustomModel.Builder setGcsUri(String value)

Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model).

string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The gcsUri to set.

Returns
Type Description
DeployRequest.CustomModel.Builder

This builder for chaining.

setGcsUriBytes(ByteString value)

public DeployRequest.CustomModel.Builder setGcsUriBytes(ByteString value)

Immutable. The Google Cloud Storage URI of the custom model, storing weights and config files (which can be used to infer the base model).

string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for gcsUri to set.

Returns
Type Description
DeployRequest.CustomModel.Builder

This builder for chaining.