google-cloud-discovery_engine-v1beta 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +747 -1
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +199 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +698 -1
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +520 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +94 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +48 -23
- data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +48 -23
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +296 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +275 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +180 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +449 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +416 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +459 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +426 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +3 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +14 -7
- data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +14 -7
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +469 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/paths.rb +78 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +436 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +1077 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +5 -4
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +5 -4
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest.rb +2 -1
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service.rb +2 -1
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +3 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +67 -0
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +32 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +12 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +46 -0
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +8 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +50 -0
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +354 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +9 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +480 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +20 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +7 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +101 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +4 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +76 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +310 -24
- data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +99 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +171 -26
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +141 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +4 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +85 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +1 -1
- metadata +42 -2
@@ -57,6 +57,31 @@ module Google
|
|
57
57
|
# Lists all Conversations by their parent
|
58
58
|
# [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
|
59
59
|
rpc :ListConversations, ::Google::Cloud::DiscoveryEngine::V1beta::ListConversationsRequest, ::Google::Cloud::DiscoveryEngine::V1beta::ListConversationsResponse
|
60
|
+
# Answer query method.
|
61
|
+
rpc :AnswerQuery, ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest, ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryResponse
|
62
|
+
# Gets a Answer.
|
63
|
+
rpc :GetAnswer, ::Google::Cloud::DiscoveryEngine::V1beta::GetAnswerRequest, ::Google::Cloud::DiscoveryEngine::V1beta::Answer
|
64
|
+
# Creates a Session.
|
65
|
+
#
|
66
|
+
# If the [Session][google.cloud.discoveryengine.v1beta.Session] to create
|
67
|
+
# already exists, an ALREADY_EXISTS error is returned.
|
68
|
+
rpc :CreateSession, ::Google::Cloud::DiscoveryEngine::V1beta::CreateSessionRequest, ::Google::Cloud::DiscoveryEngine::V1beta::Session
|
69
|
+
# Deletes a Session.
|
70
|
+
#
|
71
|
+
# If the [Session][google.cloud.discoveryengine.v1beta.Session] to delete
|
72
|
+
# does not exist, a NOT_FOUND error is returned.
|
73
|
+
rpc :DeleteSession, ::Google::Cloud::DiscoveryEngine::V1beta::DeleteSessionRequest, ::Google::Protobuf::Empty
|
74
|
+
# Updates a Session.
|
75
|
+
#
|
76
|
+
# [Session][google.cloud.discoveryengine.v1beta.Session] action type cannot
|
77
|
+
# be changed. If the [Session][google.cloud.discoveryengine.v1beta.Session]
|
78
|
+
# to update does not exist, a NOT_FOUND error is returned.
|
79
|
+
rpc :UpdateSession, ::Google::Cloud::DiscoveryEngine::V1beta::UpdateSessionRequest, ::Google::Cloud::DiscoveryEngine::V1beta::Session
|
80
|
+
# Gets a Session.
|
81
|
+
rpc :GetSession, ::Google::Cloud::DiscoveryEngine::V1beta::GetSessionRequest, ::Google::Cloud::DiscoveryEngine::V1beta::Session
|
82
|
+
# Lists all Sessions by their parent
|
83
|
+
# [DataStore][google.cloud.discoveryengine.v1beta.DataStore].
|
84
|
+
rpc :ListSessions, ::Google::Cloud::DiscoveryEngine::V1beta::ListSessionsRequest, ::Google::Cloud::DiscoveryEngine::V1beta::ListSessionsResponse
|
60
85
|
end
|
61
86
|
|
62
87
|
Stub = Service.rpc_stub_class
|
@@ -7,10 +7,12 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
require 'google/cloud/discoveryengine/v1beta/common_pb'
|
10
|
+
require 'google/cloud/discoveryengine/v1beta/document_processing_config_pb'
|
11
|
+
require 'google/cloud/discoveryengine/v1beta/schema_pb'
|
10
12
|
require 'google/protobuf/timestamp_pb'
|
11
13
|
|
12
14
|
|
13
|
-
descriptor_data = "\n4google/cloud/discoveryengine/v1beta/data_store.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/discoveryengine/v1beta/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
15
|
+
descriptor_data = "\n4google/cloud/discoveryengine/v1beta/data_store.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/discoveryengine/v1beta/common.proto\x1a\x44google/cloud/discoveryengine/v1beta/document_processing_config.proto\x1a\x30google/cloud/discoveryengine/v1beta/schema.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x06\n\tDataStore\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x11industry_vertical\x18\x03 \x01(\x0e\x32\x35.google.cloud.discoveryengine.v1beta.IndustryVerticalB\x03\xe0\x41\x05\x12I\n\x0esolution_types\x18\x05 \x03(\x0e\x32\x31.google.cloud.discoveryengine.v1beta.SolutionType\x12\x1e\n\x11\x64\x65\x66\x61ult_schema_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12Y\n\x0e\x63ontent_config\x18\x06 \x01(\x0e\x32<.google.cloud.discoveryengine.v1beta.DataStore.ContentConfigB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x61\n\x1a\x64ocument_processing_config\x18\x1b \x01(\x0b\x32=.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig\x12\x44\n\x0fstarting_schema\x18\x1c \x01(\x0b\x32+.google.cloud.discoveryengine.v1beta.Schema\"i\n\rContentConfig\x12\x1e\n\x1a\x43ONTENT_CONFIG_UNSPECIFIED\x10\x00\x12\x0e\n\nNO_CONTENT\x10\x01\x12\x14\n\x10\x43ONTENT_REQUIRED\x10\x02\x12\x12\n\x0ePUBLIC_WEBSITE\x10\x03:\xc9\x01\xea\x41\xc5\x01\n(discoveryengine.googleapis.com/DataStore\x12?projects/{project}/locations/{location}/dataStores/{data_store}\x12Xprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}B\x95\x02\n\'com.google.cloud.discoveryengine.v1betaB\x0e\x44\x61taStoreProtoP\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"
|
14
16
|
|
15
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
18
|
|
@@ -26,6 +28,8 @@ rescue TypeError
|
|
26
28
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
29
|
imports = [
|
28
30
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.cloud.discoveryengine.v1beta.DocumentProcessingConfig", "google/cloud/discoveryengine/v1beta/document_processing_config.proto"],
|
32
|
+
["google.cloud.discoveryengine.v1beta.Schema", "google/cloud/discoveryengine/v1beta/schema.proto"],
|
29
33
|
]
|
30
34
|
imports.each do |type_name, expected_filename|
|
31
35
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -7,9 +7,10 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
require 'google/protobuf/struct_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
12
|
|
12
|
-
descriptor_data = "\n2google/cloud/discoveryengine/v1beta/document.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\"\
|
13
|
+
descriptor_data = "\n2google/cloud/discoveryengine/v1beta/document.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\x05\n\x08\x44ocument\x12.\n\x0bstruct_data\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x13\n\tjson_data\x18\x05 \x01(\tH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x0f\n\x02id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x11\n\tschema_id\x18\x03 \x01(\t\x12\x46\n\x07\x63ontent\x18\n \x01(\x0b\x32\x35.google.cloud.discoveryengine.v1beta.Document.Content\x12\x1a\n\x12parent_document_id\x18\x07 \x01(\t\x12\x39\n\x13\x64\x65rived_struct_data\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\x12\x33\n\nindex_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1aK\n\x07\x43ontent\x12\x13\n\traw_bytes\x18\x02 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x03 \x01(\tH\x00\x12\x11\n\tmime_type\x18\x01 \x01(\tB\t\n\x07\x63ontent:\x96\x02\xea\x41\x92\x02\n\'discoveryengine.googleapis.com/Document\x12\x66projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}\x12\x7fprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}B\x06\n\x04\x64\x61taB\x94\x02\n\'com.google.cloud.discoveryengine.v1betaB\rDocumentProtoP\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"
|
13
14
|
|
14
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
16
|
|
@@ -25,6 +26,7 @@ rescue TypeError
|
|
25
26
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
27
|
imports = [
|
27
28
|
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
30
|
]
|
29
31
|
imports.each do |type_name, expected_filename|
|
30
32
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/document_processing_config.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\nDgoogle/cloud/discoveryengine/v1beta/document_processing_config.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x08\n\x18\x44ocumentProcessingConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12k\n\x16\x64\x65\x66\x61ult_parsing_config\x18\x04 \x01(\x0b\x32K.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig\x12{\n\x18parsing_config_overrides\x18\x05 \x03(\x0b\x32Y.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOverridesEntry\x1a\x96\x03\n\rParsingConfig\x12\x82\x01\n\x16\x64igital_parsing_config\x18\x01 \x01(\x0b\x32`.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfigH\x00\x12z\n\x12ocr_parsing_config\x18\x02 \x01(\x0b\x32\\.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfigH\x00\x1a\x16\n\x14\x44igitalParsingConfig\x1aS\n\x10OcrParsingConfig\x12&\n\x1a\x65nhanced_document_elements\x18\x01 \x03(\tB\x02\x18\x01\x12\x17\n\x0fuse_native_text\x18\x02 \x01(\x08\x42\x17\n\x15type_dedicated_config\x1a\x8a\x01\n\x1bParsingConfigOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12Z\n\x05value\x18\x02 \x01(\x0b\x32K.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig:\x02\x38\x01:\x8a\x02\xea\x41\x86\x02\n7discoveryengine.googleapis.com/DocumentProcessingConfig\x12Xprojects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig\x12qprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfigB\xa4\x02\n\'com.google.cloud.discoveryengine.v1betaB\x1d\x44ocumentProcessingConfigProtoP\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"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Cloud
|
39
|
+
module DiscoveryEngine
|
40
|
+
module V1beta
|
41
|
+
DocumentProcessingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig").msgclass
|
42
|
+
DocumentProcessingConfig::ParsingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig").msgclass
|
43
|
+
DocumentProcessingConfig::ParsingConfig::DigitalParsingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig").msgclass
|
44
|
+
DocumentProcessingConfig::ParsingConfig::OcrParsingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig").msgclass
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -13,9 +13,10 @@ require 'google/cloud/discoveryengine/v1beta/import_config_pb'
|
|
13
13
|
require 'google/cloud/discoveryengine/v1beta/purge_config_pb'
|
14
14
|
require 'google/longrunning/operations_pb'
|
15
15
|
require 'google/protobuf/empty_pb'
|
16
|
+
require 'google/protobuf/field_mask_pb'
|
16
17
|
|
17
18
|
|
18
|
-
descriptor_data = "\n:google/cloud/discoveryengine/v1beta/document_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\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\x1bgoogle/protobuf/empty.proto\"S\n\x12GetDocumentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'discoveryengine.googleapis.com/Document\"|\n\x14ListDocumentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x15ListDocumentsResponse\x12@\n\tdocuments\x18\x01 \x03(\x0b\x32-.google.cloud.discoveryengine.v1beta.Document\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb6\x01\n\x15\x43reateDocumentRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x44\n\x08\x64ocument\x18\x02 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.DocumentB\x03\xe0\x41\x02\x12\x18\n\x0b\x64ocument_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"
|
19
|
+
descriptor_data = "\n:google/cloud/discoveryengine/v1beta/document_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\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\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"S\n\x12GetDocumentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'discoveryengine.googleapis.com/Document\"|\n\x14ListDocumentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x15ListDocumentsResponse\x12@\n\tdocuments\x18\x01 \x03(\x0b\x32-.google.cloud.discoveryengine.v1beta.Document\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb6\x01\n\x15\x43reateDocumentRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x44\n\x08\x64ocument\x18\x02 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.DocumentB\x03\xe0\x41\x02\x12\x18\n\x0b\x64ocument_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xa5\x01\n\x15UpdateDocumentRequest\x12\x44\n\x08\x64ocument\x18\x01 \x01(\x0b\x32-.google.cloud.discoveryengine.v1beta.DocumentB\x03\xe0\x41\x02\x12\x15\n\rallow_missing\x18\x02 \x01(\x08\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"V\n\x15\x44\x65leteDocumentRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'discoveryengine.googleapis.com/Document2\x9b\x14\n\x0f\x44ocumentService\x12\xac\x02\n\x0bGetDocument\x12\x37.google.cloud.discoveryengine.v1beta.GetDocumentRequest\x1a-.google.cloud.discoveryengine.v1beta.Document\"\xb4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa6\x01\x12I/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}ZY\x12W/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}\x12\xbf\x02\n\rListDocuments\x12\x39.google.cloud.discoveryengine.v1beta.ListDocumentsRequest\x1a:.google.cloud.discoveryengine.v1beta.ListDocumentsResponse\"\xb6\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xa6\x01\x12I/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documentsZY\x12W/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents\x12\xdd\x02\n\x0e\x43reateDocument\x12:.google.cloud.discoveryengine.v1beta.CreateDocumentRequest\x1a-.google.cloud.discoveryengine.v1beta.Document\"\xdf\x01\xda\x41\x1bparent,document,document_id\x82\xd3\xe4\x93\x02\xba\x01\"I/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:\x08\x64ocumentZc\"W/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:\x08\x64ocument\x12\xe8\x02\n\x0eUpdateDocument\x12:.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest\x1a-.google.cloud.discoveryengine.v1beta.Document\"\xea\x01\xda\x41\x14\x64ocument,update_mask\x82\xd3\xe4\x93\x02\xcc\x01\x32R/v1beta/{document.name=projects/*/locations/*/dataStores/*/branches/*/documents/*}:\x08\x64ocumentZl2`/v1beta/{document.name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}:\x08\x64ocument\x12\x9b\x02\n\x0e\x44\x65leteDocument\x12:.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest\x1a\x16.google.protobuf.Empty\"\xb4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa6\x01*I/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}ZY*W/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}\x12\xae\x03\n\x0fImportDocuments\x12;.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xbe\x02\xca\x41z\n;google.cloud.discoveryengine.v1beta.ImportDocumentsResponse\x12;google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata\x82\xd3\xe4\x93\x02\xba\x01\"P/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:import:\x01*Zc\"^/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:import:\x01*\x12\xa8\x03\n\x0ePurgeDocuments\x12:.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest\x1a\x1d.google.longrunning.Operation\"\xba\x02\xca\x41x\n:google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse\x12:google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata\x82\xd3\xe4\x93\x02\xb8\x01\"O/v1beta/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:purge:\x01*Zb\"]/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:purge:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9b\x02\n\'com.google.cloud.discoveryengine.v1betaB\x14\x44ocumentServiceProtoP\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"
|
19
20
|
|
20
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
22
|
|
@@ -31,6 +32,7 @@ rescue TypeError
|
|
31
32
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
32
33
|
imports = [
|
33
34
|
["google.cloud.discoveryengine.v1beta.Document", "google/cloud/discoveryengine/v1beta/document.proto"],
|
35
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
34
36
|
]
|
35
37
|
imports.each do |type_name, expected_filename|
|
36
38
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb'
|
|
15
15
|
require 'google/protobuf/timestamp_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n8google/cloud/discoveryengine/v1beta/engine_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/engine.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x01\n\x13\x43reateEngineRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)discoveryengine.googleapis.com/Collection\x12@\n\x06\x65ngine\x18\x02 \x01(\x0b\x32+.google.cloud.discoveryengine.v1beta.EngineB\x03\xe0\x41\x02\x12\x16\n\tengine_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"x\n\x14\x43reateEngineMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"R\n\x13\x44\x65leteEngineRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"x\n\x14\x44\x65leteEngineMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"O\n\x10GetEngineRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"\x9d\x01\n\x12ListEnginesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)discoveryengine.googleapis.com/Collection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"l\n\x13ListEnginesResponse\x12<\n\x07\x65ngines\x18\x01 \x03(\x0b\x32+.google.cloud.discoveryengine.v1beta.Engine\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x88\x01\n\x13UpdateEngineRequest\x12@\n\x06\x65ngine\x18\x01 \x01(\x0b\x32+.google.cloud.discoveryengine.v1beta.EngineB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.
|
18
|
+
descriptor_data = "\n8google/cloud/discoveryengine/v1beta/engine_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/engine.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x01\n\x13\x43reateEngineRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)discoveryengine.googleapis.com/Collection\x12@\n\x06\x65ngine\x18\x02 \x01(\x0b\x32+.google.cloud.discoveryengine.v1beta.EngineB\x03\xe0\x41\x02\x12\x16\n\tengine_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"x\n\x14\x43reateEngineMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"R\n\x13\x44\x65leteEngineRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"x\n\x14\x44\x65leteEngineMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"O\n\x10GetEngineRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"\x9d\x01\n\x12ListEnginesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)discoveryengine.googleapis.com/Collection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"l\n\x13ListEnginesResponse\x12<\n\x07\x65ngines\x18\x01 \x03(\x0b\x32+.google.cloud.discoveryengine.v1beta.Engine\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x88\x01\n\x13UpdateEngineRequest\x12@\n\x06\x65ngine\x18\x01 \x01(\x0b\x32+.google.cloud.discoveryengine.v1beta.EngineB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"Q\n\x12PauseEngineRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"R\n\x13ResumeEngineRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"P\n\x11TuneEngineRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"S\n\x12TuneEngineMetadata\x12=\n\x06\x65ngine\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Engine\"\x14\n\x12TuneEngineResponse2\xa7\x0f\n\rEngineService\x12\xba\x02\n\x0c\x43reateEngine\x12\x38.google.cloud.discoveryengine.v1beta.CreateEngineRequest\x1a\x1d.google.longrunning.Operation\"\xd0\x01\xca\x41\x66\n*google.cloud.discoveryengine.v1beta.Engine\x12\x38google.cloud.discoveryengine.v1beta.CreateEngineMetadata\xda\x41\x17parent,engine,engine_id\x82\xd3\xe4\x93\x02G\"=/v1beta/{parent=projects/*/locations/*/collections/*}/engines:\x06\x65ngine\x12\x8a\x02\n\x0c\x44\x65leteEngine\x12\x38.google.cloud.discoveryengine.v1beta.DeleteEngineRequest\x1a\x1d.google.longrunning.Operation\"\xa0\x01\xca\x41Q\n\x15google.protobuf.Empty\x12\x38google.cloud.discoveryengine.v1beta.DeleteEngineMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1beta/{name=projects/*/locations/*/collections/*/engines/*}\x12\xe0\x01\n\x0cUpdateEngine\x12\x38.google.cloud.discoveryengine.v1beta.UpdateEngineRequest\x1a+.google.cloud.discoveryengine.v1beta.Engine\"i\xda\x41\x12\x65ngine,update_mask\x82\xd3\xe4\x93\x02N2D/v1beta/{engine.name=projects/*/locations/*/collections/*/engines/*}:\x06\x65ngine\x12\xbd\x01\n\tGetEngine\x12\x35.google.cloud.discoveryengine.v1beta.GetEngineRequest\x1a+.google.cloud.discoveryengine.v1beta.Engine\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1beta/{name=projects/*/locations/*/collections/*/engines/*}\x12\xd0\x01\n\x0bListEngines\x12\x37.google.cloud.discoveryengine.v1beta.ListEnginesRequest\x1a\x38.google.cloud.discoveryengine.v1beta.ListEnginesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1beta/{parent=projects/*/locations/*/collections/*}/engines\x12\xca\x01\n\x0bPauseEngine\x12\x37.google.cloud.discoveryengine.v1beta.PauseEngineRequest\x1a+.google.cloud.discoveryengine.v1beta.Engine\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\"C/v1beta/{name=projects/*/locations/*/collections/*/engines/*}:pause:\x01*\x12\xcd\x01\n\x0cResumeEngine\x12\x38.google.cloud.discoveryengine.v1beta.ResumeEngineRequest\x1a+.google.cloud.discoveryengine.v1beta.Engine\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\"D/v1beta/{name=projects/*/locations/*/collections/*/engines/*}:resume:\x01*\x12\xe4\x01\n\nTuneEngine\x12\x36.google.cloud.discoveryengine.v1beta.TuneEngineRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41(\n\x12TuneEngineResponse\x12\x12TuneEngineMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02G\"B/v1beta/{name=projects/*/locations/*/collections/*/engines/*}:tune:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x99\x02\n\'com.google.cloud.discoveryengine.v1betaB\x12\x45ngineServiceProtoP\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"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
@@ -56,6 +56,11 @@ module Google
|
|
56
56
|
ListEnginesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ListEnginesRequest").msgclass
|
57
57
|
ListEnginesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ListEnginesResponse").msgclass
|
58
58
|
UpdateEngineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.UpdateEngineRequest").msgclass
|
59
|
+
PauseEngineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.PauseEngineRequest").msgclass
|
60
|
+
ResumeEngineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ResumeEngineRequest").msgclass
|
61
|
+
TuneEngineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.TuneEngineRequest").msgclass
|
62
|
+
TuneEngineMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.TuneEngineMetadata").msgclass
|
63
|
+
TuneEngineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.TuneEngineResponse").msgclass
|
59
64
|
end
|
60
65
|
end
|
61
66
|
end
|
@@ -45,6 +45,18 @@ module Google
|
|
45
45
|
# Lists all the [Engine][google.cloud.discoveryengine.v1beta.Engine]s
|
46
46
|
# associated with the project.
|
47
47
|
rpc :ListEngines, ::Google::Cloud::DiscoveryEngine::V1beta::ListEnginesRequest, ::Google::Cloud::DiscoveryEngine::V1beta::ListEnginesResponse
|
48
|
+
# Pauses the training of an existing engine. Only applicable if
|
49
|
+
# [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
|
50
|
+
# [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
|
51
|
+
rpc :PauseEngine, ::Google::Cloud::DiscoveryEngine::V1beta::PauseEngineRequest, ::Google::Cloud::DiscoveryEngine::V1beta::Engine
|
52
|
+
# Resumes the training of an existing engine. Only applicable if
|
53
|
+
# [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
|
54
|
+
# [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
|
55
|
+
rpc :ResumeEngine, ::Google::Cloud::DiscoveryEngine::V1beta::ResumeEngineRequest, ::Google::Cloud::DiscoveryEngine::V1beta::Engine
|
56
|
+
# Tunes an existing engine. Only applicable if
|
57
|
+
# [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
|
58
|
+
# [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
|
59
|
+
rpc :TuneEngine, ::Google::Cloud::DiscoveryEngine::V1beta::TuneEngineRequest, ::Google::Longrunning::Operation
|
48
60
|
end
|
49
61
|
|
50
62
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/discoveryengine/v1beta/grounding_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\nEgoogle/cloud/discoveryengine/v1beta/grounded_generation_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\x33google/cloud/discoveryengine/v1beta/grounding.proto\"L\n\x12\x43heckGroundingSpec\x12\x1f\n\x12\x63itation_threshold\x18\x01 \x01(\x01H\x00\x88\x01\x01\x42\x15\n\x13_citation_threshold\"\x97\x02\n\x15\x43heckGroundingRequest\x12P\n\x10grounding_config\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.discoveryengine.googleapis.com/GroundingConfig\x12\x18\n\x10\x61nswer_candidate\x18\x02 \x01(\t\x12\x41\n\x05\x66\x61\x63ts\x18\x03 \x03(\x0b\x32\x32.google.cloud.discoveryengine.v1beta.GroundingFact\x12O\n\x0egrounding_spec\x18\x04 \x01(\x0b\x32\x37.google.cloud.discoveryengine.v1beta.CheckGroundingSpec\"\xde\x02\n\x16\x43heckGroundingResponse\x12\x1a\n\rsupport_score\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x44\n\x0c\x63ited_chunks\x18\x03 \x03(\x0b\x32..google.cloud.discoveryengine.v1beta.FactChunk\x12Q\n\x06\x63laims\x18\x04 \x03(\x0b\x32\x41.google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim\x1a}\n\x05\x43laim\x12\x16\n\tstart_pos\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x14\n\x07\x65nd_pos\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x12\n\nclaim_text\x18\x03 \x01(\t\x12\x18\n\x10\x63itation_indices\x18\x04 \x03(\x05\x42\x0c\n\n_start_posB\n\n\x08_end_posB\x10\n\x0e_support_score2\xd2\x02\n\x19GroundedGenerationService\x12\xe0\x01\n\x0e\x43heckGrounding\x12:.google.cloud.discoveryengine.v1beta.CheckGroundingRequest\x1a;.google.cloud.discoveryengine.v1beta.CheckGroundingResponse\"U\x82\xd3\xe4\x93\x02O\"J/v1beta/{grounding_config=projects/*/locations/*/groundingConfigs/*}:check:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa5\x02\n\'com.google.cloud.discoveryengine.v1betaB\x1eGroundedGenerationServiceProtoP\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"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.cloud.discoveryengine.v1beta.GroundingFact", "google/cloud/discoveryengine/v1beta/grounding.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Cloud
|
43
|
+
module DiscoveryEngine
|
44
|
+
module V1beta
|
45
|
+
CheckGroundingSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingSpec").msgclass
|
46
|
+
CheckGroundingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingRequest").msgclass
|
47
|
+
CheckGroundingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingResponse").msgclass
|
48
|
+
CheckGroundingResponse::Claim = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim").msgclass
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto for package 'Google.Cloud.DiscoveryEngine.V1beta'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/discoveryengine/v1beta/grounded_generation_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DiscoveryEngine
|
25
|
+
module V1beta
|
26
|
+
module GroundedGenerationService
|
27
|
+
# Service for grounded generation.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.discoveryengine.v1beta.GroundedGenerationService'
|
35
|
+
|
36
|
+
# Performs a grounding check.
|
37
|
+
rpc :CheckGrounding, ::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingRequest, ::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse
|
38
|
+
end
|
39
|
+
|
40
|
+
Stub = Service.rpc_stub_class
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/grounding.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n3google/cloud/discoveryengine/v1beta/grounding.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xad\x01\n\rGroundingFact\x12\x11\n\tfact_text\x18\x01 \x01(\t\x12V\n\nattributes\x18\x02 \x03(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.GroundingFact.AttributesEntry\x1a\x31\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc3\x01\n\tFactChunk\x12\x12\n\nchunk_text\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12[\n\x0fsource_metadata\x18\x03 \x03(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.FactChunk.SourceMetadataEntry\x1a\x35\n\x13SourceMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x95\x02\n\'com.google.cloud.discoveryengine.v1betaB\x0eGroundingProtoP\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"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Google
|
38
|
+
module Cloud
|
39
|
+
module DiscoveryEngine
|
40
|
+
module V1beta
|
41
|
+
GroundingFact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GroundingFact").msgclass
|
42
|
+
FactChunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.FactChunk").msgclass
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -9,12 +9,13 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/cloud/discoveryengine/v1beta/completion_pb'
|
10
10
|
require 'google/cloud/discoveryengine/v1beta/document_pb'
|
11
11
|
require 'google/cloud/discoveryengine/v1beta/user_event_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
14
|
require 'google/rpc/status_pb'
|
14
15
|
require 'google/type/date_pb'
|
15
16
|
|
16
17
|
|
17
|
-
descriptor_data = "\n7google/cloud/discoveryengine/v1beta/import_config.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/discoveryengine/v1beta/completion.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x34google/cloud/discoveryengine/v1beta/user_event.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\"9\n\tGcsSource\x12\x17\n\ninput_uris\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61ta_schema\x18\x02 \x01(\t\"\xbc\x01\n\x0e\x42igQuerySource\x12+\n\x0epartition_date\x18\x05 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x17\n\ndataset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\x0fgcs_staging_dir\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x61ta_schema\x18\x06 \x01(\tB\x0b\n\tpartition\"8\n\x11ImportErrorConfig\x12\x14\n\ngcs_prefix\x18\x01 \x01(\tH\x00\x42\r\n\x0b\x64\x65stination\"\x87\x04\n\x17ImportUserEventsRequest\x12\x62\n\rinline_source\x18\x02 \x01(\x0b\x32I.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceH\x00\x12\x44\n\ngcs_source\x18\x03 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.GcsSourceH\x00\x12N\n\x0f\x62igquery_source\x18\x04 \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.BigQuerySourceH\x00\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12L\n\x0c\x65rror_config\x18\x05 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x1aX\n\x0cInlineSource\x12H\n\x0buser_events\x18\x01 \x03(\x0b\x32..google.cloud.discoveryengine.v1beta.UserEventB\x03\xe0\x41\x02\x42\x08\n\x06source\"\xcf\x01\n\x18ImportUserEventsResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12L\n\x0c\x65rror_config\x18\x02 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x12\x1b\n\x13joined_events_count\x18\x03 \x01(\x03\x12\x1d\n\x15unjoined_events_count\x18\x04 \x01(\x03\"\xaa\x01\n\x18ImportUserEventsMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rsuccess_count\x18\x03 \x01(\x03\x12\x15\n\rfailure_count\x18\x04 \x01(\x03\"\
|
18
|
+
descriptor_data = "\n7google/cloud/discoveryengine/v1beta/import_config.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/discoveryengine/v1beta/completion.proto\x1a\x32google/cloud/discoveryengine/v1beta/document.proto\x1a\x34google/cloud/discoveryengine/v1beta/user_event.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\"9\n\tGcsSource\x12\x17\n\ninput_uris\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x61ta_schema\x18\x02 \x01(\t\"\xbc\x01\n\x0e\x42igQuerySource\x12+\n\x0epartition_date\x18\x05 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x17\n\ndataset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\x0fgcs_staging_dir\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x61ta_schema\x18\x06 \x01(\tB\x0b\n\tpartition\"\x89\x01\n\rSpannerSource\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x11\x65nable_data_boost\x18\x05 \x01(\x08\"\xa9\x07\n\x0f\x42igtableOptions\x12\x16\n\x0ekey_field_name\x18\x01 \x01(\t\x12T\n\x08\x66\x61milies\x18\x02 \x03(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.BigtableOptions.FamiliesEntry\x1a\x9a\x02\n\x14\x42igtableColumnFamily\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12O\n\x08\x65ncoding\x18\x02 \x01(\x0e\x32=.google.cloud.discoveryengine.v1beta.BigtableOptions.Encoding\x12G\n\x04type\x18\x03 \x01(\x0e\x32\x39.google.cloud.discoveryengine.v1beta.BigtableOptions.Type\x12T\n\x07\x63olumns\x18\x04 \x03(\x0b\x32\x43.google.cloud.discoveryengine.v1beta.BigtableOptions.BigtableColumn\x1a\xd6\x01\n\x0e\x42igtableColumn\x12\x16\n\tqualifier\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x02\x12\x12\n\nfield_name\x18\x02 \x01(\t\x12O\n\x08\x65ncoding\x18\x03 \x01(\x0e\x32=.google.cloud.discoveryengine.v1beta.BigtableOptions.Encoding\x12G\n\x04type\x18\x04 \x01(\x0e\x32\x39.google.cloud.discoveryengine.v1beta.BigtableOptions.Type\x1az\n\rFamiliesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12X\n\x05value\x18\x02 \x01(\x0b\x32I.google.cloud.discoveryengine.v1beta.BigtableOptions.BigtableColumnFamily:\x02\x38\x01\"z\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x01\x12\n\n\x06NUMBER\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x0f\n\x0bVAR_INTEGER\x10\x04\x12\x0f\n\x0b\x42IG_NUMERIC\x10\x05\x12\x0b\n\x07\x42OOLEAN\x10\x06\x12\x08\n\x04JSON\x10\x07\":\n\x08\x45ncoding\x12\x18\n\x14\x45NCODING_UNSPECIFIED\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\n\n\x06\x42INARY\x10\x02\"\xaa\x01\n\x0e\x42igtableSource\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12S\n\x10\x62igtable_options\x18\x04 \x01(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.BigtableOptionsB\x03\xe0\x41\x02\"k\n\x0f\x46hirStoreSource\x12?\n\nfhir_store\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#healthcare.googleapis.com/FhirStore\x12\x17\n\x0fgcs_staging_dir\x18\x02 \x01(\t\"\x99\x01\n\x0e\x43loudSqlSource\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x18\n\x0binstance_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\x0fgcs_staging_dir\x18\x05 \x01(\t\x12\x0f\n\x07offload\x18\x06 \x01(\x08\"t\n\x0f\x46irestoreSource\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x61tabase_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcollection_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\x0fgcs_staging_dir\x18\x04 \x01(\t\"8\n\x11ImportErrorConfig\x12\x14\n\ngcs_prefix\x18\x01 \x01(\tH\x00\x42\r\n\x0b\x64\x65stination\"\x87\x04\n\x17ImportUserEventsRequest\x12\x62\n\rinline_source\x18\x02 \x01(\x0b\x32I.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceH\x00\x12\x44\n\ngcs_source\x18\x03 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.GcsSourceH\x00\x12N\n\x0f\x62igquery_source\x18\x04 \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.BigQuerySourceH\x00\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12L\n\x0c\x65rror_config\x18\x05 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x1aX\n\x0cInlineSource\x12H\n\x0buser_events\x18\x01 \x03(\x0b\x32..google.cloud.discoveryengine.v1beta.UserEventB\x03\xe0\x41\x02\x42\x08\n\x06source\"\xcf\x01\n\x18ImportUserEventsResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12L\n\x0c\x65rror_config\x18\x02 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x12\x1b\n\x13joined_events_count\x18\x03 \x01(\x03\x12\x1d\n\x15unjoined_events_count\x18\x04 \x01(\x03\"\xaa\x01\n\x18ImportUserEventsMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rsuccess_count\x18\x03 \x01(\x03\x12\x15\n\rfailure_count\x18\x04 \x01(\x03\"\xbe\x01\n\x17ImportDocumentsMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rsuccess_count\x18\x03 \x01(\x03\x12\x15\n\rfailure_count\x18\x04 \x01(\x03\x12\x13\n\x0btotal_count\x18\x05 \x01(\x03\"\xb4\t\n\x16ImportDocumentsRequest\x12\x61\n\rinline_source\x18\x02 \x01(\x0b\x32H.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSourceH\x00\x12\x44\n\ngcs_source\x18\x03 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.GcsSourceH\x00\x12N\n\x0f\x62igquery_source\x18\x04 \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.BigQuerySourceH\x00\x12Q\n\x11\x66hir_store_source\x18\n \x01(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.FhirStoreSourceH\x00\x12L\n\x0espanner_source\x18\x0b \x01(\x0b\x32\x32.google.cloud.discoveryengine.v1beta.SpannerSourceH\x00\x12O\n\x10\x63loud_sql_source\x18\x0c \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.CloudSqlSourceH\x00\x12P\n\x10\x66irestore_source\x18\r \x01(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.FirestoreSourceH\x00\x12N\n\x0f\x62igtable_source\x18\x0f \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.BigtableSourceH\x00\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12L\n\x0c\x65rror_config\x18\x05 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\x12k\n\x13reconciliation_mode\x18\x06 \x01(\x0e\x32N.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode\x12/\n\x0bupdate_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x19\n\x11\x61uto_generate_ids\x18\x08 \x01(\x08\x12\x10\n\x08id_field\x18\t \x01(\t\x1aU\n\x0cInlineSource\x12\x45\n\tdocuments\x18\x01 \x03(\x0b\x32-.google.cloud.discoveryengine.v1beta.DocumentB\x03\xe0\x41\x02\"T\n\x12ReconciliationMode\x12#\n\x1fRECONCILIATION_MODE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINCREMENTAL\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x42\x08\n\x06source\"\x92\x01\n\x17ImportDocumentsResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12L\n\x0c\x65rror_config\x18\x02 \x01(\x0b\x32\x36.google.cloud.discoveryengine.v1beta.ImportErrorConfig\"\x91\x03\n&ImportSuggestionDenyListEntriesRequest\x12q\n\rinline_source\x18\x02 \x01(\x0b\x32X.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSourceH\x00\x12\x44\n\ngcs_source\x18\x03 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.GcsSourceH\x00\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x1a\x62\n\x0cInlineSource\x12R\n\x07\x65ntries\x18\x01 \x03(\x0b\x32<.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntryB\x03\xe0\x41\x02\x42\x08\n\x06source\"\x92\x01\n\'ImportSuggestionDenyListEntriesResponse\x12)\n\rerror_samples\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16imported_entries_count\x18\x02 \x01(\x03\x12\x1c\n\x14\x66\x61iled_entries_count\x18\x03 \x01(\x03\"\x8b\x01\n\'ImportSuggestionDenyListEntriesMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x98\x02\n\'com.google.cloud.discoveryengine.v1betaB\x11ImportConfigProtoP\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"
|
18
19
|
|
19
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
21
|
|
@@ -33,6 +34,7 @@ rescue TypeError
|
|
33
34
|
["google.cloud.discoveryengine.v1beta.UserEvent", "google/cloud/discoveryengine/v1beta/user_event.proto"],
|
34
35
|
["google.rpc.Status", "google/rpc/status.proto"],
|
35
36
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
37
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
38
|
["google.cloud.discoveryengine.v1beta.Document", "google/cloud/discoveryengine/v1beta/document.proto"],
|
37
39
|
["google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry", "google/cloud/discoveryengine/v1beta/completion.proto"],
|
38
40
|
]
|
@@ -52,6 +54,16 @@ module Google
|
|
52
54
|
module V1beta
|
53
55
|
GcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GcsSource").msgclass
|
54
56
|
BigQuerySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.BigQuerySource").msgclass
|
57
|
+
SpannerSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SpannerSource").msgclass
|
58
|
+
BigtableOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.BigtableOptions").msgclass
|
59
|
+
BigtableOptions::BigtableColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.BigtableOptions.BigtableColumnFamily").msgclass
|
60
|
+
BigtableOptions::BigtableColumn = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.BigtableOptions.BigtableColumn").msgclass
|
61
|
+
BigtableOptions::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.BigtableOptions.Type").enummodule
|
62
|
+
BigtableOptions::Encoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.BigtableOptions.Encoding").enummodule
|
63
|
+
BigtableSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.BigtableSource").msgclass
|
64
|
+
FhirStoreSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.FhirStoreSource").msgclass
|
65
|
+
CloudSqlSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CloudSqlSource").msgclass
|
66
|
+
FirestoreSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.FirestoreSource").msgclass
|
55
67
|
ImportErrorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ImportErrorConfig").msgclass
|
56
68
|
ImportUserEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ImportUserEventsRequest").msgclass
|
57
69
|
ImportUserEventsRequest::InlineSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource").msgclass
|
@@ -10,7 +10,7 @@ require 'google/protobuf/timestamp_pb'
|
|
10
10
|
require 'google/rpc/status_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n6google/cloud/discoveryengine/v1beta/purge_config.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"z\n\x15PurgeDocumentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\"q\n\x16PurgeDocumentsResponse\x12\x13\n\x0bpurge_count\x18\x01 \x01(\x03\x12\x42\n\x0cpurge_sample\x18\x02 \x03(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\"\
|
13
|
+
descriptor_data = "\n6google/cloud/discoveryengine/v1beta/purge_config.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"z\n\x15PurgeDocumentsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Branch\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\"q\n\x16PurgeDocumentsResponse\x12\x13\n\x0bpurge_count\x18\x01 \x01(\x03\x12\x42\n\x0cpurge_sample\x18\x02 \x03(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\"\xbf\x01\n\x16PurgeDocumentsMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rsuccess_count\x18\x03 \x01(\x03\x12\x15\n\rfailure_count\x18\x04 \x01(\x03\x12\x15\n\rignored_count\x18\x05 \x01(\x03\"i\n%PurgeSuggestionDenyListEntriesRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\"h\n&PurgeSuggestionDenyListEntriesResponse\x12\x13\n\x0bpurge_count\x18\x01 \x01(\x03\x12)\n\rerror_samples\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x8a\x01\n&PurgeSuggestionDenyListEntriesMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x97\x02\n\'com.google.cloud.discoveryengine.v1betaB\x10PurgeConfigProtoP\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"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/rank_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
|
12
|
+
|
13
|
+
descriptor_data = "\n6google/cloud/discoveryengine/v1beta/rank_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\"J\n\rRankingRecord\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\"\xfd\x01\n\x0bRankRequest\x12L\n\x0eranking_config\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,discoveryengine.googleapis.com/RankingConfig\x12\r\n\x05model\x18\x02 \x01(\t\x12\r\n\x05top_n\x18\x03 \x01(\x05\x12\r\n\x05query\x18\x04 \x01(\t\x12H\n\x07records\x18\x05 \x03(\x0b\x32\x32.google.cloud.discoveryengine.v1beta.RankingRecordB\x03\xe0\x41\x02\x12)\n!ignore_record_details_in_response\x18\x06 \x01(\x08\"S\n\x0cRankResponse\x12\x43\n\x07records\x18\x05 \x03(\x0b\x32\x32.google.cloud.discoveryengine.v1beta.RankingRecord2\xa1\x02\n\x0bRankService\x12\xbd\x01\n\x04Rank\x12\x30.google.cloud.discoveryengine.v1beta.RankRequest\x1a\x31.google.cloud.discoveryengine.v1beta.RankResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1beta/{ranking_config=projects/*/locations/*/rankingConfigs/*}:rank:\x01*\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x97\x02\n\'com.google.cloud.discoveryengine.v1betaB\x10RankServiceProtoP\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"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
37
|
+
end
|
38
|
+
|
39
|
+
module Google
|
40
|
+
module Cloud
|
41
|
+
module DiscoveryEngine
|
42
|
+
module V1beta
|
43
|
+
RankingRecord = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.RankingRecord").msgclass
|
44
|
+
RankRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.RankRequest").msgclass
|
45
|
+
RankResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.RankResponse").msgclass
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/discoveryengine/v1beta/rank_service.proto for package 'Google.Cloud.DiscoveryEngine.V1beta'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/discoveryengine/v1beta/rank_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module DiscoveryEngine
|
25
|
+
module V1beta
|
26
|
+
module RankService
|
27
|
+
# Service for ranking text records.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.discoveryengine.v1beta.RankService'
|
35
|
+
|
36
|
+
# Ranks a list of text records based on the given input query.
|
37
|
+
rpc :Rank, ::Google::Cloud::DiscoveryEngine::V1beta::RankRequest, ::Google::Cloud::DiscoveryEngine::V1beta::RankResponse
|
38
|
+
end
|
39
|
+
|
40
|
+
Stub = Service.rpc_stub_class
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|