public final class GenerativeQuestionConfig extends com.google.protobuf.GeneratedMessageV3 implements GenerativeQuestionConfigOrBuilder
Configuration for a single generated question.Protobuf type
google.cloud.retail.v2.GenerativeQuestionConfig| Modifier and Type | Class and Description |
|---|---|
static class |
GenerativeQuestionConfig.Builder
Configuration for a single generated question.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOWED_IN_CONVERSATION_FIELD_NUMBER |
static int |
CATALOG_FIELD_NUMBER |
static int |
EXAMPLE_VALUES_FIELD_NUMBER |
static int |
FACET_FIELD_NUMBER |
static int |
FINAL_QUESTION_FIELD_NUMBER |
static int |
FREQUENCY_FIELD_NUMBER |
static int |
GENERATED_QUESTION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAllowedInConversation()
Optional.
|
String |
getCatalog()
Required.
|
com.google.protobuf.ByteString |
getCatalogBytes()
Required.
|
static GenerativeQuestionConfig |
getDefaultInstance() |
GenerativeQuestionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getExampleValues(int index)
Output only.
|
com.google.protobuf.ByteString |
getExampleValuesBytes(int index)
Output only.
|
int |
getExampleValuesCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getExampleValuesList()
Output only.
|
String |
getFacet()
Required.
|
com.google.protobuf.ByteString |
getFacetBytes()
Required.
|
String |
getFinalQuestion()
Optional.
|
com.google.protobuf.ByteString |
getFinalQuestionBytes()
Optional.
|
float |
getFrequency()
Output only.
|
String |
getGeneratedQuestion()
Output only.
|
com.google.protobuf.ByteString |
getGeneratedQuestionBytes()
Output only.
|
com.google.protobuf.Parser<GenerativeQuestionConfig> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GenerativeQuestionConfig.Builder |
newBuilder() |
static GenerativeQuestionConfig.Builder |
newBuilder(GenerativeQuestionConfig prototype) |
GenerativeQuestionConfig.Builder |
newBuilderForType() |
protected GenerativeQuestionConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GenerativeQuestionConfig |
parseDelimitedFrom(InputStream input) |
static GenerativeQuestionConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerativeQuestionConfig |
parseFrom(byte[] data) |
static GenerativeQuestionConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerativeQuestionConfig |
parseFrom(ByteBuffer data) |
static GenerativeQuestionConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerativeQuestionConfig |
parseFrom(com.google.protobuf.ByteString data) |
static GenerativeQuestionConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerativeQuestionConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GenerativeQuestionConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerativeQuestionConfig |
parseFrom(InputStream input) |
static GenerativeQuestionConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GenerativeQuestionConfig> |
parser() |
GenerativeQuestionConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CATALOG_FIELD_NUMBER
public static final int FACET_FIELD_NUMBER
public static final int GENERATED_QUESTION_FIELD_NUMBER
public static final int FINAL_QUESTION_FIELD_NUMBER
public static final int EXAMPLE_VALUES_FIELD_NUMBER
public static final int FREQUENCY_FIELD_NUMBER
public static final int ALLOWED_IN_CONVERSATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GenerativeQuestionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerativeQuestionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerativeQuestionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerativeQuestionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerativeQuestionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerativeQuestionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerativeQuestionConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static GenerativeQuestionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerativeQuestionConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GenerativeQuestionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerativeQuestionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GenerativeQuestionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GenerativeQuestionConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GenerativeQuestionConfig.Builder newBuilder()
public static GenerativeQuestionConfig.Builder newBuilder(GenerativeQuestionConfig prototype)
public GenerativeQuestionConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GenerativeQuestionConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GenerativeQuestionConfig getDefaultInstance()
public static com.google.protobuf.Parser<GenerativeQuestionConfig> parser()
public com.google.protobuf.Parser<GenerativeQuestionConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GenerativeQuestionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.