google-cloud-discovery_engine 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/discovery_engine/version.rb +1 -1
- data/lib/google/cloud/discovery_engine.rb +56 -22
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf6ed7e36135a6f8f82f0049da4e999e28f664f251e83bc5fe93467431538b3b
|
4
|
+
data.tar.gz: 221b471702b29c903a5e00a793d8f873faaddf0649c1cc2a5278a4c370946221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87b3476fdd718389c1e3dda30d4adf04400cafdd40644d4bb17feb8ab807df6927a89f547c4cca1be3ab7622b11d3a759845a4726bae4f534f08dcb1ac4ee0c3
|
7
|
+
data.tar.gz: 0ecd42c54cae5941335fd60b1b29e6b602470bfb3d76edf153c6e9457727fdcd24a5ca654724425a845403b56a986aaf6746898f0194e5c009fc73d2bb7bafd3
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ client gems:
|
|
19
19
|
[google-cloud-discovery_engine-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest),
|
20
20
|
[google-cloud-discovery_engine-v1beta](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest).
|
21
21
|
|
22
|
-
See also the [Product Documentation](https://cloud.google.com/
|
22
|
+
See also the [Product Documentation](https://cloud.google.com/generative-ai-app-builder/docs)
|
23
23
|
for more usage information.
|
24
24
|
|
25
25
|
## Quick Start
|
@@ -79,104 +79,138 @@ module Google
|
|
79
79
|
end
|
80
80
|
|
81
81
|
##
|
82
|
-
# Create a new client object for
|
82
|
+
# Create a new client object for SearchService.
|
83
83
|
#
|
84
84
|
# By default, this returns an instance of
|
85
|
-
# [Google::Cloud::DiscoveryEngine::V1::
|
85
|
+
# [Google::Cloud::DiscoveryEngine::V1::SearchService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SearchService-Client)
|
86
86
|
# for a gRPC client for version V1 of the API.
|
87
87
|
# However, you can specify a different API version by passing it in the
|
88
|
-
# `version` parameter. If the
|
88
|
+
# `version` parameter. If the SearchService service is
|
89
89
|
# supported by that API version, and the corresponding gem is available, the
|
90
90
|
# appropriate versioned client will be returned.
|
91
91
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
92
92
|
# the `transport` parameter.
|
93
93
|
#
|
94
|
-
# ## About
|
94
|
+
# ## About SearchService
|
95
95
|
#
|
96
|
-
# Service for
|
97
|
-
# information of the customer's website.
|
96
|
+
# Service for search.
|
98
97
|
#
|
99
98
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
100
99
|
# Defaults to `:v1`.
|
101
100
|
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
102
101
|
# @return [::Object] A client object for the specified version.
|
103
102
|
#
|
104
|
-
def self.
|
103
|
+
def self.search_service version: :v1, transport: :grpc, &block
|
105
104
|
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
106
105
|
|
107
106
|
package_name = Google::Cloud::DiscoveryEngine
|
108
107
|
.constants
|
109
108
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
110
109
|
.first
|
111
|
-
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:
|
110
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:SearchService)
|
112
111
|
service_module = service_module.const_get(:Rest) if transport == :rest
|
113
112
|
service_module.const_get(:Client).new(&block)
|
114
113
|
end
|
115
114
|
|
116
115
|
##
|
117
|
-
# Create a new client object for
|
116
|
+
# Create a new client object for ConversationalSearchService.
|
118
117
|
#
|
119
118
|
# By default, this returns an instance of
|
120
|
-
# [Google::Cloud::DiscoveryEngine::V1::
|
119
|
+
# [Google::Cloud::DiscoveryEngine::V1::ConversationalSearchService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-ConversationalSearchService-Client)
|
121
120
|
# for a gRPC client for version V1 of the API.
|
122
121
|
# However, you can specify a different API version by passing it in the
|
123
|
-
# `version` parameter. If the
|
122
|
+
# `version` parameter. If the ConversationalSearchService service is
|
124
123
|
# supported by that API version, and the corresponding gem is available, the
|
125
124
|
# appropriate versioned client will be returned.
|
126
125
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
127
126
|
# the `transport` parameter.
|
128
127
|
#
|
129
|
-
# ## About
|
128
|
+
# ## About ConversationalSearchService
|
130
129
|
#
|
131
|
-
# Service for
|
130
|
+
# Service for conversational search.
|
132
131
|
#
|
133
132
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
134
133
|
# Defaults to `:v1`.
|
135
134
|
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
136
135
|
# @return [::Object] A client object for the specified version.
|
137
136
|
#
|
138
|
-
def self.
|
137
|
+
def self.conversational_search_service version: :v1, transport: :grpc, &block
|
139
138
|
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
140
139
|
|
141
140
|
package_name = Google::Cloud::DiscoveryEngine
|
142
141
|
.constants
|
143
142
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
144
143
|
.first
|
145
|
-
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:
|
144
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:ConversationalSearchService)
|
146
145
|
service_module = service_module.const_get(:Rest) if transport == :rest
|
147
146
|
service_module.const_get(:Client).new(&block)
|
148
147
|
end
|
149
148
|
|
150
149
|
##
|
151
|
-
# Create a new client object for
|
150
|
+
# Create a new client object for DocumentService.
|
152
151
|
#
|
153
152
|
# By default, this returns an instance of
|
154
|
-
# [Google::Cloud::DiscoveryEngine::V1::
|
153
|
+
# [Google::Cloud::DiscoveryEngine::V1::DocumentService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DocumentService-Client)
|
155
154
|
# for a gRPC client for version V1 of the API.
|
156
155
|
# However, you can specify a different API version by passing it in the
|
157
|
-
# `version` parameter. If the
|
156
|
+
# `version` parameter. If the DocumentService service is
|
158
157
|
# supported by that API version, and the corresponding gem is available, the
|
159
158
|
# appropriate versioned client will be returned.
|
160
159
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
161
160
|
# the `transport` parameter.
|
162
161
|
#
|
163
|
-
# ## About
|
162
|
+
# ## About DocumentService
|
164
163
|
#
|
165
|
-
# Service for
|
164
|
+
# Service for ingesting Document
|
165
|
+
# information of the customer's website.
|
166
166
|
#
|
167
167
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
168
168
|
# Defaults to `:v1`.
|
169
169
|
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
170
170
|
# @return [::Object] A client object for the specified version.
|
171
171
|
#
|
172
|
-
def self.
|
172
|
+
def self.document_service version: :v1, transport: :grpc, &block
|
173
173
|
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
174
174
|
|
175
175
|
package_name = Google::Cloud::DiscoveryEngine
|
176
176
|
.constants
|
177
177
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
178
178
|
.first
|
179
|
-
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:
|
179
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:DocumentService)
|
180
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
181
|
+
service_module.const_get(:Client).new(&block)
|
182
|
+
end
|
183
|
+
|
184
|
+
##
|
185
|
+
# Create a new client object for SchemaService.
|
186
|
+
#
|
187
|
+
# By default, this returns an instance of
|
188
|
+
# [Google::Cloud::DiscoveryEngine::V1::SchemaService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SchemaService-Client)
|
189
|
+
# for a gRPC client for version V1 of the API.
|
190
|
+
# However, you can specify a different API version by passing it in the
|
191
|
+
# `version` parameter. If the SchemaService service is
|
192
|
+
# supported by that API version, and the corresponding gem is available, the
|
193
|
+
# appropriate versioned client will be returned.
|
194
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
195
|
+
# the `transport` parameter.
|
196
|
+
#
|
197
|
+
# ## About SchemaService
|
198
|
+
#
|
199
|
+
# Service for managing Schemas.
|
200
|
+
#
|
201
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
202
|
+
# Defaults to `:v1`.
|
203
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
204
|
+
# @return [::Object] A client object for the specified version.
|
205
|
+
#
|
206
|
+
def self.schema_service version: :v1, transport: :grpc, &block
|
207
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
208
|
+
|
209
|
+
package_name = Google::Cloud::DiscoveryEngine
|
210
|
+
.constants
|
211
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
212
|
+
.first
|
213
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:SchemaService)
|
180
214
|
service_module = service_module.const_get(:Rest) if transport == :rest
|
181
215
|
service_module.const_get(:Client).new(&block)
|
182
216
|
end
|
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.2.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: 2023-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.4.
|
211
|
+
rubygems_version: 3.4.19
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Discovery Engine API.
|