# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/discoveryengine/v1beta/completion_service.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/discoveryengine/v1beta/common_pb'
require 'google/cloud/discoveryengine/v1beta/document_pb'
require 'google/cloud/discoveryengine/v1beta/import_config_pb'
require 'google/cloud/discoveryengine/v1beta/purge_config_pb'
require 'google/longrunning/operations_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n<google/cloud/discoveryengine/v1beta/completion_service.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/discoveryengine/v1beta/common.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x37google/cloud/discoveryengine/v1beta/import_config.proto\x1a\x36google/cloud/discoveryengine/v1beta/purge_config.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbf\x01\n\x14\x43ompleteQueryRequest\x12\x44\n\ndata_store\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bquery_model\x18\x03 \x01(\t\x12\x16\n\x0euser_pseudo_id\x18\x04 \x01(\t\x12 \n\x18include_tail_suggestions\x18\x05 \x01(\x08\"\xe4\x01\n\x15\x43ompleteQueryResponse\x12\x65\n\x11query_suggestions\x18\x01 \x03(\x0b\x32J.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion\x12\x1c\n\x14tail_match_triggered\x18\x02 \x01(\x08\x1a\x46\n\x0fQuerySuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12\x1f\n\x17\x63ompletable_field_paths\x18\x02 \x03(\t\"\xb8\x06\n\x1c\x41\x64vancedCompleteQueryRequest\x12R\n\x11\x63ompletion_config\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/discoveryengine.googleapis.com/CompletionConfig\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bquery_model\x18\x03 \x01(\t\x12\x16\n\x0euser_pseudo_id\x18\x04 \x01(\t\x12\x45\n\tuser_info\x18\t \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.UserInfoB\x03\xe0\x41\x01\x12 \n\x18include_tail_suggestions\x18\x05 \x01(\x08\x12\x64\n\nboost_spec\x18\x06 \x01(\x0b\x32K.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecB\x03\xe0\x41\x01\x12o\n\x10suggestion_types\x18\x07 \x03(\x0e\x32P.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeB\x03\xe0\x41\x01\x1a\xc2\x01\n\tBoostSpec\x12}\n\x15\x63ondition_boost_specs\x18\x01 \x03(\x0b\x32^.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec\x1a\x36\n\x12\x43onditionBoostSpec\x12\x11\n\tcondition\x18\x01 \x01(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\"~\n\x0eSuggestionType\x12\x1f\n\x1bSUGGESTION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05QUERY\x10\x01\x12\n\n\x06PEOPLE\x10\x02\x12\x0b\n\x07\x43ONTENT\x10\x03\x12\x11\n\rRECENT_SEARCH\x10\x04\x12\x14\n\x10GOOGLE_WORKSPACE\x10\x05\"\xc5\x0b\n\x1d\x41\x64vancedCompleteQueryResponse\x12m\n\x11query_suggestions\x18\x01 \x03(\x0b\x32R.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion\x12\x1c\n\x14tail_match_triggered\x18\x02 \x01(\x08\x12o\n\x12people_suggestions\x18\x03 \x03(\x0b\x32S.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion\x12q\n\x13\x63ontent_suggestions\x18\x04 \x03(\x0b\x32T.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion\x12|\n\x19recent_search_suggestions\x18\x05 \x03(\x0b\x32Y.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion\x1aZ\n\x0fQuerySuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12\x1f\n\x17\x63ompletable_field_paths\x18\x02 \x03(\t\x12\x12\n\ndata_store\x18\x03 \x03(\t\x1a\xf8\x02\n\x10PersonSuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12s\n\x0bperson_type\x18\x02 \x01(\x0e\x32^.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType\x12?\n\x08\x64ocument\x18\x04 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.Document\x12\x41\n\ndata_store\x18\x05 \x01(\tB-\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\"W\n\nPersonType\x12\x1b\n\x17PERSON_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43LOUD_IDENTITY\x10\x01\x12\x18\n\x14THIRD_PARTY_IDENTITY\x10\x02\x1a\xf7\x02\n\x11\x43ontentSuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12v\n\x0c\x63ontent_type\x18\x02 \x01(\x0e\x32`.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType\x12?\n\x08\x64ocument\x18\x04 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.Document\x12\x41\n\ndata_store\x18\x05 \x01(\tB-\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\"R\n\x0b\x43ontentType\x12\x1c\n\x18\x43ONTENT_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10GOOGLE_WORKSPACE\x10\x01\x12\x0f\n\x0bTHIRD_PARTY\x10\x02\x1a\x64\n\x16RecentSearchSuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12\x36\n\x12recent_search_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xc0\x16\n\x11\x43ompletionService\x12\xb0\x02\n\rCompleteQuery\x12\x39.google.cloud.discoveryengine.v1beta.CompleteQueryRequest\x1a:.google.cloud.discoveryengine.v1beta.CompleteQueryResponse\"\xa7\x01\x82\xd3\xe4\x93\x02\xa0\x01\x12\x46/v1beta/{data_store=projects/*/locations/*/dataStores/*}:completeQueryZV\x12T/v1beta/{data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQuery\x12\xee\x03\n\x15\x41\x64vancedCompleteQuery\x12\x41.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest\x1a\x42.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse\"\xcd\x02\x82\xd3\xe4\x93\x02\xc6\x02\"^/v1beta/{completion_config=projects/*/locations/*/dataStores/*/completionConfig}:completeQuery:\x01*Zq\"l/v1beta/{completion_config=projects/*/locations/*/collections/*/dataStores/*/completionConfig}:completeQuery:\x01*Zn\"i/v1beta/{completion_config=projects/*/locations/*/collections/*/engines/*/completionConfig}:completeQuery:\x01*\x12\xf9\x03\n\x1fImportSuggestionDenyListEntries\x12K.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest\x1a\x1d.google.longrunning.Operation\"\xe9\x02\xca\x41\x9a\x01\nKgoogle.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse\x12Kgoogle.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata\x82\xd3\xe4\x93\x02\xc4\x01\"c/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import:\x01*ZZ\"U/v1beta/{parent=projects/*/locations/*/dataStores/*}/suggestionDenyListEntries:import:\x01*\x12\xf4\x03\n\x1ePurgeSuggestionDenyListEntries\x12J.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest\x1a\x1d.google.longrunning.Operation\"\xe6\x02\xca\x41\x98\x01\nJgoogle.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse\x12Jgoogle.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata\x82\xd3\xe4\x93\x02\xc3\x01\"b/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:purge:\x01*ZZ\"U/v1beta/{parent=projects/*/locations/*/dataStores/**}/suggestionDenyListEntries:purge:\x01*\x12\xe1\x03\n\x1bImportCompletionSuggestions\x12G.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest\x1a\x1d.google.longrunning.Operation\"\xd9\x02\xca\x41\x92\x01\nGgoogle.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse\x12Ggoogle.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata\x82\xd3\xe4\x93\x02\xbc\x01\"_/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:import:\x01*ZV\"Q/v1beta/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:import:\x01*\x12\xdb\x03\n\x1aPurgeCompletionSuggestions\x12\x46.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest\x1a\x1d.google.longrunning.Operation\"\xd5\x02\xca\x41\x90\x01\nFgoogle.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse\x12\x46google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata\x82\xd3\xe4\x93\x02\xba\x01\"^/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:purge:\x01*ZU\"P/v1beta/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:purge:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9d\x02\n\'com.google.cloud.discoveryengine.v1betaB\x16\x43ompletionServiceProtoP\x01ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\xa2\x02\x0f\x44ISCOVERYENGINE\xaa\x02#Google.Cloud.DiscoveryEngine.V1Beta\xca\x02#Google\\Cloud\\DiscoveryEngine\\V1beta\xea\x02&Google::Cloud::DiscoveryEngine::V1betab\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.cloud.discoveryengine.v1beta.UserInfo", "google/cloud/discoveryengine/v1beta/common.proto"],
    ["google.cloud.discoveryengine.v1beta.Document", "google/cloud/discoveryengine/v1beta/document.proto"],
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.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 DiscoveryEngine
      module V1beta
        CompleteQueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CompleteQueryRequest").msgclass
        CompleteQueryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CompleteQueryResponse").msgclass
        CompleteQueryResponse::QuerySuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion").msgclass
        AdvancedCompleteQueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest").msgclass
        AdvancedCompleteQueryRequest::BoostSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec").msgclass
        AdvancedCompleteQueryRequest::BoostSpec::ConditionBoostSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec").msgclass
        AdvancedCompleteQueryRequest::SuggestionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType").enummodule
        AdvancedCompleteQueryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse").msgclass
        AdvancedCompleteQueryResponse::QuerySuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion").msgclass
        AdvancedCompleteQueryResponse::PersonSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion").msgclass
        AdvancedCompleteQueryResponse::PersonSuggestion::PersonType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType").enummodule
        AdvancedCompleteQueryResponse::ContentSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion").msgclass
        AdvancedCompleteQueryResponse::ContentSuggestion::ContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType").enummodule
        AdvancedCompleteQueryResponse::RecentSearchSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion").msgclass
      end
    end
  end
end
