google-cloud-discovery_engine 0.6.0 → 1.0.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 +140 -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: bc1785f9db3193afb88d0499efb42388278080f72d34b6a35382b286c2d711de
|
4
|
+
data.tar.gz: 3d8f7f4559bc11f894e6d977e2a620371aa002d2232dd2fbf8e6a551a202c83e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fdcc3256ee9bb0cce96387bebceba653868a77e1176c738c65b5b529b7b53771a701b736bb193d4b9f2e7b5cc9014d5d865373fc81394998e4dda439d6d34fa
|
7
|
+
data.tar.gz: bd67883b53889d3665ec1714767ee41cd04643ebd72638f0106b5956d24aa548c91abee94825d6caffc55625f185fae292c2e03ff17c3a40afd14d30816ab18a
|
@@ -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,109 @@ 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
|
+
|
255
395
|
##
|
256
396
|
# Create a new client object for RecommendationService.
|
257
397
|
#
|
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: 1.0.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-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|