public static final class CopyModelRequest.Builder extends GeneratedMessage.Builder<CopyModelRequest.Builder> implements CopyModelRequestOrBuilderRequest message for ModelService.CopyModel.
Protobuf type google.cloud.aiplatform.v1beta1.CopyModelRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CopyModelRequest.BuilderImplements
CopyModelRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearCustomServiceAccount()
public CopyModelRequest.Builder clearCustomServiceAccount() Optional. The user-provided custom service account to use to do the copy
model. If empty, Vertex AI Service
Agent
will be used to access resources needed to upload the model. This account
must belong to the destination project where the model is copied to,
i.e., the project specified in the parent field of this request and
have the Vertex AI Service Agent role in the source project.
Requires the user copying the Model to have the
iam.serviceAccounts.actAs permission on this service account.
string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CopyModelRequest.Builder |
This builder for chaining. |
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 |
|
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. |
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. |
getCustomServiceAccount()
public String getCustomServiceAccount() Optional. The user-provided custom service account to use to do the copy
model. If empty, Vertex AI Service
Agent
will be used to access resources needed to upload the model. This account
must belong to the destination project where the model is copied to,
i.e., the project specified in the parent field of this request and
have the Vertex AI Service Agent role in the source project.
Requires the user copying the Model to have the
iam.serviceAccounts.actAs permission on this service account.
string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The customServiceAccount. |
getCustomServiceAccountBytes()
public ByteString getCustomServiceAccountBytes() Optional. The user-provided custom service account to use to do the copy
model. If empty, Vertex AI Service
Agent
will be used to access resources needed to upload the model. This account
must belong to the destination project where the model is copied to,
i.e., the project specified in the parent field of this request and
have the Vertex AI Service Agent role in the source project.
Requires the user copying the Model to have the
iam.serviceAccounts.actAs permission on this service account.
string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for customServiceAccount. |
getDefaultInstanceForType()
public CopyModelRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CopyModelRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CopyModelRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CopyModelRequest.Builder |
|
setCustomServiceAccount(String value)
public CopyModelRequest.Builder setCustomServiceAccount(String value) Optional. The user-provided custom service account to use to do the copy
model. If empty, Vertex AI Service
Agent
will be used to access resources needed to upload the model. This account
must belong to the destination project where the model is copied to,
i.e., the project specified in the parent field of this request and
have the Vertex AI Service Agent role in the source project.
Requires the user copying the Model to have the
iam.serviceAccounts.actAs permission on this service account.
string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe customServiceAccount to set. |
| Returns | |
|---|---|
| Type | Description |
CopyModelRequest.Builder |
This builder for chaining. |
setCustomServiceAccountBytes(ByteString value)
public CopyModelRequest.Builder setCustomServiceAccountBytes(ByteString value) Optional. The user-provided custom service account to use to do the copy
model. If empty, Vertex AI Service
Agent
will be used to access resources needed to upload the model. This account
must belong to the destination project where the model is copied to,
i.e., the project specified in the parent field of this request and
have the Vertex AI Service Agent role in the source project.
Requires the user copying the Model to have the
iam.serviceAccounts.actAs permission on this service account.
string custom_service_account = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for customServiceAccount to set. |
| Returns | |
|---|---|
| Type | Description |
CopyModelRequest.Builder |
This builder for chaining. |
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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for parentModel to set. |
| Returns | |
|---|---|
| Type | Description |
CopyModelRequest.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for sourceModel to set. |
| Returns | |
|---|---|
| Type | Description |
CopyModelRequest.Builder |
This builder for chaining. |