Interface GenerativeQuestionConfigOrBuilder (2.56.0)

public interface GenerativeQuestionConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedInConversation()

public abstract boolean getAllowedInConversation()

Optional. Whether the question is asked at serving time.

bool allowed_in_conversation = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The allowedInConversation.

getCatalog()

public abstract String getCatalog()

Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

string catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The catalog.

getCatalogBytes()

public abstract ByteString getCatalogBytes()

Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}

string catalog = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for catalog.

getExampleValues(int index)

public abstract String getExampleValues(int index)

Output only. Values that can be used to answer the question.

repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The exampleValues at the given index.

getExampleValuesBytes(int index)

public abstract ByteString getExampleValuesBytes(int index)

Output only. Values that can be used to answer the question.

repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the exampleValues at the given index.

getExampleValuesCount()

public abstract int getExampleValuesCount()

Output only. Values that can be used to answer the question.

repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of exampleValues.

getExampleValuesList()

public abstract List<String> getExampleValuesList()

Output only. Values that can be used to answer the question.

repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<String>

A list containing the exampleValues.

getFacet()

public abstract String getFacet()

Required. The facet to which the question is associated.

string facet = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The facet.

getFacetBytes()

public abstract ByteString getFacetBytes()

Required. The facet to which the question is associated.

string facet = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for facet.

getFinalQuestion()

public abstract String getFinalQuestion()

Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.

string final_question = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The finalQuestion.

getFinalQuestionBytes()

public abstract ByteString getFinalQuestionBytes()

Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.

string final_question = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for finalQuestion.

getFrequency()

public abstract float getFrequency()

Output only. The ratio of how often a question was asked.

float frequency = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The frequency.

getGeneratedQuestion()

public abstract String getGeneratedQuestion()

Output only. The LLM generated question.

string generated_question = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The generatedQuestion.

getGeneratedQuestionBytes()

public abstract ByteString getGeneratedQuestionBytes()

Output only. The LLM generated question.

string generated_question = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for generatedQuestion.