# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dialogflow/v2/document.proto require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/dialogflow/v2/gcs_pb' require 'google/longrunning/operations_pb' require 'google/protobuf/field_mask_pb' require 'google/protobuf/timestamp_pb' require 'google/rpc/status_pb' require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/cloud/dialogflow/v2/document.proto", :syntax => :proto3) do add_message "google.cloud.dialogflow.v2.Document" do optional :name, :string, 1 optional :display_name, :string, 2 optional :mime_type, :string, 3 repeated :knowledge_types, :enum, 4, "google.cloud.dialogflow.v2.Document.KnowledgeType" optional :enable_auto_reload, :bool, 11 optional :latest_reload_status, :message, 12, "google.cloud.dialogflow.v2.Document.ReloadStatus" map :metadata, :string, :string, 7 oneof :source do optional :content_uri, :string, 5 optional :raw_content, :bytes, 9 end end add_message "google.cloud.dialogflow.v2.Document.ReloadStatus" do optional :time, :message, 1, "google.protobuf.Timestamp" optional :status, :message, 2, "google.rpc.Status" end add_enum "google.cloud.dialogflow.v2.Document.KnowledgeType" do value :KNOWLEDGE_TYPE_UNSPECIFIED, 0 value :FAQ, 1 value :EXTRACTIVE_QA, 2 value :ARTICLE_SUGGESTION, 3 end add_message "google.cloud.dialogflow.v2.GetDocumentRequest" do optional :name, :string, 1 end add_message "google.cloud.dialogflow.v2.ListDocumentsRequest" do optional :parent, :string, 1 optional :page_size, :int32, 2 optional :page_token, :string, 3 optional :filter, :string, 4 end add_message "google.cloud.dialogflow.v2.ListDocumentsResponse" do repeated :documents, :message, 1, "google.cloud.dialogflow.v2.Document" optional :next_page_token, :string, 2 end add_message "google.cloud.dialogflow.v2.CreateDocumentRequest" do optional :parent, :string, 1 optional :document, :message, 2, "google.cloud.dialogflow.v2.Document" end add_message "google.cloud.dialogflow.v2.DeleteDocumentRequest" do optional :name, :string, 1 end add_message "google.cloud.dialogflow.v2.UpdateDocumentRequest" do optional :document, :message, 1, "google.cloud.dialogflow.v2.Document" optional :update_mask, :message, 2, "google.protobuf.FieldMask" end add_message "google.cloud.dialogflow.v2.ReloadDocumentRequest" do optional :name, :string, 1 optional :import_gcs_custom_metadata, :bool, 4 optional :smart_messaging_partial_update, :bool, 5 oneof :source do optional :content_uri, :string, 3 end end add_message "google.cloud.dialogflow.v2.ExportDocumentRequest" do optional :name, :string, 1 optional :export_full_content, :bool, 3 optional :smart_messaging_partial_update, :bool, 5 oneof :destination do optional :gcs_destination, :message, 2, "google.cloud.dialogflow.v2.GcsDestination" end end add_message "google.cloud.dialogflow.v2.KnowledgeOperationMetadata" do optional :state, :enum, 1, "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State" end add_enum "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State" do value :STATE_UNSPECIFIED, 0 value :PENDING, 1 value :RUNNING, 2 value :DONE, 3 end end end module Google module Cloud module Dialogflow module V2 Document = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document").msgclass Document::ReloadStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document.ReloadStatus").msgclass Document::KnowledgeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document.KnowledgeType").enummodule GetDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetDocumentRequest").msgclass ListDocumentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListDocumentsRequest").msgclass ListDocumentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListDocumentsResponse").msgclass CreateDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateDocumentRequest").msgclass DeleteDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteDocumentRequest").msgclass UpdateDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.UpdateDocumentRequest").msgclass ReloadDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ReloadDocumentRequest").msgclass ExportDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ExportDocumentRequest").msgclass KnowledgeOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.KnowledgeOperationMetadata").msgclass KnowledgeOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State").enummodule end end end end