Send feedback
Class GenerativeQuestionConfig (2.56.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.56.0 keyboard_arrow_down
public final class GenerativeQuestionConfig extends GeneratedMessageV3 implements GenerativeQuestionConfigOrBuilder
Configuration for a single generated question.
Protobuf type google.cloud.retail.v2.GenerativeQuestionConfig
Inherited Members
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)
Static Fields
ALLOWED_IN_CONVERSATION_FIELD_NUMBER
public static final int ALLOWED_IN_CONVERSATION_FIELD_NUMBER
Field Value
Type
Description
int
CATALOG_FIELD_NUMBER
public static final int CATALOG_FIELD_NUMBER
Field Value
Type
Description
int
EXAMPLE_VALUES_FIELD_NUMBER
public static final int EXAMPLE_VALUES_FIELD_NUMBER
Field Value
Type
Description
int
FACET_FIELD_NUMBER
public static final int FACET_FIELD_NUMBER
Field Value
Type
Description
int
FINAL_QUESTION_FIELD_NUMBER
public static final int FINAL_QUESTION_FIELD_NUMBER
Field Value
Type
Description
int
FREQUENCY_FIELD_NUMBER
public static final int FREQUENCY_FIELD_NUMBER
Field Value
Type
Description
int
GENERATED_QUESTION_FIELD_NUMBER
public static final int GENERATED_QUESTION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static GenerativeQuestionConfig getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static GenerativeQuestionConfig . Builder newBuilder ()
newBuilder(GenerativeQuestionConfig prototype)
public static GenerativeQuestionConfig . Builder newBuilder ( GenerativeQuestionConfig prototype )
public static GenerativeQuestionConfig parseDelimitedFrom ( InputStream input )
public static GenerativeQuestionConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static GenerativeQuestionConfig parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GenerativeQuestionConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static GenerativeQuestionConfig parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GenerativeQuestionConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static GenerativeQuestionConfig parseFrom ( CodedInputStream input )
public static GenerativeQuestionConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static GenerativeQuestionConfig parseFrom ( InputStream input )
public static GenerativeQuestionConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static GenerativeQuestionConfig parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GenerativeQuestionConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<GenerativeQuestionConfig> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAllowedInConversation()
public 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 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 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.
getDefaultInstanceForType()
public GenerativeQuestionConfig getDefaultInstanceForType ()
getExampleValues(int index)
public 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 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 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 ProtocolStringList getExampleValuesList ()
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
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 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 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 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 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 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 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.
getParserForType()
public Parser<GenerativeQuestionConfig> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public GenerativeQuestionConfig . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GenerativeQuestionConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public GenerativeQuestionConfig . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]