Class CopyModelRequest.Builder (3.43.0)

public static final class CopyModelRequest.Builder extends GeneratedMessageV3.Builder<CopyModelRequest.Builder> implements CopyModelRequestOrBuilder

Request message for ModelService.CopyModel.

Protobuf type google.cloud.aiplatform.v1beta1.CopyModelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CopyModelRequest build()
Returns
Type Description
CopyModelRequest

buildPartial()

public CopyModelRequest buildPartial()
Returns
Type Description
CopyModelRequest

clear()

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

clearDestinationModel()

public CopyModelRequest.Builder clearDestinationModel()
Returns
Type Description
CopyModelRequest.Builder

clearEncryptionSpec()

public CopyModelRequest.Builder clearEncryptionSpec()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
Type Description
CopyModelRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearModelId()

public CopyModelRequest.Builder clearModelId()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.

This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CopyModelRequest.Builder clearParent()

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

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

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

clearParentModel()

public CopyModelRequest.Builder clearParentModel()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

clearSourceModel()

public CopyModelRequest.Builder clearSourceModel()

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CopyModelRequest getDefaultInstanceForType()
Returns
Type Description
CopyModelRequest

getDescriptorForType()

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

getDestinationModelCase()

public CopyModelRequest.DestinationModelCase getDestinationModelCase()
Returns
Type Description
CopyModelRequest.DestinationModelCase

getEncryptionSpec()

public EncryptionSpec getEncryptionSpec()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
Type Description
EncryptionSpec

The encryptionSpec.

getEncryptionSpecBuilder()

public EncryptionSpec.Builder getEncryptionSpecBuilder()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
Type Description
EncryptionSpec.Builder

getEncryptionSpecOrBuilder()

public EncryptionSpecOrBuilder getEncryptionSpecOrBuilder()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
Type Description
EncryptionSpecOrBuilder

getModelId()

public String getModelId()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.

This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The modelId.

getModelIdBytes()

public ByteString getModelIdBytes()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.

This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for modelId.

getParent()

public String getParent()

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for parent.

getParentModel()

public String getParentModel()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parentModel.

getParentModelBytes()

public ByteString getParentModelBytes()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parentModel.

getSourceModel()

public String getSourceModel()

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sourceModel.

getSourceModelBytes()

public ByteString getSourceModelBytes()

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sourceModel.

hasEncryptionSpec()

public boolean hasEncryptionSpec()

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Returns
Type Description
boolean

Whether the encryptionSpec field is set.

hasModelId()

public boolean hasModelId()

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.

This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the modelId field is set.

hasParentModel()

public boolean hasParentModel()

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the parentModel field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEncryptionSpec(EncryptionSpec value)

public CopyModelRequest.Builder mergeEncryptionSpec(EncryptionSpec value)

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Parameter
Name Description
value EncryptionSpec
Returns
Type Description
CopyModelRequest.Builder

mergeFrom(CopyModelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEncryptionSpec(EncryptionSpec value)

public CopyModelRequest.Builder setEncryptionSpec(EncryptionSpec value)

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Parameter
Name Description
value EncryptionSpec
Returns
Type Description
CopyModelRequest.Builder

setEncryptionSpec(EncryptionSpec.Builder builderForValue)

public CopyModelRequest.Builder setEncryptionSpec(EncryptionSpec.Builder builderForValue)

Customer-managed encryption key options. If this is set, then the Model copy will be encrypted with the provided encryption key.

.google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 3;

Parameter
Name Description
builderForValue EncryptionSpec.Builder
Returns
Type Description
CopyModelRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelId(String value)

public CopyModelRequest.Builder setModelId(String value)

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.

This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The modelId to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

setModelIdBytes(ByteString value)

public CopyModelRequest.Builder setModelIdBytes(ByteString value)

Optional. Copy source_model into a new Model with this ID. The ID will become the final component of the model resource name.

This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

string model_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for modelId to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

setParent(String value)

public CopyModelRequest.Builder setParent(String value)

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CopyModelRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location into which to copy the Model. Format: projects/{project}/locations/{location}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

setParentModel(String value)

public CopyModelRequest.Builder setParentModel(String value)

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parentModel to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

setParentModelBytes(ByteString value)

public CopyModelRequest.Builder setParentModelBytes(ByteString value)

Optional. Specify this field to copy source_model into this existing Model as a new version. Format: projects/{project}/locations/{location}/models/{model}

string parent_model = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parentModel to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

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

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

setSourceModel(String value)

public CopyModelRequest.Builder setSourceModel(String value)

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The sourceModel to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

setSourceModelBytes(ByteString value)

public CopyModelRequest.Builder setSourceModelBytes(ByteString value)

Required. The resource name of the Model to copy. That Model must be in the same Project. Format: projects/{project}/locations/{location}/models/{model}

string source_model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for sourceModel to set.

Returns
Type Description
CopyModelRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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