public final class CopyModelRequest extends GeneratedMessageV3 implements CopyModelRequestOrBuilder
Request message for
ModelService.CopyModel.
Protobuf type google.cloud.aiplatform.v1beta1.CopyModelRequest
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.v1beta1.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.v1beta1.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 final UnknownFieldSet getUnknownFields()
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.v1beta1.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