google-cloud-discovery_engine-v1beta 0.12.0 → 0.14.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/completion_service/client.rb +219 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +205 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +136 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +19 -1
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +19 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +10 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +824 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +318 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +770 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +1106 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/service_stub.rb +306 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +3 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +1035 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb +73 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +967 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +1106 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/service_stub.rb +426 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +911 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/paths.rb +69 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +850 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +60 -5
- data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +68 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +60 -5
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +139 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +132 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +75 -0
- 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 +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +56 -0
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_services_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1beta/purge_config_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_services_pb.rb +63 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_pb.rb +47 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_services_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +20 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +5 -0
- data/proto_docs/google/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +14 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +119 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion.rb +31 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +38 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +25 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +10 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +43 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +223 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +194 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +199 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +119 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query.rb +82 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_service.rb +179 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set_service.rb +186 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +401 -8
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +11 -5
- metadata +44 -2
@@ -137,6 +137,44 @@ module Google
|
|
137
137
|
result
|
138
138
|
end
|
139
139
|
|
140
|
+
##
|
141
|
+
# Baseline implementation for the purge_user_events REST call
|
142
|
+
#
|
143
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::PurgeUserEventsRequest]
|
144
|
+
# A request object representing the call parameters. Required.
|
145
|
+
# @param options [::Gapic::CallOptions]
|
146
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
147
|
+
#
|
148
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
149
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
150
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
151
|
+
#
|
152
|
+
# @return [::Google::Longrunning::Operation]
|
153
|
+
# A result object deserialized from the server's reply
|
154
|
+
def purge_user_events request_pb, options = nil
|
155
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
156
|
+
|
157
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_purge_user_events_request request_pb
|
158
|
+
query_string_params = if query_string_params.any?
|
159
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
160
|
+
else
|
161
|
+
{}
|
162
|
+
end
|
163
|
+
|
164
|
+
response = @client_stub.make_http_request(
|
165
|
+
verb,
|
166
|
+
uri: uri,
|
167
|
+
body: body || "",
|
168
|
+
params: query_string_params,
|
169
|
+
options: options
|
170
|
+
)
|
171
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
172
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
173
|
+
|
174
|
+
yield result, operation if block_given?
|
175
|
+
result
|
176
|
+
end
|
177
|
+
|
140
178
|
##
|
141
179
|
# Baseline implementation for the import_user_events REST call
|
142
180
|
#
|
@@ -238,6 +276,43 @@ module Google
|
|
238
276
|
["parent", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
|
239
277
|
]
|
240
278
|
)
|
279
|
+
.with_bindings(
|
280
|
+
uri_method: :get,
|
281
|
+
uri_template: "/v1beta/{parent}/userEvents:collect",
|
282
|
+
matches: [
|
283
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
284
|
+
]
|
285
|
+
)
|
286
|
+
transcoder.transcode request_pb
|
287
|
+
end
|
288
|
+
|
289
|
+
##
|
290
|
+
# @private
|
291
|
+
#
|
292
|
+
# GRPC transcoding helper method for the purge_user_events REST call
|
293
|
+
#
|
294
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1beta::PurgeUserEventsRequest]
|
295
|
+
# A request object representing the call parameters. Required.
|
296
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
297
|
+
# Uri, Body, Query string parameters
|
298
|
+
def self.transcode_purge_user_events_request request_pb
|
299
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
300
|
+
.with_bindings(
|
301
|
+
uri_method: :post,
|
302
|
+
uri_template: "/v1beta/{parent}/userEvents:purge",
|
303
|
+
body: "*",
|
304
|
+
matches: [
|
305
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/?$}, false]
|
306
|
+
]
|
307
|
+
)
|
308
|
+
.with_bindings(
|
309
|
+
uri_method: :post,
|
310
|
+
uri_template: "/v1beta/{parent}/userEvents:purge",
|
311
|
+
body: "*",
|
312
|
+
matches: [
|
313
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
|
314
|
+
]
|
315
|
+
)
|
241
316
|
transcoder.transcode request_pb
|
242
317
|
end
|
243
318
|
|
@@ -23,10 +23,13 @@ require "google/cloud/discovery_engine/v1beta/conversational_search_service"
|
|
23
23
|
require "google/cloud/discovery_engine/v1beta/data_store_service"
|
24
24
|
require "google/cloud/discovery_engine/v1beta/document_service"
|
25
25
|
require "google/cloud/discovery_engine/v1beta/engine_service"
|
26
|
+
require "google/cloud/discovery_engine/v1beta/evaluation_service"
|
26
27
|
require "google/cloud/discovery_engine/v1beta/grounded_generation_service"
|
27
28
|
require "google/cloud/discovery_engine/v1beta/project_service"
|
28
29
|
require "google/cloud/discovery_engine/v1beta/rank_service"
|
29
30
|
require "google/cloud/discovery_engine/v1beta/recommendation_service"
|
31
|
+
require "google/cloud/discovery_engine/v1beta/sample_query_service"
|
32
|
+
require "google/cloud/discovery_engine/v1beta/sample_query_set_service"
|
30
33
|
require "google/cloud/discovery_engine/v1beta/schema_service"
|
31
34
|
require "google/cloud/discovery_engine/v1beta/search_tuning_service"
|
32
35
|
require "google/cloud/discovery_engine/v1beta/serving_config_service"
|
@@ -10,7 +10,7 @@ require 'google/protobuf/struct_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/answer.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\"\
|
13
|
+
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/answer.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\"\xc3\x1f\n\x06\x41nswer\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12@\n\x05state\x18\x02 \x01(\x0e\x32\x31.google.cloud.discoveryengine.v1beta.Answer.State\x12\x13\n\x0b\x61nswer_text\x18\x03 \x01(\t\x12G\n\tcitations\x18\x04 \x03(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.Answer.Citation\x12I\n\nreferences\x18\x05 \x03(\x0b\x32\x35.google.cloud.discoveryengine.v1beta.Answer.Reference\x12\x19\n\x11related_questions\x18\x06 \x03(\t\x12?\n\x05steps\x18\x07 \x03(\x0b\x32\x30.google.cloud.discoveryengine.v1beta.Answer.Step\x12\x64\n\x18query_understanding_info\x18\n \x01(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo\x12_\n\x16\x61nswer_skipped_reasons\x18\x0b \x03(\x0e\x32?.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x36\n\rcomplete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a\x7f\n\x08\x43itation\x12\x13\n\x0bstart_index\x18\x01 \x01(\x03\x12\x11\n\tend_index\x18\x02 \x01(\x03\x12K\n\x07sources\x18\x03 \x03(\x0b\x32:.google.cloud.discoveryengine.v1beta.Answer.CitationSource\x1a&\n\x0e\x43itationSource\x12\x14\n\x0creference_id\x18\x01 \x01(\t\x1a\xe9\x07\n\tReference\x12t\n\x1aunstructured_document_info\x18\x01 \x01(\x0b\x32N.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfoH\x00\x12U\n\nchunk_info\x18\x02 \x01(\x0b\x32?.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoH\x00\x1a\xd3\x02\n\x18UnstructuredDocumentInfo\x12>\n\x08\x64ocument\x18\x01 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12s\n\x0e\x63hunk_contents\x18\x04 \x03(\x0b\x32[.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent\x12,\n\x0bstruct_data\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x38\n\x0c\x43hunkContent\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x17\n\x0fpage_identifier\x18\x02 \x01(\t\x1a\xad\x03\n\tChunkInfo\x12\x38\n\x05\x63hunk\x18\x01 \x01(\tB)\xfa\x41&\n$discoveryengine.googleapis.com/Chunk\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\x1c\n\x0frelevance_score\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12k\n\x11\x64ocument_metadata\x18\x04 \x01(\x0b\x32P.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata\x1a\xb5\x01\n\x10\x44ocumentMetadata\x12>\n\x08\x64ocument\x18\x01 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x17\n\x0fpage_identifier\x18\x04 \x01(\t\x12,\n\x0bstruct_data\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x12\n\x10_relevance_scoreB\t\n\x07\x63ontent\x1a\xd8\x08\n\x04Step\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.discoveryengine.v1beta.Answer.Step.State\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07thought\x18\x03 \x01(\t\x12H\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\x37.google.cloud.discoveryengine.v1beta.Answer.Step.Action\x1a\xcc\x06\n\x06\x41\x63tion\x12]\n\rsearch_action\x18\x02 \x01(\x0b\x32\x44.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionH\x00\x12X\n\x0bobservation\x18\x03 \x01(\x0b\x32\x43.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation\x1a\x1d\n\x0cSearchAction\x12\r\n\x05query\x18\x01 \x01(\t\x1a\xdf\x04\n\x0bObservation\x12h\n\x0esearch_results\x18\x02 \x03(\x0b\x32P.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult\x1a\xe5\x03\n\x0cSearchResult\x12\x10\n\x08\x64ocument\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12r\n\x0csnippet_info\x18\x04 \x03(\x0b\x32\\.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo\x12n\n\nchunk_info\x18\x05 \x03(\x0b\x32Z.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo\x12,\n\x0bstruct_data\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x36\n\x0bSnippetInfo\x12\x0f\n\x07snippet\x18\x01 \x01(\t\x12\x16\n\x0esnippet_status\x18\x02 \x01(\t\x1a]\n\tChunkInfo\x12\r\n\x05\x63hunk\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\x1c\n\x0frelevance_score\x18\x03 \x01(\x02H\x00\x88\x01\x01\x42\x12\n\x10_relevance_scoreB\x08\n\x06\x61\x63tion\"J\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x1a\x87\x03\n\x16QueryUnderstandingInfo\x12}\n\x19query_classification_info\x18\x01 \x03(\x0b\x32Z.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo\x1a\xed\x01\n\x17QueryClassificationInfo\x12m\n\x04type\x18\x01 \x01(\x0e\x32_.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type\x12\x10\n\x08positive\x18\x02 \x01(\x08\"Q\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41\x44VERSARIAL_QUERY\x10\x01\x12\x1c\n\x18NON_ANSWER_SEEKING_QUERY\x10\x02\"J\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\"\xdb\x01\n\x13\x41nswerSkippedReason\x12%\n!ANSWER_SKIPPED_REASON_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x41\x44VERSARIAL_QUERY_IGNORED\x10\x01\x12$\n NON_ANSWER_SEEKING_QUERY_IGNORED\x10\x02\x12\x1f\n\x1bOUT_OF_DOMAIN_QUERY_IGNORED\x10\x03\x12\x1e\n\x1aPOTENTIAL_POLICY_VIOLATION\x10\x04\x12\x17\n\x13NO_RELEVANT_CONTENT\x10\x05:\x85\x03\xea\x41\x81\x03\n%discoveryengine.googleapis.com/Answer\x12\x63projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}\x12|projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}\x12uprojects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}B\x92\x02\n\'com.google.cloud.discoveryengine.v1betaB\x0b\x41nswerProtoP\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,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/chunk.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/protobuf/struct_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n/google/cloud/discoveryengine/v1beta/chunk.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf8\x07\n\x05\x43hunk\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12!\n\x0frelevance_score\x18\x08 \x01(\x01\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12V\n\x11\x64ocument_metadata\x18\x05 \x01(\x0b\x32;.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata\x12\x39\n\x13\x64\x65rived_struct_data\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\x12\x46\n\tpage_span\x18\x06 \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.Chunk.PageSpan\x12U\n\x0e\x63hunk_metadata\x18\x07 \x01(\x0b\x32\x38.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataB\x03\xe0\x41\x03\x1a\\\n\x10\x44ocumentMetadata\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12,\n\x0bstruct_data\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x30\n\x08PageSpan\x12\x12\n\npage_start\x18\x01 \x01(\x05\x12\x10\n\x08page_end\x18\x02 \x01(\x05\x1a\x95\x01\n\rChunkMetadata\x12\x43\n\x0fprevious_chunks\x18\x01 \x03(\x0b\x32*.google.cloud.discoveryengine.v1beta.Chunk\x12?\n\x0bnext_chunks\x18\x02 \x03(\x0b\x32*.google.cloud.discoveryengine.v1beta.Chunk:\xb2\x02\xea\x41\xae\x02\n$discoveryengine.googleapis.com/Chunk\x12uprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}\x12\x8e\x01projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}B\x12\n\x10_relevance_scoreB\x91\x02\n\'com.google.cloud.discoveryengine.v1betaB\nChunkProtoP\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
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
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
|
+
Chunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Chunk").msgclass
|
44
|
+
Chunk::DocumentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata").msgclass
|
45
|
+
Chunk::PageSpan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Chunk.PageSpan").msgclass
|
46
|
+
Chunk::ChunkMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata").msgclass
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/common.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x19google/api/resource.proto\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"0\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"/\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nuser_agent\x18\x02 \x01(\t\"%\n\x0f\x45mbeddingConfig\x12\x12\n\nfield_path\x18\x01 \x01(\t\"\x1c\n\nDoubleList\x12\x0e\n\x06values\x18\x01 \x03(\x01*b\n\x10IndustryVertical\x12!\n\x1dINDUSTRY_VERTICAL_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERIC\x10\x01\x12\t\n\x05MEDIA\x10\x02\x12\x13\n\x0fHEALTHCARE_FHIR\x10\x07*\xa4\x01\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cSOLUTION_TYPE_RECOMMENDATION\x10\x01\x12\x18\n\x14SOLUTION_TYPE_SEARCH\x10\x02\x12\x16\n\x12SOLUTION_TYPE_CHAT\x10\x03\x12!\n\x1dSOLUTION_TYPE_GENERATIVE_CHAT\x10\x04*h\n\rSearchUseCase\x12\x1f\n\x1bSEARCH_USE_CASE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SEARCH_USE_CASE_SEARCH\x10\x01\x12\x1a\n\x16SEARCH_USE_CASE_BROWSE\x10\x02*_\n\nSearchTier\x12\x1b\n\x17SEARCH_TIER_UNSPECIFIED\x10\x00\x12\x18\n\x14SEARCH_TIER_STANDARD\x10\x01\x12\x1a\n\x16SEARCH_TIER_ENTERPRISE\x10\x02*C\n\x0bSearchAddOn\x12\x1d\n\x19SEARCH_ADD_ON_UNSPECIFIED\x10\x00\x12\x15\n\x11SEARCH_ADD_ON_LLM\x10\x01\x42\
|
10
|
+
descriptor_data = "\n0google/cloud/discoveryengine/v1beta/common.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x19google/api/resource.proto\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"0\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"/\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nuser_agent\x18\x02 \x01(\t\"%\n\x0f\x45mbeddingConfig\x12\x12\n\nfield_path\x18\x01 \x01(\t\"\x1c\n\nDoubleList\x12\x0e\n\x06values\x18\x01 \x03(\x01*b\n\x10IndustryVertical\x12!\n\x1dINDUSTRY_VERTICAL_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERIC\x10\x01\x12\t\n\x05MEDIA\x10\x02\x12\x13\n\x0fHEALTHCARE_FHIR\x10\x07*\xa4\x01\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cSOLUTION_TYPE_RECOMMENDATION\x10\x01\x12\x18\n\x14SOLUTION_TYPE_SEARCH\x10\x02\x12\x16\n\x12SOLUTION_TYPE_CHAT\x10\x03\x12!\n\x1dSOLUTION_TYPE_GENERATIVE_CHAT\x10\x04*h\n\rSearchUseCase\x12\x1f\n\x1bSEARCH_USE_CASE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SEARCH_USE_CASE_SEARCH\x10\x01\x12\x1a\n\x16SEARCH_USE_CASE_BROWSE\x10\x02*_\n\nSearchTier\x12\x1b\n\x17SEARCH_TIER_UNSPECIFIED\x10\x00\x12\x18\n\x14SEARCH_TIER_STANDARD\x10\x01\x12\x1a\n\x16SEARCH_TIER_ENTERPRISE\x10\x02*C\n\x0bSearchAddOn\x12\x1d\n\x19SEARCH_ADD_ON_UNSPECIFIED\x10\x00\x12\x15\n\x11SEARCH_ADD_ON_LLM\x10\x01\x42\xb7\x08\n\'com.google.cloud.discoveryengine.v1betaB\x0b\x43ommonProtoP\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::V1beta\xea\x41\xe6\x01\n%discoveryengine.googleapis.com/Branch\x12Qprojects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}\x12jprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}\xea\x41m\n)discoveryengine.googleapis.com/Collection\x12@projects/{project}/locations/{location}/collections/{collection}\xea\x41R\n\'discoveryengine.googleapis.com/Location\x12\'projects/{project}/locations/{location}\xea\x41}\n.discoveryengine.googleapis.com/GroundingConfig\x12Kprojects/{project}/locations/{location}/groundingConfigs/{grounding_config}\xea\x41w\n,discoveryengine.googleapis.com/RankingConfig\x12Gprojects/{project}/locations/{location}/rankingConfigs/{ranking_config}\xea\x41y\n#healthcare.googleapis.com/FhirStore\x12Rprojects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}b\x06proto3"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n4google/cloud/discoveryengine/v1beta/completion.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xed\x01\n\x17SuggestionDenyListEntry\x12\x19\n\x0c\x62lock_phrase\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12g\n\x0ematch_operator\x18\x02 \x01(\x0e\x32J.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperatorB\x03\xe0\x41\x02\"N\n\rMatchOperator\x12\x1e\n\x1aMATCH_OPERATOR_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45XACT_MATCH\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\
|
10
|
+
descriptor_data = "\n4google/cloud/discoveryengine/v1beta/completion.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\"\xed\x01\n\x17SuggestionDenyListEntry\x12\x19\n\x0c\x62lock_phrase\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12g\n\x0ematch_operator\x18\x02 \x01(\x0e\x32J.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperatorB\x03\xe0\x41\x02\"N\n\rMatchOperator\x12\x1e\n\x1aMATCH_OPERATOR_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45XACT_MATCH\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\"\xc7\x01\n\x14\x43ompletionSuggestion\x12\x16\n\x0cglobal_score\x18\x02 \x01(\x01H\x00\x12\x13\n\tfrequency\x18\x03 \x01(\x03H\x00\x12\x17\n\nsuggestion\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\x12\x10\n\x08group_id\x18\x05 \x01(\t\x12\x13\n\x0bgroup_score\x18\x06 \x01(\x01\x12\x1b\n\x13\x61lternative_phrases\x18\x07 \x03(\tB\x0e\n\x0cranking_infoB\x96\x02\n\'com.google.cloud.discoveryengine.v1betaB\x0f\x43ompletionProtoP\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"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
@@ -39,6 +39,7 @@ module Google
|
|
39
39
|
module V1beta
|
40
40
|
SuggestionDenyListEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry").msgclass
|
41
41
|
SuggestionDenyListEntry::MatchOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry.MatchOperator").enummodule
|
42
|
+
CompletionSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CompletionSuggestion").msgclass
|
42
43
|
end
|
43
44
|
end
|
44
45
|
end
|
@@ -13,7 +13,7 @@ require 'google/cloud/discoveryengine/v1beta/purge_config_pb'
|
|
13
13
|
require 'google/longrunning/operations_pb'
|
14
14
|
|
15
15
|
|
16
|
-
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\x37google/cloud/discoveryengine/v1beta/import_config.proto\x1a\x36google/cloud/discoveryengine/v1beta/purge_config.proto\x1a#google/longrunning/operations.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(\t2\
|
16
|
+
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\x37google/cloud/discoveryengine/v1beta/import_config.proto\x1a\x36google/cloud/discoveryengine/v1beta/purge_config.proto\x1a#google/longrunning/operations.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(\t2\xcf\x12\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\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"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -43,6 +43,14 @@ module Google
|
|
43
43
|
# [SuggestionDenyListEntry][google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry]
|
44
44
|
# for a DataStore.
|
45
45
|
rpc :PurgeSuggestionDenyListEntries, ::Google::Cloud::DiscoveryEngine::V1beta::PurgeSuggestionDenyListEntriesRequest, ::Google::Longrunning::Operation
|
46
|
+
# Imports
|
47
|
+
# [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
|
48
|
+
# for a DataStore.
|
49
|
+
rpc :ImportCompletionSuggestions, ::Google::Cloud::DiscoveryEngine::V1beta::ImportCompletionSuggestionsRequest, ::Google::Longrunning::Operation
|
50
|
+
# Permanently deletes all
|
51
|
+
# [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s
|
52
|
+
# for a DataStore.
|
53
|
+
rpc :PurgeCompletionSuggestions, ::Google::Cloud::DiscoveryEngine::V1beta::PurgeCompletionSuggestionsRequest, ::Google::Longrunning::Operation
|
46
54
|
end
|
47
55
|
|
48
56
|
Stub = Service.rpc_stub_class
|
@@ -16,7 +16,7 @@ require 'google/protobuf/empty_pb'
|
|
16
16
|
require 'google/protobuf/field_mask_pb'
|
17
17
|
|
18
18
|
|
19
|
-
descriptor_data = "\nGgoogle/cloud/discoveryengine/v1beta/conversational_search_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/answer.proto\x1a\x36google/cloud/discoveryengine/v1beta/conversation.proto\x1a\x38google/cloud/discoveryengine/v1beta/search_service.proto\x1a\x31google/cloud/discoveryengine/v1beta/session.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb1\x05\n\x1b\x43onverseConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\x12\x42\n\x05query\x18\x02 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.TextInputB\x03\xe0\x41\x02\x12I\n\x0eserving_config\x18\x03 \x01(\tB1\xfa\x41.\n,discoveryengine.googleapis.com/ServingConfig\x12G\n\x0c\x63onversation\x18\x05 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.Conversation\x12\x13\n\x0bsafe_search\x18\x06 \x01(\x08\x12\x65\n\x0buser_labels\x18\x07 \x03(\x0b\x32P.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.UserLabelsEntry\x12\x66\n\x0csummary_spec\x18\x08 \x01(\x0b\x32P.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec\x12\x0e\n\x06\x66ilter\x18\t \x01(\t\x12P\n\nboost_spec\x18\n \x01(\x0b\x32<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x97\x02\n\x1c\x43onverseConversationResponse\x12\x39\n\x05reply\x18\x01 \x01(\x0b\x32*.google.cloud.discoveryengine.v1beta.Reply\x12G\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.Conversation\x12\x19\n\x11related_questions\x18\x06 \x03(\t\x12X\n\x0esearch_results\x18\x03 \x03(\x0b\x32@.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\"\xab\x01\n\x19\x43reateConversationRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12L\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.ConversationB\x03\xe0\x41\x02\"\x9a\x01\n\x19UpdateConversationRequest\x12L\n\x0c\x63onversation\x18\x01 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.ConversationB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"^\n\x19\x44\x65leteConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\"[\n\x16GetConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\"\xa5\x01\n\x18ListConversationsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"~\n\x19ListConversationsResponse\x12H\n\rconversations\x18\x01 \x03(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xff\x1d\n\x12\x41nswerQueryRequest\x12L\n\x0eserving_config\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,discoveryengine.googleapis.com/ServingConfig\x12>\n\x05query\x18\x02 \x01(\x0b\x32*.google.cloud.discoveryengine.v1beta.QueryB\x03\xe0\x41\x02\x12<\n\x07session\x18\x03 \x01(\tB+\xfa\x41(\n&discoveryengine.googleapis.com/Session\x12W\n\x0bsafety_spec\x18\x04 \x01(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec\x12l\n\x16related_questions_spec\x18\x05 \x01(\x0b\x32L.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec\x12l\n\x16\x61nswer_generation_spec\x18\x07 \x01(\x0b\x32L.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec\x12W\n\x0bsearch_spec\x18\x08 \x01(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec\x12p\n\x18query_understanding_spec\x18\t \x01(\x0b\x32N.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec\x12\x19\n\x11\x61synchronous_mode\x18\n \x01(\x08\x12\x16\n\x0euser_pseudo_id\x18\x0c \x01(\t\x1a\x1c\n\nSafetySpec\x12\x0e\n\x06\x65nable\x18\x01 \x01(\x08\x1a&\n\x14RelatedQuestionsSpec\x12\x0e\n\x06\x65nable\x18\x01 \x01(\x08\x1a\x82\x04\n\x14\x41nswerGenerationSpec\x12j\n\nmodel_spec\x18\x01 \x01(\x0b\x32V.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec\x12l\n\x0bprompt_spec\x18\x02 \x01(\x0b\x32W.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec\x12\x19\n\x11include_citations\x18\x03 \x01(\x08\x12\x1c\n\x14\x61nswer_language_code\x18\x04 \x01(\t\x12 \n\x18ignore_adversarial_query\x18\x05 \x01(\x08\x12\'\n\x1fignore_non_answer_seeking_query\x18\x06 \x01(\x08\x12(\n\x1bignore_low_relevant_content\x18\x07 \x01(\x08H\x00\x88\x01\x01\x1a\"\n\tModelSpec\x12\x15\n\rmodel_version\x18\x01 \x01(\t\x1a\x1e\n\nPromptSpec\x12\x10\n\x08preamble\x18\x01 \x01(\tB\x1e\n\x1c_ignore_low_relevant_content\x1a\xc8\x0e\n\nSearchSpec\x12h\n\rsearch_params\x18\x01 \x01(\x0b\x32O.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParamsH\x00\x12q\n\x12search_result_list\x18\x02 \x01(\x0b\x32S.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultListH\x00\x1a\xfa\x01\n\x0cSearchParams\x12\x1a\n\x12max_return_results\x18\x01 \x01(\x05\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12P\n\nboost_spec\x18\x03 \x01(\x0b\x32<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12Z\n\x10\x64\x61ta_store_specs\x18\x07 \x03(\x0b\x32@.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec\x1a\xd6\n\n\x10SearchResultList\x12x\n\x0esearch_results\x18\x01 \x03(\x0b\x32`.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult\x1a\xc7\t\n\x0cSearchResult\x12\x9f\x01\n\x1aunstructured_document_info\x18\x01 \x01(\x0b\x32y.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfoH\x00\x12\x80\x01\n\nchunk_info\x18\x02 \x01(\x0b\x32j.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfoH\x00\x1a\xae\x06\n\x18UnstructuredDocumentInfo\x12>\n\x08\x64ocument\x18\x01 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\xa5\x01\n\x11\x64ocument_contexts\x18\x04 \x03(\x0b\x32\x89\x01.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext\x12\xa9\x01\n\x13\x65xtractive_segments\x18\x05 \x03(\x0b\x32\x8b\x01.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment\x12\xa7\x01\n\x12\x65xtractive_answers\x18\x06 \x03(\x0b\x32\x8a\x01.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer\x1a;\n\x0f\x44ocumentContext\x12\x17\n\x0fpage_identifier\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a=\n\x11\x45xtractiveSegment\x12\x17\n\x0fpage_identifier\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a<\n\x10\x45xtractiveAnswer\x12\x17\n\x0fpage_identifier\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1aV\n\tChunkInfo\x12\x38\n\x05\x63hunk\x18\x01 \x01(\tB)\xfa\x41&\n$discoveryengine.googleapis.com/Chunk\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\tB\t\n\x07\x63ontentB\x07\n\x05input\x1a\xd3\x04\n\x16QueryUnderstandingSpec\x12\x89\x01\n\x19query_classification_spec\x18\x01 \x01(\x0b\x32\x66.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec\x12\x7f\n\x14query_rephraser_spec\x18\x02 \x01(\x0b\x32\x61.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec\x1a\xe8\x01\n\x17QueryClassificationSpec\x12z\n\x05types\x18\x01 \x03(\x0e\x32k.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type\"Q\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41\x44VERSARIAL_QUERY\x10\x01\x12\x1c\n\x18NON_ANSWER_SEEKING_QUERY\x10\x02\x1a\x41\n\x12QueryRephraserSpec\x12\x0f\n\x07\x64isable\x18\x01 \x01(\x08\x12\x1a\n\x12max_rephrase_steps\x18\x02 \x01(\x05\"\xad\x01\n\x13\x41nswerQueryResponse\x12;\n\x06\x61nswer\x18\x01 \x01(\x0b\x32+.google.cloud.discoveryengine.v1beta.Answer\x12=\n\x07session\x18\x02 \x01(\x0b\x32,.google.cloud.discoveryengine.v1beta.Session\x12\x1a\n\x12\x61nswer_query_token\x18\x03 \x01(\t\"O\n\x10GetAnswerRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Answer\"\x9c\x01\n\x14\x43reateSessionRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x42\n\x07session\x18\x02 \x01(\x0b\x32,.google.cloud.discoveryengine.v1beta.SessionB\x03\xe0\x41\x02\"\x8b\x01\n\x14UpdateSessionRequest\x12\x42\n\x07session\x18\x01 \x01(\x0b\x32,.google.cloud.discoveryengine.v1beta.SessionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"T\n\x14\x44\x65leteSessionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&discoveryengine.googleapis.com/Session\"Q\n\x11GetSessionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&discoveryengine.googleapis.com/Session\"\xa0\x01\n\x13ListSessionsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"o\n\x14ListSessionsResponse\x12>\n\x08sessions\x18\x01 \x03(\x0b\x32,.google.cloud.discoveryengine.v1beta.Session\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xd7)\n\x1b\x43onversationalSearchService\x12\xbf\x03\n\x14\x43onverseConversation\x12@.google.cloud.discoveryengine.v1beta.ConverseConversationRequest\x1a\x41.google.cloud.discoveryengine.v1beta.ConverseConversationResponse\"\xa1\x02\xda\x41\nname,query\x82\xd3\xe4\x93\x02\x8d\x02\"K/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}:converse:\x01*Z^\"Y/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse:\x01*Z[\"V/v1beta/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}:converse:\x01*\x12\xba\x03\n\x12\x43reateConversation\x12>.google.cloud.discoveryengine.v1beta.CreateConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xb0\x02\xda\x41\x13parent,conversation\x82\xd3\xe4\x93\x02\x93\x02\"B/v1beta/{parent=projects/*/locations/*/dataStores/*}/conversations:\x0c\x63onversationZ`\"P/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations:\x0c\x63onversationZ]\"M/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/conversations:\x0c\x63onversation\x12\xe6\x02\n\x12\x44\x65leteConversation\x12>.google.cloud.discoveryengine.v1beta.DeleteConversationRequest\x1a\x16.google.protobuf.Empty\"\xf7\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xe9\x01*B/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}ZR*P/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}ZO*M/v1beta/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}\x12\xe6\x03\n\x12UpdateConversation\x12>.google.cloud.discoveryengine.v1beta.UpdateConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xdc\x02\xda\x41\x18\x63onversation,update_mask\x82\xd3\xe4\x93\x02\xba\x02\x32O/v1beta/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}:\x0c\x63onversationZm2]/v1beta/{conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:\x0c\x63onversationZj2Z/v1beta/{conversation.name=projects/*/locations/*/collections/*/engines/*/conversations/*}:\x0c\x63onversation\x12\xfb\x02\n\x0fGetConversation\x12;.google.cloud.discoveryengine.v1beta.GetConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xf7\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xe9\x01\x12\x42/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}ZR\x12P/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}ZO\x12M/v1beta/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}\x12\x8e\x03\n\x11ListConversations\x12=.google.cloud.discoveryengine.v1beta.ListConversationsRequest\x1a>.google.cloud.discoveryengine.v1beta.ListConversationsResponse\"\xf9\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xe9\x01\x12\x42/v1beta/{parent=projects/*/locations/*/dataStores/*}/conversationsZR\x12P/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversationsZO\x12M/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/conversations\x12\xb2\x03\n\x0b\x41nswerQuery\x12\x37.google.cloud.discoveryengine.v1beta.AnswerQueryRequest\x1a\x38.google.cloud.discoveryengine.v1beta.AnswerQueryResponse\"\xaf\x02\x82\xd3\xe4\x93\x02\xa8\x02\"T/v1beta/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:answer:\x01*Zg\"b/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:answer:\x01*Zd\"_/v1beta/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer:\x01*\x12\xf8\x02\n\tGetAnswer\x12\x35.google.cloud.discoveryengine.v1beta.GetAnswerRequest\x1a+.google.cloud.discoveryengine.v1beta.Answer\"\x86\x02\xda\x41\x04name\x82\xd3\xe4\x93\x02\xf8\x01\x12G/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*/answers/*}ZW\x12U/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*/answers/*}ZT\x12R/v1beta/{name=projects/*/locations/*/collections/*/engines/*/sessions/*/answers/*}\x12\x88\x03\n\rCreateSession\x12\x39.google.cloud.discoveryengine.v1beta.CreateSessionRequest\x1a,.google.cloud.discoveryengine.v1beta.Session\"\x8d\x02\xda\x41\x0eparent,session\x82\xd3\xe4\x93\x02\xf5\x01\"=/v1beta/{parent=projects/*/locations/*/dataStores/*}/sessions:\x07sessionZV\"K/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/sessions:\x07sessionZS\"H/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/sessions:\x07session\x12\xcd\x02\n\rDeleteSession\x12\x39.google.cloud.discoveryengine.v1beta.DeleteSessionRequest\x1a\x16.google.protobuf.Empty\"\xe8\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xda\x01*=/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*}ZM*K/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}ZJ*H/v1beta/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}\x12\xa5\x03\n\rUpdateSession\x12\x39.google.cloud.discoveryengine.v1beta.UpdateSessionRequest\x1a,.google.cloud.discoveryengine.v1beta.Session\"\xaa\x02\xda\x41\x13session,update_mask\x82\xd3\xe4\x93\x02\x8d\x02\x32\x45/v1beta/{session.name=projects/*/locations/*/dataStores/*/sessions/*}:\x07sessionZ^2S/v1beta/{session.name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}:\x07sessionZ[2P/v1beta/{session.name=projects/*/locations/*/collections/*/engines/*/sessions/*}:\x07session\x12\xdd\x02\n\nGetSession\x12\x36.google.cloud.discoveryengine.v1beta.GetSessionRequest\x1a,.google.cloud.discoveryengine.v1beta.Session\"\xe8\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xda\x01\x12=/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*}ZM\x12K/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}ZJ\x12H/v1beta/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}\x12\xf0\x02\n\x0cListSessions\x12\x38.google.cloud.discoveryengine.v1beta.ListSessionsRequest\x1a\x39.google.cloud.discoveryengine.v1beta.ListSessionsResponse\"\xea\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xda\x01\x12=/v1beta/{parent=projects/*/locations/*/dataStores/*}/sessionsZM\x12K/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/sessionsZJ\x12H/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/sessions\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa7\x02\n\'com.google.cloud.discoveryengine.v1betaB ConversationalSearchServiceProtoP\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
|
+
descriptor_data = "\nGgoogle/cloud/discoveryengine/v1beta/conversational_search_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/answer.proto\x1a\x36google/cloud/discoveryengine/v1beta/conversation.proto\x1a\x38google/cloud/discoveryengine/v1beta/search_service.proto\x1a\x31google/cloud/discoveryengine/v1beta/session.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb1\x05\n\x1b\x43onverseConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\x12\x42\n\x05query\x18\x02 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.TextInputB\x03\xe0\x41\x02\x12I\n\x0eserving_config\x18\x03 \x01(\tB1\xfa\x41.\n,discoveryengine.googleapis.com/ServingConfig\x12G\n\x0c\x63onversation\x18\x05 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.Conversation\x12\x13\n\x0bsafe_search\x18\x06 \x01(\x08\x12\x65\n\x0buser_labels\x18\x07 \x03(\x0b\x32P.google.cloud.discoveryengine.v1beta.ConverseConversationRequest.UserLabelsEntry\x12\x66\n\x0csummary_spec\x18\x08 \x01(\x0b\x32P.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec\x12\x0e\n\x06\x66ilter\x18\t \x01(\t\x12P\n\nboost_spec\x18\n \x01(\x0b\x32<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x97\x02\n\x1c\x43onverseConversationResponse\x12\x39\n\x05reply\x18\x01 \x01(\x0b\x32*.google.cloud.discoveryengine.v1beta.Reply\x12G\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.Conversation\x12\x19\n\x11related_questions\x18\x06 \x03(\t\x12X\n\x0esearch_results\x18\x03 \x03(\x0b\x32@.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\"\xab\x01\n\x19\x43reateConversationRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12L\n\x0c\x63onversation\x18\x02 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.ConversationB\x03\xe0\x41\x02\"\x9a\x01\n\x19UpdateConversationRequest\x12L\n\x0c\x63onversation\x18\x01 \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.ConversationB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"^\n\x19\x44\x65leteConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\"[\n\x16GetConversationRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+discoveryengine.googleapis.com/Conversation\"\xa5\x01\n\x18ListConversationsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"~\n\x19ListConversationsResponse\x12H\n\rconversations\x18\x01 \x03(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83 \n\x12\x41nswerQueryRequest\x12L\n\x0eserving_config\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,discoveryengine.googleapis.com/ServingConfig\x12>\n\x05query\x18\x02 \x01(\x0b\x32*.google.cloud.discoveryengine.v1beta.QueryB\x03\xe0\x41\x02\x12<\n\x07session\x18\x03 \x01(\tB+\xfa\x41(\n&discoveryengine.googleapis.com/Session\x12W\n\x0bsafety_spec\x18\x04 \x01(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec\x12l\n\x16related_questions_spec\x18\x05 \x01(\x0b\x32L.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec\x12l\n\x16\x61nswer_generation_spec\x18\x07 \x01(\x0b\x32L.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec\x12W\n\x0bsearch_spec\x18\x08 \x01(\x0b\x32\x42.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec\x12p\n\x18query_understanding_spec\x18\t \x01(\x0b\x32N.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec\x12\x19\n\x11\x61synchronous_mode\x18\n \x01(\x08\x12\x16\n\x0euser_pseudo_id\x18\x0c \x01(\t\x12\\\n\x0buser_labels\x18\r \x03(\x0b\x32G.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.UserLabelsEntry\x1a\x1c\n\nSafetySpec\x12\x0e\n\x06\x65nable\x18\x01 \x01(\x08\x1a&\n\x14RelatedQuestionsSpec\x12\x0e\n\x06\x65nable\x18\x01 \x01(\x08\x1a\x82\x04\n\x14\x41nswerGenerationSpec\x12j\n\nmodel_spec\x18\x01 \x01(\x0b\x32V.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec\x12l\n\x0bprompt_spec\x18\x02 \x01(\x0b\x32W.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec\x12\x19\n\x11include_citations\x18\x03 \x01(\x08\x12\x1c\n\x14\x61nswer_language_code\x18\x04 \x01(\t\x12 \n\x18ignore_adversarial_query\x18\x05 \x01(\x08\x12\'\n\x1fignore_non_answer_seeking_query\x18\x06 \x01(\x08\x12(\n\x1bignore_low_relevant_content\x18\x07 \x01(\x08H\x00\x88\x01\x01\x1a\"\n\tModelSpec\x12\x15\n\rmodel_version\x18\x01 \x01(\t\x1a\x1e\n\nPromptSpec\x12\x10\n\x08preamble\x18\x01 \x01(\tB\x1e\n\x1c_ignore_low_relevant_content\x1a\xbb\x0f\n\nSearchSpec\x12h\n\rsearch_params\x18\x01 \x01(\x0b\x32O.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParamsH\x00\x12q\n\x12search_result_list\x18\x02 \x01(\x0b\x32S.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultListH\x00\x1a\xed\x02\n\x0cSearchParams\x12\x1a\n\x12max_return_results\x18\x01 \x01(\x05\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12P\n\nboost_spec\x18\x03 \x01(\x0b\x32<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12q\n\x12search_result_mode\x18\x05 \x01(\x0e\x32U.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode\x12Z\n\x10\x64\x61ta_store_specs\x18\x07 \x03(\x0b\x32@.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec\x1a\xd6\n\n\x10SearchResultList\x12x\n\x0esearch_results\x18\x01 \x03(\x0b\x32`.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult\x1a\xc7\t\n\x0cSearchResult\x12\x9f\x01\n\x1aunstructured_document_info\x18\x01 \x01(\x0b\x32y.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfoH\x00\x12\x80\x01\n\nchunk_info\x18\x02 \x01(\x0b\x32j.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfoH\x00\x1a\xae\x06\n\x18UnstructuredDocumentInfo\x12>\n\x08\x64ocument\x18\x01 \x01(\tB,\xfa\x41)\n\'discoveryengine.googleapis.com/Document\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\xa5\x01\n\x11\x64ocument_contexts\x18\x04 \x03(\x0b\x32\x89\x01.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext\x12\xa9\x01\n\x13\x65xtractive_segments\x18\x05 \x03(\x0b\x32\x8b\x01.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment\x12\xa7\x01\n\x12\x65xtractive_answers\x18\x06 \x03(\x0b\x32\x8a\x01.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer\x1a;\n\x0f\x44ocumentContext\x12\x17\n\x0fpage_identifier\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a=\n\x11\x45xtractiveSegment\x12\x17\n\x0fpage_identifier\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1a<\n\x10\x45xtractiveAnswer\x12\x17\n\x0fpage_identifier\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x1aV\n\tChunkInfo\x12\x38\n\x05\x63hunk\x18\x01 \x01(\tB)\xfa\x41&\n$discoveryengine.googleapis.com/Chunk\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\tB\t\n\x07\x63ontentB\x07\n\x05input\x1a\xd3\x04\n\x16QueryUnderstandingSpec\x12\x89\x01\n\x19query_classification_spec\x18\x01 \x01(\x0b\x32\x66.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec\x12\x7f\n\x14query_rephraser_spec\x18\x02 \x01(\x0b\x32\x61.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec\x1a\xe8\x01\n\x17QueryClassificationSpec\x12z\n\x05types\x18\x01 \x03(\x0e\x32k.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type\"Q\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41\x44VERSARIAL_QUERY\x10\x01\x12\x1c\n\x18NON_ANSWER_SEEKING_QUERY\x10\x02\x1a\x41\n\x12QueryRephraserSpec\x12\x0f\n\x07\x64isable\x18\x01 \x01(\x08\x12\x1a\n\x12max_rephrase_steps\x18\x02 \x01(\x05\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x13\x41nswerQueryResponse\x12;\n\x06\x61nswer\x18\x01 \x01(\x0b\x32+.google.cloud.discoveryengine.v1beta.Answer\x12=\n\x07session\x18\x02 \x01(\x0b\x32,.google.cloud.discoveryengine.v1beta.Session\x12\x1a\n\x12\x61nswer_query_token\x18\x03 \x01(\t\"O\n\x10GetAnswerRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%discoveryengine.googleapis.com/Answer\"\x9c\x01\n\x14\x43reateSessionRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\x12\x42\n\x07session\x18\x02 \x01(\x0b\x32,.google.cloud.discoveryengine.v1beta.SessionB\x03\xe0\x41\x02\"\x8b\x01\n\x14UpdateSessionRequest\x12\x42\n\x07session\x18\x01 \x01(\x0b\x32,.google.cloud.discoveryengine.v1beta.SessionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"T\n\x14\x44\x65leteSessionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&discoveryengine.googleapis.com/Session\"Q\n\x11GetSessionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&discoveryengine.googleapis.com/Session\"\xa0\x01\n\x13ListSessionsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\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\x12\x10\n\x08order_by\x18\x05 \x01(\t\"o\n\x14ListSessionsResponse\x12>\n\x08sessions\x18\x01 \x03(\x0b\x32,.google.cloud.discoveryengine.v1beta.Session\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xd7)\n\x1b\x43onversationalSearchService\x12\xbf\x03\n\x14\x43onverseConversation\x12@.google.cloud.discoveryengine.v1beta.ConverseConversationRequest\x1a\x41.google.cloud.discoveryengine.v1beta.ConverseConversationResponse\"\xa1\x02\xda\x41\nname,query\x82\xd3\xe4\x93\x02\x8d\x02\"K/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}:converse:\x01*Z^\"Y/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse:\x01*Z[\"V/v1beta/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}:converse:\x01*\x12\xba\x03\n\x12\x43reateConversation\x12>.google.cloud.discoveryengine.v1beta.CreateConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xb0\x02\xda\x41\x13parent,conversation\x82\xd3\xe4\x93\x02\x93\x02\"B/v1beta/{parent=projects/*/locations/*/dataStores/*}/conversations:\x0c\x63onversationZ`\"P/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations:\x0c\x63onversationZ]\"M/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/conversations:\x0c\x63onversation\x12\xe6\x02\n\x12\x44\x65leteConversation\x12>.google.cloud.discoveryengine.v1beta.DeleteConversationRequest\x1a\x16.google.protobuf.Empty\"\xf7\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xe9\x01*B/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}ZR*P/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}ZO*M/v1beta/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}\x12\xe6\x03\n\x12UpdateConversation\x12>.google.cloud.discoveryengine.v1beta.UpdateConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xdc\x02\xda\x41\x18\x63onversation,update_mask\x82\xd3\xe4\x93\x02\xba\x02\x32O/v1beta/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}:\x0c\x63onversationZm2]/v1beta/{conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:\x0c\x63onversationZj2Z/v1beta/{conversation.name=projects/*/locations/*/collections/*/engines/*/conversations/*}:\x0c\x63onversation\x12\xfb\x02\n\x0fGetConversation\x12;.google.cloud.discoveryengine.v1beta.GetConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xf7\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xe9\x01\x12\x42/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}ZR\x12P/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}ZO\x12M/v1beta/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}\x12\x8e\x03\n\x11ListConversations\x12=.google.cloud.discoveryengine.v1beta.ListConversationsRequest\x1a>.google.cloud.discoveryengine.v1beta.ListConversationsResponse\"\xf9\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xe9\x01\x12\x42/v1beta/{parent=projects/*/locations/*/dataStores/*}/conversationsZR\x12P/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversationsZO\x12M/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/conversations\x12\xb2\x03\n\x0b\x41nswerQuery\x12\x37.google.cloud.discoveryengine.v1beta.AnswerQueryRequest\x1a\x38.google.cloud.discoveryengine.v1beta.AnswerQueryResponse\"\xaf\x02\x82\xd3\xe4\x93\x02\xa8\x02\"T/v1beta/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:answer:\x01*Zg\"b/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:answer:\x01*Zd\"_/v1beta/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer:\x01*\x12\xf8\x02\n\tGetAnswer\x12\x35.google.cloud.discoveryengine.v1beta.GetAnswerRequest\x1a+.google.cloud.discoveryengine.v1beta.Answer\"\x86\x02\xda\x41\x04name\x82\xd3\xe4\x93\x02\xf8\x01\x12G/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*/answers/*}ZW\x12U/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*/answers/*}ZT\x12R/v1beta/{name=projects/*/locations/*/collections/*/engines/*/sessions/*/answers/*}\x12\x88\x03\n\rCreateSession\x12\x39.google.cloud.discoveryengine.v1beta.CreateSessionRequest\x1a,.google.cloud.discoveryengine.v1beta.Session\"\x8d\x02\xda\x41\x0eparent,session\x82\xd3\xe4\x93\x02\xf5\x01\"=/v1beta/{parent=projects/*/locations/*/dataStores/*}/sessions:\x07sessionZV\"K/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/sessions:\x07sessionZS\"H/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/sessions:\x07session\x12\xcd\x02\n\rDeleteSession\x12\x39.google.cloud.discoveryengine.v1beta.DeleteSessionRequest\x1a\x16.google.protobuf.Empty\"\xe8\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xda\x01*=/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*}ZM*K/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}ZJ*H/v1beta/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}\x12\xa5\x03\n\rUpdateSession\x12\x39.google.cloud.discoveryengine.v1beta.UpdateSessionRequest\x1a,.google.cloud.discoveryengine.v1beta.Session\"\xaa\x02\xda\x41\x13session,update_mask\x82\xd3\xe4\x93\x02\x8d\x02\x32\x45/v1beta/{session.name=projects/*/locations/*/dataStores/*/sessions/*}:\x07sessionZ^2S/v1beta/{session.name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}:\x07sessionZ[2P/v1beta/{session.name=projects/*/locations/*/collections/*/engines/*/sessions/*}:\x07session\x12\xdd\x02\n\nGetSession\x12\x36.google.cloud.discoveryengine.v1beta.GetSessionRequest\x1a,.google.cloud.discoveryengine.v1beta.Session\"\xe8\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xda\x01\x12=/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*}ZM\x12K/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}ZJ\x12H/v1beta/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}\x12\xf0\x02\n\x0cListSessions\x12\x38.google.cloud.discoveryengine.v1beta.ListSessionsRequest\x1a\x39.google.cloud.discoveryengine.v1beta.ListSessionsResponse\"\xea\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xda\x01\x12=/v1beta/{parent=projects/*/locations/*/dataStores/*}/sessionsZM\x12K/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/sessionsZJ\x12H/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/sessions\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa7\x02\n\'com.google.cloud.discoveryengine.v1betaB ConversationalSearchServiceProtoP\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"
|
20
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n=google/cloud/discoveryengine/v1beta/custom_tuning_model.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
12
|
+
descriptor_data = "\n=google/cloud/discoveryengine/v1beta/custom_tuning_model.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa1\x07\n\x11\x43ustomTuningModel\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0discoveryengine.googleapis.com/CustomTuningModel\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x15\n\rmodel_version\x18\x03 \x01(\x03\x12V\n\x0bmodel_state\x18\x04 \x01(\x0e\x32\x41.google.cloud.discoveryengine.v1beta.CustomTuningModel.ModelState\x12\x33\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01\x12\x37\n\x13training_start_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x07metrics\x18\x07 \x03(\x0b\x32\x43.google.cloud.discoveryengine.v1beta.CustomTuningModel.MetricsEntry\x1a.\n\x0cMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"\xa3\x01\n\nModelState\x12\x1b\n\x17MODEL_STATE_UNSPECIFIED\x10\x00\x12\x13\n\x0fTRAINING_PAUSED\x10\x01\x12\x0c\n\x08TRAINING\x10\x02\x12\x15\n\x11TRAINING_COMPLETE\x10\x03\x12\x15\n\x11READY_FOR_SERVING\x10\x04\x12\x13\n\x0fTRAINING_FAILED\x10\x05\x12\x12\n\x0eNO_IMPROVEMENT\x10\x06:\xa4\x02\xea\x41\xa0\x02\n0discoveryengine.googleapis.com/CustomTuningModel\x12hprojects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}\x12\x81\x01projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}B\x9d\x02\n\'com.google.cloud.discoveryengine.v1betaB\x16\x43ustomTuningModelProtoP\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
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|
@@ -12,7 +12,7 @@ require 'google/cloud/discoveryengine/v1beta/schema_pb'
|
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
13
13
|
|
14
14
|
|
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\"\
|
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\"\xb6\x07\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\x12H\n\rlanguage_info\x18\x0e \x01(\x0b\x32\x31.google.cloud.discoveryengine.v1beta.LanguageInfo\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}\"x\n\x0cLanguageInfo\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12%\n\x18normalized_language_code\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08language\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06region\x18\x04 \x01(\tB\x03\xe0\x41\x03\x42\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"
|
16
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
@@ -47,6 +47,7 @@ module Google
|
|
47
47
|
module V1beta
|
48
48
|
DataStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DataStore").msgclass
|
49
49
|
DataStore::ContentConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DataStore.ContentConfig").enummodule
|
50
|
+
LanguageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.LanguageInfo").msgclass
|
50
51
|
end
|
51
52
|
end
|
52
53
|
end
|
@@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb'
|
|
15
15
|
require 'google/protobuf/timestamp_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n<google/cloud/discoveryengine/v1beta/data_store_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\x34google/cloud/discoveryengine/v1beta/data_store.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
18
|
+
descriptor_data = "\n<google/cloud/discoveryengine/v1beta/data_store_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\x34google/cloud/discoveryengine/v1beta/data_store.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8b\x02\n\x16\x43reateDataStoreRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)discoveryengine.googleapis.com/Collection\x12G\n\ndata_store\x18\x02 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.DataStoreB\x03\xe0\x41\x02\x12\x1a\n\rdata_store_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12#\n\x1b\x63reate_advanced_site_search\x18\x04 \x01(\x08\x12$\n\x1cskip_default_schema_creation\x18\x07 \x01(\x08\"U\n\x13GetDataStoreRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\"{\n\x17\x43reateDataStoreMetadata\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\"\x91\x01\n\x15ListDataStoresRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)discoveryengine.googleapis.com/Collection\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\"v\n\x16ListDataStoresResponse\x12\x43\n\x0b\x64\x61ta_stores\x18\x01 \x03(\x0b\x32..google.cloud.discoveryengine.v1beta.DataStore\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x16\x44\x65leteDataStoreRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(discoveryengine.googleapis.com/DataStore\"\x92\x01\n\x16UpdateDataStoreRequest\x12G\n\ndata_store\x18\x01 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.DataStoreB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"{\n\x17\x44\x65leteDataStoreMetadata\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.Timestamp2\xb3\r\n\x10\x44\x61taStoreService\x12\x98\x03\n\x0f\x43reateDataStore\x12;.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest\x1a\x1d.google.longrunning.Operation\"\xa8\x02\xca\x41l\n-google.cloud.discoveryengine.v1beta.DataStore\x12;google.cloud.discoveryengine.v1beta.CreateDataStoreMetadata\xda\x41\x1fparent,data_store,data_store_id\x82\xd3\xe4\x93\x02\x90\x01\"2/v1beta/{parent=projects/*/locations/*}/dataStores:\ndata_storeZN\"@/v1beta/{parent=projects/*/locations/*/collections/*}/dataStores:\ndata_store\x12\x80\x02\n\x0cGetDataStore\x12\x38.google.cloud.discoveryengine.v1beta.GetDataStoreRequest\x1a..google.cloud.discoveryengine.v1beta.DataStore\"\x85\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02x\x12\x32/v1beta/{name=projects/*/locations/*/dataStores/*}ZB\x12@/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}\x12\x93\x02\n\x0eListDataStores\x12:.google.cloud.discoveryengine.v1beta.ListDataStoresRequest\x1a;.google.cloud.discoveryengine.v1beta.ListDataStoresResponse\"\x87\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02x\x12\x32/v1beta/{parent=projects/*/locations/*}/dataStoresZB\x12@/v1beta/{parent=projects/*/locations/*/collections/*}/dataStores\x12\xcc\x02\n\x0f\x44\x65leteDataStore\x12;.google.cloud.discoveryengine.v1beta.DeleteDataStoreRequest\x1a\x1d.google.longrunning.Operation\"\xdc\x01\xca\x41T\n\x15google.protobuf.Empty\x12;google.cloud.discoveryengine.v1beta.DeleteDataStoreMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02x*2/v1beta/{name=projects/*/locations/*/dataStores/*}ZB*@/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}\x12\xc7\x02\n\x0fUpdateDataStore\x12;.google.cloud.discoveryengine.v1beta.UpdateDataStoreRequest\x1a..google.cloud.discoveryengine.v1beta.DataStore\"\xc6\x01\xda\x41\x16\x64\x61ta_store,update_mask\x82\xd3\xe4\x93\x02\xa6\x01\x32=/v1beta/{data_store.name=projects/*/locations/*/dataStores/*}:\ndata_storeZY2K/v1beta/{data_store.name=projects/*/locations/*/collections/*/dataStores/*}:\ndata_store\x1aR\xca\x41\x1e\x64iscoveryengine.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9c\x02\n\'com.google.cloud.discoveryengine.v1betaB\x15\x44\x61taStoreServiceProtoP\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
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
|
10
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\"\
|
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\"\xcc\x0c\n\x18\x44ocumentProcessingConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x65\n\x0f\x63hunking_config\x18\x03 \x01(\x0b\x32L.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig\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\x83\x02\n\x0e\x43hunkingConfig\x12\x8e\x01\n\x1clayout_based_chunking_config\x18\x01 \x01(\x0b\x32\x66.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfigH\x00\x1aR\n\x19LayoutBasedChunkingConfig\x12\x12\n\nchunk_size\x18\x01 \x01(\x05\x12!\n\x19include_ancestor_headings\x18\x02 \x01(\x08\x42\x0c\n\nchunk_mode\x1a\xb0\x04\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\x12\x80\x01\n\x15layout_parsing_config\x18\x03 \x01(\x0b\x32_.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfigH\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\x1a\x15\n\x13LayoutParsingConfigB\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
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -39,9 +39,12 @@ module Google
|
|
39
39
|
module DiscoveryEngine
|
40
40
|
module V1beta
|
41
41
|
DocumentProcessingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig").msgclass
|
42
|
+
DocumentProcessingConfig::ChunkingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig").msgclass
|
43
|
+
DocumentProcessingConfig::ChunkingConfig::LayoutBasedChunkingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig").msgclass
|
42
44
|
DocumentProcessingConfig::ParsingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig").msgclass
|
43
45
|
DocumentProcessingConfig::ParsingConfig::DigitalParsingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig").msgclass
|
44
46
|
DocumentProcessingConfig::ParsingConfig::OcrParsingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig").msgclass
|
47
|
+
DocumentProcessingConfig::ParsingConfig::LayoutParsingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig").msgclass
|
45
48
|
end
|
46
49
|
end
|
47
50
|
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/evaluation.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/cloud/discoveryengine/v1beta/search_service_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/rpc/status_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\n4google/cloud/discoveryengine/v1beta/evaluation.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/discoveryengine/v1beta/search_service.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xe3\x07\n\nEvaluation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\\\n\x0f\x65valuation_spec\x18\x02 \x01(\x0b\x32>.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpecB\x03\xe0\x41\x02\x12Q\n\x0fquality_metrics\x18\x03 \x01(\x0b\x32\x33.google.cloud.discoveryengine.v1beta.QualityMetricsB\x03\xe0\x41\x03\x12I\n\x05state\x18\x04 \x01(\x0e\x32\x35.google.cloud.discoveryengine.v1beta.Evaluation.StateB\x03\xe0\x41\x03\x12&\n\x05\x65rror\x18\x05 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12.\n\rerror_samples\x18\x08 \x03(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x1a\xbd\x02\n\x0e\x45valuationSpec\x12Q\n\x0esearch_request\x18\x02 \x01(\x0b\x32\x32.google.cloud.discoveryengine.v1beta.SearchRequestB\x03\xe0\x41\x02H\x00\x12h\n\x0equery_set_spec\x18\x01 \x01(\x0b\x32K.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecB\x03\xe0\x41\x02\x1a_\n\x0cQuerySetSpec\x12O\n\x10sample_query_set\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-discoveryengine.googleapis.com/SampleQuerySetB\r\n\x0bsearch_spec\"S\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:p\xea\x41m\n)discoveryengine.googleapis.com/Evaluation\x12@projects/{project}/locations/{location}/evaluations/{evaluation}\"\x86\x04\n\x0eQualityMetrics\x12S\n\ndoc_recall\x18\x01 \x01(\x0b\x32?.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics\x12V\n\rdoc_precision\x18\x02 \x01(\x0b\x32?.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics\x12Q\n\x08\x64oc_ndcg\x18\x03 \x01(\x0b\x32?.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics\x12T\n\x0bpage_recall\x18\x04 \x01(\x0b\x32?.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics\x12R\n\tpage_ndcg\x18\x05 \x01(\x0b\x32?.google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics\x1aJ\n\x0bTopkMetrics\x12\r\n\x05top_1\x18\x01 \x01(\x01\x12\r\n\x05top_3\x18\x02 \x01(\x01\x12\r\n\x05top_5\x18\x03 \x01(\x01\x12\x0e\n\x06top_10\x18\x04 \x01(\x01\x42\x96\x02\n\'com.google.cloud.discoveryengine.v1betaB\x0f\x45valuationProtoP\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.rpc.Status", "google/rpc/status.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.cloud.discoveryengine.v1beta.SearchRequest", "google/cloud/discoveryengine/v1beta/search_service.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
41
|
+
end
|
42
|
+
|
43
|
+
module Google
|
44
|
+
module Cloud
|
45
|
+
module DiscoveryEngine
|
46
|
+
module V1beta
|
47
|
+
Evaluation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Evaluation").msgclass
|
48
|
+
Evaluation::EvaluationSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec").msgclass
|
49
|
+
Evaluation::EvaluationSpec::QuerySetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec").msgclass
|
50
|
+
Evaluation::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Evaluation.State").enummodule
|
51
|
+
QualityMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.QualityMetrics").msgclass
|
52
|
+
QualityMetrics::TopkMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.QualityMetrics.TopkMetrics").msgclass
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|