google-cloud-discovery_engine-v1beta 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +7 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +7 -3
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +925 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +176 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +763 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +450 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +5 -4
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +5 -4
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +42 -0
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +2 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +42 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +14 -12
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +14 -12
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +2 -2
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +42 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversation_pb.rb +53 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +67 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +1 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +13 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +134 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +175 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +2 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +2 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +17 -17
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +161 -60
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +37 -29
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +15 -2
@@ -734,6 +734,20 @@ module Google
|
|
734
734
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
|
735
735
|
]
|
736
736
|
)
|
737
|
+
.with_bindings(
|
738
|
+
uri_method: :get,
|
739
|
+
uri_template: "/v1beta/{name}/operations",
|
740
|
+
matches: [
|
741
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/?$}, false]
|
742
|
+
]
|
743
|
+
)
|
744
|
+
.with_bindings(
|
745
|
+
uri_method: :get,
|
746
|
+
uri_template: "/v1beta/{name}/operations",
|
747
|
+
matches: [
|
748
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/?$}, false]
|
749
|
+
]
|
750
|
+
)
|
737
751
|
.with_bindings(
|
738
752
|
uri_method: :get,
|
739
753
|
uri_template: "/v1beta/{name}/operations",
|
@@ -741,6 +755,13 @@ module Google
|
|
741
755
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
|
742
756
|
]
|
743
757
|
)
|
758
|
+
.with_bindings(
|
759
|
+
uri_method: :get,
|
760
|
+
uri_template: "/v1beta/{name}/operations",
|
761
|
+
matches: [
|
762
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/?$}, false]
|
763
|
+
]
|
764
|
+
)
|
744
765
|
.with_bindings(
|
745
766
|
uri_method: :get,
|
746
767
|
uri_template: "/v1beta/{name}/operations",
|
@@ -825,6 +846,27 @@ module Google
|
|
825
846
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
|
826
847
|
]
|
827
848
|
)
|
849
|
+
.with_bindings(
|
850
|
+
uri_method: :get,
|
851
|
+
uri_template: "/v1beta/{name}",
|
852
|
+
matches: [
|
853
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/operations/[^/]+/?$}, false]
|
854
|
+
]
|
855
|
+
)
|
856
|
+
.with_bindings(
|
857
|
+
uri_method: :get,
|
858
|
+
uri_template: "/v1beta/{name}",
|
859
|
+
matches: [
|
860
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/operations/[^/]+/?$}, false]
|
861
|
+
]
|
862
|
+
)
|
863
|
+
.with_bindings(
|
864
|
+
uri_method: :get,
|
865
|
+
uri_template: "/v1beta/{name}",
|
866
|
+
matches: [
|
867
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+/?$}, false]
|
868
|
+
]
|
869
|
+
)
|
828
870
|
.with_bindings(
|
829
871
|
uri_method: :get,
|
830
872
|
uri_template: "/v1beta/{name}",
|
@@ -17,10 +17,11 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/discovery_engine/v1beta/completion_service/rest"
|
20
|
+
require "google/cloud/discovery_engine/v1beta/search_service/rest"
|
21
|
+
require "google/cloud/discovery_engine/v1beta/conversational_search_service/rest"
|
20
22
|
require "google/cloud/discovery_engine/v1beta/document_service/rest"
|
21
23
|
require "google/cloud/discovery_engine/v1beta/recommendation_service/rest"
|
22
24
|
require "google/cloud/discovery_engine/v1beta/schema_service/rest"
|
23
|
-
require "google/cloud/discovery_engine/v1beta/search_service/rest"
|
24
25
|
require "google/cloud/discovery_engine/v1beta/user_event_service/rest"
|
25
26
|
require "google/cloud/discovery_engine/v1beta/version"
|
26
27
|
|
@@ -734,6 +734,20 @@ module Google
|
|
734
734
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
|
735
735
|
]
|
736
736
|
)
|
737
|
+
.with_bindings(
|
738
|
+
uri_method: :get,
|
739
|
+
uri_template: "/v1beta/{name}/operations",
|
740
|
+
matches: [
|
741
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/?$}, false]
|
742
|
+
]
|
743
|
+
)
|
744
|
+
.with_bindings(
|
745
|
+
uri_method: :get,
|
746
|
+
uri_template: "/v1beta/{name}/operations",
|
747
|
+
matches: [
|
748
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/?$}, false]
|
749
|
+
]
|
750
|
+
)
|
737
751
|
.with_bindings(
|
738
752
|
uri_method: :get,
|
739
753
|
uri_template: "/v1beta/{name}/operations",
|
@@ -741,6 +755,13 @@ module Google
|
|
741
755
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
|
742
756
|
]
|
743
757
|
)
|
758
|
+
.with_bindings(
|
759
|
+
uri_method: :get,
|
760
|
+
uri_template: "/v1beta/{name}/operations",
|
761
|
+
matches: [
|
762
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/?$}, false]
|
763
|
+
]
|
764
|
+
)
|
744
765
|
.with_bindings(
|
745
766
|
uri_method: :get,
|
746
767
|
uri_template: "/v1beta/{name}/operations",
|
@@ -825,6 +846,27 @@ module Google
|
|
825
846
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
|
826
847
|
]
|
827
848
|
)
|
849
|
+
.with_bindings(
|
850
|
+
uri_method: :get,
|
851
|
+
uri_template: "/v1beta/{name}",
|
852
|
+
matches: [
|
853
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/operations/[^/]+/?$}, false]
|
854
|
+
]
|
855
|
+
)
|
856
|
+
.with_bindings(
|
857
|
+
uri_method: :get,
|
858
|
+
uri_template: "/v1beta/{name}",
|
859
|
+
matches: [
|
860
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/operations/[^/]+/?$}, false]
|
861
|
+
]
|
862
|
+
)
|
863
|
+
.with_bindings(
|
864
|
+
uri_method: :get,
|
865
|
+
uri_template: "/v1beta/{name}",
|
866
|
+
matches: [
|
867
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+/?$}, false]
|
868
|
+
]
|
869
|
+
)
|
828
870
|
.with_bindings(
|
829
871
|
uri_method: :get,
|
830
872
|
uri_template: "/v1beta/{name}",
|
@@ -162,7 +162,7 @@ module Google
|
|
162
162
|
# @param options [::Gapic::CallOptions, ::Hash]
|
163
163
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
164
164
|
#
|
165
|
-
# @overload search(serving_config: nil, branch: nil, query: nil, page_size: nil, page_token: nil, offset: nil, filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
165
|
+
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
166
166
|
# Pass arguments to `search` via keyword arguments. Note that at
|
167
167
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
168
168
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -180,10 +180,12 @@ module Google
|
|
180
180
|
# documents under the default branch.
|
181
181
|
# @param query [::String]
|
182
182
|
# Raw search query.
|
183
|
+
# @param image_query [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ImageQuery, ::Hash]
|
184
|
+
# Raw image query.
|
183
185
|
# @param page_size [::Integer]
|
184
186
|
# Maximum number of {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s
|
185
187
|
# to return. If unspecified, defaults to a reasonable value. The maximum
|
186
|
-
# allowed value is 100. Values above 100
|
188
|
+
# allowed value is 100. Values above 100 are coerced to 100.
|
187
189
|
#
|
188
190
|
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
189
191
|
# @param page_token [::String]
|
@@ -211,16 +213,17 @@ module Google
|
|
211
213
|
#
|
212
214
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
213
215
|
# @param order_by [::String]
|
214
|
-
# The order in which documents are returned.
|
216
|
+
# The order in which documents are returned. Documents can be ordered by
|
215
217
|
# a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
|
216
|
-
# object. Leave it unset if ordered by relevance.
|
218
|
+
# object. Leave it unset if ordered by relevance. `order_by` expression is
|
217
219
|
# case-sensitive.
|
218
220
|
#
|
219
|
-
# If this field is unrecognizable, an
|
221
|
+
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
220
222
|
# @param user_info [::Google::Cloud::DiscoveryEngine::V1beta::UserInfo, ::Hash]
|
221
223
|
# Information about the end user.
|
222
|
-
# Highly recommended for analytics.
|
223
|
-
#
|
224
|
+
# Highly recommended for analytics.
|
225
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::UserInfo#user_agent UserInfo.user_agent}
|
226
|
+
# is used to deduce `device_type` for analytics.
|
224
227
|
# @param facet_specs [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::FacetSpec, ::Hash>]
|
225
228
|
# Facet specifications for faceted search. If empty, no facets are returned.
|
226
229
|
#
|
@@ -240,10 +243,10 @@ module Google
|
|
240
243
|
# which enables image searching.
|
241
244
|
# @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec, ::Hash]
|
242
245
|
# The query expansion specification that specifies the conditions under which
|
243
|
-
# query expansion
|
246
|
+
# query expansion occurs.
|
244
247
|
# @param spell_correction_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::SpellCorrectionSpec, ::Hash]
|
245
248
|
# The spell correction specification that specifies the mode under
|
246
|
-
# which spell correction
|
249
|
+
# which spell correction takes effect.
|
247
250
|
# @param user_pseudo_id [::String]
|
248
251
|
# A unique identifier for tracking visitors. For example, this could be
|
249
252
|
# implemented with an HTTP cookie, which should be able to uniquely identify
|
@@ -260,11 +263,10 @@ module Google
|
|
260
263
|
# The field must be a UTF-8 encoded string with a length limit of 128
|
261
264
|
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
262
265
|
# @param content_search_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec, ::Hash]
|
263
|
-
#
|
264
|
-
# search.
|
266
|
+
# A specification for configuring the behavior of content search.
|
265
267
|
# @param safe_search [::Boolean]
|
266
268
|
# Whether to turn on safe search. This is only supported for
|
267
|
-
#
|
269
|
+
# website search.
|
268
270
|
# @param user_labels [::Hash{::String => ::String}]
|
269
271
|
# The user labels applied to a resource must meet the following requirements:
|
270
272
|
#
|
@@ -153,7 +153,7 @@ module Google
|
|
153
153
|
# @param options [::Gapic::CallOptions, ::Hash]
|
154
154
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
155
155
|
#
|
156
|
-
# @overload search(serving_config: nil, branch: nil, query: nil, page_size: nil, page_token: nil, offset: nil, filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
156
|
+
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
157
157
|
# Pass arguments to `search` via keyword arguments. Note that at
|
158
158
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
159
159
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -171,10 +171,12 @@ module Google
|
|
171
171
|
# documents under the default branch.
|
172
172
|
# @param query [::String]
|
173
173
|
# Raw search query.
|
174
|
+
# @param image_query [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ImageQuery, ::Hash]
|
175
|
+
# Raw image query.
|
174
176
|
# @param page_size [::Integer]
|
175
177
|
# Maximum number of {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s
|
176
178
|
# to return. If unspecified, defaults to a reasonable value. The maximum
|
177
|
-
# allowed value is 100. Values above 100
|
179
|
+
# allowed value is 100. Values above 100 are coerced to 100.
|
178
180
|
#
|
179
181
|
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
180
182
|
# @param page_token [::String]
|
@@ -202,16 +204,17 @@ module Google
|
|
202
204
|
#
|
203
205
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
204
206
|
# @param order_by [::String]
|
205
|
-
# The order in which documents are returned.
|
207
|
+
# The order in which documents are returned. Documents can be ordered by
|
206
208
|
# a field in an {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
|
207
|
-
# object. Leave it unset if ordered by relevance.
|
209
|
+
# object. Leave it unset if ordered by relevance. `order_by` expression is
|
208
210
|
# case-sensitive.
|
209
211
|
#
|
210
|
-
# If this field is unrecognizable, an
|
212
|
+
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
211
213
|
# @param user_info [::Google::Cloud::DiscoveryEngine::V1beta::UserInfo, ::Hash]
|
212
214
|
# Information about the end user.
|
213
|
-
# Highly recommended for analytics.
|
214
|
-
#
|
215
|
+
# Highly recommended for analytics.
|
216
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::UserInfo#user_agent UserInfo.user_agent}
|
217
|
+
# is used to deduce `device_type` for analytics.
|
215
218
|
# @param facet_specs [::Array<::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::FacetSpec, ::Hash>]
|
216
219
|
# Facet specifications for faceted search. If empty, no facets are returned.
|
217
220
|
#
|
@@ -231,10 +234,10 @@ module Google
|
|
231
234
|
# which enables image searching.
|
232
235
|
# @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::QueryExpansionSpec, ::Hash]
|
233
236
|
# The query expansion specification that specifies the conditions under which
|
234
|
-
# query expansion
|
237
|
+
# query expansion occurs.
|
235
238
|
# @param spell_correction_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::SpellCorrectionSpec, ::Hash]
|
236
239
|
# The spell correction specification that specifies the mode under
|
237
|
-
# which spell correction
|
240
|
+
# which spell correction takes effect.
|
238
241
|
# @param user_pseudo_id [::String]
|
239
242
|
# A unique identifier for tracking visitors. For example, this could be
|
240
243
|
# implemented with an HTTP cookie, which should be able to uniquely identify
|
@@ -251,11 +254,10 @@ module Google
|
|
251
254
|
# The field must be a UTF-8 encoded string with a length limit of 128
|
252
255
|
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
253
256
|
# @param content_search_spec [::Google::Cloud::DiscoveryEngine::V1beta::SearchRequest::ContentSearchSpec, ::Hash]
|
254
|
-
#
|
255
|
-
# search.
|
257
|
+
# A specification for configuring the behavior of content search.
|
256
258
|
# @param safe_search [::Boolean]
|
257
259
|
# Whether to turn on safe search. This is only supported for
|
258
|
-
#
|
260
|
+
# website search.
|
259
261
|
# @param user_labels [::Hash{::String => ::String}]
|
260
262
|
# The user labels applied to a resource must meet the following requirements:
|
261
263
|
#
|
@@ -257,7 +257,7 @@ module Google
|
|
257
257
|
|
258
258
|
##
|
259
259
|
# Writes a single user event from the browser. This uses a GET request to
|
260
|
-
# due to browser restriction of POST-ing to a
|
260
|
+
# due to browser restriction of POST-ing to a third-party domain.
|
261
261
|
#
|
262
262
|
# This method is used only by the Discovery Engine API JavaScript pixel and
|
263
263
|
# Google Tag Manager. Users should not call this method directly.
|
@@ -286,7 +286,7 @@ module Google
|
|
286
286
|
# @param uri [::String]
|
287
287
|
# The URL including cgi-parameters but excluding the hash fragment with a
|
288
288
|
# length limit of 5,000 characters. This is often more useful than the
|
289
|
-
# referer URL, because many browsers only send the domain for
|
289
|
+
# referer URL, because many browsers only send the domain for third-party
|
290
290
|
# requests.
|
291
291
|
# @param ets [::Integer]
|
292
292
|
# The event timestamp in milliseconds. This prevents browser caching of
|
@@ -225,7 +225,7 @@ module Google
|
|
225
225
|
|
226
226
|
##
|
227
227
|
# Writes a single user event from the browser. This uses a GET request to
|
228
|
-
# due to browser restriction of POST-ing to a
|
228
|
+
# due to browser restriction of POST-ing to a third-party domain.
|
229
229
|
#
|
230
230
|
# This method is used only by the Discovery Engine API JavaScript pixel and
|
231
231
|
# Google Tag Manager. Users should not call this method directly.
|
@@ -254,7 +254,7 @@ module Google
|
|
254
254
|
# @param uri [::String]
|
255
255
|
# The URL including cgi-parameters but excluding the hash fragment with a
|
256
256
|
# length limit of 5,000 characters. This is often more useful than the
|
257
|
-
# referer URL, because many browsers only send the domain for
|
257
|
+
# referer URL, because many browsers only send the domain for third-party
|
258
258
|
# requests.
|
259
259
|
# @param ets [::Integer]
|
260
260
|
# The event timestamp in milliseconds. This prevents browser caching of
|
@@ -734,6 +734,20 @@ module Google
|
|
734
734
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/?$}, false]
|
735
735
|
]
|
736
736
|
)
|
737
|
+
.with_bindings(
|
738
|
+
uri_method: :get,
|
739
|
+
uri_template: "/v1beta/{name}/operations",
|
740
|
+
matches: [
|
741
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/?$}, false]
|
742
|
+
]
|
743
|
+
)
|
744
|
+
.with_bindings(
|
745
|
+
uri_method: :get,
|
746
|
+
uri_template: "/v1beta/{name}/operations",
|
747
|
+
matches: [
|
748
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/?$}, false]
|
749
|
+
]
|
750
|
+
)
|
737
751
|
.with_bindings(
|
738
752
|
uri_method: :get,
|
739
753
|
uri_template: "/v1beta/{name}/operations",
|
@@ -741,6 +755,13 @@ module Google
|
|
741
755
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
|
742
756
|
]
|
743
757
|
)
|
758
|
+
.with_bindings(
|
759
|
+
uri_method: :get,
|
760
|
+
uri_template: "/v1beta/{name}/operations",
|
761
|
+
matches: [
|
762
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/?$}, false]
|
763
|
+
]
|
764
|
+
)
|
744
765
|
.with_bindings(
|
745
766
|
uri_method: :get,
|
746
767
|
uri_template: "/v1beta/{name}/operations",
|
@@ -825,6 +846,27 @@ module Google
|
|
825
846
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/schemas/[^/]+/operations/[^/]+/?$}, false]
|
826
847
|
]
|
827
848
|
)
|
849
|
+
.with_bindings(
|
850
|
+
uri_method: :get,
|
851
|
+
uri_template: "/v1beta/{name}",
|
852
|
+
matches: [
|
853
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/operations/[^/]+/?$}, false]
|
854
|
+
]
|
855
|
+
)
|
856
|
+
.with_bindings(
|
857
|
+
uri_method: :get,
|
858
|
+
uri_template: "/v1beta/{name}",
|
859
|
+
matches: [
|
860
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/operations/[^/]+/?$}, false]
|
861
|
+
]
|
862
|
+
)
|
863
|
+
.with_bindings(
|
864
|
+
uri_method: :get,
|
865
|
+
uri_template: "/v1beta/{name}",
|
866
|
+
matches: [
|
867
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/operations/[^/]+/?$}, false]
|
868
|
+
]
|
869
|
+
)
|
828
870
|
.with_bindings(
|
829
871
|
uri_method: :get,
|
830
872
|
uri_template: "/v1beta/{name}",
|
@@ -17,10 +17,11 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/discovery_engine/v1beta/completion_service"
|
20
|
+
require "google/cloud/discovery_engine/v1beta/search_service"
|
21
|
+
require "google/cloud/discovery_engine/v1beta/conversational_search_service"
|
20
22
|
require "google/cloud/discovery_engine/v1beta/document_service"
|
21
23
|
require "google/cloud/discovery_engine/v1beta/recommendation_service"
|
22
24
|
require "google/cloud/discovery_engine/v1beta/schema_service"
|
23
|
-
require "google/cloud/discovery_engine/v1beta/search_service"
|
24
25
|
require "google/cloud/discovery_engine/v1beta/user_event_service"
|
25
26
|
require "google/cloud/discovery_engine/v1beta/version"
|
26
27
|
|
@@ -10,7 +10,7 @@ require 'google/api/field_behavior_pb'
|
|
10
10
|
require 'google/api/resource_pb'
|
11
11
|
|
12
12
|
|
13
|
-
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\"\
|
13
|
+
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\"\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\"\xc3\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%\n\x0fQuerySuggestion\x12\x12\n\nsuggestion\x18\x01 \x01(\t2\x9a\x03\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\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"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/conversation.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n6google/cloud/discoveryengine/v1beta/conversation.proto\x12#google.cloud.discoveryengine.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x04\n\x0c\x43onversation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x46\n\x05state\x18\x02 \x01(\x0e\x32\x37.google.cloud.discoveryengine.v1beta.Conversation.State\x12\x16\n\x0euser_pseudo_id\x18\x03 \x01(\t\x12J\n\x08messages\x18\x04 \x03(\x0b\x32\x38.google.cloud.discoveryengine.v1beta.ConversationMessage\x12\x33\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\">\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tCOMPLETED\x10\x02:\x86\x02\xea\x41\x82\x02\n+discoveryengine.googleapis.com/Conversation\x12\\projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}\x12uprojects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}\"\xab\x01\n\x05Reply\x12\r\n\x05reply\x18\x01 \x01(\t\x12H\n\nreferences\x18\x02 \x03(\x0b\x32\x34.google.cloud.discoveryengine.v1beta.Reply.Reference\x1aI\n\tReference\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0b\x61nchor_text\x18\x02 \x01(\t\x12\r\n\x05start\x18\x03 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x05\"I\n\x13\x43onversationContext\x12\x19\n\x11\x63ontext_documents\x18\x01 \x03(\t\x12\x17\n\x0f\x61\x63tive_document\x18\x02 \x01(\t\"e\n\tTextInput\x12\r\n\x05input\x18\x01 \x01(\t\x12I\n\x07\x63ontext\x18\x02 \x01(\x0b\x32\x38.google.cloud.discoveryengine.v1beta.ConversationContext\"\xd9\x01\n\x13\x43onversationMessage\x12\x44\n\nuser_input\x18\x01 \x01(\x0b\x32..google.cloud.discoveryengine.v1beta.TextInputH\x00\x12;\n\x05reply\x18\x02 \x01(\x0b\x32*.google.cloud.discoveryengine.v1beta.ReplyH\x00\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x42\t\n\x07messageB\x98\x02\n\'com.google.cloud.discoveryengine.v1betaB\x11\x43onversationProtoP\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 => e
|
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.Timestamp", "google/protobuf/timestamp.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
|
+
Conversation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Conversation").msgclass
|
44
|
+
Conversation::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Conversation.State").enummodule
|
45
|
+
Reply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Reply").msgclass
|
46
|
+
Reply::Reference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.Reply.Reference").msgclass
|
47
|
+
ConversationContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ConversationContext").msgclass
|
48
|
+
TextInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.TextInput").msgclass
|
49
|
+
ConversationMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ConversationMessage").msgclass
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/discoveryengine/v1beta/conversation_pb'
|
12
|
+
require 'google/cloud/discoveryengine/v1beta/search_service_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
|
16
|
+
|
17
|
+
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\x36google/cloud/discoveryengine/v1beta/conversation.proto\x1a\x38google/cloud/discoveryengine/v1beta/search_service.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xcd\x02\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\"\xfc\x01\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\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(\t2\xb6\x10\n\x1b\x43onversationalSearchService\x12\xe2\x02\n\x14\x43onverseConversation\x12@.google.cloud.discoveryengine.v1beta.ConverseConversationRequest\x1a\x41.google.cloud.discoveryengine.v1beta.ConverseConversationResponse\"\xc4\x01\x82\xd3\xe4\x93\x02\xb0\x01\"K/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}:converse:\x01*Z^\"Y/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse:\x01*\xda\x41\nname,query\x12\xdb\x02\n\x12\x43reateConversation\x12>.google.cloud.discoveryengine.v1beta.CreateConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xd1\x01\x82\xd3\xe4\x93\x02\xb4\x01\"B/v1beta/{parent=projects/*/locations/*/dataStores/*}/conversations:\x0c\x63onversationZ`\"P/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations:\x0c\x63onversation\xda\x41\x13parent,conversation\x12\x95\x02\n\x12\x44\x65leteConversation\x12>.google.cloud.discoveryengine.v1beta.DeleteConversationRequest\x1a\x16.google.protobuf.Empty\"\xa6\x01\x82\xd3\xe4\x93\x02\x98\x01*B/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}ZR*P/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}\xda\x41\x04name\x12\xfa\x02\n\x12UpdateConversation\x12>.google.cloud.discoveryengine.v1beta.UpdateConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xf0\x01\x82\xd3\xe4\x93\x02\xce\x01\x32O/v1beta/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}:\x0c\x63onversationZm2]/v1beta/{conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:\x0c\x63onversation\xda\x41\x18\x63onversation,update_mask\x12\xaa\x02\n\x0fGetConversation\x12;.google.cloud.discoveryengine.v1beta.GetConversationRequest\x1a\x31.google.cloud.discoveryengine.v1beta.Conversation\"\xa6\x01\x82\xd3\xe4\x93\x02\x98\x01\x12\x42/v1beta/{name=projects/*/locations/*/dataStores/*/conversations/*}ZR\x12P/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}\xda\x41\x04name\x12\xbd\x02\n\x11ListConversations\x12=.google.cloud.discoveryengine.v1beta.ListConversationsRequest\x1a>.google.cloud.discoveryengine.v1beta.ListConversationsResponse\"\xa8\x01\x82\xd3\xe4\x93\x02\x98\x01\x12\x42/v1beta/{parent=projects/*/locations/*/dataStores/*}/conversationsZR\x12P/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations\xda\x41\x06parent\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"
|
18
|
+
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
|
+
|
21
|
+
begin
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
23
|
+
rescue TypeError => e
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
27
|
+
parsed.clear_dependency
|
28
|
+
serialized = parsed.class.encode(parsed)
|
29
|
+
file = pool.add_serialized_file(serialized)
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
31
|
+
imports = [
|
32
|
+
["google.cloud.discoveryengine.v1beta.TextInput", "google/cloud/discoveryengine/v1beta/conversation.proto"],
|
33
|
+
["google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult", "google/cloud/discoveryengine/v1beta/search_service.proto"],
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google
|
47
|
+
module Cloud
|
48
|
+
module DiscoveryEngine
|
49
|
+
module V1beta
|
50
|
+
ConverseConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ConverseConversationRequest").msgclass
|
51
|
+
ConverseConversationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ConverseConversationResponse").msgclass
|
52
|
+
CreateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.CreateConversationRequest").msgclass
|
53
|
+
UpdateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.UpdateConversationRequest").msgclass
|
54
|
+
DeleteConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.DeleteConversationRequest").msgclass
|
55
|
+
GetConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.GetConversationRequest").msgclass
|
56
|
+
ListConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ListConversationsRequest").msgclass
|
57
|
+
ListConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.discoveryengine.v1beta.ListConversationsResponse").msgclass
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|