public static final class KnowledgeAssistDebugInfo.QueryGenerationDebugInfo extends GeneratedMessage implements KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilderToken usage metadata for query generation.
Protobuf type
google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > KnowledgeAssistDebugInfo.QueryGenerationDebugInfoStatic Fields
CANDIDATES_TOKEN_COUNT_FIELD_NUMBER
public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PROMPT_TOKEN_COUNT_FIELD_NUMBER
public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TOTAL_TOKEN_COUNT_FIELD_NUMBER
public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder |
|
newBuilder(KnowledgeAssistDebugInfo.QueryGenerationDebugInfo prototype)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder newBuilder(KnowledgeAssistDebugInfo.QueryGenerationDebugInfo prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder |
|
parseDelimitedFrom(InputStream input)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAssistDebugInfo.QueryGenerationDebugInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<KnowledgeAssistDebugInfo.QueryGenerationDebugInfo> parser()| Returns | |
|---|---|
| Type | Description |
Parser<QueryGenerationDebugInfo> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCandidatesTokenCount()
public int getCandidatesTokenCount()The total number of tokens in the generated candidates.
int32 candidates_token_count = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The candidatesTokenCount. |
getDefaultInstanceForType()
public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo |
|
getParserForType()
public Parser<KnowledgeAssistDebugInfo.QueryGenerationDebugInfo> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<QueryGenerationDebugInfo> |
|
getPromptTokenCount()
public int getPromptTokenCount()The total number of tokens in the prompt.
int32 prompt_token_count = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The promptTokenCount. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getTotalTokenCount()
public int getTotalTokenCount()The total number of tokens for the entire request.
int32 total_token_count = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The totalTokenCount. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder |
|
toBuilder()
public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|