# 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 optional :state, :enum, 13, "google.cloud.dialogflow.v2.Document.State" 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 value :AGENT_FACING_SMART_REPLY, 4 end add_enum "google.cloud.dialogflow.v2.Document.State" do value :STATE_UNSPECIFIED, 0 value :CREATING, 1 value :ACTIVE, 2 value :UPDATING, 3 value :RELOADING, 4 value :DELETING, 5 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.ImportDocumentsRequest" do optional :parent, :string, 1 optional :document_template, :message, 3, "google.cloud.dialogflow.v2.ImportDocumentTemplate" optional :import_gcs_custom_metadata, :bool, 4 oneof :source do optional :gcs_source, :message, 2, "google.cloud.dialogflow.v2.GcsSources" end end add_message "google.cloud.dialogflow.v2.ImportDocumentTemplate" do optional :mime_type, :string, 1 repeated :knowledge_types, :enum, 2, "google.cloud.dialogflow.v2.Document.KnowledgeType" map :metadata, :string, :string, 3 end add_message "google.cloud.dialogflow.v2.ImportDocumentsResponse" do repeated :warnings, :message, 1, "google.rpc.Status" 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.ExportOperationMetadata" do optional :exported_gcs_destination, :message, 1, "google.cloud.dialogflow.v2.GcsDestination" end add_message "google.cloud.dialogflow.v2.KnowledgeOperationMetadata" do optional :state, :enum, 1, "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State" optional :knowledge_base, :string, 3 oneof :operation_metadata do optional :export_operation_metadata, :message, 4, "google.cloud.dialogflow.v2.ExportOperationMetadata" end 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 Document::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document.State").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 ImportDocumentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportDocumentsRequest").msgclass ImportDocumentTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportDocumentTemplate").msgclass ImportDocumentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportDocumentsResponse").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 ExportOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ExportOperationMetadata").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