Google Cloud Ai Platform V1 Client - Class UploadModelRequest (0.10.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class UploadModelRequest.

Request message for ModelService.UploadModel.

Generated from protobuf message google.cloud.aiplatform.v1.UploadModelRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the Location into which to upload the Model. Format: projects/{project}/locations/{location}

↳ parent_model string

Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.

↳ model_id string

Optional. The ID to use for the uploaded Model, which 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.

↳ model Google\Cloud\AIPlatform\V1\Model

Required. The Model to create.

getParent

Required. The resource name of the Location into which to upload the Model.

Format: projects/{project}/locations/{location}

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setParent

Required. The resource name of the Location into which to upload the Model.

Format: projects/{project}/locations/{location}

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParentModel

Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.

Generated from protobuf field string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setParentModel

Optional. The resource name of the model into which to upload the version. Only specify this field when uploading a new version.

Generated from protobuf field string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getModelId

Optional. The ID to use for the uploaded Model, which 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.

Generated from protobuf field string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setModelId

Optional. The ID to use for the uploaded Model, which 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.

Generated from protobuf field string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getModel

Required. The Model to create.

Generated from protobuf field .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Cloud\AIPlatform\V1\Model|null

hasModel

clearModel

setModel

Required. The Model to create.

Generated from protobuf field .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var Google\Cloud\AIPlatform\V1\Model
Returns
TypeDescription
$this