blob: 389c4ea40887f58874bead72fd90ec0725620b6b [file] [edit]
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v6.33.2
// source: google/cloud/discoveryengine/v1/answer.proto
package discoveryenginepb
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Enumeration of the state of the answer generation.
type Answer_State int32
const (
// Unknown.
Answer_STATE_UNSPECIFIED Answer_State = 0
// Answer generation is currently in progress.
Answer_IN_PROGRESS Answer_State = 1
// Answer generation currently failed.
Answer_FAILED Answer_State = 2
// Answer generation has succeeded.
Answer_SUCCEEDED Answer_State = 3
// Answer generation is currently in progress.
Answer_STREAMING Answer_State = 4
)
// Enum value maps for Answer_State.
var (
Answer_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "IN_PROGRESS",
2: "FAILED",
3: "SUCCEEDED",
4: "STREAMING",
}
Answer_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"IN_PROGRESS": 1,
"FAILED": 2,
"SUCCEEDED": 3,
"STREAMING": 4,
}
)
func (x Answer_State) Enum() *Answer_State {
p := new(Answer_State)
*p = x
return p
}
func (x Answer_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Answer_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[0].Descriptor()
}
func (Answer_State) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[0]
}
func (x Answer_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Answer_State.Descriptor instead.
func (Answer_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 0}
}
// An enum for answer skipped reasons.
type Answer_AnswerSkippedReason int32
const (
// Default value. The answer skipped reason is not specified.
Answer_ANSWER_SKIPPED_REASON_UNSPECIFIED Answer_AnswerSkippedReason = 0
// The adversarial query ignored case.
Answer_ADVERSARIAL_QUERY_IGNORED Answer_AnswerSkippedReason = 1
// The non-answer seeking query ignored case
//
// Google skips the answer if the query is chit chat.
Answer_NON_ANSWER_SEEKING_QUERY_IGNORED Answer_AnswerSkippedReason = 2
// The out-of-domain query ignored case.
//
// Google skips the answer if there are no high-relevance search results.
Answer_OUT_OF_DOMAIN_QUERY_IGNORED Answer_AnswerSkippedReason = 3
// The potential policy violation case.
//
// Google skips the answer if there is a potential policy violation
// detected. This includes content that may be violent or toxic.
Answer_POTENTIAL_POLICY_VIOLATION Answer_AnswerSkippedReason = 4
// The no relevant content case.
//
// Google skips the answer if there is no relevant content in the
// retrieved search results.
Answer_NO_RELEVANT_CONTENT Answer_AnswerSkippedReason = 5
// The jail-breaking query ignored case.
//
// For example, "Reply in the tone of a competing company's CEO".
// Google skips the answer if the query is classified as a jail-breaking
// query.
Answer_JAIL_BREAKING_QUERY_IGNORED Answer_AnswerSkippedReason = 6
// The customer policy violation case.
//
// Google skips the summary if there is a customer policy violation
// detected. The policy is defined by the customer.
Answer_CUSTOMER_POLICY_VIOLATION Answer_AnswerSkippedReason = 7
// The non-answer seeking query ignored case.
//
// Google skips the answer if the query doesn't have clear intent.
Answer_NON_ANSWER_SEEKING_QUERY_IGNORED_V2 Answer_AnswerSkippedReason = 8
// The low-grounded answer case.
//
// Google skips the answer if a well grounded answer was unable to be
// generated.
Answer_LOW_GROUNDED_ANSWER Answer_AnswerSkippedReason = 9
// The user defined query classification ignored case.
//
// Google skips the answer if the query is classified as a user defined
// query classification.
Answer_USER_DEFINED_CLASSIFICATION_QUERY_IGNORED Answer_AnswerSkippedReason = 10
// The unhelpful answer case.
//
// Google skips the answer if the answer is not helpful. This can be due to
// a variety of factors, including but not limited to: the query is not
// answerable, the answer is not relevant to the query, or the answer is
// not well-formatted.
Answer_UNHELPFUL_ANSWER Answer_AnswerSkippedReason = 11
)
// Enum value maps for Answer_AnswerSkippedReason.
var (
Answer_AnswerSkippedReason_name = map[int32]string{
0: "ANSWER_SKIPPED_REASON_UNSPECIFIED",
1: "ADVERSARIAL_QUERY_IGNORED",
2: "NON_ANSWER_SEEKING_QUERY_IGNORED",
3: "OUT_OF_DOMAIN_QUERY_IGNORED",
4: "POTENTIAL_POLICY_VIOLATION",
5: "NO_RELEVANT_CONTENT",
6: "JAIL_BREAKING_QUERY_IGNORED",
7: "CUSTOMER_POLICY_VIOLATION",
8: "NON_ANSWER_SEEKING_QUERY_IGNORED_V2",
9: "LOW_GROUNDED_ANSWER",
10: "USER_DEFINED_CLASSIFICATION_QUERY_IGNORED",
11: "UNHELPFUL_ANSWER",
}
Answer_AnswerSkippedReason_value = map[string]int32{
"ANSWER_SKIPPED_REASON_UNSPECIFIED": 0,
"ADVERSARIAL_QUERY_IGNORED": 1,
"NON_ANSWER_SEEKING_QUERY_IGNORED": 2,
"OUT_OF_DOMAIN_QUERY_IGNORED": 3,
"POTENTIAL_POLICY_VIOLATION": 4,
"NO_RELEVANT_CONTENT": 5,
"JAIL_BREAKING_QUERY_IGNORED": 6,
"CUSTOMER_POLICY_VIOLATION": 7,
"NON_ANSWER_SEEKING_QUERY_IGNORED_V2": 8,
"LOW_GROUNDED_ANSWER": 9,
"USER_DEFINED_CLASSIFICATION_QUERY_IGNORED": 10,
"UNHELPFUL_ANSWER": 11,
}
)
func (x Answer_AnswerSkippedReason) Enum() *Answer_AnswerSkippedReason {
p := new(Answer_AnswerSkippedReason)
*p = x
return p
}
func (x Answer_AnswerSkippedReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Answer_AnswerSkippedReason) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[1].Descriptor()
}
func (Answer_AnswerSkippedReason) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[1]
}
func (x Answer_AnswerSkippedReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Answer_AnswerSkippedReason.Descriptor instead.
func (Answer_AnswerSkippedReason) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 1}
}
// Enumeration of the state of the step.
type Answer_Step_State int32
const (
// Unknown.
Answer_Step_STATE_UNSPECIFIED Answer_Step_State = 0
// Step is currently in progress.
Answer_Step_IN_PROGRESS Answer_Step_State = 1
// Step currently failed.
Answer_Step_FAILED Answer_Step_State = 2
// Step has succeeded.
Answer_Step_SUCCEEDED Answer_Step_State = 3
)
// Enum value maps for Answer_Step_State.
var (
Answer_Step_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "IN_PROGRESS",
2: "FAILED",
3: "SUCCEEDED",
}
Answer_Step_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"IN_PROGRESS": 1,
"FAILED": 2,
"SUCCEEDED": 3,
}
)
func (x Answer_Step_State) Enum() *Answer_Step_State {
p := new(Answer_Step_State)
*p = x
return p
}
func (x Answer_Step_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Answer_Step_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[2].Descriptor()
}
func (Answer_Step_State) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[2]
}
func (x Answer_Step_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Answer_Step_State.Descriptor instead.
func (Answer_Step_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4, 0}
}
// Query classification types.
type Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type int32
const (
// Unspecified query classification type.
Answer_QueryUnderstandingInfo_QueryClassificationInfo_TYPE_UNSPECIFIED Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type = 0
// Adversarial query classification type.
Answer_QueryUnderstandingInfo_QueryClassificationInfo_ADVERSARIAL_QUERY Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type = 1
// Non-answer-seeking query classification type, for chit chat.
Answer_QueryUnderstandingInfo_QueryClassificationInfo_NON_ANSWER_SEEKING_QUERY Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type = 2
// Jail-breaking query classification type.
Answer_QueryUnderstandingInfo_QueryClassificationInfo_JAIL_BREAKING_QUERY Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type = 3
// Non-answer-seeking query classification type, for no clear intent.
Answer_QueryUnderstandingInfo_QueryClassificationInfo_NON_ANSWER_SEEKING_QUERY_V2 Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type = 4
// User defined query classification type.
Answer_QueryUnderstandingInfo_QueryClassificationInfo_USER_DEFINED_CLASSIFICATION_QUERY Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type = 5
)
// Enum value maps for Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type.
var (
Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "ADVERSARIAL_QUERY",
2: "NON_ANSWER_SEEKING_QUERY",
3: "JAIL_BREAKING_QUERY",
4: "NON_ANSWER_SEEKING_QUERY_V2",
5: "USER_DEFINED_CLASSIFICATION_QUERY",
}
Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"ADVERSARIAL_QUERY": 1,
"NON_ANSWER_SEEKING_QUERY": 2,
"JAIL_BREAKING_QUERY": 3,
"NON_ANSWER_SEEKING_QUERY_V2": 4,
"USER_DEFINED_CLASSIFICATION_QUERY": 5,
}
)
func (x Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type) Enum() *Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type {
p := new(Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type)
*p = x
return p
}
func (x Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[3].Descriptor()
}
func (Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type) Type() protoreflect.EnumType {
return &file_google_cloud_discoveryengine_v1_answer_proto_enumTypes[3]
}
func (x Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type.Descriptor instead.
func (Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 5, 0, 0}
}
// Defines an answer.
type Answer struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Immutable. Fully qualified name
// `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The state of the answer generation.
State Answer_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.discoveryengine.v1.Answer_State" json:"state,omitempty"`
// The textual answer.
AnswerText string `protobuf:"bytes,3,opt,name=answer_text,json=answerText,proto3" json:"answer_text,omitempty"`
// A score in the range of [0, 1] describing how grounded the answer is by the
// reference chunks.
GroundingScore *float64 `protobuf:"fixed64,12,opt,name=grounding_score,json=groundingScore,proto3,oneof" json:"grounding_score,omitempty"`
// Citations.
Citations []*Answer_Citation `protobuf:"bytes,4,rep,name=citations,proto3" json:"citations,omitempty"`
// Optional. Grounding supports.
GroundingSupports []*Answer_GroundingSupport `protobuf:"bytes,13,rep,name=grounding_supports,json=groundingSupports,proto3" json:"grounding_supports,omitempty"`
// References.
References []*Answer_Reference `protobuf:"bytes,5,rep,name=references,proto3" json:"references,omitempty"`
// Suggested related questions.
RelatedQuestions []string `protobuf:"bytes,6,rep,name=related_questions,json=relatedQuestions,proto3" json:"related_questions,omitempty"`
// Answer generation steps.
Steps []*Answer_Step `protobuf:"bytes,7,rep,name=steps,proto3" json:"steps,omitempty"`
// Query understanding information.
QueryUnderstandingInfo *Answer_QueryUnderstandingInfo `protobuf:"bytes,10,opt,name=query_understanding_info,json=queryUnderstandingInfo,proto3" json:"query_understanding_info,omitempty"`
// Additional answer-skipped reasons. This provides the reason for ignored
// cases. If nothing is skipped, this field is not set.
AnswerSkippedReasons []Answer_AnswerSkippedReason `protobuf:"varint,11,rep,packed,name=answer_skipped_reasons,json=answerSkippedReasons,proto3,enum=google.cloud.discoveryengine.v1.Answer_AnswerSkippedReason" json:"answer_skipped_reasons,omitempty"`
// Output only. Answer creation timestamp.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Answer completed timestamp.
CompleteTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=complete_time,json=completeTime,proto3" json:"complete_time,omitempty"`
// Optional. Safety ratings.
SafetyRatings []*SafetyRating `protobuf:"bytes,14,rep,name=safety_ratings,json=safetyRatings,proto3" json:"safety_ratings,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer) Reset() {
*x = Answer{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer) ProtoMessage() {}
func (x *Answer) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer.ProtoReflect.Descriptor instead.
func (*Answer) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0}
}
func (x *Answer) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Answer) GetState() Answer_State {
if x != nil {
return x.State
}
return Answer_STATE_UNSPECIFIED
}
func (x *Answer) GetAnswerText() string {
if x != nil {
return x.AnswerText
}
return ""
}
func (x *Answer) GetGroundingScore() float64 {
if x != nil && x.GroundingScore != nil {
return *x.GroundingScore
}
return 0
}
func (x *Answer) GetCitations() []*Answer_Citation {
if x != nil {
return x.Citations
}
return nil
}
func (x *Answer) GetGroundingSupports() []*Answer_GroundingSupport {
if x != nil {
return x.GroundingSupports
}
return nil
}
func (x *Answer) GetReferences() []*Answer_Reference {
if x != nil {
return x.References
}
return nil
}
func (x *Answer) GetRelatedQuestions() []string {
if x != nil {
return x.RelatedQuestions
}
return nil
}
func (x *Answer) GetSteps() []*Answer_Step {
if x != nil {
return x.Steps
}
return nil
}
func (x *Answer) GetQueryUnderstandingInfo() *Answer_QueryUnderstandingInfo {
if x != nil {
return x.QueryUnderstandingInfo
}
return nil
}
func (x *Answer) GetAnswerSkippedReasons() []Answer_AnswerSkippedReason {
if x != nil {
return x.AnswerSkippedReasons
}
return nil
}
func (x *Answer) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Answer) GetCompleteTime() *timestamppb.Timestamp {
if x != nil {
return x.CompleteTime
}
return nil
}
func (x *Answer) GetSafetyRatings() []*SafetyRating {
if x != nil {
return x.SafetyRatings
}
return nil
}
// Citation info for a segment.
type Answer_Citation struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Index indicates the start of the segment, measured in bytes (UTF-8
// unicode). If there are multi-byte characters,such as non-ASCII
// characters, the index measurement is longer than the string length.
StartIndex int64 `protobuf:"varint,1,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
// End of the attributed segment, exclusive. Measured in bytes (UTF-8
// unicode). If there are multi-byte characters,such as non-ASCII
// characters, the index measurement is longer than the string length.
EndIndex int64 `protobuf:"varint,2,opt,name=end_index,json=endIndex,proto3" json:"end_index,omitempty"`
// Citation sources for the attributed segment.
Sources []*Answer_CitationSource `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Citation) Reset() {
*x = Answer_Citation{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Citation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Citation) ProtoMessage() {}
func (x *Answer_Citation) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Citation.ProtoReflect.Descriptor instead.
func (*Answer_Citation) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Answer_Citation) GetStartIndex() int64 {
if x != nil {
return x.StartIndex
}
return 0
}
func (x *Answer_Citation) GetEndIndex() int64 {
if x != nil {
return x.EndIndex
}
return 0
}
func (x *Answer_Citation) GetSources() []*Answer_CitationSource {
if x != nil {
return x.Sources
}
return nil
}
// Citation source.
type Answer_CitationSource struct {
state protoimpl.MessageState `protogen:"open.v1"`
// ID of the citation source.
ReferenceId string `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_CitationSource) Reset() {
*x = Answer_CitationSource{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_CitationSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_CitationSource) ProtoMessage() {}
func (x *Answer_CitationSource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_CitationSource.ProtoReflect.Descriptor instead.
func (*Answer_CitationSource) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 1}
}
func (x *Answer_CitationSource) GetReferenceId() string {
if x != nil {
return x.ReferenceId
}
return ""
}
// Grounding support for a claim in `answer_text`.
type Answer_GroundingSupport struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. Index indicates the start of the claim, measured in bytes
// (UTF-8 unicode).
StartIndex int64 `protobuf:"varint,1,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
// Required. End of the claim, exclusive.
EndIndex int64 `protobuf:"varint,2,opt,name=end_index,json=endIndex,proto3" json:"end_index,omitempty"`
// A score in the range of [0, 1] describing how grounded is a specific
// claim by the references.
// Higher value means that the claim is better supported by the reference
// chunks.
GroundingScore *float64 `protobuf:"fixed64,3,opt,name=grounding_score,json=groundingScore,proto3,oneof" json:"grounding_score,omitempty"`
// Indicates that this claim required grounding check. When the
// system decided this claim didn't require attribution/grounding check,
// this field is set to false. In that case, no grounding check was
// done for the claim and therefore `grounding_score`, `sources` is not
// returned.
GroundingCheckRequired *bool `protobuf:"varint,4,opt,name=grounding_check_required,json=groundingCheckRequired,proto3,oneof" json:"grounding_check_required,omitempty"`
// Optional. Citation sources for the claim.
Sources []*Answer_CitationSource `protobuf:"bytes,5,rep,name=sources,proto3" json:"sources,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_GroundingSupport) Reset() {
*x = Answer_GroundingSupport{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_GroundingSupport) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_GroundingSupport) ProtoMessage() {}
func (x *Answer_GroundingSupport) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_GroundingSupport.ProtoReflect.Descriptor instead.
func (*Answer_GroundingSupport) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 2}
}
func (x *Answer_GroundingSupport) GetStartIndex() int64 {
if x != nil {
return x.StartIndex
}
return 0
}
func (x *Answer_GroundingSupport) GetEndIndex() int64 {
if x != nil {
return x.EndIndex
}
return 0
}
func (x *Answer_GroundingSupport) GetGroundingScore() float64 {
if x != nil && x.GroundingScore != nil {
return *x.GroundingScore
}
return 0
}
func (x *Answer_GroundingSupport) GetGroundingCheckRequired() bool {
if x != nil && x.GroundingCheckRequired != nil {
return *x.GroundingCheckRequired
}
return false
}
func (x *Answer_GroundingSupport) GetSources() []*Answer_CitationSource {
if x != nil {
return x.Sources
}
return nil
}
// Reference.
type Answer_Reference struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Search result content.
//
// Types that are valid to be assigned to Content:
//
// *Answer_Reference_UnstructuredDocumentInfo_
// *Answer_Reference_ChunkInfo_
// *Answer_Reference_StructuredDocumentInfo_
Content isAnswer_Reference_Content `protobuf_oneof:"content"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Reference) Reset() {
*x = Answer_Reference{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Reference) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Reference) ProtoMessage() {}
func (x *Answer_Reference) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Reference.ProtoReflect.Descriptor instead.
func (*Answer_Reference) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 3}
}
func (x *Answer_Reference) GetContent() isAnswer_Reference_Content {
if x != nil {
return x.Content
}
return nil
}
func (x *Answer_Reference) GetUnstructuredDocumentInfo() *Answer_Reference_UnstructuredDocumentInfo {
if x != nil {
if x, ok := x.Content.(*Answer_Reference_UnstructuredDocumentInfo_); ok {
return x.UnstructuredDocumentInfo
}
}
return nil
}
func (x *Answer_Reference) GetChunkInfo() *Answer_Reference_ChunkInfo {
if x != nil {
if x, ok := x.Content.(*Answer_Reference_ChunkInfo_); ok {
return x.ChunkInfo
}
}
return nil
}
func (x *Answer_Reference) GetStructuredDocumentInfo() *Answer_Reference_StructuredDocumentInfo {
if x != nil {
if x, ok := x.Content.(*Answer_Reference_StructuredDocumentInfo_); ok {
return x.StructuredDocumentInfo
}
}
return nil
}
type isAnswer_Reference_Content interface {
isAnswer_Reference_Content()
}
type Answer_Reference_UnstructuredDocumentInfo_ struct {
// Unstructured document information.
UnstructuredDocumentInfo *Answer_Reference_UnstructuredDocumentInfo `protobuf:"bytes,1,opt,name=unstructured_document_info,json=unstructuredDocumentInfo,proto3,oneof"`
}
type Answer_Reference_ChunkInfo_ struct {
// Chunk information.
ChunkInfo *Answer_Reference_ChunkInfo `protobuf:"bytes,2,opt,name=chunk_info,json=chunkInfo,proto3,oneof"`
}
type Answer_Reference_StructuredDocumentInfo_ struct {
// Structured document information.
StructuredDocumentInfo *Answer_Reference_StructuredDocumentInfo `protobuf:"bytes,3,opt,name=structured_document_info,json=structuredDocumentInfo,proto3,oneof"`
}
func (*Answer_Reference_UnstructuredDocumentInfo_) isAnswer_Reference_Content() {}
func (*Answer_Reference_ChunkInfo_) isAnswer_Reference_Content() {}
func (*Answer_Reference_StructuredDocumentInfo_) isAnswer_Reference_Content() {}
// Step information.
type Answer_Step struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The state of the step.
State Answer_Step_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.discoveryengine.v1.Answer_Step_State" json:"state,omitempty"`
// The description of the step.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// The thought of the step.
Thought string `protobuf:"bytes,3,opt,name=thought,proto3" json:"thought,omitempty"`
// Actions.
Actions []*Answer_Step_Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Step) Reset() {
*x = Answer_Step{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Step) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Step) ProtoMessage() {}
func (x *Answer_Step) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Step.ProtoReflect.Descriptor instead.
func (*Answer_Step) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4}
}
func (x *Answer_Step) GetState() Answer_Step_State {
if x != nil {
return x.State
}
return Answer_Step_STATE_UNSPECIFIED
}
func (x *Answer_Step) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Answer_Step) GetThought() string {
if x != nil {
return x.Thought
}
return ""
}
func (x *Answer_Step) GetActions() []*Answer_Step_Action {
if x != nil {
return x.Actions
}
return nil
}
// Query understanding information.
type Answer_QueryUnderstandingInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Query classification information.
QueryClassificationInfo []*Answer_QueryUnderstandingInfo_QueryClassificationInfo `protobuf:"bytes,1,rep,name=query_classification_info,json=queryClassificationInfo,proto3" json:"query_classification_info,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_QueryUnderstandingInfo) Reset() {
*x = Answer_QueryUnderstandingInfo{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_QueryUnderstandingInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_QueryUnderstandingInfo) ProtoMessage() {}
func (x *Answer_QueryUnderstandingInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_QueryUnderstandingInfo.ProtoReflect.Descriptor instead.
func (*Answer_QueryUnderstandingInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 5}
}
func (x *Answer_QueryUnderstandingInfo) GetQueryClassificationInfo() []*Answer_QueryUnderstandingInfo_QueryClassificationInfo {
if x != nil {
return x.QueryClassificationInfo
}
return nil
}
// Unstructured document information.
type Answer_Reference_UnstructuredDocumentInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Document resource name.
Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
// URI for the document.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Title.
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
// List of cited chunk contents derived from document content.
ChunkContents []*Answer_Reference_UnstructuredDocumentInfo_ChunkContent `protobuf:"bytes,4,rep,name=chunk_contents,json=chunkContents,proto3" json:"chunk_contents,omitempty"`
// The structured JSON metadata for the document.
// It is populated from the struct data from the Chunk in search result.
StructData *structpb.Struct `protobuf:"bytes,5,opt,name=struct_data,json=structData,proto3" json:"struct_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Reference_UnstructuredDocumentInfo) Reset() {
*x = Answer_Reference_UnstructuredDocumentInfo{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Reference_UnstructuredDocumentInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Reference_UnstructuredDocumentInfo) ProtoMessage() {}
func (x *Answer_Reference_UnstructuredDocumentInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Reference_UnstructuredDocumentInfo.ProtoReflect.Descriptor instead.
func (*Answer_Reference_UnstructuredDocumentInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 3, 0}
}
func (x *Answer_Reference_UnstructuredDocumentInfo) GetDocument() string {
if x != nil {
return x.Document
}
return ""
}
func (x *Answer_Reference_UnstructuredDocumentInfo) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *Answer_Reference_UnstructuredDocumentInfo) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Answer_Reference_UnstructuredDocumentInfo) GetChunkContents() []*Answer_Reference_UnstructuredDocumentInfo_ChunkContent {
if x != nil {
return x.ChunkContents
}
return nil
}
func (x *Answer_Reference_UnstructuredDocumentInfo) GetStructData() *structpb.Struct {
if x != nil {
return x.StructData
}
return nil
}
// Chunk information.
type Answer_Reference_ChunkInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Chunk resource name.
Chunk string `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"`
// Chunk textual content.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// The relevance of the chunk for a given query. Values range from 0.0
// (completely irrelevant) to 1.0 (completely relevant).
// This value is for informational purpose only. It may change for
// the same query and chunk at any time due to a model retraining or
// change in implementation.
RelevanceScore *float32 `protobuf:"fixed32,3,opt,name=relevance_score,json=relevanceScore,proto3,oneof" json:"relevance_score,omitempty"`
// Document metadata.
DocumentMetadata *Answer_Reference_ChunkInfo_DocumentMetadata `protobuf:"bytes,4,opt,name=document_metadata,json=documentMetadata,proto3" json:"document_metadata,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Reference_ChunkInfo) Reset() {
*x = Answer_Reference_ChunkInfo{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Reference_ChunkInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Reference_ChunkInfo) ProtoMessage() {}
func (x *Answer_Reference_ChunkInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Reference_ChunkInfo.ProtoReflect.Descriptor instead.
func (*Answer_Reference_ChunkInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 3, 1}
}
func (x *Answer_Reference_ChunkInfo) GetChunk() string {
if x != nil {
return x.Chunk
}
return ""
}
func (x *Answer_Reference_ChunkInfo) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *Answer_Reference_ChunkInfo) GetRelevanceScore() float32 {
if x != nil && x.RelevanceScore != nil {
return *x.RelevanceScore
}
return 0
}
func (x *Answer_Reference_ChunkInfo) GetDocumentMetadata() *Answer_Reference_ChunkInfo_DocumentMetadata {
if x != nil {
return x.DocumentMetadata
}
return nil
}
// Structured search information.
type Answer_Reference_StructuredDocumentInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Document resource name.
Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
// Structured search data.
StructData *structpb.Struct `protobuf:"bytes,2,opt,name=struct_data,json=structData,proto3" json:"struct_data,omitempty"`
// Output only. The title of the document.
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
// Output only. The URI of the document.
Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Reference_StructuredDocumentInfo) Reset() {
*x = Answer_Reference_StructuredDocumentInfo{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Reference_StructuredDocumentInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Reference_StructuredDocumentInfo) ProtoMessage() {}
func (x *Answer_Reference_StructuredDocumentInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Reference_StructuredDocumentInfo.ProtoReflect.Descriptor instead.
func (*Answer_Reference_StructuredDocumentInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 3, 2}
}
func (x *Answer_Reference_StructuredDocumentInfo) GetDocument() string {
if x != nil {
return x.Document
}
return ""
}
func (x *Answer_Reference_StructuredDocumentInfo) GetStructData() *structpb.Struct {
if x != nil {
return x.StructData
}
return nil
}
func (x *Answer_Reference_StructuredDocumentInfo) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Answer_Reference_StructuredDocumentInfo) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
// Chunk content.
type Answer_Reference_UnstructuredDocumentInfo_ChunkContent struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Chunk textual content.
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// Page identifier.
PageIdentifier string `protobuf:"bytes,2,opt,name=page_identifier,json=pageIdentifier,proto3" json:"page_identifier,omitempty"`
// The relevance of the chunk for a given query. Values range from 0.0
// (completely irrelevant) to 1.0 (completely relevant).
// This value is for informational purpose only. It may change for
// the same query and chunk at any time due to a model retraining or
// change in implementation.
RelevanceScore *float32 `protobuf:"fixed32,3,opt,name=relevance_score,json=relevanceScore,proto3,oneof" json:"relevance_score,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Reference_UnstructuredDocumentInfo_ChunkContent) Reset() {
*x = Answer_Reference_UnstructuredDocumentInfo_ChunkContent{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Reference_UnstructuredDocumentInfo_ChunkContent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Reference_UnstructuredDocumentInfo_ChunkContent) ProtoMessage() {}
func (x *Answer_Reference_UnstructuredDocumentInfo_ChunkContent) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Reference_UnstructuredDocumentInfo_ChunkContent.ProtoReflect.Descriptor instead.
func (*Answer_Reference_UnstructuredDocumentInfo_ChunkContent) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 3, 0, 0}
}
func (x *Answer_Reference_UnstructuredDocumentInfo_ChunkContent) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *Answer_Reference_UnstructuredDocumentInfo_ChunkContent) GetPageIdentifier() string {
if x != nil {
return x.PageIdentifier
}
return ""
}
func (x *Answer_Reference_UnstructuredDocumentInfo_ChunkContent) GetRelevanceScore() float32 {
if x != nil && x.RelevanceScore != nil {
return *x.RelevanceScore
}
return 0
}
// Document metadata.
type Answer_Reference_ChunkInfo_DocumentMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Document resource name.
Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
// URI for the document.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Title.
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
// Page identifier.
PageIdentifier string `protobuf:"bytes,4,opt,name=page_identifier,json=pageIdentifier,proto3" json:"page_identifier,omitempty"`
// The structured JSON metadata for the document.
// It is populated from the struct data from the Chunk in search result.
StructData *structpb.Struct `protobuf:"bytes,5,opt,name=struct_data,json=structData,proto3" json:"struct_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) Reset() {
*x = Answer_Reference_ChunkInfo_DocumentMetadata{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Reference_ChunkInfo_DocumentMetadata) ProtoMessage() {}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Reference_ChunkInfo_DocumentMetadata.ProtoReflect.Descriptor instead.
func (*Answer_Reference_ChunkInfo_DocumentMetadata) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 3, 1, 0}
}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) GetDocument() string {
if x != nil {
return x.Document
}
return ""
}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) GetPageIdentifier() string {
if x != nil {
return x.PageIdentifier
}
return ""
}
func (x *Answer_Reference_ChunkInfo_DocumentMetadata) GetStructData() *structpb.Struct {
if x != nil {
return x.StructData
}
return nil
}
// Action.
type Answer_Step_Action struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The action.
//
// Types that are valid to be assigned to Action:
//
// *Answer_Step_Action_SearchAction_
Action isAnswer_Step_Action_Action `protobuf_oneof:"action"`
// Observation.
Observation *Answer_Step_Action_Observation `protobuf:"bytes,3,opt,name=observation,proto3" json:"observation,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Step_Action) Reset() {
*x = Answer_Step_Action{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Step_Action) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Step_Action) ProtoMessage() {}
func (x *Answer_Step_Action) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Step_Action.ProtoReflect.Descriptor instead.
func (*Answer_Step_Action) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4, 0}
}
func (x *Answer_Step_Action) GetAction() isAnswer_Step_Action_Action {
if x != nil {
return x.Action
}
return nil
}
func (x *Answer_Step_Action) GetSearchAction() *Answer_Step_Action_SearchAction {
if x != nil {
if x, ok := x.Action.(*Answer_Step_Action_SearchAction_); ok {
return x.SearchAction
}
}
return nil
}
func (x *Answer_Step_Action) GetObservation() *Answer_Step_Action_Observation {
if x != nil {
return x.Observation
}
return nil
}
type isAnswer_Step_Action_Action interface {
isAnswer_Step_Action_Action()
}
type Answer_Step_Action_SearchAction_ struct {
// Search action.
SearchAction *Answer_Step_Action_SearchAction `protobuf:"bytes,2,opt,name=search_action,json=searchAction,proto3,oneof"`
}
func (*Answer_Step_Action_SearchAction_) isAnswer_Step_Action_Action() {}
// Search action.
type Answer_Step_Action_SearchAction struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The query to search.
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Step_Action_SearchAction) Reset() {
*x = Answer_Step_Action_SearchAction{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Step_Action_SearchAction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Step_Action_SearchAction) ProtoMessage() {}
func (x *Answer_Step_Action_SearchAction) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Step_Action_SearchAction.ProtoReflect.Descriptor instead.
func (*Answer_Step_Action_SearchAction) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4, 0, 0}
}
func (x *Answer_Step_Action_SearchAction) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
// Observation.
type Answer_Step_Action_Observation struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Search results observed by the search action, it can be snippets info
// or chunk info, depending on the citation type set by the user.
SearchResults []*Answer_Step_Action_Observation_SearchResult `protobuf:"bytes,2,rep,name=search_results,json=searchResults,proto3" json:"search_results,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Step_Action_Observation) Reset() {
*x = Answer_Step_Action_Observation{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Step_Action_Observation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Step_Action_Observation) ProtoMessage() {}
func (x *Answer_Step_Action_Observation) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Step_Action_Observation.ProtoReflect.Descriptor instead.
func (*Answer_Step_Action_Observation) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4, 0, 1}
}
func (x *Answer_Step_Action_Observation) GetSearchResults() []*Answer_Step_Action_Observation_SearchResult {
if x != nil {
return x.SearchResults
}
return nil
}
type Answer_Step_Action_Observation_SearchResult struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Document resource name.
Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
// URI for the document.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Title.
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
// If citation_type is DOCUMENT_LEVEL_CITATION, populate document
// level snippets.
SnippetInfo []*Answer_Step_Action_Observation_SearchResult_SnippetInfo `protobuf:"bytes,4,rep,name=snippet_info,json=snippetInfo,proto3" json:"snippet_info,omitempty"`
// If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
// populate chunk info.
ChunkInfo []*Answer_Step_Action_Observation_SearchResult_ChunkInfo `protobuf:"bytes,5,rep,name=chunk_info,json=chunkInfo,proto3" json:"chunk_info,omitempty"`
// Data representation.
// The structured JSON data for the document.
// It's populated from the struct data from the Document, or the
// Chunk in search result.
StructData *structpb.Struct `protobuf:"bytes,6,opt,name=struct_data,json=structData,proto3" json:"struct_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Step_Action_Observation_SearchResult) Reset() {
*x = Answer_Step_Action_Observation_SearchResult{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Step_Action_Observation_SearchResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Step_Action_Observation_SearchResult) ProtoMessage() {}
func (x *Answer_Step_Action_Observation_SearchResult) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Step_Action_Observation_SearchResult.ProtoReflect.Descriptor instead.
func (*Answer_Step_Action_Observation_SearchResult) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4, 0, 1, 0}
}
func (x *Answer_Step_Action_Observation_SearchResult) GetDocument() string {
if x != nil {
return x.Document
}
return ""
}
func (x *Answer_Step_Action_Observation_SearchResult) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *Answer_Step_Action_Observation_SearchResult) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Answer_Step_Action_Observation_SearchResult) GetSnippetInfo() []*Answer_Step_Action_Observation_SearchResult_SnippetInfo {
if x != nil {
return x.SnippetInfo
}
return nil
}
func (x *Answer_Step_Action_Observation_SearchResult) GetChunkInfo() []*Answer_Step_Action_Observation_SearchResult_ChunkInfo {
if x != nil {
return x.ChunkInfo
}
return nil
}
func (x *Answer_Step_Action_Observation_SearchResult) GetStructData() *structpb.Struct {
if x != nil {
return x.StructData
}
return nil
}
// Snippet information.
type Answer_Step_Action_Observation_SearchResult_SnippetInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Snippet content.
Snippet string `protobuf:"bytes,1,opt,name=snippet,proto3" json:"snippet,omitempty"`
// Status of the snippet defined by the search team.
SnippetStatus string `protobuf:"bytes,2,opt,name=snippet_status,json=snippetStatus,proto3" json:"snippet_status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Step_Action_Observation_SearchResult_SnippetInfo) Reset() {
*x = Answer_Step_Action_Observation_SearchResult_SnippetInfo{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Step_Action_Observation_SearchResult_SnippetInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Step_Action_Observation_SearchResult_SnippetInfo) ProtoMessage() {}
func (x *Answer_Step_Action_Observation_SearchResult_SnippetInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Step_Action_Observation_SearchResult_SnippetInfo.ProtoReflect.Descriptor instead.
func (*Answer_Step_Action_Observation_SearchResult_SnippetInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4, 0, 1, 0, 0}
}
func (x *Answer_Step_Action_Observation_SearchResult_SnippetInfo) GetSnippet() string {
if x != nil {
return x.Snippet
}
return ""
}
func (x *Answer_Step_Action_Observation_SearchResult_SnippetInfo) GetSnippetStatus() string {
if x != nil {
return x.SnippetStatus
}
return ""
}
// Chunk information.
type Answer_Step_Action_Observation_SearchResult_ChunkInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Chunk resource name.
Chunk string `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"`
// Chunk textual content.
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
// The relevance of the chunk for a given query. Values range from
// 0.0 (completely irrelevant) to 1.0 (completely relevant).
// This value is for informational purpose only. It may change for
// the same query and chunk at any time due to a model retraining or
// change in implementation.
RelevanceScore *float32 `protobuf:"fixed32,3,opt,name=relevance_score,json=relevanceScore,proto3,oneof" json:"relevance_score,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_Step_Action_Observation_SearchResult_ChunkInfo) Reset() {
*x = Answer_Step_Action_Observation_SearchResult_ChunkInfo{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_Step_Action_Observation_SearchResult_ChunkInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_Step_Action_Observation_SearchResult_ChunkInfo) ProtoMessage() {}
func (x *Answer_Step_Action_Observation_SearchResult_ChunkInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_Step_Action_Observation_SearchResult_ChunkInfo.ProtoReflect.Descriptor instead.
func (*Answer_Step_Action_Observation_SearchResult_ChunkInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 4, 0, 1, 0, 1}
}
func (x *Answer_Step_Action_Observation_SearchResult_ChunkInfo) GetChunk() string {
if x != nil {
return x.Chunk
}
return ""
}
func (x *Answer_Step_Action_Observation_SearchResult_ChunkInfo) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *Answer_Step_Action_Observation_SearchResult_ChunkInfo) GetRelevanceScore() float32 {
if x != nil && x.RelevanceScore != nil {
return *x.RelevanceScore
}
return 0
}
// Query classification information.
type Answer_QueryUnderstandingInfo_QueryClassificationInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Query classification type.
Type Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.discoveryengine.v1.Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type" json:"type,omitempty"`
// Classification output.
Positive bool `protobuf:"varint,2,opt,name=positive,proto3" json:"positive,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_QueryUnderstandingInfo_QueryClassificationInfo) Reset() {
*x = Answer_QueryUnderstandingInfo_QueryClassificationInfo{}
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_QueryUnderstandingInfo_QueryClassificationInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_QueryUnderstandingInfo_QueryClassificationInfo) ProtoMessage() {}
func (x *Answer_QueryUnderstandingInfo_QueryClassificationInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Answer_QueryUnderstandingInfo_QueryClassificationInfo.ProtoReflect.Descriptor instead.
func (*Answer_QueryUnderstandingInfo_QueryClassificationInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP(), []int{0, 5, 0}
}
func (x *Answer_QueryUnderstandingInfo_QueryClassificationInfo) GetType() Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type {
if x != nil {
return x.Type
}
return Answer_QueryUnderstandingInfo_QueryClassificationInfo_TYPE_UNSPECIFIED
}
func (x *Answer_QueryUnderstandingInfo_QueryClassificationInfo) GetPositive() bool {
if x != nil {
return x.Positive
}
return false
}
var File_google_cloud_discoveryengine_v1_answer_proto protoreflect.FileDescriptor
const file_google_cloud_discoveryengine_v1_answer_proto_rawDesc = "" +
"\n" +
",google/cloud/discoveryengine/v1/answer.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/discoveryengine/v1/safety.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa8.\n" +
"\x06Answer\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\x05R\x04name\x12C\n" +
"\x05state\x18\x02 \x01(\x0e2-.google.cloud.discoveryengine.v1.Answer.StateR\x05state\x12\x1f\n" +
"\vanswer_text\x18\x03 \x01(\tR\n" +
"answerText\x12,\n" +
"\x0fgrounding_score\x18\f \x01(\x01H\x00R\x0egroundingScore\x88\x01\x01\x12N\n" +
"\tcitations\x18\x04 \x03(\v20.google.cloud.discoveryengine.v1.Answer.CitationR\tcitations\x12l\n" +
"\x12grounding_supports\x18\r \x03(\v28.google.cloud.discoveryengine.v1.Answer.GroundingSupportB\x03\xe0A\x01R\x11groundingSupports\x12Q\n" +
"\n" +
"references\x18\x05 \x03(\v21.google.cloud.discoveryengine.v1.Answer.ReferenceR\n" +
"references\x12+\n" +
"\x11related_questions\x18\x06 \x03(\tR\x10relatedQuestions\x12B\n" +
"\x05steps\x18\a \x03(\v2,.google.cloud.discoveryengine.v1.Answer.StepR\x05steps\x12x\n" +
"\x18query_understanding_info\x18\n" +
" \x01(\v2>.google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfoR\x16queryUnderstandingInfo\x12q\n" +
"\x16answer_skipped_reasons\x18\v \x03(\x0e2;.google.cloud.discoveryengine.v1.Answer.AnswerSkippedReasonR\x14answerSkippedReasons\x12@\n" +
"\vcreate_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
"createTime\x12D\n" +
"\rcomplete_time\x18\t \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\fcompleteTime\x12Y\n" +
"\x0esafety_ratings\x18\x0e \x03(\v2-.google.cloud.discoveryengine.v1.SafetyRatingB\x03\xe0A\x01R\rsafetyRatings\x1a\x9a\x01\n" +
"\bCitation\x12\x1f\n" +
"\vstart_index\x18\x01 \x01(\x03R\n" +
"startIndex\x12\x1b\n" +
"\tend_index\x18\x02 \x01(\x03R\bendIndex\x12P\n" +
"\asources\x18\x03 \x03(\v26.google.cloud.discoveryengine.v1.Answer.CitationSourceR\asources\x1a3\n" +
"\x0eCitationSource\x12!\n" +
"\freference_id\x18\x01 \x01(\tR\vreferenceId\x1a\xcf\x02\n" +
"\x10GroundingSupport\x12$\n" +
"\vstart_index\x18\x01 \x01(\x03B\x03\xe0A\x02R\n" +
"startIndex\x12 \n" +
"\tend_index\x18\x02 \x01(\x03B\x03\xe0A\x02R\bendIndex\x12,\n" +
"\x0fgrounding_score\x18\x03 \x01(\x01H\x00R\x0egroundingScore\x88\x01\x01\x12=\n" +
"\x18grounding_check_required\x18\x04 \x01(\bH\x01R\x16groundingCheckRequired\x88\x01\x01\x12U\n" +
"\asources\x18\x05 \x03(\v26.google.cloud.discoveryengine.v1.Answer.CitationSourceB\x03\xe0A\x01R\asourcesB\x12\n" +
"\x10_grounding_scoreB\x1b\n" +
"\x19_grounding_check_required\x1a\xc8\f\n" +
"\tReference\x12\x8a\x01\n" +
"\x1aunstructured_document_info\x18\x01 \x01(\v2J.google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfoH\x00R\x18unstructuredDocumentInfo\x12\\\n" +
"\n" +
"chunk_info\x18\x02 \x01(\v2;.google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfoH\x00R\tchunkInfo\x12\x84\x01\n" +
"\x18structured_document_info\x18\x03 \x01(\v2H.google.cloud.discoveryengine.v1.Answer.Reference.StructuredDocumentInfoH\x00R\x16structuredDocumentInfo\x1a\xdc\x03\n" +
"\x18UnstructuredDocumentInfo\x12H\n" +
"\bdocument\x18\x01 \x01(\tB,\xfaA)\n" +
"'discoveryengine.googleapis.com/DocumentR\bdocument\x12\x10\n" +
"\x03uri\x18\x02 \x01(\tR\x03uri\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12~\n" +
"\x0echunk_contents\x18\x04 \x03(\v2W.google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.ChunkContentR\rchunkContents\x128\n" +
"\vstruct_data\x18\x05 \x01(\v2\x17.google.protobuf.StructR\n" +
"structData\x1a\x93\x01\n" +
"\fChunkContent\x12\x18\n" +
"\acontent\x18\x01 \x01(\tR\acontent\x12'\n" +
"\x0fpage_identifier\x18\x02 \x01(\tR\x0epageIdentifier\x12,\n" +
"\x0frelevance_score\x18\x03 \x01(\x02H\x00R\x0erelevanceScore\x88\x01\x01B\x12\n" +
"\x10_relevance_score\x1a\x8d\x04\n" +
"\tChunkInfo\x12?\n" +
"\x05chunk\x18\x01 \x01(\tB)\xfaA&\n" +
"$discoveryengine.googleapis.com/ChunkR\x05chunk\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\x12,\n" +
"\x0frelevance_score\x18\x03 \x01(\x02H\x00R\x0erelevanceScore\x88\x01\x01\x12y\n" +
"\x11document_metadata\x18\x04 \x01(\v2L.google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadataR\x10documentMetadata\x1a\xe7\x01\n" +
"\x10DocumentMetadata\x12H\n" +
"\bdocument\x18\x01 \x01(\tB,\xfaA)\n" +
"'discoveryengine.googleapis.com/DocumentR\bdocument\x12\x10\n" +
"\x03uri\x18\x02 \x01(\tR\x03uri\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12'\n" +
"\x0fpage_identifier\x18\x04 \x01(\tR\x0epageIdentifier\x128\n" +
"\vstruct_data\x18\x05 \x01(\v2\x17.google.protobuf.StructR\n" +
"structDataB\x12\n" +
"\x10_relevance_score\x1a\xce\x01\n" +
"\x16StructuredDocumentInfo\x12H\n" +
"\bdocument\x18\x01 \x01(\tB,\xfaA)\n" +
"'discoveryengine.googleapis.com/DocumentR\bdocument\x128\n" +
"\vstruct_data\x18\x02 \x01(\v2\x17.google.protobuf.StructR\n" +
"structData\x12\x19\n" +
"\x05title\x18\x03 \x01(\tB\x03\xe0A\x03R\x05title\x12\x15\n" +
"\x03uri\x18\x04 \x01(\tB\x03\xe0A\x03R\x03uriB\t\n" +
"\acontent\x1a\x85\n" +
"\n" +
"\x04Step\x12H\n" +
"\x05state\x18\x01 \x01(\x0e22.google.cloud.discoveryengine.v1.Answer.Step.StateR\x05state\x12 \n" +
"\vdescription\x18\x02 \x01(\tR\vdescription\x12\x18\n" +
"\athought\x18\x03 \x01(\tR\athought\x12M\n" +
"\aactions\x18\x04 \x03(\v23.google.cloud.discoveryengine.v1.Answer.Step.ActionR\aactions\x1a\xdb\a\n" +
"\x06Action\x12g\n" +
"\rsearch_action\x18\x02 \x01(\v2@.google.cloud.discoveryengine.v1.Answer.Step.Action.SearchActionH\x00R\fsearchAction\x12a\n" +
"\vobservation\x18\x03 \x01(\v2?.google.cloud.discoveryengine.v1.Answer.Step.Action.ObservationR\vobservation\x1a$\n" +
"\fSearchAction\x12\x14\n" +
"\x05query\x18\x01 \x01(\tR\x05query\x1a\xd4\x05\n" +
"\vObservation\x12s\n" +
"\x0esearch_results\x18\x02 \x03(\v2L.google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResultR\rsearchResults\x1a\xcf\x04\n" +
"\fSearchResult\x12\x1a\n" +
"\bdocument\x18\x01 \x01(\tR\bdocument\x12\x10\n" +
"\x03uri\x18\x02 \x01(\tR\x03uri\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12{\n" +
"\fsnippet_info\x18\x04 \x03(\v2X.google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.SnippetInfoR\vsnippetInfo\x12u\n" +
"\n" +
"chunk_info\x18\x05 \x03(\v2V.google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.ChunkInfoR\tchunkInfo\x128\n" +
"\vstruct_data\x18\x06 \x01(\v2\x17.google.protobuf.StructR\n" +
"structData\x1aN\n" +
"\vSnippetInfo\x12\x18\n" +
"\asnippet\x18\x01 \x01(\tR\asnippet\x12%\n" +
"\x0esnippet_status\x18\x02 \x01(\tR\rsnippetStatus\x1a}\n" +
"\tChunkInfo\x12\x14\n" +
"\x05chunk\x18\x01 \x01(\tR\x05chunk\x12\x18\n" +
"\acontent\x18\x02 \x01(\tR\acontent\x12,\n" +
"\x0frelevance_score\x18\x03 \x01(\x02H\x00R\x0erelevanceScore\x88\x01\x01B\x12\n" +
"\x10_relevance_scoreB\b\n" +
"\x06action\"J\n" +
"\x05State\x12\x15\n" +
"\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n" +
"\vIN_PROGRESS\x10\x01\x12\n" +
"\n" +
"\x06FAILED\x10\x02\x12\r\n" +
"\tSUCCEEDED\x10\x03\x1a\x8b\x04\n" +
"\x16QueryUnderstandingInfo\x12\x92\x01\n" +
"\x19query_classification_info\x18\x01 \x03(\v2V.google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfoR\x17queryClassificationInfo\x1a\xdb\x02\n" +
"\x17QueryClassificationInfo\x12o\n" +
"\x04type\x18\x01 \x01(\x0e2[.google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.TypeR\x04type\x12\x1a\n" +
"\bpositive\x18\x02 \x01(\bR\bpositive\"\xb2\x01\n" +
"\x04Type\x12\x14\n" +
"\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n" +
"\x11ADVERSARIAL_QUERY\x10\x01\x12\x1c\n" +
"\x18NON_ANSWER_SEEKING_QUERY\x10\x02\x12\x17\n" +
"\x13JAIL_BREAKING_QUERY\x10\x03\x12\x1f\n" +
"\x1bNON_ANSWER_SEEKING_QUERY_V2\x10\x04\x12%\n" +
"!USER_DEFINED_CLASSIFICATION_QUERY\x10\x05\"Y\n" +
"\x05State\x12\x15\n" +
"\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n" +
"\vIN_PROGRESS\x10\x01\x12\n" +
"\n" +
"\x06FAILED\x10\x02\x12\r\n" +
"\tSUCCEEDED\x10\x03\x12\r\n" +
"\tSTREAMING\x10\x04\"\xa2\x03\n" +
"\x13AnswerSkippedReason\x12%\n" +
"!ANSWER_SKIPPED_REASON_UNSPECIFIED\x10\x00\x12\x1d\n" +
"\x19ADVERSARIAL_QUERY_IGNORED\x10\x01\x12$\n" +
" NON_ANSWER_SEEKING_QUERY_IGNORED\x10\x02\x12\x1f\n" +
"\x1bOUT_OF_DOMAIN_QUERY_IGNORED\x10\x03\x12\x1e\n" +
"\x1aPOTENTIAL_POLICY_VIOLATION\x10\x04\x12\x17\n" +
"\x13NO_RELEVANT_CONTENT\x10\x05\x12\x1f\n" +
"\x1bJAIL_BREAKING_QUERY_IGNORED\x10\x06\x12\x1d\n" +
"\x19CUSTOMER_POLICY_VIOLATION\x10\a\x12'\n" +
"#NON_ANSWER_SEEKING_QUERY_IGNORED_V2\x10\b\x12\x17\n" +
"\x13LOW_GROUNDED_ANSWER\x10\t\x12-\n" +
")USER_DEFINED_CLASSIFICATION_QUERY_IGNORED\x10\n" +
"\x12\x14\n" +
"\x10UNHELPFUL_ANSWER\x10\v:\x85\x03\xeaA\x81\x03\n" +
"%discoveryengine.googleapis.com/Answer\x12cprojects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}\x12|projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}\x12uprojects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}B\x12\n" +
"\x10_grounding_scoreB\xfe\x01\n" +
"#com.google.cloud.discoveryengine.v1B\vAnswerProtoP\x01ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb\xa2\x02\x0fDISCOVERYENGINE\xaa\x02\x1fGoogle.Cloud.DiscoveryEngine.V1\xca\x02\x1fGoogle\\Cloud\\DiscoveryEngine\\V1\xea\x02\"Google::Cloud::DiscoveryEngine::V1b\x06proto3"
var (
file_google_cloud_discoveryengine_v1_answer_proto_rawDescOnce sync.Once
file_google_cloud_discoveryengine_v1_answer_proto_rawDescData []byte
)
func file_google_cloud_discoveryengine_v1_answer_proto_rawDescGZIP() []byte {
file_google_cloud_discoveryengine_v1_answer_proto_rawDescOnce.Do(func() {
file_google_cloud_discoveryengine_v1_answer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_discoveryengine_v1_answer_proto_rawDesc), len(file_google_cloud_discoveryengine_v1_answer_proto_rawDesc)))
})
return file_google_cloud_discoveryengine_v1_answer_proto_rawDescData
}
var file_google_cloud_discoveryengine_v1_answer_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_google_cloud_discoveryengine_v1_answer_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
var file_google_cloud_discoveryengine_v1_answer_proto_goTypes = []any{
(Answer_State)(0), // 0: google.cloud.discoveryengine.v1.Answer.State
(Answer_AnswerSkippedReason)(0), // 1: google.cloud.discoveryengine.v1.Answer.AnswerSkippedReason
(Answer_Step_State)(0), // 2: google.cloud.discoveryengine.v1.Answer.Step.State
(Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type)(0), // 3: google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type
(*Answer)(nil), // 4: google.cloud.discoveryengine.v1.Answer
(*Answer_Citation)(nil), // 5: google.cloud.discoveryengine.v1.Answer.Citation
(*Answer_CitationSource)(nil), // 6: google.cloud.discoveryengine.v1.Answer.CitationSource
(*Answer_GroundingSupport)(nil), // 7: google.cloud.discoveryengine.v1.Answer.GroundingSupport
(*Answer_Reference)(nil), // 8: google.cloud.discoveryengine.v1.Answer.Reference
(*Answer_Step)(nil), // 9: google.cloud.discoveryengine.v1.Answer.Step
(*Answer_QueryUnderstandingInfo)(nil), // 10: google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo
(*Answer_Reference_UnstructuredDocumentInfo)(nil), // 11: google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo
(*Answer_Reference_ChunkInfo)(nil), // 12: google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo
(*Answer_Reference_StructuredDocumentInfo)(nil), // 13: google.cloud.discoveryengine.v1.Answer.Reference.StructuredDocumentInfo
(*Answer_Reference_UnstructuredDocumentInfo_ChunkContent)(nil), // 14: google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.ChunkContent
(*Answer_Reference_ChunkInfo_DocumentMetadata)(nil), // 15: google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadata
(*Answer_Step_Action)(nil), // 16: google.cloud.discoveryengine.v1.Answer.Step.Action
(*Answer_Step_Action_SearchAction)(nil), // 17: google.cloud.discoveryengine.v1.Answer.Step.Action.SearchAction
(*Answer_Step_Action_Observation)(nil), // 18: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation
(*Answer_Step_Action_Observation_SearchResult)(nil), // 19: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult
(*Answer_Step_Action_Observation_SearchResult_SnippetInfo)(nil), // 20: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.SnippetInfo
(*Answer_Step_Action_Observation_SearchResult_ChunkInfo)(nil), // 21: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.ChunkInfo
(*Answer_QueryUnderstandingInfo_QueryClassificationInfo)(nil), // 22: google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo
(*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp
(*SafetyRating)(nil), // 24: google.cloud.discoveryengine.v1.SafetyRating
(*structpb.Struct)(nil), // 25: google.protobuf.Struct
}
var file_google_cloud_discoveryengine_v1_answer_proto_depIdxs = []int32{
0, // 0: google.cloud.discoveryengine.v1.Answer.state:type_name -> google.cloud.discoveryengine.v1.Answer.State
5, // 1: google.cloud.discoveryengine.v1.Answer.citations:type_name -> google.cloud.discoveryengine.v1.Answer.Citation
7, // 2: google.cloud.discoveryengine.v1.Answer.grounding_supports:type_name -> google.cloud.discoveryengine.v1.Answer.GroundingSupport
8, // 3: google.cloud.discoveryengine.v1.Answer.references:type_name -> google.cloud.discoveryengine.v1.Answer.Reference
9, // 4: google.cloud.discoveryengine.v1.Answer.steps:type_name -> google.cloud.discoveryengine.v1.Answer.Step
10, // 5: google.cloud.discoveryengine.v1.Answer.query_understanding_info:type_name -> google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo
1, // 6: google.cloud.discoveryengine.v1.Answer.answer_skipped_reasons:type_name -> google.cloud.discoveryengine.v1.Answer.AnswerSkippedReason
23, // 7: google.cloud.discoveryengine.v1.Answer.create_time:type_name -> google.protobuf.Timestamp
23, // 8: google.cloud.discoveryengine.v1.Answer.complete_time:type_name -> google.protobuf.Timestamp
24, // 9: google.cloud.discoveryengine.v1.Answer.safety_ratings:type_name -> google.cloud.discoveryengine.v1.SafetyRating
6, // 10: google.cloud.discoveryengine.v1.Answer.Citation.sources:type_name -> google.cloud.discoveryengine.v1.Answer.CitationSource
6, // 11: google.cloud.discoveryengine.v1.Answer.GroundingSupport.sources:type_name -> google.cloud.discoveryengine.v1.Answer.CitationSource
11, // 12: google.cloud.discoveryengine.v1.Answer.Reference.unstructured_document_info:type_name -> google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo
12, // 13: google.cloud.discoveryengine.v1.Answer.Reference.chunk_info:type_name -> google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo
13, // 14: google.cloud.discoveryengine.v1.Answer.Reference.structured_document_info:type_name -> google.cloud.discoveryengine.v1.Answer.Reference.StructuredDocumentInfo
2, // 15: google.cloud.discoveryengine.v1.Answer.Step.state:type_name -> google.cloud.discoveryengine.v1.Answer.Step.State
16, // 16: google.cloud.discoveryengine.v1.Answer.Step.actions:type_name -> google.cloud.discoveryengine.v1.Answer.Step.Action
22, // 17: google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.query_classification_info:type_name -> google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo
14, // 18: google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.chunk_contents:type_name -> google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.ChunkContent
25, // 19: google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.struct_data:type_name -> google.protobuf.Struct
15, // 20: google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.document_metadata:type_name -> google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadata
25, // 21: google.cloud.discoveryengine.v1.Answer.Reference.StructuredDocumentInfo.struct_data:type_name -> google.protobuf.Struct
25, // 22: google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadata.struct_data:type_name -> google.protobuf.Struct
17, // 23: google.cloud.discoveryengine.v1.Answer.Step.Action.search_action:type_name -> google.cloud.discoveryengine.v1.Answer.Step.Action.SearchAction
18, // 24: google.cloud.discoveryengine.v1.Answer.Step.Action.observation:type_name -> google.cloud.discoveryengine.v1.Answer.Step.Action.Observation
19, // 25: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.search_results:type_name -> google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult
20, // 26: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.snippet_info:type_name -> google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.SnippetInfo
21, // 27: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.chunk_info:type_name -> google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.ChunkInfo
25, // 28: google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.struct_data:type_name -> google.protobuf.Struct
3, // 29: google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.type:type_name -> google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type
30, // [30:30] is the sub-list for method output_type
30, // [30:30] is the sub-list for method input_type
30, // [30:30] is the sub-list for extension type_name
30, // [30:30] is the sub-list for extension extendee
0, // [0:30] is the sub-list for field type_name
}
func init() { file_google_cloud_discoveryengine_v1_answer_proto_init() }
func file_google_cloud_discoveryengine_v1_answer_proto_init() {
if File_google_cloud_discoveryengine_v1_answer_proto != nil {
return
}
file_google_cloud_discoveryengine_v1_safety_proto_init()
file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[0].OneofWrappers = []any{}
file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[3].OneofWrappers = []any{}
file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[4].OneofWrappers = []any{
(*Answer_Reference_UnstructuredDocumentInfo_)(nil),
(*Answer_Reference_ChunkInfo_)(nil),
(*Answer_Reference_StructuredDocumentInfo_)(nil),
}
file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[8].OneofWrappers = []any{}
file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[10].OneofWrappers = []any{}
file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[12].OneofWrappers = []any{
(*Answer_Step_Action_SearchAction_)(nil),
}
file_google_cloud_discoveryengine_v1_answer_proto_msgTypes[17].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_discoveryengine_v1_answer_proto_rawDesc), len(file_google_cloud_discoveryengine_v1_answer_proto_rawDesc)),
NumEnums: 4,
NumMessages: 19,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_google_cloud_discoveryengine_v1_answer_proto_goTypes,
DependencyIndexes: file_google_cloud_discoveryengine_v1_answer_proto_depIdxs,
EnumInfos: file_google_cloud_discoveryengine_v1_answer_proto_enumTypes,
MessageInfos: file_google_cloud_discoveryengine_v1_answer_proto_msgTypes,
}.Build()
File_google_cloud_discoveryengine_v1_answer_proto = out.File
file_google_cloud_discoveryengine_v1_answer_proto_goTypes = nil
file_google_cloud_discoveryengine_v1_answer_proto_depIdxs = nil
}