public final class CountTokensResponse extends GeneratedMessageV3 implements CountTokensResponseOrBuilder
Messaggio di risposta per [PredictionService.CountTokens][].
Tipo di protobuf google.cloud.vertexai.v1.CountTokensResponse
Membri ereditati
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Campi statici
TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER
public static final int TOTAL_BILLABLE_CHARACTERS_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
TOTAL_TOKENS_FIELD_NUMBER
public static final int TOTAL_TOKENS_FIELD_NUMBER
Valore campo |
Tipo |
Description |
int |
|
Metodi statici
getDefaultInstance()
public static CountTokensResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CountTokensResponse.Builder newBuilder()
newBuilder(CountTokensResponse prototype)
public static CountTokensResponse.Builder newBuilder(CountTokensResponse prototype)
public static CountTokensResponse parseDelimitedFrom(InputStream input)
public static CountTokensResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CountTokensResponse parseFrom(byte[] data)
Parametro |
Nome |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CountTokensResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CountTokensResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CountTokensResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CountTokensResponse parseFrom(CodedInputStream input)
public static CountTokensResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CountTokensResponse parseFrom(InputStream input)
public static CountTokensResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CountTokensResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CountTokensResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CountTokensResponse> parser()
Metodi
è uguale a(obj oggetto)
public boolean equals(Object obj)
Parametro |
Nome |
Description |
obj |
Object
|
Restituisce |
Tipo |
Description |
boolean |
|
Sostituzioni
getDefaultInstanceForType()
public CountTokensResponse getDefaultInstanceForType()
getParserForType()
public Parser<CountTokensResponse> getParserForType()
Sostituzioni
getSerializedSize()
public int getSerializedSize()
Restituisce |
Tipo |
Description |
int |
|
Sostituzioni
getTotalBillableCharacters()
public int getTotalBillableCharacters()
Il numero totale di caratteri fatturabili conteggiati in tutte le istanze della richiesta.
int32 total_billable_characters = 2;
Restituisce |
Tipo |
Description |
int |
I totalBillableCharacters.
|
getTotalTokens()
public int getTotalTokens()
Il numero totale di token conteggiati in tutte le istanze dalla richiesta.
int32 total_tokens = 1;
Restituisce |
Tipo |
Description |
int |
I totalTokens.
|
hashCode()
Restituisce |
Tipo |
Description |
int |
|
Sostituzioni
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Sostituzioni
isInitialized()
public final boolean isInitialized()
Restituisce |
Tipo |
Description |
boolean |
|
Sostituzioni
newBuilderForType()
public CountTokensResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CountTokensResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Sostituzioni
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Restituisce |
Tipo |
Description |
Object |
|
Sostituzioni
toBuilder()
public CountTokensResponse.Builder toBuilder()
writeTo(output di CodedOutputStream)
public void writeTo(CodedOutputStream output)
Sostituzioni