| // 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/chunk.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" |
| ) |
| |
| 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) |
| ) |
| |
| // Defines the types of the structured content that can be extracted. |
| type Chunk_StructureType int32 |
| |
| const ( |
| // Default value. |
| Chunk_STRUCTURE_TYPE_UNSPECIFIED Chunk_StructureType = 0 |
| // Shareholder structure. |
| Chunk_SHAREHOLDER_STRUCTURE Chunk_StructureType = 1 |
| // Signature structure. |
| Chunk_SIGNATURE_STRUCTURE Chunk_StructureType = 2 |
| // Checkbox structure. |
| Chunk_CHECKBOX_STRUCTURE Chunk_StructureType = 3 |
| ) |
| |
| // Enum value maps for Chunk_StructureType. |
| var ( |
| Chunk_StructureType_name = map[int32]string{ |
| 0: "STRUCTURE_TYPE_UNSPECIFIED", |
| 1: "SHAREHOLDER_STRUCTURE", |
| 2: "SIGNATURE_STRUCTURE", |
| 3: "CHECKBOX_STRUCTURE", |
| } |
| Chunk_StructureType_value = map[string]int32{ |
| "STRUCTURE_TYPE_UNSPECIFIED": 0, |
| "SHAREHOLDER_STRUCTURE": 1, |
| "SIGNATURE_STRUCTURE": 2, |
| "CHECKBOX_STRUCTURE": 3, |
| } |
| ) |
| |
| func (x Chunk_StructureType) Enum() *Chunk_StructureType { |
| p := new(Chunk_StructureType) |
| *p = x |
| return p |
| } |
| |
| func (x Chunk_StructureType) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Chunk_StructureType) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (Chunk_StructureType) Type() protoreflect.EnumType { |
| return &file_google_cloud_discoveryengine_v1_chunk_proto_enumTypes[0] |
| } |
| |
| func (x Chunk_StructureType) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Chunk_StructureType.Descriptor instead. |
| func (Chunk_StructureType) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| // Chunk captures all raw metadata information of items to be recommended or |
| // searched in the chunk mode. |
| type Chunk struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The full resource name of the chunk. |
| // Format: |
| // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. |
| // |
| // This field must be a UTF-8 encoded string with a length limit of 1024 |
| // characters. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Unique chunk ID of the current chunk. |
| Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
| // Content is a string from a document (parsed content). |
| Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` |
| // Output only. Represents the relevance score based on similarity. |
| // Higher score indicates higher chunk relevance. |
| // The score is in range [-1.0, 1.0]. |
| // Only populated on |
| // [SearchResponse][google.cloud.discoveryengine.v1.SearchResponse]. |
| RelevanceScore *float64 `protobuf:"fixed64,8,opt,name=relevance_score,json=relevanceScore,proto3,oneof" json:"relevance_score,omitempty"` |
| // Metadata of the document from the current chunk. |
| DocumentMetadata *Chunk_DocumentMetadata `protobuf:"bytes,5,opt,name=document_metadata,json=documentMetadata,proto3" json:"document_metadata,omitempty"` |
| // Output only. This field is OUTPUT_ONLY. |
| // It contains derived data that are not in the original input document. |
| DerivedStructData *structpb.Struct `protobuf:"bytes,4,opt,name=derived_struct_data,json=derivedStructData,proto3" json:"derived_struct_data,omitempty"` |
| // Page span of the chunk. |
| PageSpan *Chunk_PageSpan `protobuf:"bytes,6,opt,name=page_span,json=pageSpan,proto3" json:"page_span,omitempty"` |
| // Output only. Metadata of the current chunk. |
| ChunkMetadata *Chunk_ChunkMetadata `protobuf:"bytes,7,opt,name=chunk_metadata,json=chunkMetadata,proto3" json:"chunk_metadata,omitempty"` |
| // Output only. Image Data URLs if the current chunk contains images. |
| // Data URLs are composed of four parts: a prefix (data:), a MIME type |
| // indicating the type of data, an optional base64 token if non-textual, |
| // and the data itself: |
| // data:[<mediatype>][;base64],<data> |
| DataUrls []string `protobuf:"bytes,9,rep,name=data_urls,json=dataUrls,proto3" json:"data_urls,omitempty"` |
| // Output only. Annotation contents if the current chunk contains annotations. |
| AnnotationContents []string `protobuf:"bytes,11,rep,name=annotation_contents,json=annotationContents,proto3" json:"annotation_contents,omitempty"` |
| // Output only. The annotation metadata includes structured content in the |
| // current chunk. |
| AnnotationMetadata []*Chunk_AnnotationMetadata `protobuf:"bytes,12,rep,name=annotation_metadata,json=annotationMetadata,proto3" json:"annotation_metadata,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Chunk) Reset() { |
| *x = Chunk{} |
| mi := &file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Chunk) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Chunk) ProtoMessage() {} |
| |
| func (x *Chunk) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1_chunk_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 Chunk.ProtoReflect.Descriptor instead. |
| func (*Chunk) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *Chunk) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *Chunk) GetId() string { |
| if x != nil { |
| return x.Id |
| } |
| return "" |
| } |
| |
| func (x *Chunk) GetContent() string { |
| if x != nil { |
| return x.Content |
| } |
| return "" |
| } |
| |
| func (x *Chunk) GetRelevanceScore() float64 { |
| if x != nil && x.RelevanceScore != nil { |
| return *x.RelevanceScore |
| } |
| return 0 |
| } |
| |
| func (x *Chunk) GetDocumentMetadata() *Chunk_DocumentMetadata { |
| if x != nil { |
| return x.DocumentMetadata |
| } |
| return nil |
| } |
| |
| func (x *Chunk) GetDerivedStructData() *structpb.Struct { |
| if x != nil { |
| return x.DerivedStructData |
| } |
| return nil |
| } |
| |
| func (x *Chunk) GetPageSpan() *Chunk_PageSpan { |
| if x != nil { |
| return x.PageSpan |
| } |
| return nil |
| } |
| |
| func (x *Chunk) GetChunkMetadata() *Chunk_ChunkMetadata { |
| if x != nil { |
| return x.ChunkMetadata |
| } |
| return nil |
| } |
| |
| func (x *Chunk) GetDataUrls() []string { |
| if x != nil { |
| return x.DataUrls |
| } |
| return nil |
| } |
| |
| func (x *Chunk) GetAnnotationContents() []string { |
| if x != nil { |
| return x.AnnotationContents |
| } |
| return nil |
| } |
| |
| func (x *Chunk) GetAnnotationMetadata() []*Chunk_AnnotationMetadata { |
| if x != nil { |
| return x.AnnotationMetadata |
| } |
| return nil |
| } |
| |
| // Document metadata contains the information of the document of the current |
| // chunk. |
| type Chunk_DocumentMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Uri of the document. |
| Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` |
| // Title of the document. |
| Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` |
| // Data representation. |
| // The structured JSON data for the document. It should conform to the |
| // registered [Schema][google.cloud.discoveryengine.v1.Schema] or an |
| // `INVALID_ARGUMENT` error is thrown. |
| StructData *structpb.Struct `protobuf:"bytes,3,opt,name=struct_data,json=structData,proto3" json:"struct_data,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Chunk_DocumentMetadata) Reset() { |
| *x = Chunk_DocumentMetadata{} |
| mi := &file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Chunk_DocumentMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Chunk_DocumentMetadata) ProtoMessage() {} |
| |
| func (x *Chunk_DocumentMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1_chunk_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 Chunk_DocumentMetadata.ProtoReflect.Descriptor instead. |
| func (*Chunk_DocumentMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (x *Chunk_DocumentMetadata) GetUri() string { |
| if x != nil { |
| return x.Uri |
| } |
| return "" |
| } |
| |
| func (x *Chunk_DocumentMetadata) GetTitle() string { |
| if x != nil { |
| return x.Title |
| } |
| return "" |
| } |
| |
| func (x *Chunk_DocumentMetadata) GetStructData() *structpb.Struct { |
| if x != nil { |
| return x.StructData |
| } |
| return nil |
| } |
| |
| // Page span of the chunk. |
| type Chunk_PageSpan struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The start page of the chunk. |
| PageStart int32 `protobuf:"varint,1,opt,name=page_start,json=pageStart,proto3" json:"page_start,omitempty"` |
| // The end page of the chunk. |
| PageEnd int32 `protobuf:"varint,2,opt,name=page_end,json=pageEnd,proto3" json:"page_end,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Chunk_PageSpan) Reset() { |
| *x = Chunk_PageSpan{} |
| mi := &file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Chunk_PageSpan) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Chunk_PageSpan) ProtoMessage() {} |
| |
| func (x *Chunk_PageSpan) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1_chunk_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 Chunk_PageSpan.ProtoReflect.Descriptor instead. |
| func (*Chunk_PageSpan) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP(), []int{0, 1} |
| } |
| |
| func (x *Chunk_PageSpan) GetPageStart() int32 { |
| if x != nil { |
| return x.PageStart |
| } |
| return 0 |
| } |
| |
| func (x *Chunk_PageSpan) GetPageEnd() int32 { |
| if x != nil { |
| return x.PageEnd |
| } |
| return 0 |
| } |
| |
| // Metadata of the current chunk. This field is only populated on |
| // [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] |
| // API. |
| type Chunk_ChunkMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The previous chunks of the current chunk. The number is controlled by |
| // [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks]. |
| // This field is only populated on |
| // [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] |
| // API. |
| PreviousChunks []*Chunk `protobuf:"bytes,1,rep,name=previous_chunks,json=previousChunks,proto3" json:"previous_chunks,omitempty"` |
| // The next chunks of the current chunk. The number is controlled by |
| // [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks]. |
| // This field is only populated on |
| // [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] |
| // API. |
| NextChunks []*Chunk `protobuf:"bytes,2,rep,name=next_chunks,json=nextChunks,proto3" json:"next_chunks,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Chunk_ChunkMetadata) Reset() { |
| *x = Chunk_ChunkMetadata{} |
| mi := &file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Chunk_ChunkMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Chunk_ChunkMetadata) ProtoMessage() {} |
| |
| func (x *Chunk_ChunkMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1_chunk_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 Chunk_ChunkMetadata.ProtoReflect.Descriptor instead. |
| func (*Chunk_ChunkMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP(), []int{0, 2} |
| } |
| |
| func (x *Chunk_ChunkMetadata) GetPreviousChunks() []*Chunk { |
| if x != nil { |
| return x.PreviousChunks |
| } |
| return nil |
| } |
| |
| func (x *Chunk_ChunkMetadata) GetNextChunks() []*Chunk { |
| if x != nil { |
| return x.NextChunks |
| } |
| return nil |
| } |
| |
| // The structured content information. |
| type Chunk_StructuredContent struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. The structure type of the structured content. |
| StructureType Chunk_StructureType `protobuf:"varint,1,opt,name=structure_type,json=structureType,proto3,enum=google.cloud.discoveryengine.v1.Chunk_StructureType" json:"structure_type,omitempty"` |
| // Output only. The content of the structured content. |
| Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Chunk_StructuredContent) Reset() { |
| *x = Chunk_StructuredContent{} |
| mi := &file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Chunk_StructuredContent) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Chunk_StructuredContent) ProtoMessage() {} |
| |
| func (x *Chunk_StructuredContent) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1_chunk_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 Chunk_StructuredContent.ProtoReflect.Descriptor instead. |
| func (*Chunk_StructuredContent) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP(), []int{0, 3} |
| } |
| |
| func (x *Chunk_StructuredContent) GetStructureType() Chunk_StructureType { |
| if x != nil { |
| return x.StructureType |
| } |
| return Chunk_STRUCTURE_TYPE_UNSPECIFIED |
| } |
| |
| func (x *Chunk_StructuredContent) GetContent() string { |
| if x != nil { |
| return x.Content |
| } |
| return "" |
| } |
| |
| // The annotation metadata includes structured content in the current chunk. |
| type Chunk_AnnotationMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. The structured content information. |
| StructuredContent *Chunk_StructuredContent `protobuf:"bytes,1,opt,name=structured_content,json=structuredContent,proto3" json:"structured_content,omitempty"` |
| // Output only. Image id is provided if the structured content is based on |
| // an image. |
| ImageId string `protobuf:"bytes,2,opt,name=image_id,json=imageId,proto3" json:"image_id,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Chunk_AnnotationMetadata) Reset() { |
| *x = Chunk_AnnotationMetadata{} |
| mi := &file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Chunk_AnnotationMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Chunk_AnnotationMetadata) ProtoMessage() {} |
| |
| func (x *Chunk_AnnotationMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_discoveryengine_v1_chunk_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 Chunk_AnnotationMetadata.ProtoReflect.Descriptor instead. |
| func (*Chunk_AnnotationMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP(), []int{0, 4} |
| } |
| |
| func (x *Chunk_AnnotationMetadata) GetStructuredContent() *Chunk_StructuredContent { |
| if x != nil { |
| return x.StructuredContent |
| } |
| return nil |
| } |
| |
| func (x *Chunk_AnnotationMetadata) GetImageId() string { |
| if x != nil { |
| return x.ImageId |
| } |
| return "" |
| } |
| |
| var File_google_cloud_discoveryengine_v1_chunk_proto protoreflect.FileDescriptor |
| |
| const file_google_cloud_discoveryengine_v1_chunk_proto_rawDesc = "" + |
| "\n" + |
| "+google/cloud/discoveryengine/v1/chunk.proto\x12\x1fgoogle.cloud.discoveryengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x8f\x0e\n" + |
| "\x05Chunk\x12\x12\n" + |
| "\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" + |
| "\x02id\x18\x02 \x01(\tR\x02id\x12\x18\n" + |
| "\acontent\x18\x03 \x01(\tR\acontent\x121\n" + |
| "\x0frelevance_score\x18\b \x01(\x01B\x03\xe0A\x03H\x00R\x0erelevanceScore\x88\x01\x01\x12d\n" + |
| "\x11document_metadata\x18\x05 \x01(\v27.google.cloud.discoveryengine.v1.Chunk.DocumentMetadataR\x10documentMetadata\x12L\n" + |
| "\x13derived_struct_data\x18\x04 \x01(\v2\x17.google.protobuf.StructB\x03\xe0A\x03R\x11derivedStructData\x12L\n" + |
| "\tpage_span\x18\x06 \x01(\v2/.google.cloud.discoveryengine.v1.Chunk.PageSpanR\bpageSpan\x12`\n" + |
| "\x0echunk_metadata\x18\a \x01(\v24.google.cloud.discoveryengine.v1.Chunk.ChunkMetadataB\x03\xe0A\x03R\rchunkMetadata\x12 \n" + |
| "\tdata_urls\x18\t \x03(\tB\x03\xe0A\x03R\bdataUrls\x124\n" + |
| "\x13annotation_contents\x18\v \x03(\tB\x03\xe0A\x03R\x12annotationContents\x12o\n" + |
| "\x13annotation_metadata\x18\f \x03(\v29.google.cloud.discoveryengine.v1.Chunk.AnnotationMetadataB\x03\xe0A\x03R\x12annotationMetadata\x1at\n" + |
| "\x10DocumentMetadata\x12\x10\n" + |
| "\x03uri\x18\x01 \x01(\tR\x03uri\x12\x14\n" + |
| "\x05title\x18\x02 \x01(\tR\x05title\x128\n" + |
| "\vstruct_data\x18\x03 \x01(\v2\x17.google.protobuf.StructR\n" + |
| "structData\x1aD\n" + |
| "\bPageSpan\x12\x1d\n" + |
| "\n" + |
| "page_start\x18\x01 \x01(\x05R\tpageStart\x12\x19\n" + |
| "\bpage_end\x18\x02 \x01(\x05R\apageEnd\x1a\xa9\x01\n" + |
| "\rChunkMetadata\x12O\n" + |
| "\x0fprevious_chunks\x18\x01 \x03(\v2&.google.cloud.discoveryengine.v1.ChunkR\x0epreviousChunks\x12G\n" + |
| "\vnext_chunks\x18\x02 \x03(\v2&.google.cloud.discoveryengine.v1.ChunkR\n" + |
| "nextChunks\x1a\x94\x01\n" + |
| "\x11StructuredContent\x12`\n" + |
| "\x0estructure_type\x18\x01 \x01(\x0e24.google.cloud.discoveryengine.v1.Chunk.StructureTypeB\x03\xe0A\x03R\rstructureType\x12\x1d\n" + |
| "\acontent\x18\x02 \x01(\tB\x03\xe0A\x03R\acontent\x1a\xa2\x01\n" + |
| "\x12AnnotationMetadata\x12l\n" + |
| "\x12structured_content\x18\x01 \x01(\v28.google.cloud.discoveryengine.v1.Chunk.StructuredContentB\x03\xe0A\x03R\x11structuredContent\x12\x1e\n" + |
| "\bimage_id\x18\x02 \x01(\tB\x03\xe0A\x03R\aimageId\"{\n" + |
| "\rStructureType\x12\x1e\n" + |
| "\x1aSTRUCTURE_TYPE_UNSPECIFIED\x10\x00\x12\x19\n" + |
| "\x15SHAREHOLDER_STRUCTURE\x10\x01\x12\x17\n" + |
| "\x13SIGNATURE_STRUCTURE\x10\x02\x12\x16\n" + |
| "\x12CHECKBOX_STRUCTURE\x10\x03:\xb2\x02\xeaA\xae\x02\n" + |
| "$discoveryengine.googleapis.com/Chunk\x12uprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}\x12\x8e\x01projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}B\x12\n" + |
| "\x10_relevance_scoreB\xfd\x01\n" + |
| "#com.google.cloud.discoveryengine.v1B\n" + |
| "ChunkProtoP\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_chunk_proto_rawDescOnce sync.Once |
| file_google_cloud_discoveryengine_v1_chunk_proto_rawDescData []byte |
| ) |
| |
| func file_google_cloud_discoveryengine_v1_chunk_proto_rawDescGZIP() []byte { |
| file_google_cloud_discoveryengine_v1_chunk_proto_rawDescOnce.Do(func() { |
| file_google_cloud_discoveryengine_v1_chunk_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_discoveryengine_v1_chunk_proto_rawDesc), len(file_google_cloud_discoveryengine_v1_chunk_proto_rawDesc))) |
| }) |
| return file_google_cloud_discoveryengine_v1_chunk_proto_rawDescData |
| } |
| |
| var file_google_cloud_discoveryengine_v1_chunk_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| var file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| var file_google_cloud_discoveryengine_v1_chunk_proto_goTypes = []any{ |
| (Chunk_StructureType)(0), // 0: google.cloud.discoveryengine.v1.Chunk.StructureType |
| (*Chunk)(nil), // 1: google.cloud.discoveryengine.v1.Chunk |
| (*Chunk_DocumentMetadata)(nil), // 2: google.cloud.discoveryengine.v1.Chunk.DocumentMetadata |
| (*Chunk_PageSpan)(nil), // 3: google.cloud.discoveryengine.v1.Chunk.PageSpan |
| (*Chunk_ChunkMetadata)(nil), // 4: google.cloud.discoveryengine.v1.Chunk.ChunkMetadata |
| (*Chunk_StructuredContent)(nil), // 5: google.cloud.discoveryengine.v1.Chunk.StructuredContent |
| (*Chunk_AnnotationMetadata)(nil), // 6: google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata |
| (*structpb.Struct)(nil), // 7: google.protobuf.Struct |
| } |
| var file_google_cloud_discoveryengine_v1_chunk_proto_depIdxs = []int32{ |
| 2, // 0: google.cloud.discoveryengine.v1.Chunk.document_metadata:type_name -> google.cloud.discoveryengine.v1.Chunk.DocumentMetadata |
| 7, // 1: google.cloud.discoveryengine.v1.Chunk.derived_struct_data:type_name -> google.protobuf.Struct |
| 3, // 2: google.cloud.discoveryengine.v1.Chunk.page_span:type_name -> google.cloud.discoveryengine.v1.Chunk.PageSpan |
| 4, // 3: google.cloud.discoveryengine.v1.Chunk.chunk_metadata:type_name -> google.cloud.discoveryengine.v1.Chunk.ChunkMetadata |
| 6, // 4: google.cloud.discoveryengine.v1.Chunk.annotation_metadata:type_name -> google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata |
| 7, // 5: google.cloud.discoveryengine.v1.Chunk.DocumentMetadata.struct_data:type_name -> google.protobuf.Struct |
| 1, // 6: google.cloud.discoveryengine.v1.Chunk.ChunkMetadata.previous_chunks:type_name -> google.cloud.discoveryengine.v1.Chunk |
| 1, // 7: google.cloud.discoveryengine.v1.Chunk.ChunkMetadata.next_chunks:type_name -> google.cloud.discoveryengine.v1.Chunk |
| 0, // 8: google.cloud.discoveryengine.v1.Chunk.StructuredContent.structure_type:type_name -> google.cloud.discoveryengine.v1.Chunk.StructureType |
| 5, // 9: google.cloud.discoveryengine.v1.Chunk.AnnotationMetadata.structured_content:type_name -> google.cloud.discoveryengine.v1.Chunk.StructuredContent |
| 10, // [10:10] is the sub-list for method output_type |
| 10, // [10:10] is the sub-list for method input_type |
| 10, // [10:10] is the sub-list for extension type_name |
| 10, // [10:10] is the sub-list for extension extendee |
| 0, // [0:10] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_discoveryengine_v1_chunk_proto_init() } |
| func file_google_cloud_discoveryengine_v1_chunk_proto_init() { |
| if File_google_cloud_discoveryengine_v1_chunk_proto != nil { |
| return |
| } |
| file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes[0].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_chunk_proto_rawDesc), len(file_google_cloud_discoveryengine_v1_chunk_proto_rawDesc)), |
| NumEnums: 1, |
| NumMessages: 6, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_google_cloud_discoveryengine_v1_chunk_proto_goTypes, |
| DependencyIndexes: file_google_cloud_discoveryengine_v1_chunk_proto_depIdxs, |
| EnumInfos: file_google_cloud_discoveryengine_v1_chunk_proto_enumTypes, |
| MessageInfos: file_google_cloud_discoveryengine_v1_chunk_proto_msgTypes, |
| }.Build() |
| File_google_cloud_discoveryengine_v1_chunk_proto = out.File |
| file_google_cloud_discoveryengine_v1_chunk_proto_goTypes = nil |
| file_google_cloud_discoveryengine_v1_chunk_proto_depIdxs = nil |
| } |