Reference documentation and code samples for the Cloud PubSub V1 Client class AIInference.
Configuration for making inference requests against Vertex AI models.
Generated from protobuf message google.pubsub.v1.AIInference
Namespace
Google \ Cloud \ PubSub \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ endpoint
string
Required. An endpoint to a Vertex AI model of the form projects/{project}/locations/{location}/endpoints/{endpoint}
or projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
. Vertex AI API requests will be sent to this endpoint.
↳ unstructured_inference
AIInference\UnstructuredInference
Optional. Requests and responses can be any arbitrary JSON object.
↳ service_account_email
string
Optional. The service account to use to make prediction requests against endpoints. The resource creator or updater that specifies this field must have iam.serviceAccounts.actAs
permission on the service account. If not specified, the Pub/Sub service agent
, service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
getEndpoint
Required. An endpoint to a Vertex AI model of the form projects/{project}/locations/{location}/endpoints/{endpoint}
or projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
.
Vertex AI API requests will be sent to this endpoint.
string
setEndpoint
Required. An endpoint to a Vertex AI model of the form projects/{project}/locations/{location}/endpoints/{endpoint}
or projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
.
Vertex AI API requests will be sent to this endpoint.
var
string
$this
getUnstructuredInference
Optional. Requests and responses can be any arbitrary JSON object.
hasUnstructuredInference
setUnstructuredInference
Optional. Requests and responses can be any arbitrary JSON object.
$this
getServiceAccountEmail
Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs
permission on the service account. If not
specified, the Pub/Sub service
agent
,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
string
setServiceAccountEmail
Optional. The service account to use to make prediction requests against
endpoints. The resource creator or updater that specifies this field must
have iam.serviceAccounts.actAs
permission on the service account. If not
specified, the Pub/Sub service
agent
,
service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
var
string
$this
getInferenceMode
string

