google-cloud-discovery_engine 0.5.0 → 0.7.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/version.rb +1 -1
- data/lib/google/cloud/discovery_engine.rb +174 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a363e33e463f8e73fcf5ef94e3ddf711c9ac1d719ca0eae853a24448267546c
|
4
|
+
data.tar.gz: 8c5814c38001d388674e76d4866a54f161bdd71c4dbb280693ec28cbe0c5c115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a34caf68d827c492daf90fb9d2174d1ceb7378f7ffb8efa327d2c727ac7311c2957840777e0b2db09100cba8e177d03c6e00412d95970ee4fe70e22ee4a03441
|
7
|
+
data.tar.gz: 5751d5affbdc67d6b41fc1779e2ca7951703d3ca9e7eb4621211cbe93972e672e3456d36c0acad26ae4e1d21152194bb491e3698b11d37b425454268dac78dd8
|
@@ -79,6 +79,43 @@ module Google
|
|
79
79
|
service_module.const_get(:Client).new(&block)
|
80
80
|
end
|
81
81
|
|
82
|
+
##
|
83
|
+
# Create a new client object for ControlService.
|
84
|
+
#
|
85
|
+
# By default, this returns an instance of
|
86
|
+
# [Google::Cloud::DiscoveryEngine::V1::ControlService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ControlService-Client)
|
87
|
+
# for a gRPC client for version V1 of the API.
|
88
|
+
# However, you can specify a different API version by passing it in the
|
89
|
+
# `version` parameter. If the ControlService service is
|
90
|
+
# supported by that API version, and the corresponding gem is available, the
|
91
|
+
# appropriate versioned client will be returned.
|
92
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
93
|
+
# the `transport` parameter.
|
94
|
+
#
|
95
|
+
# ## About ControlService
|
96
|
+
#
|
97
|
+
# Service for performing CRUD operations on Controls.
|
98
|
+
# Controls allow for custom logic to be implemented in the serving path.
|
99
|
+
# Controls need to be attached to a Serving Config to be considered during a
|
100
|
+
# request.
|
101
|
+
#
|
102
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
103
|
+
# Defaults to `:v1`.
|
104
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
105
|
+
# @return [::Object] A client object for the specified version.
|
106
|
+
#
|
107
|
+
def self.control_service version: :v1, transport: :grpc, &block
|
108
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
109
|
+
|
110
|
+
package_name = Google::Cloud::DiscoveryEngine
|
111
|
+
.constants
|
112
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
113
|
+
.first
|
114
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:ControlService)
|
115
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
116
|
+
service_module.const_get(:Client).new(&block)
|
117
|
+
end
|
118
|
+
|
82
119
|
##
|
83
120
|
# Create a new client object for SearchService.
|
84
121
|
#
|
@@ -252,6 +289,143 @@ module Google
|
|
252
289
|
service_module.const_get(:Client).new(&block)
|
253
290
|
end
|
254
291
|
|
292
|
+
##
|
293
|
+
# Create a new client object for GroundedGenerationService.
|
294
|
+
#
|
295
|
+
# By default, this returns an instance of
|
296
|
+
# [Google::Cloud::DiscoveryEngine::V1::GroundedGenerationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-GroundedGenerationService-Client)
|
297
|
+
# for a gRPC client for version V1 of the API.
|
298
|
+
# However, you can specify a different API version by passing it in the
|
299
|
+
# `version` parameter. If the GroundedGenerationService service is
|
300
|
+
# supported by that API version, and the corresponding gem is available, the
|
301
|
+
# appropriate versioned client will be returned.
|
302
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
303
|
+
# the `transport` parameter.
|
304
|
+
#
|
305
|
+
# ## About GroundedGenerationService
|
306
|
+
#
|
307
|
+
# Service for grounded generation.
|
308
|
+
#
|
309
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
310
|
+
# Defaults to `:v1`.
|
311
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
312
|
+
# @return [::Object] A client object for the specified version.
|
313
|
+
#
|
314
|
+
def self.grounded_generation_service version: :v1, transport: :grpc, &block
|
315
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
316
|
+
|
317
|
+
package_name = Google::Cloud::DiscoveryEngine
|
318
|
+
.constants
|
319
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
320
|
+
.first
|
321
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:GroundedGenerationService)
|
322
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
323
|
+
service_module.const_get(:Client).new(&block)
|
324
|
+
end
|
325
|
+
|
326
|
+
##
|
327
|
+
# Create a new client object for ProjectService.
|
328
|
+
#
|
329
|
+
# By default, this returns an instance of
|
330
|
+
# [Google::Cloud::DiscoveryEngine::V1::ProjectService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ProjectService-Client)
|
331
|
+
# for a gRPC client for version V1 of the API.
|
332
|
+
# However, you can specify a different API version by passing it in the
|
333
|
+
# `version` parameter. If the ProjectService service is
|
334
|
+
# supported by that API version, and the corresponding gem is available, the
|
335
|
+
# appropriate versioned client will be returned.
|
336
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
337
|
+
# the `transport` parameter.
|
338
|
+
#
|
339
|
+
# ## About ProjectService
|
340
|
+
#
|
341
|
+
# Service for operations on the
|
342
|
+
# Project.
|
343
|
+
#
|
344
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
345
|
+
# Defaults to `:v1`.
|
346
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
347
|
+
# @return [::Object] A client object for the specified version.
|
348
|
+
#
|
349
|
+
def self.project_service version: :v1, transport: :grpc, &block
|
350
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
351
|
+
|
352
|
+
package_name = Google::Cloud::DiscoveryEngine
|
353
|
+
.constants
|
354
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
355
|
+
.first
|
356
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:ProjectService)
|
357
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
358
|
+
service_module.const_get(:Client).new(&block)
|
359
|
+
end
|
360
|
+
|
361
|
+
##
|
362
|
+
# Create a new client object for RankService.
|
363
|
+
#
|
364
|
+
# By default, this returns an instance of
|
365
|
+
# [Google::Cloud::DiscoveryEngine::V1::RankService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RankService-Client)
|
366
|
+
# for a gRPC client for version V1 of the API.
|
367
|
+
# However, you can specify a different API version by passing it in the
|
368
|
+
# `version` parameter. If the RankService service is
|
369
|
+
# supported by that API version, and the corresponding gem is available, the
|
370
|
+
# appropriate versioned client will be returned.
|
371
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
372
|
+
# the `transport` parameter.
|
373
|
+
#
|
374
|
+
# ## About RankService
|
375
|
+
#
|
376
|
+
# Service for ranking text records.
|
377
|
+
#
|
378
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
379
|
+
# Defaults to `:v1`.
|
380
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
381
|
+
# @return [::Object] A client object for the specified version.
|
382
|
+
#
|
383
|
+
def self.rank_service version: :v1, transport: :grpc, &block
|
384
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
385
|
+
|
386
|
+
package_name = Google::Cloud::DiscoveryEngine
|
387
|
+
.constants
|
388
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
389
|
+
.first
|
390
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:RankService)
|
391
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
392
|
+
service_module.const_get(:Client).new(&block)
|
393
|
+
end
|
394
|
+
|
395
|
+
##
|
396
|
+
# Create a new client object for RecommendationService.
|
397
|
+
#
|
398
|
+
# By default, this returns an instance of
|
399
|
+
# [Google::Cloud::DiscoveryEngine::V1::RecommendationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendationService-Client)
|
400
|
+
# for a gRPC client for version V1 of the API.
|
401
|
+
# However, you can specify a different API version by passing it in the
|
402
|
+
# `version` parameter. If the RecommendationService service is
|
403
|
+
# supported by that API version, and the corresponding gem is available, the
|
404
|
+
# appropriate versioned client will be returned.
|
405
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
406
|
+
# the `transport` parameter.
|
407
|
+
#
|
408
|
+
# ## About RecommendationService
|
409
|
+
#
|
410
|
+
# Service for making recommendations.
|
411
|
+
#
|
412
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
413
|
+
# Defaults to `:v1`.
|
414
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
415
|
+
# @return [::Object] A client object for the specified version.
|
416
|
+
#
|
417
|
+
def self.recommendation_service version: :v1, transport: :grpc, &block
|
418
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
419
|
+
|
420
|
+
package_name = Google::Cloud::DiscoveryEngine
|
421
|
+
.constants
|
422
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
423
|
+
.first
|
424
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:RecommendationService)
|
425
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
426
|
+
service_module.const_get(:Client).new(&block)
|
427
|
+
end
|
428
|
+
|
255
429
|
##
|
256
430
|
# Create a new client object for SchemaService.
|
257
431
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-discovery_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|