google-cloud-retail 1.9.1 → 1.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b30b5b0795064f86ac3ff12a555f5e3178231cb2f80ea752f91d2fb3d83159d
4
- data.tar.gz: 64740eade7c14760c7882950435dfd7c96937c5bb88f951e4917dbdc165655b9
3
+ metadata.gz: de7cf72fd9372978eb786710aab85dfc8b6f57f52ae32773ada8878ee43307b1
4
+ data.tar.gz: 8f21f60df8160ce0b5771d78c5a3fb5df264ba8a99931b8dcebef75e05c17a55
5
5
  SHA512:
6
- metadata.gz: 9f0021ee50bf4121400fbdf8faf2d3820f92aba9e0e3fd2a955f046f7d126ae598687375bf36a555d36d8fa27534014b3a154cbfb7ac0f3c5add9e565f069e27
7
- data.tar.gz: 87d420cb961d4b8373d323a998342cedf75b8400d0b82292cdda4f9107a12612cdc96d1651f60e18ade53ed86cbf36fa7a1ead65bc0cd8dc1d498fe237d4cb21
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.1"
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.1
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-08-08 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