Class KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder (4.105.0)

public static final class KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder extends GeneratedMessage.Builder<KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder> implements KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder

Debug information and model metadata for query generation.

Protobuf type google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo build()
Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo

buildPartial()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo buildPartial()
Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo

clear()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clear()
Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder
Overrides

clearCandidatesTokenCount()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clearCandidatesTokenCount()

The total number of tokens in the generated candidates.

int32 candidates_token_count = 2;

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

clearPromptTokenCount()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clearPromptTokenCount()

The total number of tokens in the prompt.

int32 prompt_token_count = 1;

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

clearSimilarityToLastQuery()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clearSimilarityToLastQuery()

The similarity score of the suggested query to the last suggested query.

float similarity_to_last_query = 6;

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

clearSimilarityToLastQueryThreshold()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clearSimilarityToLastQueryThreshold()

The similarity threshold used to filter out queries similar to the last suggestion.

float similarity_to_last_query_threshold = 7;

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

clearThinkingBudgetTokens()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clearThinkingBudgetTokens()

The thinking budget (in number of tokens) configured for the Gemini model.

int32 thinking_budget_tokens = 5;

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

clearThinkingLevel()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clearThinkingLevel()

The thinking level configured for the Gemini model.

string thinking_level = 4;

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

clearTotalTokenCount()

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder clearTotalTokenCount()

The total number of tokens for the entire request.

int32 total_token_count = 3;

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPromptTokenCount()

public int getPromptTokenCount()

The total number of tokens in the prompt.

int32 prompt_token_count = 1;

Returns
Type Description
int

The promptTokenCount.

getSimilarityToLastQuery()

public float getSimilarityToLastQuery()

The similarity score of the suggested query to the last suggested query.

float similarity_to_last_query = 6;

Returns
Type Description
float

The similarityToLastQuery.

getSimilarityToLastQueryThreshold()

public float getSimilarityToLastQueryThreshold()

The similarity threshold used to filter out queries similar to the last suggestion.

float similarity_to_last_query_threshold = 7;

Returns
Type Description
float

The similarityToLastQueryThreshold.

getThinkingBudgetTokens()

public int getThinkingBudgetTokens()

The thinking budget (in number of tokens) configured for the Gemini model.

int32 thinking_budget_tokens = 5;

Returns
Type Description
int

The thinkingBudgetTokens.

getThinkingLevel()

public String getThinkingLevel()

The thinking level configured for the Gemini model.

string thinking_level = 4;

Returns
Type Description
String

The thinkingLevel.

getThinkingLevelBytes()

public ByteString getThinkingLevelBytes()

The thinking level configured for the Gemini model.

string thinking_level = 4;

Returns
Type Description
ByteString

The bytes for thinkingLevel.

getTotalTokenCount()

public int getTotalTokenCount()

The total number of tokens for the entire request.

int32 total_token_count = 3;

Returns
Type Description
int

The totalTokenCount.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder mergeFrom(KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other)
Parameter
Name Description
other KnowledgeAssistDebugInfo.QueryGenerationDebugInfo
Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder
Overrides

setCandidatesTokenCount(int value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setCandidatesTokenCount(int value)

The total number of tokens in the generated candidates.

int32 candidates_token_count = 2;

Parameter
Name Description
value int

The candidatesTokenCount to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

setPromptTokenCount(int value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setPromptTokenCount(int value)

The total number of tokens in the prompt.

int32 prompt_token_count = 1;

Parameter
Name Description
value int

The promptTokenCount to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

setSimilarityToLastQuery(float value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setSimilarityToLastQuery(float value)

The similarity score of the suggested query to the last suggested query.

float similarity_to_last_query = 6;

Parameter
Name Description
value float

The similarityToLastQuery to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

setSimilarityToLastQueryThreshold(float value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setSimilarityToLastQueryThreshold(float value)

The similarity threshold used to filter out queries similar to the last suggestion.

float similarity_to_last_query_threshold = 7;

Parameter
Name Description
value float

The similarityToLastQueryThreshold to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

setThinkingBudgetTokens(int value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setThinkingBudgetTokens(int value)

The thinking budget (in number of tokens) configured for the Gemini model.

int32 thinking_budget_tokens = 5;

Parameter
Name Description
value int

The thinkingBudgetTokens to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

setThinkingLevel(String value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setThinkingLevel(String value)

The thinking level configured for the Gemini model.

string thinking_level = 4;

Parameter
Name Description
value String

The thinkingLevel to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

setThinkingLevelBytes(ByteString value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setThinkingLevelBytes(ByteString value)

The thinking level configured for the Gemini model.

string thinking_level = 4;

Parameter
Name Description
value ByteString

The bytes for thinkingLevel to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.

setTotalTokenCount(int value)

public KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder setTotalTokenCount(int value)

The total number of tokens for the entire request.

int32 total_token_count = 3;

Parameter
Name Description
value int

The totalTokenCount to set.

Returns
Type Description
KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder

This builder for chaining.