Google Cloud Ai Platform V1 Client - Class GetPublisherModelRequest (1.2.0)

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

Request message for ModelGardenService.GetPublisherModel

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}

↳ language_code string

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in.

↳ view int

Optional. PublisherModel view specifying which fields to read.

↳ is_hugging_face_model bool

Optional. Boolean indicates whether the requested model is a Hugging Face model.

getName

Required. The name of the PublisherModel resource.

Format: publishers/{publisher}/models/{publisher_model}

Returns
Type Description
string

setName

Required. The name of the PublisherModel resource.

Format: publishers/{publisher}/models/{publisher_model}

Parameter
Name Description
var string
Returns
Type Description
$this

getLanguageCode

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in.

Returns
Type Description
string

setLanguageCode

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in.

Parameter
Name Description
var string
Returns
Type Description
$this

getView

Optional. PublisherModel view specifying which fields to read.

Returns
Type Description
int

setView

Optional. PublisherModel view specifying which fields to read.

Parameter
Name Description
var int
Returns
Type Description
$this

getIsHuggingFaceModel

Optional. Boolean indicates whether the requested model is a Hugging Face model.

Returns
Type Description
bool

setIsHuggingFaceModel

Optional. Boolean indicates whether the requested model is a Hugging Face model.

Parameter
Name Description
var bool
Returns
Type Description
$this

static::build

Parameter
Name Description
name string

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model} Please see Google\Cloud\AIPlatform\V1\ModelGardenServiceClient::publisherModelName() for help formatting this field.

Returns
Type Description
Google\Cloud\AIPlatform\V1\GetPublisherModelRequest