Send feedback
Class CopyModelRequest (3.28.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.28.0 keyboard_arrow_down
public final class CopyModelRequest extends GeneratedMessageV3 implements CopyModelRequestOrBuilder
Request message for
ModelService.CopyModel .
Protobuf type google.cloud.aiplatform.v1.CopyModelRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int ENCRYPTION_SPEC_FIELD_NUMBER
Field Value Type Description int
public static final int MODEL_ID_FIELD_NUMBER
Field Value Type Description int
public static final int PARENT_FIELD_NUMBER
Field Value Type Description int
public static final int PARENT_MODEL_FIELD_NUMBER
Field Value Type Description int
public static final int SOURCE_MODEL_FIELD_NUMBER
Field Value Type Description int
Static Methods
public static CopyModelRequest getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static CopyModelRequest . Builder newBuilder ()
public static CopyModelRequest . Builder newBuilder ( CopyModelRequest prototype )
public static CopyModelRequest parseDelimitedFrom ( InputStream input )
public static CopyModelRequest parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static CopyModelRequest parseFrom ( byte [] data )
Parameter Name Description data
byte []
public static CopyModelRequest parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static CopyModelRequest parseFrom ( ByteString data )
public static CopyModelRequest parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static CopyModelRequest parseFrom ( CodedInputStream input )
public static CopyModelRequest parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static CopyModelRequest parseFrom ( InputStream input )
public static CopyModelRequest parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static CopyModelRequest parseFrom ( ByteBuffer data )
public static CopyModelRequest parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<CopyModelRequest> parser ()
Methods
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
public CopyModelRequest getDefaultInstanceForType ()
public CopyModelRequest . DestinationModelCase getDestinationModelCase ()
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.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;
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.
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.
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.
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.
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.
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.
public Parser<CopyModelRequest> getParserForType ()
Overrides
public int getSerializedSize ()
Returns Type Description int
Overrides
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.
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.
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;
Returns Type Description boolean
Whether the encryptionSpec field is set.
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.
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.
Returns Type Description int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public CopyModelRequest . Builder newBuilderForType ()
protected CopyModelRequest . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
public CopyModelRequest . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]