Cloud AI Platform v1 API - Class GenerateContentResponse.Types.UsageMetadata (2.22.0)

public sealed class GenerateContentResponse.Types.UsageMetadata : IMessage<GenerateContentResponse.Types.UsageMetadata>, IEquatable<GenerateContentResponse.Types.UsageMetadata>, IDeepCloneable<GenerateContentResponse.Types.UsageMetadata>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 API class GenerateContentResponse.Types.UsageMetadata.

Usage metadata about response(s).

Inheritance

object > GenerateContentResponse.Types.UsageMetadata

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

UsageMetadata()

public UsageMetadata()

UsageMetadata(UsageMetadata)

public UsageMetadata(GenerateContentResponse.Types.UsageMetadata other)
Parameter
NameDescription
otherGenerateContentResponseTypesUsageMetadata

Properties

CandidatesTokenCount

public int CandidatesTokenCount { get; set; }

Number of tokens in the response(s).

Property Value
TypeDescription
int

PromptTokenCount

public int PromptTokenCount { get; set; }

Number of tokens in the request.

Property Value
TypeDescription
int

TotalTokenCount

public int TotalTokenCount { get; set; }
Property Value
TypeDescription
int