# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/document.proto

require 'google/protobuf'

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/empty_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'
require 'google/rpc/status_pb'


descriptor_data = "\n)google/cloud/dialogflow/v2/document.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/dialogflow/v2/gcs.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xa6\x08\n\x08\x44ocument\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tmime_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0fknowledge_types\x18\x04 \x03(\x0e\x32\x32.google.cloud.dialogflow.v2.Document.KnowledgeTypeB\x03\xe0\x41\x02\x12\x15\n\x0b\x63ontent_uri\x18\x05 \x01(\tH\x00\x12\x15\n\x0braw_content\x18\t \x01(\x0cH\x00\x12\x1f\n\x12\x65nable_auto_reload\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\x12T\n\x14latest_reload_status\x18\x0c \x01(\x0b\x32\x31.google.cloud.dialogflow.v2.Document.ReloadStatusB\x03\xe0\x41\x03\x12I\n\x08metadata\x18\x07 \x03(\x0b\x32\x32.google.cloud.dialogflow.v2.Document.MetadataEntryB\x03\xe0\x41\x01\x12>\n\x05state\x18\r \x01(\x0e\x32*.google.cloud.dialogflow.v2.Document.StateB\x03\xe0\x41\x03\x1a\\\n\x0cReloadStatus\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x81\x01\n\rKnowledgeType\x12\x1e\n\x1aKNOWLEDGE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x46\x41Q\x10\x01\x12\x11\n\rEXTRACTIVE_QA\x10\x02\x12\x16\n\x12\x41RTICLE_SUGGESTION\x10\x03\x12\x1c\n\x18\x41GENT_FACING_SMART_REPLY\x10\x04\"c\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\r\n\tRELOADING\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05:\xcf\x01\xea\x41\xcb\x01\n\"dialogflow.googleapis.com/Document\x12Gprojects/{project}/knowledgeBases/{knowledge_base}/documents/{document}\x12\\projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}B\x08\n\x06source\"N\n\x12GetDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\"\x89\x01\n\x14ListDocumentsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"i\n\x15ListDocumentsResponse\x12\x37\n\tdocuments\x18\x01 \x03(\x0b\x32$.google.cloud.dialogflow.v2.Document\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x90\x01\n\x15\x43reateDocumentRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12;\n\x08\x64ocument\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.v2.DocumentB\x03\xe0\x41\x02\"\x99\x02\n\x16ImportDocumentsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"dialogflow.googleapis.com/Document\x12\x41\n\ngcs_source\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.GcsSourcesB\x03\xe0\x41\x01H\x00\x12R\n\x11\x64ocument_template\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.ImportDocumentTemplateB\x03\xe0\x41\x02\x12\"\n\x1aimport_gcs_custom_metadata\x18\x04 \x01(\x08\x42\x08\n\x06source\"\x87\x02\n\x16ImportDocumentTemplate\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\x0fknowledge_types\x18\x02 \x03(\x0e\x32\x32.google.cloud.dialogflow.v2.Document.KnowledgeTypeB\x03\xe0\x41\x02\x12R\n\x08metadata\x18\x03 \x03(\x0b\x32@.google.cloud.dialogflow.v2.ImportDocumentTemplate.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"?\n\x17ImportDocumentsResponse\x12$\n\x08warnings\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\"Q\n\x15\x44\x65leteDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\"\x8a\x01\n\x15UpdateDocumentRequest\x12;\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.dialogflow.v2.DocumentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xcd\x01\n\x15ReloadDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1a\n\x0b\x63ontent_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12\'\n\x1aimport_gcs_custom_metadata\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1esmart_messaging_partial_update\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x42\x08\n\x06source\"\xec\x01\n\x15\x45xportDocumentRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x45\n\x0fgcs_destination\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.GcsDestinationH\x00\x12\x1b\n\x13\x65xport_full_content\x18\x03 \x01(\x08\x12&\n\x1esmart_messaging_partial_update\x18\x05 \x01(\x08\x42\r\n\x0b\x64\x65stination\"g\n\x17\x45xportOperationMetadata\x12L\n\x18\x65xported_gcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.v2.GcsDestination\"\xba\x02\n\x1aKnowledgeOperationMetadata\x12P\n\x05state\x18\x01 \x01(\x0e\x32<.google.cloud.dialogflow.v2.KnowledgeOperationMetadata.StateB\x03\xe0\x41\x03\x12\x16\n\x0eknowledge_base\x18\x03 \x01(\t\x12X\n\x19\x65xport_operation_metadata\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.ExportOperationMetadataH\x00\"B\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x42\x14\n\x12operation_metadata2\xac\x16\n\tDocuments\x12\xb9\x02\n\rListDocuments\x12\x30.google.cloud.dialogflow.v2.ListDocumentsRequest\x1a\x31.google.cloud.dialogflow.v2.ListDocumentsResponse\"\xc2\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xb2\x01\x12\x32/v2/{parent=projects/*/knowledgeBases/*}/documentsZ@\x12>/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documentsZ:\x12\x38/v2/{parent=projects/*/agent/knowledgeBases/*}/documents\x12\xa6\x02\n\x0bGetDocument\x12..google.cloud.dialogflow.v2.GetDocumentRequest\x1a$.google.cloud.dialogflow.v2.Document\"\xc0\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xb2\x01\x12\x32/v2/{name=projects/*/knowledgeBases/*/documents/*}Z@\x12>/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}Z:\x12\x38/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}\x12\xf7\x02\n\x0e\x43reateDocument\x12\x31.google.cloud.dialogflow.v2.CreateDocumentRequest\x1a\x1d.google.longrunning.Operation\"\x92\x02\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\xda\x41\x0fparent,document\x82\xd3\xe4\x93\x02\xd0\x01\"2/v2/{parent=projects/*/knowledgeBases/*}/documents:\x08\x64ocumentZJ\">/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents:\x08\x64ocumentZD\"8/v2/{parent=projects/*/agent/knowledgeBases/*}/documents:\x08\x64ocument\x12\xb0\x02\n\x0fImportDocuments\x12\x32.google.cloud.dialogflow.v2.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xc9\x01\xca\x41\x35\n\x17ImportDocumentsResponse\x12\x1aKnowledgeOperationMetadata\x82\xd3\xe4\x93\x02\x8a\x01\"9/v2/{parent=projects/*/knowledgeBases/*}/documents:import:\x01*ZJ\"E/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents:import:\x01*\x12\xdb\x02\n\x0e\x44\x65leteDocument\x12\x31.google.cloud.dialogflow.v2.DeleteDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xf6\x01\xca\x41\x33\n\x15google.protobuf.Empty\x12\x1aKnowledgeOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\xb2\x01*2/v2/{name=projects/*/knowledgeBases/*/documents/*}Z@*>/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}Z:*8/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}\x12\x97\x03\n\x0eUpdateDocument\x12\x31.google.cloud.dialogflow.v2.UpdateDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x02\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\xda\x41\x14\x64ocument,update_mask\x82\xd3\xe4\x93\x02\xeb\x01\x32;/v2/{document.name=projects/*/knowledgeBases/*/documents/*}:\x08\x64ocumentZS2G/v2/{document.name=projects/*/locations/*/knowledgeBases/*/documents/*}:\x08\x64ocumentZM2A/v2/{document.name=projects/*/agent/knowledgeBases/*/documents/*}:\x08\x64ocument\x12\xf8\x02\n\x0eReloadDocument\x12\x31.google.cloud.dialogflow.v2.ReloadDocumentRequest\x1a\x1d.google.longrunning.Operation\"\x93\x02\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\xda\x41\x10name,content_uri\x82\xd3\xe4\x93\x02\xd0\x01\"9/v2/{name=projects/*/knowledgeBases/*/documents/*}:reload:\x01*ZJ\"E/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:reload:\x01*ZD\"?/v2/{name=projects/*/agent/knowledgeBases/*/documents/*}:reload:\x01*\x12\x9f\x02\n\x0e\x45xportDocument\x12\x31.google.cloud.dialogflow.v2.ExportDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xba\x01\xca\x41&\n\x08\x44ocument\x12\x1aKnowledgeOperationMetadata\x82\xd3\xe4\x93\x02\x8a\x01\"9/v2/{name=projects/*/knowledgeBases/*/documents/*}:export:\x01*ZJ\"E/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:export:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x93\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\rDocumentProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.rpc.Status", "google/rpc/status.proto"],
    ["google.cloud.dialogflow.v2.GcsSources", "google/cloud/dialogflow/v2/gcs.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
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
