Cloud Pub/Sub v1 API - Class AIInference (3.31.0)

public sealed class AIInference : IMessage<AIInference>, IEquatable<AIInference>, IDeepCloneable<AIInference>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Pub/Sub v1 API class AIInference.

Configuration for making inference requests against Vertex AI models.

Inheritance

object > AIInference

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

AIInference()

public AIInference()

AIInference(AIInference)

public AIInference(AIInference other)
Parameter
Name Description
other AIInference

Properties

Endpoint

public string Endpoint { get; set; }

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.

Property Value
Type Description
string

InferenceModeCase

public AIInference.InferenceModeOneofCase InferenceModeCase { get; }
Property Value
Type Description
AIInferenceInferenceModeOneofCase

ServiceAccountEmail

public string ServiceAccountEmail { get; set; }

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.

Property Value
Type Description
string

UnstructuredInference

public AIInference.Types.UnstructuredInference UnstructuredInference { get; set; }

Optional. Requests and responses can be any arbitrary JSON object.

Property Value
Type Description
AIInferenceTypesUnstructuredInference