public static final class WidgetConfig.UiSettings.GenerativeAnswerConfig extends GeneratedMessage implements WidgetConfig.UiSettings.GenerativeAnswerConfigOrBuilder
Describes configuration for generative answer.
Protobuf type
google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int DISABLE_RELATED_QUESTIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER
public static final int IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int IMAGE_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int LANGUAGE_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MAX_REPHRASE_STEPS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MODEL_PROMPT_PREAMBLE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MODEL_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int RESULT_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static WidgetConfig.UiSettings.GenerativeAnswerConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static WidgetConfig.UiSettings.GenerativeAnswerConfig.Builder newBuilder()
public static WidgetConfig.UiSettings.GenerativeAnswerConfig.Builder newBuilder(WidgetConfig.UiSettings.GenerativeAnswerConfig prototype)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseDelimitedFrom(InputStream input)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(ByteString data)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(CodedInputStream input)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(InputStream input)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(ByteBuffer data)
public static WidgetConfig.UiSettings.GenerativeAnswerConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<WidgetConfig.UiSettings.GenerativeAnswerConfig> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public WidgetConfig.UiSettings.GenerativeAnswerConfig getDefaultInstanceForType()
public boolean getDisableRelatedQuestions()
Whether generated answer contains suggested related questions.
bool disable_related_questions = 8;
| Returns |
| Type |
Description |
boolean |
The disableRelatedQuestions.
|
public boolean getIgnoreAdversarialQuery()
Optional. Specifies whether to filter out queries that are adversarial.
bool ignore_adversarial_query = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The ignoreAdversarialQuery.
|
getIgnoreLowRelevantContent()
public boolean getIgnoreLowRelevantContent()
Optional. Specifies whether to filter out queries that are not relevant
to the content.
bool ignore_low_relevant_content = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The ignoreLowRelevantContent.
|
public boolean getIgnoreNonAnswerSeekingQuery()
Optional. Specifies whether to filter out queries that are not
answer-seeking. The default value is false.
No answer is returned if the search query is classified as a
non-answer seeking query. If this field is set to true, we skip
generating answers for non-answer seeking queries and return
fallback messages instead.
bool ignore_non_answer_seeking_query = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The ignoreNonAnswerSeekingQuery.
|
public WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource getImageSource()
Optional. Source of image returned in the answer.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL];
public int getImageSourceValue()
Optional. Source of image returned in the answer.
.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for imageSource.
|
public String getLanguageCode()
Language code for Summary. Use language tags defined by
BCP47.
Note: This is an experimental feature.
string language_code = 7;
| Returns |
| Type |
Description |
String |
The languageCode.
|
public ByteString getLanguageCodeBytes()
Language code for Summary. Use language tags defined by
BCP47.
Note: This is an experimental feature.
string language_code = 7;
| Returns |
| Type |
Description |
ByteString |
The bytes for languageCode.
|
public int getMaxRephraseSteps()
Max rephrase steps.
The max number is 5 steps.
If not set or set to < 1, it will be set to 1 by default.
int32 max_rephrase_steps = 6;
| Returns |
| Type |
Description |
int |
The maxRephraseSteps.
|
public String getModelPromptPreamble()
Text at the beginning of the prompt that instructs the model that
generates the answer.
string model_prompt_preamble = 5;
| Returns |
| Type |
Description |
String |
The modelPromptPreamble.
|
public ByteString getModelPromptPreambleBytes()
Text at the beginning of the prompt that instructs the model that
generates the answer.
string model_prompt_preamble = 5;
| Returns |
| Type |
Description |
ByteString |
The bytes for modelPromptPreamble.
|
public String getModelVersion()
The model version used to generate the answer.
string model_version = 4;
| Returns |
| Type |
Description |
String |
The modelVersion.
|
public ByteString getModelVersionBytes()
The model version used to generate the answer.
string model_version = 4;
| Returns |
| Type |
Description |
ByteString |
The bytes for modelVersion.
|
public Parser<WidgetConfig.UiSettings.GenerativeAnswerConfig> getParserForType()
Overrides
public int getResultCount()
The number of top results to generate the answer from. Up to 10.
int32 result_count = 3;
| Returns |
| Type |
Description |
int |
The resultCount.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public WidgetConfig.UiSettings.GenerativeAnswerConfig.Builder newBuilderForType()
protected WidgetConfig.UiSettings.GenerativeAnswerConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public WidgetConfig.UiSettings.GenerativeAnswerConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides