google-cloud-retail 1.9.1 → 1.10.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/retail/version.rb +1 -1
- data/lib/google/cloud/retail.rb +34 -0
- metadata +7 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de7cf72fd9372978eb786710aab85dfc8b6f57f52ae32773ada8878ee43307b1
|
4
|
+
data.tar.gz: 8f21f60df8160ce0b5771d78c5a3fb5df264ba8a99931b8dcebef75e05c17a55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a59db269f674d912bb0ffcde6d1bc795464c9013751f8bd819783bc94b9afb46b5e453bda3af2d203670eef5ab2717d487e5b3828ef6cda08b578e1fe83c3c84
|
7
|
+
data.tar.gz: a89d052a8b4e88cb9db207ba4099f383e7304af4151355dcb6f6f49a3a0ece832425b9b8ac2de3504c1832d23fe8372339e7b2a3eb35dcb89530a514d78c47b5
|
data/lib/google/cloud/retail.rb
CHANGED
@@ -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.
|
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-
|
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:
|
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:
|
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.
|
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
|