# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/dataqna/v1alpha/auto_suggestion_service.proto require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/dataqna/v1alpha/annotated_string_pb' require 'google/api/client_pb' descriptor_data = "\n:google/cloud/dataqna/v1alpha/auto_suggestion_service.proto\x12\x1cgoogle.cloud.dataqna.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dataqna/v1alpha/annotated_string.proto\x1a\x17google/api/client.proto\"\xb9\x01\n\x15SuggestQueriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06scopes\x18\x02 \x03(\t\x12\r\n\x05query\x18\x03 \x01(\t\x12\x46\n\x10suggestion_types\x18\x04 \x03(\x0e\x32,.google.cloud.dataqna.v1alpha.SuggestionType\"\xb1\x01\n\nSuggestion\x12\x45\n\x0fsuggestion_info\x18\x01 \x01(\x0b\x32,.google.cloud.dataqna.v1alpha.SuggestionInfo\x12\x15\n\rranking_score\x18\x02 \x01(\x01\x12\x45\n\x0fsuggestion_type\x18\x03 \x01(\x0e\x32,.google.cloud.dataqna.v1alpha.SuggestionType\"\xe3\x01\n\x0eSuggestionInfo\x12K\n\x14\x61nnotated_suggestion\x18\x01 \x01(\x0b\x32-.google.cloud.dataqna.v1alpha.AnnotatedString\x12M\n\rquery_matches\x18\x02 \x03(\x0b\x32\x36.google.cloud.dataqna.v1alpha.SuggestionInfo.MatchInfo\x1a\x35\n\tMatchInfo\x12\x18\n\x10start_char_index\x18\x01 \x01(\x05\x12\x0e\n\x06length\x18\x02 \x01(\x05\"W\n\x16SuggestQueriesResponse\x12=\n\x0bsuggestions\x18\x01 \x03(\x0b\x32(.google.cloud.dataqna.v1alpha.Suggestion*K\n\x0eSuggestionType\x12\x1f\n\x1bSUGGESTION_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x45NTITY\x10\x01\x12\x0c\n\x08TEMPLATE\x10\x02\x32\xa5\x02\n\x15\x41utoSuggestionService\x12\xbf\x01\n\x0eSuggestQueries\x12\x33.google.cloud.dataqna.v1alpha.SuggestQueriesRequest\x1a\x34.google.cloud.dataqna.v1alpha.SuggestQueriesResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1alpha/{parent=projects/*/locations/*}:suggestQueries:\x01*\x1aJ\xca\x41\x16\x64\x61taqna.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xdc\x01\n com.google.cloud.dataqna.v1alphaB\x1a\x41utoSuggestionServiceProtoP\x01Z:cloud.google.com/go/dataqna/apiv1alpha/dataqnapb;dataqnapb\xaa\x02\x1cGoogle.Cloud.DataQnA.V1Alpha\xca\x02\x1cGoogle\\Cloud\\DataQnA\\V1alpha\xea\x02\x1fGoogle::Cloud::DataQnA::V1alphab\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.dataqna.v1alpha.AnnotatedString", "google/cloud/dataqna/v1alpha/annotated_string.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 DataQnA module V1alpha SuggestQueriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataqna.v1alpha.SuggestQueriesRequest").msgclass Suggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataqna.v1alpha.Suggestion").msgclass SuggestionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataqna.v1alpha.SuggestionInfo").msgclass SuggestionInfo::MatchInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataqna.v1alpha.SuggestionInfo.MatchInfo").msgclass SuggestQueriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataqna.v1alpha.SuggestQueriesResponse").msgclass SuggestionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataqna.v1alpha.SuggestionType").enummodule end end end end