Show / Hide Table of Contents

Class EndpointsResource

The "endpoints" collection of methods.

Inheritance
object
EndpointsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Aiplatform.v1beta1
Assembly: Google.Apis.Aiplatform.v1beta1.dll
Syntax
public class EndpointsResource

Constructors

EndpointsResource(IClientService)

Constructs a new resource.

Declaration
public EndpointsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Chat

Gets the Chat resource.

Declaration
public virtual EndpointsResource.ChatResource Chat { get; }
Property Value
Type Description
EndpointsResource.ChatResource

Methods

ComputeTokens(GoogleCloudAiplatformV1beta1ComputeTokensRequest, string)

Return a list of tokens based on the input text.

Declaration
public virtual EndpointsResource.ComputeTokensRequest ComputeTokens(GoogleCloudAiplatformV1beta1ComputeTokensRequest body, string endpoint)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1ComputeTokensRequest body

The body of the request.

string endpoint

Required. The name of the Endpoint requested to get lists of tokens and token ids.

Returns
Type Description
EndpointsResource.ComputeTokensRequest

CountTokens(GoogleCloudAiplatformV1beta1CountTokensRequest, string)

Perform a token counting.

Declaration
public virtual EndpointsResource.CountTokensRequest CountTokens(GoogleCloudAiplatformV1beta1CountTokensRequest body, string endpoint)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1CountTokensRequest body

The body of the request.

string endpoint

Required. The name of the Endpoint requested to perform token counting. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
EndpointsResource.CountTokensRequest

GenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest, string)

Generate content with multimodal inputs.

Declaration
public virtual EndpointsResource.GenerateContentRequest GenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest body, string model)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1GenerateContentRequest body

The body of the request.

string model

Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: projects/{project}/locations/{location}/publishers/*/models/* Tuned model endpoint format: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
EndpointsResource.GenerateContentRequest

Predict(GoogleCloudAiplatformV1beta1PredictRequest, string)

Perform an online prediction.

Declaration
public virtual EndpointsResource.PredictRequest Predict(GoogleCloudAiplatformV1beta1PredictRequest body, string endpoint)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1PredictRequest body

The body of the request.

string endpoint

Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
EndpointsResource.PredictRequest

StreamGenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest, string)

Generate content with multimodal inputs with streaming support.

Declaration
public virtual EndpointsResource.StreamGenerateContentRequest StreamGenerateContent(GoogleCloudAiplatformV1beta1GenerateContentRequest body, string model)
Parameters
Type Name Description
GoogleCloudAiplatformV1beta1GenerateContentRequest body

The body of the request.

string model

Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: projects/{project}/locations/{location}/publishers/*/models/* Tuned model endpoint format: projects/{project}/locations/{location}/endpoints/{endpoint}

Returns
Type Description
EndpointsResource.StreamGenerateContentRequest
In this article
Back to top Generated by DocFX