public static final class AnswerQueryRequest.AnswerGenerationSpec extends com.google.protobuf.GeneratedMessageV3 implements AnswerQueryRequest.AnswerGenerationSpecOrBuilder
Answer generation specification.Protobuf type
google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec| Modifier and Type | Class and Description |
|---|---|
static class |
AnswerQueryRequest.AnswerGenerationSpec.Builder
Answer generation specification.
|
static class |
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec
Answer Generation Model specification.
|
static interface |
AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder |
static class |
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec
Answer generation prompt specification.
|
static interface |
AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder |
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 |
ANSWER_LANGUAGE_CODE_FIELD_NUMBER |
static int |
IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER |
static int |
IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER |
static int |
IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER |
static int |
INCLUDE_CITATIONS_FIELD_NUMBER |
static int |
MODEL_SPEC_FIELD_NUMBER |
static int |
PROMPT_SPEC_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAnswerLanguageCode()
Language code for Answer.
|
com.google.protobuf.ByteString |
getAnswerLanguageCodeBytes()
Language code for Answer.
|
static AnswerQueryRequest.AnswerGenerationSpec |
getDefaultInstance() |
AnswerQueryRequest.AnswerGenerationSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getIgnoreAdversarialQuery()
Specifies whether to filter out adversarial queries.
|
boolean |
getIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance.
|
boolean |
getIgnoreNonAnswerSeekingQuery()
Specifies whether to filter out queries that are not answer-seeking.
|
boolean |
getIncludeCitations()
Specifies whether to include citation metadata in the answer.
|
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec |
getModelSpec()
Answer generation model specification.
|
AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder |
getModelSpecOrBuilder()
Answer generation model specification.
|
com.google.protobuf.Parser<AnswerQueryRequest.AnswerGenerationSpec> |
getParserForType() |
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec |
getPromptSpec()
Answer generation prompt specification.
|
AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder |
getPromptSpecOrBuilder()
Answer generation prompt specification.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance.
|
boolean |
hasModelSpec()
Answer generation model specification.
|
boolean |
hasPromptSpec()
Answer generation prompt specification.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnswerQueryRequest.AnswerGenerationSpec.Builder |
newBuilder() |
static AnswerQueryRequest.AnswerGenerationSpec.Builder |
newBuilder(AnswerQueryRequest.AnswerGenerationSpec prototype) |
AnswerQueryRequest.AnswerGenerationSpec.Builder |
newBuilderForType() |
protected AnswerQueryRequest.AnswerGenerationSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseDelimitedFrom(InputStream input) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(byte[] data) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(ByteBuffer data) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(com.google.protobuf.ByteString data) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(InputStream input) |
static AnswerQueryRequest.AnswerGenerationSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AnswerQueryRequest.AnswerGenerationSpec> |
parser() |
AnswerQueryRequest.AnswerGenerationSpec.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 MODEL_SPEC_FIELD_NUMBER
public static final int PROMPT_SPEC_FIELD_NUMBER
public static final int INCLUDE_CITATIONS_FIELD_NUMBER
public static final int ANSWER_LANGUAGE_CODE_FIELD_NUMBER
public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER
public static final int IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER
public static final int IGNORE_LOW_RELEVANT_CONTENT_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 boolean hasModelSpec()
Answer generation model specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
hasModelSpec in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic AnswerQueryRequest.AnswerGenerationSpec.ModelSpec getModelSpec()
Answer generation model specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
getModelSpec in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder getModelSpecOrBuilder()
Answer generation model specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
getModelSpecOrBuilder in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic boolean hasPromptSpec()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
hasPromptSpec in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic AnswerQueryRequest.AnswerGenerationSpec.PromptSpec getPromptSpec()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
getPromptSpec in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder getPromptSpecOrBuilder()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
getPromptSpecOrBuilder in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic boolean getIncludeCitations()
Specifies whether to include citation metadata in the answer. The default value is `false`.
bool include_citations = 3;getIncludeCitations in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic String getAnswerLanguageCode()
Language code for Answer. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.
string answer_language_code = 4;getAnswerLanguageCode in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic com.google.protobuf.ByteString getAnswerLanguageCodeBytes()
Language code for Answer. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.
string answer_language_code = 4;getAnswerLanguageCodeBytes in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic boolean getIgnoreAdversarialQuery()
Specifies whether to filter out adversarial queries. The default value is `false`. Google employs search-query classification to detect adversarial queries. No answer is returned if the search query is classified as an adversarial query. For example, a user might ask a question regarding negative comments about the company or submit a query designed to generate unsafe, policy-violating output. If this field is set to `true`, we skip generating answers for adversarial queries and return fallback messages instead.
bool ignore_adversarial_query = 5;getIgnoreAdversarialQuery in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic boolean getIgnoreNonAnswerSeekingQuery()
Specifies whether to filter out queries that are not answer-seeking. The default value is `false`. Google employs search-query classification to detect answer-seeking queries. 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 = 6;getIgnoreNonAnswerSeekingQuery in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic boolean hasIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance. If this field is set to `false`, all search results are used regardless of relevance to generate answers. If set to `true` or unset, the behavior will be determined automatically by the service.
optional bool ignore_low_relevant_content = 7;hasIgnoreLowRelevantContent in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic boolean getIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance. If this field is set to `false`, all search results are used regardless of relevance to generate answers. If set to `true` or unset, the behavior will be determined automatically by the service.
optional bool ignore_low_relevant_content = 7;getIgnoreLowRelevantContent in interface AnswerQueryRequest.AnswerGenerationSpecOrBuilderpublic 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 AnswerQueryRequest.AnswerGenerationSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AnswerQueryRequest.AnswerGenerationSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AnswerQueryRequest.AnswerGenerationSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AnswerQueryRequest.AnswerGenerationSpec.Builder newBuilder()
public static AnswerQueryRequest.AnswerGenerationSpec.Builder newBuilder(AnswerQueryRequest.AnswerGenerationSpec prototype)
public AnswerQueryRequest.AnswerGenerationSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AnswerQueryRequest.AnswerGenerationSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AnswerQueryRequest.AnswerGenerationSpec getDefaultInstance()
public static com.google.protobuf.Parser<AnswerQueryRequest.AnswerGenerationSpec> parser()
public com.google.protobuf.Parser<AnswerQueryRequest.AnswerGenerationSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AnswerQueryRequest.AnswerGenerationSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.