Cloud AI Platform v1 API - Class ComputeTokensRequest (3.8.0)

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

Reference documentation and code samples for the Cloud AI Platform v1 API class ComputeTokensRequest.

Request message for ComputeTokens RPC call.

Inheritance

object > ComputeTokensRequest

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

ComputeTokensRequest()

public ComputeTokensRequest()

ComputeTokensRequest(ComputeTokensRequest)

public ComputeTokensRequest(ComputeTokensRequest other)
Parameter
Name Description
other ComputeTokensRequest

Properties

Contents

public RepeatedField<Content> Contents { get; }

Optional. Input content.

Property Value
Type Description
RepeatedFieldContent

Endpoint

public string Endpoint { get; set; }

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

Property Value
Type Description
string

EndpointAsEndpointName

public EndpointName EndpointAsEndpointName { get; set; }

EndpointName-typed view over the Endpoint resource name property.

Property Value
Type Description
EndpointName

Instances

public RepeatedField<Value> Instances { get; }

Optional. The instances that are the input to token computing API call. Schema is identical to the prediction schema of the text model, even for the non-text models, like chat models, or Codey models.

Property Value
Type Description
RepeatedFieldValue

Model

public string Model { get; set; }

Optional. The name of the publisher model requested to serve the prediction. Format: projects/{project}/locations/{location}/publishers//models/

Property Value
Type Description
string