public final class CopyModelRequest extends GeneratedMessageV3 implements CopyModelRequestOrBuilder
Request message for
ModelService.CopyModel.
Protobuf type google.cloud.aiplatform.v1.CopyModelRequest
Static Fields
public static final int ENCRYPTION_SPEC_FIELD_NUMBER
Field Value
public static final int MODEL_ID_FIELD_NUMBER
Field Value
public static final int PARENT_FIELD_NUMBER
Field Value
public static final int PARENT_MODEL_FIELD_NUMBER
Field Value
public static final int SOURCE_MODEL_FIELD_NUMBER
Field Value
Static Methods
public static CopyModelRequest getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static CopyModelRequest.Builder newBuilder()
Returns
public static CopyModelRequest.Builder newBuilder(CopyModelRequest prototype)
Parameter
Returns
public static CopyModelRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CopyModelRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CopyModelRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static CopyModelRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CopyModelRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static CopyModelRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CopyModelRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CopyModelRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CopyModelRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CopyModelRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CopyModelRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static CopyModelRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<CopyModelRequest> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public CopyModelRequest getDefaultInstanceForType()
Returns
public CopyModelRequest.DestinationModelCase getDestinationModelCase()
Returns
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;
Returns
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;
Returns
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
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
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()
Returns
Overrides
public int getSerializedSize()
Returns
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 final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CopyModelRequest.Builder newBuilderForType()
Returns
protected CopyModelRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public CopyModelRequest.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions