public static final class GenerateContentResponse.UsageMetadata.Builder extends GeneratedMessageV3.Builder<GenerateContentResponse.UsageMetadata.Builder> implements GenerateContentResponse.UsageMetadataOrBuilder
Metadati di utilizzo relativi alle risposte.
Tipo di protobuf google.cloud.vertexai.v1.GenerateContentResponse.UsageMetadata
Membri ereditati
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Metodi statici
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Metodi
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateContentResponse.UsageMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Sostituzioni
build()
public GenerateContentResponse.UsageMetadata build()
buildPartial()
public GenerateContentResponse.UsageMetadata buildPartial()
Clear()
public GenerateContentResponse.UsageMetadata.Builder clear()
Sostituzioni
clearCandidatesTokenCount()
public GenerateContentResponse.UsageMetadata.Builder clearCandidatesTokenCount()
Numero di token nelle risposte.
int32 candidates_token_count = 2;
clearField(Descriptors.FieldDescriptor field)
public GenerateContentResponse.UsageMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Sostituzioni
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateContentResponse.UsageMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Sostituzioni
clearPromptTokenCount()
public GenerateContentResponse.UsageMetadata.Builder clearPromptTokenCount()
Numero di token nella richiesta.
int32 prompt_token_count = 1;
clearTotalTokenCount()
public GenerateContentResponse.UsageMetadata.Builder clearTotalTokenCount()
int32 total_token_count = 3;
clone()
public GenerateContentResponse.UsageMetadata.Builder clone()
Sostituzioni
getCandidatesTokenCount()
public int getCandidatesTokenCount()
Numero di token nelle risposte.
int32 candidates_token_count = 2;
Restituisce |
Tipo |
Description |
int |
Il valore candidateTokenCount.
|
getDefaultInstanceForType()
public GenerateContentResponse.UsageMetadata getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Sostituzioni
getPromptTokenCount()
public int getPromptTokenCount()
Numero di token nella richiesta.
int32 prompt_token_count = 1;
Restituisce |
Tipo |
Description |
int |
Il promptTokenCount.
|
getTotalTokenCount()
public int getTotalTokenCount()
int32 total_token_count = 3;
Restituisce |
Tipo |
Description |
int |
Il totalTokenCount.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Sostituzioni
isInitialized()
public final boolean isInitialized()
Restituisce |
Tipo |
Description |
boolean |
|
Sostituzioni
mergeFrom(GenerateContentResponse.UsageMetadata other)
public GenerateContentResponse.UsageMetadata.Builder mergeFrom(GenerateContentResponse.UsageMetadata other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateContentResponse.UsageMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Sostituzioni
mergeFrom(Message other)
public GenerateContentResponse.UsageMetadata.Builder mergeFrom(Message other)
Parametro |
Nome |
Description |
other |
Message
|
Sostituzioni
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateContentResponse.UsageMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Sostituzioni
setCandidatesTokenCount(int value)
public GenerateContentResponse.UsageMetadata.Builder setCandidatesTokenCount(int value)
Numero di token nelle risposte.
int32 candidates_token_count = 2;
Parametro |
Nome |
Description |
value |
int
Il valore candidateTokenCount da impostare.
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateContentResponse.UsageMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Sostituzioni
setPromptTokenCount(int value)
public GenerateContentResponse.UsageMetadata.Builder setPromptTokenCount(int value)
Numero di token nella richiesta.
int32 prompt_token_count = 1;
Parametro |
Nome |
Description |
value |
int
Il promptTokenCount da impostare.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateContentResponse.UsageMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Sostituzioni
setTotalTokenCount(int value)
public GenerateContentResponse.UsageMetadata.Builder setTotalTokenCount(int value)
int32 total_token_count = 3;
Parametro |
Nome |
Description |
value |
int
Il totalTokenCount da impostare.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateContentResponse.UsageMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Sostituzioni