public static final class GenerativeQuestionConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder> implements GenerativeQuestionConfigOrBuilder
Configuration for a single generated question.Protobuf type
google.cloud.retail.v2.GenerativeQuestionConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerativeQuestionConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerativeQuestionConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerativeQuestionConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder mergeFrom(GenerativeQuestionConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public GenerativeQuestionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerativeQuestionConfig.Builder>IOExceptionpublic String getCatalog()
Required. Resource name of the catalog.
Format: projects/{project}/locations/{location}/catalogs/{catalog}
string catalog = 1 [(.google.api.field_behavior) = REQUIRED];getCatalog in interface GenerativeQuestionConfigOrBuilderpublic com.google.protobuf.ByteString getCatalogBytes()
Required. Resource name of the catalog.
Format: projects/{project}/locations/{location}/catalogs/{catalog}
string catalog = 1 [(.google.api.field_behavior) = REQUIRED];getCatalogBytes in interface GenerativeQuestionConfigOrBuilderpublic GenerativeQuestionConfig.Builder setCatalog(String value)
Required. Resource name of the catalog.
Format: projects/{project}/locations/{location}/catalogs/{catalog}
string catalog = 1 [(.google.api.field_behavior) = REQUIRED];value - The catalog to set.public GenerativeQuestionConfig.Builder clearCatalog()
Required. Resource name of the catalog.
Format: projects/{project}/locations/{location}/catalogs/{catalog}
string catalog = 1 [(.google.api.field_behavior) = REQUIRED];public GenerativeQuestionConfig.Builder setCatalogBytes(com.google.protobuf.ByteString value)
Required. Resource name of the catalog.
Format: projects/{project}/locations/{location}/catalogs/{catalog}
string catalog = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for catalog to set.public String getFacet()
Required. The facet to which the question is associated.
string facet = 2 [(.google.api.field_behavior) = REQUIRED];getFacet in interface GenerativeQuestionConfigOrBuilderpublic com.google.protobuf.ByteString getFacetBytes()
Required. The facet to which the question is associated.
string facet = 2 [(.google.api.field_behavior) = REQUIRED];getFacetBytes in interface GenerativeQuestionConfigOrBuilderpublic GenerativeQuestionConfig.Builder setFacet(String value)
Required. The facet to which the question is associated.
string facet = 2 [(.google.api.field_behavior) = REQUIRED];value - The facet to set.public GenerativeQuestionConfig.Builder clearFacet()
Required. The facet to which the question is associated.
string facet = 2 [(.google.api.field_behavior) = REQUIRED];public GenerativeQuestionConfig.Builder setFacetBytes(com.google.protobuf.ByteString value)
Required. The facet to which the question is associated.
string facet = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for facet to set.public String getGeneratedQuestion()
Output only. The LLM generated question.
string generated_question = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getGeneratedQuestion in interface GenerativeQuestionConfigOrBuilderpublic com.google.protobuf.ByteString getGeneratedQuestionBytes()
Output only. The LLM generated question.
string generated_question = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];getGeneratedQuestionBytes in interface GenerativeQuestionConfigOrBuilderpublic GenerativeQuestionConfig.Builder setGeneratedQuestion(String value)
Output only. The LLM generated question.
string generated_question = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The generatedQuestion to set.public GenerativeQuestionConfig.Builder clearGeneratedQuestion()
Output only. The LLM generated question.
string generated_question = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];public GenerativeQuestionConfig.Builder setGeneratedQuestionBytes(com.google.protobuf.ByteString value)
Output only. The LLM generated question.
string generated_question = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for generatedQuestion to set.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];getFinalQuestion in interface GenerativeQuestionConfigOrBuilderpublic com.google.protobuf.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];getFinalQuestionBytes in interface GenerativeQuestionConfigOrBuilderpublic GenerativeQuestionConfig.Builder setFinalQuestion(String value)
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];value - The finalQuestion to set.public GenerativeQuestionConfig.Builder clearFinalQuestion()
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];public GenerativeQuestionConfig.Builder setFinalQuestionBytes(com.google.protobuf.ByteString value)
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];value - The bytes for finalQuestion to set.public com.google.protobuf.ProtocolStringList getExampleValuesList()
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getExampleValuesList in interface GenerativeQuestionConfigOrBuilderpublic int getExampleValuesCount()
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getExampleValuesCount in interface GenerativeQuestionConfigOrBuilderpublic 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];getExampleValues in interface GenerativeQuestionConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.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];getExampleValuesBytes in interface GenerativeQuestionConfigOrBuilderindex - The index of the value to return.public GenerativeQuestionConfig.Builder setExampleValues(int index, String value)
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];index - The index to set the value at.value - The exampleValues to set.public GenerativeQuestionConfig.Builder addExampleValues(String value)
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The exampleValues to add.public GenerativeQuestionConfig.Builder addAllExampleValues(Iterable<String> values)
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];values - The exampleValues to add.public GenerativeQuestionConfig.Builder clearExampleValues()
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];public GenerativeQuestionConfig.Builder addExampleValuesBytes(com.google.protobuf.ByteString value)
Output only. Values that can be used to answer the question.
repeated string example_values = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes of the exampleValues to add.public float getFrequency()
Output only. The ratio of how often a question was asked.
float frequency = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getFrequency in interface GenerativeQuestionConfigOrBuilderpublic GenerativeQuestionConfig.Builder setFrequency(float value)
Output only. The ratio of how often a question was asked.
float frequency = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The frequency to set.public GenerativeQuestionConfig.Builder clearFrequency()
Output only. The ratio of how often a question was asked.
float frequency = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];public boolean getAllowedInConversation()
Optional. Whether the question is asked at serving time.
bool allowed_in_conversation = 7 [(.google.api.field_behavior) = OPTIONAL];getAllowedInConversation in interface GenerativeQuestionConfigOrBuilderpublic GenerativeQuestionConfig.Builder setAllowedInConversation(boolean value)
Optional. Whether the question is asked at serving time.
bool allowed_in_conversation = 7 [(.google.api.field_behavior) = OPTIONAL];value - The allowedInConversation to set.public GenerativeQuestionConfig.Builder clearAllowedInConversation()
Optional. Whether the question is asked at serving time.
bool allowed_in_conversation = 7 [(.google.api.field_behavior) = OPTIONAL];public final GenerativeQuestionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>public final GenerativeQuestionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerativeQuestionConfig.Builder>Copyright © 2025 Google LLC. All rights reserved.