blob: 112e5aaa7c5549854c5bdc4a0b2ad8cc9eb00062 [file] [edit]
// Copyright 2026 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/developers/knowledge/v1/developerknowledge.proto
package developerknowledgepb
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"
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)
)
// Specifies which fields of the
// [Document][google.developers.knowledge.v1.Document] are included.
type DocumentView int32
const (
// The default / unset value. See each API method for its default value if
// [DocumentView][google.developers.knowledge.v1.DocumentView] is not
// specified.
DocumentView_DOCUMENT_VIEW_UNSPECIFIED DocumentView = 0
// Includes only the basic metadata fields:
//
// - `name`
// - `uri`
// - `data_source`
// - `title`
// - `description`
// - `update_time`
// - `view`
// - `content_length_bytes`
//
// This is the default of view for
// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks].
DocumentView_DOCUMENT_VIEW_BASIC DocumentView = 1
// Includes all [Document][google.developers.knowledge.v1.Document] fields.
DocumentView_DOCUMENT_VIEW_FULL DocumentView = 2
// Includes the `DOCUMENT_VIEW_BASIC` fields and the `content` field.
//
// This is the default of view for
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]
// and
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments].
DocumentView_DOCUMENT_VIEW_CONTENT DocumentView = 3
)
// Enum value maps for DocumentView.
var (
DocumentView_name = map[int32]string{
0: "DOCUMENT_VIEW_UNSPECIFIED",
1: "DOCUMENT_VIEW_BASIC",
2: "DOCUMENT_VIEW_FULL",
3: "DOCUMENT_VIEW_CONTENT",
}
DocumentView_value = map[string]int32{
"DOCUMENT_VIEW_UNSPECIFIED": 0,
"DOCUMENT_VIEW_BASIC": 1,
"DOCUMENT_VIEW_FULL": 2,
"DOCUMENT_VIEW_CONTENT": 3,
}
)
func (x DocumentView) Enum() *DocumentView {
p := new(DocumentView)
*p = x
return p
}
func (x DocumentView) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DocumentView) Descriptor() protoreflect.EnumDescriptor {
return file_google_developers_knowledge_v1_developerknowledge_proto_enumTypes[0].Descriptor()
}
func (DocumentView) Type() protoreflect.EnumType {
return &file_google_developers_knowledge_v1_developerknowledge_proto_enumTypes[0]
}
func (x DocumentView) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DocumentView.Descriptor instead.
func (DocumentView) EnumDescriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{0}
}
// A Document represents a piece of content from the Developer Knowledge corpus.
type Document struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Identifier. Contains the resource name of the document.
// Format: `documents/{uri_without_scheme}`
// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Provides the URI of the content, such as
// `docs.cloud.google.com/storage/docs/creating-buckets`.
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
// Output only. Contains the full content of the document in Markdown format.
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
// Output only. Provides a description of the document.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Specifies the data source of the document.
// Example data source: `firebase.google.com`
DataSource string `protobuf:"bytes,5,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// Output only. Provides the title of the document.
Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
// Output only. Represents the timestamp when the content or metadata of the
// document was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. Specifies the
// [DocumentView][google.developers.knowledge.v1.DocumentView] of the
// document.
View DocumentView `protobuf:"varint,8,opt,name=view,proto3,enum=google.developers.knowledge.v1.DocumentView" json:"view,omitempty"`
// Output only. The length of the `content` field in bytes.
ContentLengthBytes int32 `protobuf:"varint,9,opt,name=content_length_bytes,json=contentLengthBytes,proto3" json:"content_length_bytes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Document) Reset() {
*x = Document{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Document) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Document) ProtoMessage() {}
func (x *Document) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 Document.ProtoReflect.Descriptor instead.
func (*Document) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{0}
}
func (x *Document) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Document) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *Document) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *Document) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Document) GetDataSource() string {
if x != nil {
return x.DataSource
}
return ""
}
func (x *Document) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Document) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Document) GetView() DocumentView {
if x != nil {
return x.View
}
return DocumentView_DOCUMENT_VIEW_UNSPECIFIED
}
func (x *Document) GetContentLengthBytes() int32 {
if x != nil {
return x.ContentLengthBytes
}
return 0
}
// Request message for
// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks].
type SearchDocumentChunksRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. Provides the raw query string provided by the user, such as "How
// to create a Cloud Storage bucket?".
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
// Optional. Specifies the maximum number of results to return. The service
// may return fewer than this value.
//
// If unspecified, at most 5 results will be returned.
//
// The maximum value is 100; values above 100 will be coerced to 100.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. Contains a page token, received from a previous
// `SearchDocumentChunks` call. Provide this to retrieve the subsequent page.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. Applies a strict filter to the search results. The expression
// supports a subset of the syntax described at https://google.aip.dev/160.
//
// While `SearchDocumentChunks` returns
// [DocumentChunk][google.developers.knowledge.v1.DocumentChunk]s, the filter
// is applied to `DocumentChunk.document` fields.
//
// Supported fields for filtering:
//
// - `data_source` (STRING): The source of the document, e.g.
// `docs.cloud.google.com`. See
// https://developers.google.com/knowledge/reference/corpus-reference for
// the complete list of data sources in the corpus.
// - `update_time` (TIMESTAMP): The timestamp of when the document was last
// meaningfully updated. A meaningful update is one that changes document's
// markdown content or metadata.
// - `uri` (STRING): The document URI, e.g.
// `https://docs.cloud.google.com/bigquery/docs/tables`.
//
// STRING fields support `=` (equals) and `!=` (not equals) operators for
// **exact match** on the whole string. Partial match, prefix match, and
// regexp match are not supported.
//
// TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
// Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`.
//
// Note: Field names must be in `snake_case` (e.g., `data_source`). Values on
// the right-hand side of filtering expressions must be string literals
// enclosed in double quotes (e.g., `"docs.cloud.google.com"`).
//
// You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
// operators. `OR` has higher precedence than `AND`. Use parentheses for
// explicit precedence grouping.
//
// Examples:
//
// - `data_source = "docs.cloud.google.com" OR data_source =
// "firebase.google.com"`
// - `data_source != "firebase.google.com"`
// - `update_time < "2024-01-01T00:00:00Z"`
// - `update_time >= "2025-01-22T00:00:00Z" AND (data_source =
// "developer.chrome.com" OR data_source = "web.dev")`
// - `uri = "https://docs.cloud.google.com/release-notes"`
//
// The `filter` string must not exceed 500 characters; values longer than 500
// characters will result in an `INVALID_ARGUMENT` error.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchDocumentChunksRequest) Reset() {
*x = SearchDocumentChunksRequest{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDocumentChunksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDocumentChunksRequest) ProtoMessage() {}
func (x *SearchDocumentChunksRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 SearchDocumentChunksRequest.ProtoReflect.Descriptor instead.
func (*SearchDocumentChunksRequest) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{1}
}
func (x *SearchDocumentChunksRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *SearchDocumentChunksRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *SearchDocumentChunksRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *SearchDocumentChunksRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
// Response message for
// [DeveloperKnowledge.SearchDocumentChunks][google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks].
type SearchDocumentChunksResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Contains the search results for the given query. Each
// [DocumentChunk][google.developers.knowledge.v1.DocumentChunk] in this list
// contains a snippet of content relevant to the search query. Use the
// [DocumentChunk.parent][google.developers.knowledge.v1.DocumentChunk.parent]
// field of each result with
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]
// or
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]
// to retrieve the full document content.
Results []*DocumentChunk `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// Optional. Provides a token that can be sent as `page_token` to retrieve the
// next page. If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchDocumentChunksResponse) Reset() {
*x = SearchDocumentChunksResponse{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchDocumentChunksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchDocumentChunksResponse) ProtoMessage() {}
func (x *SearchDocumentChunksResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 SearchDocumentChunksResponse.ProtoReflect.Descriptor instead.
func (*SearchDocumentChunksResponse) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{2}
}
func (x *SearchDocumentChunksResponse) GetResults() []*DocumentChunk {
if x != nil {
return x.Results
}
return nil
}
func (x *SearchDocumentChunksResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Request message for
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument].
type GetDocumentRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. Specifies the name of the document to retrieve.
// Format: `documents/{uri_without_scheme}`
// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Specifies the
// [DocumentView][google.developers.knowledge.v1.DocumentView] of the
// document. If unspecified,
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]
// defaults to `DOCUMENT_VIEW_CONTENT`.
View DocumentView `protobuf:"varint,2,opt,name=view,proto3,enum=google.developers.knowledge.v1.DocumentView" json:"view,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDocumentRequest) Reset() {
*x = GetDocumentRequest{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDocumentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDocumentRequest) ProtoMessage() {}
func (x *GetDocumentRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 GetDocumentRequest.ProtoReflect.Descriptor instead.
func (*GetDocumentRequest) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{3}
}
func (x *GetDocumentRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *GetDocumentRequest) GetView() DocumentView {
if x != nil {
return x.View
}
return DocumentView_DOCUMENT_VIEW_UNSPECIFIED
}
// Request message for
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments].
type BatchGetDocumentsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. Specifies the names of the documents to retrieve. A maximum of 20
// documents can be retrieved in a batch. The documents are returned in the
// same order as the `names` in the request.
//
// Format: `documents/{uri_without_scheme}`
// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`
Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
// Optional. Specifies the
// [DocumentView][google.developers.knowledge.v1.DocumentView] of the
// document. If unspecified,
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]
// defaults to `DOCUMENT_VIEW_CONTENT`.
View DocumentView `protobuf:"varint,2,opt,name=view,proto3,enum=google.developers.knowledge.v1.DocumentView" json:"view,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchGetDocumentsRequest) Reset() {
*x = BatchGetDocumentsRequest{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchGetDocumentsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDocumentsRequest) ProtoMessage() {}
func (x *BatchGetDocumentsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 BatchGetDocumentsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetDocumentsRequest) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{4}
}
func (x *BatchGetDocumentsRequest) GetNames() []string {
if x != nil {
return x.Names
}
return nil
}
func (x *BatchGetDocumentsRequest) GetView() DocumentView {
if x != nil {
return x.View
}
return DocumentView_DOCUMENT_VIEW_UNSPECIFIED
}
// Response message for
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments].
type BatchGetDocumentsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Contains the documents requested.
Documents []*Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BatchGetDocumentsResponse) Reset() {
*x = BatchGetDocumentsResponse{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BatchGetDocumentsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BatchGetDocumentsResponse) ProtoMessage() {}
func (x *BatchGetDocumentsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 BatchGetDocumentsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetDocumentsResponse) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{5}
}
func (x *BatchGetDocumentsResponse) GetDocuments() []*Document {
if x != nil {
return x.Documents
}
return nil
}
// Request message for
// [DeveloperKnowledge.AnswerQuery][google.developers.knowledge.v1.DeveloperKnowledge.AnswerQuery].
type AnswerQueryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Required. The query to answer.
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AnswerQueryRequest) Reset() {
*x = AnswerQueryRequest{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AnswerQueryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnswerQueryRequest) ProtoMessage() {}
func (x *AnswerQueryRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 AnswerQueryRequest.ProtoReflect.Descriptor instead.
func (*AnswerQueryRequest) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{6}
}
func (x *AnswerQueryRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
// Response message for
// [DeveloperKnowledge.AnswerQuery][google.developers.knowledge.v1.DeveloperKnowledge.AnswerQuery].
type AnswerQueryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// The answer to the query.
Answer *Answer `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AnswerQueryResponse) Reset() {
*x = AnswerQueryResponse{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AnswerQueryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnswerQueryResponse) ProtoMessage() {}
func (x *AnswerQueryResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 AnswerQueryResponse.ProtoReflect.Descriptor instead.
func (*AnswerQueryResponse) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{7}
}
func (x *AnswerQueryResponse) GetAnswer() *Answer {
if x != nil {
return x.Answer
}
return nil
}
// An answer to a query.
type Answer struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Contains the text of the answer.
AnswerText string `protobuf:"bytes,1,opt,name=answer_text,json=answerText,proto3" json:"answer_text,omitempty"`
// Output only. Contains citations for the answer.
Citations []*Answer_AnswerCitation `protobuf:"bytes,2,rep,name=citations,proto3" json:"citations,omitempty"`
// Output only. Contains references for the answer.
References []*Answer_AnswerReference `protobuf:"bytes,3,rep,name=references,proto3" json:"references,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer) Reset() {
*x = Answer{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[8]
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_developers_knowledge_v1_developerknowledge_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.ProtoReflect.Descriptor instead.
func (*Answer) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{8}
}
func (x *Answer) GetAnswerText() string {
if x != nil {
return x.AnswerText
}
return ""
}
func (x *Answer) GetCitations() []*Answer_AnswerCitation {
if x != nil {
return x.Citations
}
return nil
}
func (x *Answer) GetReferences() []*Answer_AnswerReference {
if x != nil {
return x.References
}
return nil
}
// A DocumentChunk represents a piece of content from a
// [Document][google.developers.knowledge.v1.Document] in the DeveloperKnowledge
// corpus. To fetch the entire document content, pass the `parent` to
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]
// or
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments].
type DocumentChunk struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. Contains the resource name of the document this chunk is from.
// Format: `documents/{uri_without_scheme}`
// Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Output only. Specifies the ID of this chunk within the document. The chunk
// ID is unique within a document, but not globally unique across documents.
// The chunk ID is not stable and may change over time.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Output only. Contains the content of the document chunk.
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
// Output only. Represents metadata about the
// [Document][google.developers.knowledge.v1.Document] this chunk is from. The
// [DocumentView][google.developers.knowledge.v1.DocumentView] of this
// [Document][google.developers.knowledge.v1.Document] message will be set to
// `DOCUMENT_VIEW_BASIC`. It is included here for convenience so that clients
// do not need to call
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]
// or
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]
// if they only need the metadata fields. Otherwise, clients should use
// [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument]
// or
// [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments]
// to fetch the full document content.
Document *Document `protobuf:"bytes,4,opt,name=document,proto3" json:"document,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DocumentChunk) Reset() {
*x = DocumentChunk{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DocumentChunk) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DocumentChunk) ProtoMessage() {}
func (x *DocumentChunk) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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 DocumentChunk.ProtoReflect.Descriptor instead.
func (*DocumentChunk) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{9}
}
func (x *DocumentChunk) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *DocumentChunk) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DocumentChunk) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *DocumentChunk) GetDocument() *Document {
if x != nil {
return x.Document
}
return nil
}
// Citation info for a segment.
type Answer_AnswerCitation struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. Indicates the start of the segment, measured in bytes (UTF-8
// unicode), inclusive. If there are multi-byte characters, such as
// non-ASCII characters, the index measurement is longer than the string
// length.
StartIndex int32 `protobuf:"varint,1,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
// Output only. Indicates the end of the segment, measured in bytes (UTF-8
// unicode), exclusive. If there are multi-byte characters, such as
// non-ASCII characters, the index measurement is longer than the string
// length.
EndIndex int32 `protobuf:"varint,2,opt,name=end_index,json=endIndex,proto3" json:"end_index,omitempty"`
// Output only. Contains 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_AnswerCitation) Reset() {
*x = Answer_AnswerCitation{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_AnswerCitation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_AnswerCitation) ProtoMessage() {}
func (x *Answer_AnswerCitation) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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_AnswerCitation.ProtoReflect.Descriptor instead.
func (*Answer_AnswerCitation) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{8, 0}
}
func (x *Answer_AnswerCitation) GetStartIndex() int32 {
if x != nil {
return x.StartIndex
}
return 0
}
func (x *Answer_AnswerCitation) GetEndIndex() int32 {
if x != nil {
return x.EndIndex
}
return 0
}
func (x *Answer_AnswerCitation) GetSources() []*Answer_CitationSource {
if x != nil {
return x.Sources
}
return nil
}
// Citation source.
type Answer_CitationSource struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. Contains the index of the
// [Answer.AnswerReference][google.developers.knowledge.v1.Answer.AnswerReference]
// in the `references` repeated field.
ReferenceIndex int32 `protobuf:"varint,1,opt,name=reference_index,json=referenceIndex,proto3" json:"reference_index,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_CitationSource) Reset() {
*x = Answer_CitationSource{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[11]
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_developers_knowledge_v1_developerknowledge_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_CitationSource.ProtoReflect.Descriptor instead.
func (*Answer_CitationSource) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{8, 1}
}
func (x *Answer_CitationSource) GetReferenceIndex() int32 {
if x != nil {
return x.ReferenceIndex
}
return 0
}
// Represents a reference to a source.
type Answer_AnswerReference struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Contains the content of the reference.
//
// Types that are valid to be assigned to Content:
//
// *Answer_AnswerReference_DocumentReference
Content isAnswer_AnswerReference_Content `protobuf_oneof:"content"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_AnswerReference) Reset() {
*x = Answer_AnswerReference{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_AnswerReference) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_AnswerReference) ProtoMessage() {}
func (x *Answer_AnswerReference) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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_AnswerReference.ProtoReflect.Descriptor instead.
func (*Answer_AnswerReference) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{8, 2}
}
func (x *Answer_AnswerReference) GetContent() isAnswer_AnswerReference_Content {
if x != nil {
return x.Content
}
return nil
}
func (x *Answer_AnswerReference) GetDocumentReference() *Answer_DocumentReference {
if x != nil {
if x, ok := x.Content.(*Answer_AnswerReference_DocumentReference); ok {
return x.DocumentReference
}
}
return nil
}
type isAnswer_AnswerReference_Content interface {
isAnswer_AnswerReference_Content()
}
type Answer_AnswerReference_DocumentReference struct {
// Output only. The reference document.
DocumentReference *Answer_DocumentReference `protobuf:"bytes,1,opt,name=document_reference,json=documentReference,proto3,oneof"`
}
func (*Answer_AnswerReference_DocumentReference) isAnswer_AnswerReference_Content() {}
// Represents a reference to a document.
type Answer_DocumentReference struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. Contains the document chunk. The `document_chunk.id` field
// is not set and will be empty.
DocumentChunk *DocumentChunk `protobuf:"bytes,1,opt,name=document_chunk,json=documentChunk,proto3" json:"document_chunk,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Answer_DocumentReference) Reset() {
*x = Answer_DocumentReference{}
mi := &file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Answer_DocumentReference) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Answer_DocumentReference) ProtoMessage() {}
func (x *Answer_DocumentReference) ProtoReflect() protoreflect.Message {
mi := &file_google_developers_knowledge_v1_developerknowledge_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_DocumentReference.ProtoReflect.Descriptor instead.
func (*Answer_DocumentReference) Descriptor() ([]byte, []int) {
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP(), []int{8, 3}
}
func (x *Answer_DocumentReference) GetDocumentChunk() *DocumentChunk {
if x != nil {
return x.DocumentChunk
}
return nil
}
var File_google_developers_knowledge_v1_developerknowledge_proto protoreflect.FileDescriptor
const file_google_developers_knowledge_v1_developerknowledge_proto_rawDesc = "" +
"\n" +
"7google/developers/knowledge/v1/developerknowledge.proto\x12\x1egoogle.developers.knowledge.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdd\x03\n" +
"\bDocument\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12\x15\n" +
"\x03uri\x18\x02 \x01(\tB\x03\xe0A\x03R\x03uri\x12\x1d\n" +
"\acontent\x18\x03 \x01(\tB\x03\xe0A\x03R\acontent\x12%\n" +
"\vdescription\x18\x04 \x01(\tB\x03\xe0A\x03R\vdescription\x12$\n" +
"\vdata_source\x18\x05 \x01(\tB\x03\xe0A\x03R\n" +
"dataSource\x12\x19\n" +
"\x05title\x18\x06 \x01(\tB\x03\xe0A\x03R\x05title\x12@\n" +
"\vupdate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
"updateTime\x12E\n" +
"\x04view\x18\b \x01(\x0e2,.google.developers.knowledge.v1.DocumentViewB\x03\xe0A\x03R\x04view\x125\n" +
"\x14content_length_bytes\x18\t \x01(\x05B\x03\xe0A\x03R\x12contentLengthBytes:Z\xeaAW\n" +
"*developerknowledge.googleapis.com/Document\x12\x14documents/{document}*\tdocuments2\bdocument\"\x9b\x01\n" +
"\x1bSearchDocumentChunksRequest\x12\x19\n" +
"\x05query\x18\x01 \x01(\tB\x03\xe0A\x02R\x05query\x12 \n" +
"\tpage_size\x18\x02 \x01(\x05B\x03\xe0A\x01R\bpageSize\x12\"\n" +
"\n" +
"page_token\x18\x03 \x01(\tB\x03\xe0A\x01R\tpageToken\x12\x1b\n" +
"\x06filter\x18\x04 \x01(\tB\x03\xe0A\x01R\x06filter\"\x94\x01\n" +
"\x1cSearchDocumentChunksResponse\x12G\n" +
"\aresults\x18\x01 \x03(\v2-.google.developers.knowledge.v1.DocumentChunkR\aresults\x12+\n" +
"\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0A\x01R\rnextPageToken\"\xa3\x01\n" +
"\x12GetDocumentRequest\x12F\n" +
"\x04name\x18\x01 \x01(\tB2\xe0A\x02\xfaA,\n" +
"*developerknowledge.googleapis.com/DocumentR\x04name\x12E\n" +
"\x04view\x18\x02 \x01(\x0e2,.google.developers.knowledge.v1.DocumentViewB\x03\xe0A\x01R\x04view\"\xab\x01\n" +
"\x18BatchGetDocumentsRequest\x12H\n" +
"\x05names\x18\x01 \x03(\tB2\xe0A\x02\xfaA,\n" +
"*developerknowledge.googleapis.com/DocumentR\x05names\x12E\n" +
"\x04view\x18\x02 \x01(\x0e2,.google.developers.knowledge.v1.DocumentViewB\x03\xe0A\x01R\x04view\"c\n" +
"\x19BatchGetDocumentsResponse\x12F\n" +
"\tdocuments\x18\x01 \x03(\v2(.google.developers.knowledge.v1.DocumentR\tdocuments\"/\n" +
"\x12AnswerQueryRequest\x12\x19\n" +
"\x05query\x18\x01 \x01(\tB\x03\xe0A\x02R\x05query\"U\n" +
"\x13AnswerQueryResponse\x12>\n" +
"\x06answer\x18\x01 \x01(\v2&.google.developers.knowledge.v1.AnswerR\x06answer\"\xd0\x05\n" +
"\x06Answer\x12\x1f\n" +
"\vanswer_text\x18\x01 \x01(\tR\n" +
"answerText\x12X\n" +
"\tcitations\x18\x02 \x03(\v25.google.developers.knowledge.v1.Answer.AnswerCitationB\x03\xe0A\x03R\tcitations\x12[\n" +
"\n" +
"references\x18\x03 \x03(\v26.google.developers.knowledge.v1.Answer.AnswerReferenceB\x03\xe0A\x03R\n" +
"references\x1a\xae\x01\n" +
"\x0eAnswerCitation\x12$\n" +
"\vstart_index\x18\x01 \x01(\x05B\x03\xe0A\x03R\n" +
"startIndex\x12 \n" +
"\tend_index\x18\x02 \x01(\x05B\x03\xe0A\x03R\bendIndex\x12T\n" +
"\asources\x18\x03 \x03(\v25.google.developers.knowledge.v1.Answer.CitationSourceB\x03\xe0A\x03R\asources\x1a>\n" +
"\x0eCitationSource\x12,\n" +
"\x0freference_index\x18\x01 \x01(\x05B\x03\xe0A\x03R\x0ereferenceIndex\x1a\x8c\x01\n" +
"\x0fAnswerReference\x12n\n" +
"\x12document_reference\x18\x01 \x01(\v28.google.developers.knowledge.v1.Answer.DocumentReferenceB\x03\xe0A\x03H\x00R\x11documentReferenceB\t\n" +
"\acontent\x1an\n" +
"\x11DocumentReference\x12Y\n" +
"\x0edocument_chunk\x18\x01 \x01(\v2-.google.developers.knowledge.v1.DocumentChunkB\x03\xe0A\x03R\rdocumentChunk\"\xda\x01\n" +
"\rDocumentChunk\x12J\n" +
"\x06parent\x18\x01 \x01(\tB2\xe0A\x03\xfaA,\n" +
"*developerknowledge.googleapis.com/DocumentR\x06parent\x12\x13\n" +
"\x02id\x18\x02 \x01(\tB\x03\xe0A\x03R\x02id\x12\x1d\n" +
"\acontent\x18\x03 \x01(\tB\x03\xe0A\x03R\acontent\x12I\n" +
"\bdocument\x18\x04 \x01(\v2(.google.developers.knowledge.v1.DocumentB\x03\xe0A\x03R\bdocument*y\n" +
"\fDocumentView\x12\x1d\n" +
"\x19DOCUMENT_VIEW_UNSPECIFIED\x10\x00\x12\x17\n" +
"\x13DOCUMENT_VIEW_BASIC\x10\x01\x12\x16\n" +
"\x12DOCUMENT_VIEW_FULL\x10\x02\x12\x19\n" +
"\x15DOCUMENT_VIEW_CONTENT\x10\x032\x81\x06\n" +
"\x12DeveloperKnowledge\x12\xbd\x01\n" +
"\x14SearchDocumentChunks\x12;.google.developers.knowledge.v1.SearchDocumentChunksRequest\x1a<.google.developers.knowledge.v1.SearchDocumentChunksResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/v1/documents:searchDocumentChunks\x12\x93\x01\n" +
"\vGetDocument\x122.google.developers.knowledge.v1.GetDocumentRequest\x1a(.google.developers.knowledge.v1.Document\"&\xdaA\x04name\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{name=documents/**}\x12\xa8\x01\n" +
"\x11BatchGetDocuments\x128.google.developers.knowledge.v1.BatchGetDocumentsRequest\x1a9.google.developers.knowledge.v1.BatchGetDocumentsResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v1/documents:batchGet\x12\x92\x01\n" +
"\vAnswerQuery\x122.google.developers.knowledge.v1.AnswerQueryRequest\x1a3.google.developers.knowledge.v1.AnswerQueryResponse\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/v1:answerQuery\x1aU\xcaA!developerknowledge.googleapis.com\xd2A.https://www.googleapis.com/auth/cloud-platformB\x83\x02\n" +
"\"com.google.developers.knowledge.v1B\x17DeveloperKnowledgeProtoP\x01ZAcloud.google.com/go/developerknowledge/apiv1/developerknowledgepb\xaa\x02'Google.Developers.DeveloperKnowledge.V1\xca\x02'Google\\Developers\\DeveloperKnowledge\\V1\xea\x02*Google::Developers::DeveloperKnowledge::V1b\x06proto3"
var (
file_google_developers_knowledge_v1_developerknowledge_proto_rawDescOnce sync.Once
file_google_developers_knowledge_v1_developerknowledge_proto_rawDescData []byte
)
func file_google_developers_knowledge_v1_developerknowledge_proto_rawDescGZIP() []byte {
file_google_developers_knowledge_v1_developerknowledge_proto_rawDescOnce.Do(func() {
file_google_developers_knowledge_v1_developerknowledge_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_developers_knowledge_v1_developerknowledge_proto_rawDesc), len(file_google_developers_knowledge_v1_developerknowledge_proto_rawDesc)))
})
return file_google_developers_knowledge_v1_developerknowledge_proto_rawDescData
}
var file_google_developers_knowledge_v1_developerknowledge_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_google_developers_knowledge_v1_developerknowledge_proto_goTypes = []any{
(DocumentView)(0), // 0: google.developers.knowledge.v1.DocumentView
(*Document)(nil), // 1: google.developers.knowledge.v1.Document
(*SearchDocumentChunksRequest)(nil), // 2: google.developers.knowledge.v1.SearchDocumentChunksRequest
(*SearchDocumentChunksResponse)(nil), // 3: google.developers.knowledge.v1.SearchDocumentChunksResponse
(*GetDocumentRequest)(nil), // 4: google.developers.knowledge.v1.GetDocumentRequest
(*BatchGetDocumentsRequest)(nil), // 5: google.developers.knowledge.v1.BatchGetDocumentsRequest
(*BatchGetDocumentsResponse)(nil), // 6: google.developers.knowledge.v1.BatchGetDocumentsResponse
(*AnswerQueryRequest)(nil), // 7: google.developers.knowledge.v1.AnswerQueryRequest
(*AnswerQueryResponse)(nil), // 8: google.developers.knowledge.v1.AnswerQueryResponse
(*Answer)(nil), // 9: google.developers.knowledge.v1.Answer
(*DocumentChunk)(nil), // 10: google.developers.knowledge.v1.DocumentChunk
(*Answer_AnswerCitation)(nil), // 11: google.developers.knowledge.v1.Answer.AnswerCitation
(*Answer_CitationSource)(nil), // 12: google.developers.knowledge.v1.Answer.CitationSource
(*Answer_AnswerReference)(nil), // 13: google.developers.knowledge.v1.Answer.AnswerReference
(*Answer_DocumentReference)(nil), // 14: google.developers.knowledge.v1.Answer.DocumentReference
(*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp
}
var file_google_developers_knowledge_v1_developerknowledge_proto_depIdxs = []int32{
15, // 0: google.developers.knowledge.v1.Document.update_time:type_name -> google.protobuf.Timestamp
0, // 1: google.developers.knowledge.v1.Document.view:type_name -> google.developers.knowledge.v1.DocumentView
10, // 2: google.developers.knowledge.v1.SearchDocumentChunksResponse.results:type_name -> google.developers.knowledge.v1.DocumentChunk
0, // 3: google.developers.knowledge.v1.GetDocumentRequest.view:type_name -> google.developers.knowledge.v1.DocumentView
0, // 4: google.developers.knowledge.v1.BatchGetDocumentsRequest.view:type_name -> google.developers.knowledge.v1.DocumentView
1, // 5: google.developers.knowledge.v1.BatchGetDocumentsResponse.documents:type_name -> google.developers.knowledge.v1.Document
9, // 6: google.developers.knowledge.v1.AnswerQueryResponse.answer:type_name -> google.developers.knowledge.v1.Answer
11, // 7: google.developers.knowledge.v1.Answer.citations:type_name -> google.developers.knowledge.v1.Answer.AnswerCitation
13, // 8: google.developers.knowledge.v1.Answer.references:type_name -> google.developers.knowledge.v1.Answer.AnswerReference
1, // 9: google.developers.knowledge.v1.DocumentChunk.document:type_name -> google.developers.knowledge.v1.Document
12, // 10: google.developers.knowledge.v1.Answer.AnswerCitation.sources:type_name -> google.developers.knowledge.v1.Answer.CitationSource
14, // 11: google.developers.knowledge.v1.Answer.AnswerReference.document_reference:type_name -> google.developers.knowledge.v1.Answer.DocumentReference
10, // 12: google.developers.knowledge.v1.Answer.DocumentReference.document_chunk:type_name -> google.developers.knowledge.v1.DocumentChunk
2, // 13: google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks:input_type -> google.developers.knowledge.v1.SearchDocumentChunksRequest
4, // 14: google.developers.knowledge.v1.DeveloperKnowledge.GetDocument:input_type -> google.developers.knowledge.v1.GetDocumentRequest
5, // 15: google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments:input_type -> google.developers.knowledge.v1.BatchGetDocumentsRequest
7, // 16: google.developers.knowledge.v1.DeveloperKnowledge.AnswerQuery:input_type -> google.developers.knowledge.v1.AnswerQueryRequest
3, // 17: google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunks:output_type -> google.developers.knowledge.v1.SearchDocumentChunksResponse
1, // 18: google.developers.knowledge.v1.DeveloperKnowledge.GetDocument:output_type -> google.developers.knowledge.v1.Document
6, // 19: google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments:output_type -> google.developers.knowledge.v1.BatchGetDocumentsResponse
8, // 20: google.developers.knowledge.v1.DeveloperKnowledge.AnswerQuery:output_type -> google.developers.knowledge.v1.AnswerQueryResponse
17, // [17:21] is the sub-list for method output_type
13, // [13:17] is the sub-list for method input_type
13, // [13:13] is the sub-list for extension type_name
13, // [13:13] is the sub-list for extension extendee
0, // [0:13] is the sub-list for field type_name
}
func init() { file_google_developers_knowledge_v1_developerknowledge_proto_init() }
func file_google_developers_knowledge_v1_developerknowledge_proto_init() {
if File_google_developers_knowledge_v1_developerknowledge_proto != nil {
return
}
file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes[12].OneofWrappers = []any{
(*Answer_AnswerReference_DocumentReference)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_developers_knowledge_v1_developerknowledge_proto_rawDesc), len(file_google_developers_knowledge_v1_developerknowledge_proto_rawDesc)),
NumEnums: 1,
NumMessages: 14,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_google_developers_knowledge_v1_developerknowledge_proto_goTypes,
DependencyIndexes: file_google_developers_knowledge_v1_developerknowledge_proto_depIdxs,
EnumInfos: file_google_developers_knowledge_v1_developerknowledge_proto_enumTypes,
MessageInfos: file_google_developers_knowledge_v1_developerknowledge_proto_msgTypes,
}.Build()
File_google_developers_knowledge_v1_developerknowledge_proto = out.File
file_google_developers_knowledge_v1_developerknowledge_proto_goTypes = nil
file_google_developers_knowledge_v1_developerknowledge_proto_depIdxs = nil
}