public static final class CopyModelRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CopyModelRequest.Builder> implements CopyModelRequestOrBuilder
Request message for [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel].Protobuf type
google.cloud.aiplatform.v1.CopyModelRequestaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CopyModelRequest.Builder>public CopyModelRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<CopyModelRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CopyModelRequest.Builder>public CopyModelRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CopyModelRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CopyModelRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CopyModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CopyModelRequest.Builder>public CopyModelRequest.Builder mergeFrom(CopyModelRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<CopyModelRequest.Builder>public CopyModelRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CopyModelRequest.Builder>IOExceptionpublic CopyModelRequest.DestinationModelCase getDestinationModelCase()
getDestinationModelCase in interface CopyModelRequestOrBuilderpublic CopyModelRequest.Builder clearDestinationModel()
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];hasModelId in interface CopyModelRequestOrBuilderpublic 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];getModelId in interface CopyModelRequestOrBuilderpublic com.google.protobuf.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];getModelIdBytes in interface CopyModelRequestOrBuilderpublic 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];value - The modelId to set.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];public CopyModelRequest.Builder setModelIdBytes(com.google.protobuf.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];value - The bytes for modelId to set.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) = { ... }
hasParentModel in interface CopyModelRequestOrBuilderpublic 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) = { ... }
getParentModel in interface CopyModelRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getParentModelBytes in interface CopyModelRequestOrBuilderpublic 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) = { ... }
value - The parentModel to set.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) = { ... }
public CopyModelRequest.Builder setParentModelBytes(com.google.protobuf.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) = { ... }
value - The bytes for parentModel to set.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) = { ... }
getParent in interface CopyModelRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getParentBytes in interface CopyModelRequestOrBuilderpublic 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) = { ... }
value - The parent to set.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) = { ... }
public CopyModelRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
value - The bytes for parent to set.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) = { ... }
getSourceModel in interface CopyModelRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getSourceModelBytes in interface CopyModelRequestOrBuilderpublic 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) = { ... }
value - The sourceModel to set.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) = { ... }
public CopyModelRequest.Builder setSourceModelBytes(com.google.protobuf.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) = { ... }
value - The bytes for sourceModel to set.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.v1.EncryptionSpec encryption_spec = 3;hasEncryptionSpec in interface CopyModelRequestOrBuilderpublic 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.v1.EncryptionSpec encryption_spec = 3;getEncryptionSpec in interface CopyModelRequestOrBuilderpublic 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.v1.EncryptionSpec encryption_spec = 3;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.v1.EncryptionSpec encryption_spec = 3;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.v1.EncryptionSpec encryption_spec = 3;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.v1.EncryptionSpec encryption_spec = 3;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.v1.EncryptionSpec encryption_spec = 3;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.v1.EncryptionSpec encryption_spec = 3;getEncryptionSpecOrBuilder in interface CopyModelRequestOrBuilderCopyright © 2026 Google LLC. All rights reserved.