google-cloud-retail 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05e087b0757cf34b2801ce353a8e2ef504a1a1133450abdf99133e27b8bb727b
4
- data.tar.gz: f44021eae896b5e873e49b2276236572e91f9576ae5ae83048c6c42988ecd58f
3
+ metadata.gz: de7cf72fd9372978eb786710aab85dfc8b6f57f52ae32773ada8878ee43307b1
4
+ data.tar.gz: 8f21f60df8160ce0b5771d78c5a3fb5df264ba8a99931b8dcebef75e05c17a55
5
5
  SHA512:
6
- metadata.gz: 7a797a738f25e61ad7ca85806b4c8ebebce028d0f3d1a8437e26447ac670478930f41c9250e69575f6ce014fcb10cc1163f7fe53d22311ce307fe9dd34525891
7
- data.tar.gz: 04a60063bdee3cc094ca69fd2cdc9d2470242daef183f1d941f7ec66b87b440b92b9ba527c2e9678b7ce6d11697b23ac7f0c326e14272514439a00a5b9b35e1e
6
+ metadata.gz: a59db269f674d912bb0ffcde6d1bc795464c9013751f8bd819783bc94b9afb46b5e453bda3af2d203670eef5ab2717d487e5b3828ef6cda08b578e1fe83c3c84
7
+ data.tar.gz: a89d052a8b4e88cb9db207ba4099f383e7304af4151355dcb6f6f49a3a0ece832425b9b8ac2de3504c1832d23fe8372339e7b2a3eb35dcb89530a514d78c47b5
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Retail
23
- VERSION = "1.9.0"
23
+ VERSION = "1.10.0"
24
24
  end
25
25
  end
26
26
  end
@@ -185,6 +185,40 @@ module Google
185
185
  service_module.const_get(:Client).new(&block)
186
186
  end
187
187
 
188
+ ##
189
+ # Create a new client object for GenerativeQuestionService.
190
+ #
191
+ # By default, this returns an instance of
192
+ # [Google::Cloud::Retail::V2::GenerativeQuestionService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-GenerativeQuestionService-Client)
193
+ # for a gRPC client for version V2 of the API.
194
+ # However, you can specify a different API version by passing it in the
195
+ # `version` parameter. If the GenerativeQuestionService service is
196
+ # supported by that API version, and the corresponding gem is available, the
197
+ # appropriate versioned client will be returned.
198
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
199
+ # the `transport` parameter.
200
+ #
201
+ # ## About GenerativeQuestionService
202
+ #
203
+ # Service for managing LLM generated questions in search serving.
204
+ #
205
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
206
+ # Defaults to `:v2`.
207
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
208
+ # @return [::Object] A client object for the specified version.
209
+ #
210
+ def self.generative_question_service version: :v2, transport: :grpc, &block
211
+ require "google/cloud/retail/#{version.to_s.downcase}"
212
+
213
+ package_name = Google::Cloud::Retail
214
+ .constants
215
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
216
+ .first
217
+ service_module = Google::Cloud::Retail.const_get(package_name).const_get(:GenerativeQuestionService)
218
+ service_module = service_module.const_get(:Rest) if transport == :rest
219
+ service_module.const_get(:Client).new(&block)
220
+ end
221
+
188
222
  ##
189
223
  # Create a new client object for ModelService.
190
224
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-retail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.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-02-26 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -28,22 +28,16 @@ dependencies:
28
28
  name: google-cloud-retail-v2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0.18'
34
- - - "<"
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: 2.a
33
+ version: '1.1'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '0.18'
44
- - - "<"
38
+ - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: 2.a
40
+ version: '1.1'
47
41
  description: Retail enables you to build an end-to-end personalized recommendation
48
42
  system based on state-of-the-art deep learning ML models, without a need for expertise
49
43
  in ML or recommendation systems.
@@ -78,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
72
  - !ruby/object:Gem::Version
79
73
  version: '0'
80
74
  requirements: []
81
- rubygems_version: 3.5.6
75
+ rubygems_version: 3.5.21
82
76
  signing_key:
83
77
  specification_version: 4
84
78
  summary: API Client library for the Retail API