Cloud AI Platform v1 API - Class ComputeTokensRequest (2.21.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
NameDescription
otherComputeTokensRequest

Properties

Endpoint

public string Endpoint { get; set; }

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

Property Value
TypeDescription
string

EndpointAsEndpointName

public EndpointName EndpointAsEndpointName { get; set; }

EndpointName-typed view over the Endpoint resource name property.

Property Value
TypeDescription
EndpointName

Instances

public RepeatedField<Value> Instances { get; }

Required. 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
TypeDescription
RepeatedFieldValue