google-cloud-discovery_engine-v1beta 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +7 -7
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +7 -7
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +9 -0
  5. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +7 -7
  6. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +7 -7
  7. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +9 -0
  8. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +7 -7
  9. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +7 -7
  10. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +9 -0
  11. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +7 -7
  12. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +7 -7
  13. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +9 -0
  14. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +7 -7
  15. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +7 -7
  16. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/service_stub.rb +9 -0
  17. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +7 -7
  18. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +7 -7
  19. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +9 -0
  20. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +7 -7
  21. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +7 -7
  22. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +9 -0
  23. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  24. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7d0d83f7236006e04473ad109de48fedda328bfe3fff09ad5c2ca31634e2575
4
- data.tar.gz: f5034d2a86712bdee2114f598a8e1ef4ba494a71f05e0519be7e4ced39fa38fd
3
+ metadata.gz: fb5167a6336c67e891727543b235edcf5d70adbce6ee384256e4eaa92d75b1f1
4
+ data.tar.gz: e91ebfb511b45b35b6a237e4f7d68578987c8148f58aafa4632216fa7550185b
5
5
  SHA512:
6
- metadata.gz: 3032f9fcfddb12833d4e4c8a583481307a01824d63bb6f7b78b752cada0cffb7b08fe7e5b49366182ed42861dcca803b9614fd93a5424f08813778a8437dd297
7
- data.tar.gz: 8e28cfd148a1b5ba00a600d44ede90ffd85d1587972dddf4d21589e0b5015152cdf2be94da3f6ff1c3b2821ce9d6e176bdc4583d83b88a551981c6a5c82b8dd3
6
+ metadata.gz: 2963da6a22e0721e27aa7948208ecb92a4480884f04f2616be1fbc258a325d6e980ab56abd77f489b67e0a129d06266b19d6fe617ca0e456fd976b5a21489288
7
+ data.tar.gz: f5dad916aefea6abb018e28b1d32cc6a1929649bcd46f851dca1a0aacc808b6a0f070de9ef1ab413161bc8205dd430249aaccb89f804221022c86e409cbadeb6
@@ -152,13 +152,6 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
- config.credentials = credentials
157
- config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
159
- config.universe_domain = @config.universe_domain
160
- end
161
-
162
155
  @completion_service_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Stub,
164
157
  credentials: credentials,
@@ -169,6 +162,13 @@ module Google
169
162
  interceptors: @config.interceptors,
170
163
  channel_pool_config: @config.channel_pool
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @completion_service_stub.endpoint
170
+ config.universe_domain = @completion_service_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,19 +149,19 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
153
- config.credentials = credentials
154
- config.quota_project = @quota_project_id
155
- config.endpoint = @config.endpoint
156
- config.universe_domain = @config.universe_domain
157
- end
158
-
159
152
  @completion_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::CompletionService::Rest::ServiceStub.new(
160
153
  endpoint: @config.endpoint,
161
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
162
155
  universe_domain: @config.universe_domain,
163
156
  credentials: credentials
164
157
  )
158
+
159
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
+ config.credentials = credentials
161
+ config.quota_project = @quota_project_id
162
+ config.endpoint = @completion_service_stub.endpoint
163
+ config.universe_domain = @completion_service_stub.universe_domain
164
+ end
165
165
  end
166
166
 
167
167
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the complete_query REST call
57
66
  #
@@ -152,13 +152,6 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
- config.credentials = credentials
157
- config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
159
- config.universe_domain = @config.universe_domain
160
- end
161
-
162
155
  @conversational_search_service_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Stub,
164
157
  credentials: credentials,
@@ -169,6 +162,13 @@ module Google
169
162
  interceptors: @config.interceptors,
170
163
  channel_pool_config: @config.channel_pool
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @conversational_search_service_stub.endpoint
170
+ config.universe_domain = @conversational_search_service_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,19 +149,19 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
153
- config.credentials = credentials
154
- config.quota_project = @quota_project_id
155
- config.endpoint = @config.endpoint
156
- config.universe_domain = @config.universe_domain
157
- end
158
-
159
152
  @conversational_search_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::ServiceStub.new(
160
153
  endpoint: @config.endpoint,
161
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
162
155
  universe_domain: @config.universe_domain,
163
156
  credentials: credentials
164
157
  )
158
+
159
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
+ config.credentials = credentials
161
+ config.quota_project = @quota_project_id
162
+ config.endpoint = @conversational_search_service_stub.endpoint
163
+ config.universe_domain = @conversational_search_service_stub.universe_domain
164
+ end
165
165
  end
166
166
 
167
167
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the converse_conversation REST call
57
66
  #
@@ -166,13 +166,6 @@ module Google
166
166
  config.universe_domain = @config.universe_domain
167
167
  end
168
168
 
169
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
170
- config.credentials = credentials
171
- config.quota_project = @quota_project_id
172
- config.endpoint = @config.endpoint
173
- config.universe_domain = @config.universe_domain
174
- end
175
-
176
169
  @document_service_stub = ::Gapic::ServiceStub.new(
177
170
  ::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Stub,
178
171
  credentials: credentials,
@@ -183,6 +176,13 @@ module Google
183
176
  interceptors: @config.interceptors,
184
177
  channel_pool_config: @config.channel_pool
185
178
  )
179
+
180
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
181
+ config.credentials = credentials
182
+ config.quota_project = @quota_project_id
183
+ config.endpoint = @document_service_stub.endpoint
184
+ config.universe_domain = @document_service_stub.universe_domain
185
+ end
186
186
  end
187
187
 
188
188
  ##
@@ -163,19 +163,19 @@ module Google
163
163
  config.universe_domain = @config.universe_domain
164
164
  end
165
165
 
166
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
167
- config.credentials = credentials
168
- config.quota_project = @quota_project_id
169
- config.endpoint = @config.endpoint
170
- config.universe_domain = @config.universe_domain
171
- end
172
-
173
166
  @document_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Rest::ServiceStub.new(
174
167
  endpoint: @config.endpoint,
175
168
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
176
169
  universe_domain: @config.universe_domain,
177
170
  credentials: credentials
178
171
  )
172
+
173
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
174
+ config.credentials = credentials
175
+ config.quota_project = @quota_project_id
176
+ config.endpoint = @document_service_stub.endpoint
177
+ config.universe_domain = @document_service_stub.universe_domain
178
+ end
179
179
  end
180
180
 
181
181
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the get_document REST call
57
66
  #
@@ -152,13 +152,6 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
- config.credentials = credentials
157
- config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
159
- config.universe_domain = @config.universe_domain
160
- end
161
-
162
155
  @recommendation_service_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::DiscoveryEngine::V1beta::RecommendationService::Stub,
164
157
  credentials: credentials,
@@ -169,6 +162,13 @@ module Google
169
162
  interceptors: @config.interceptors,
170
163
  channel_pool_config: @config.channel_pool
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @recommendation_service_stub.endpoint
170
+ config.universe_domain = @recommendation_service_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,19 +149,19 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
153
- config.credentials = credentials
154
- config.quota_project = @quota_project_id
155
- config.endpoint = @config.endpoint
156
- config.universe_domain = @config.universe_domain
157
- end
158
-
159
152
  @recommendation_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::RecommendationService::Rest::ServiceStub.new(
160
153
  endpoint: @config.endpoint,
161
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
162
155
  universe_domain: @config.universe_domain,
163
156
  credentials: credentials
164
157
  )
158
+
159
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
+ config.credentials = credentials
161
+ config.quota_project = @quota_project_id
162
+ config.endpoint = @recommendation_service_stub.endpoint
163
+ config.universe_domain = @recommendation_service_stub.universe_domain
164
+ end
165
165
  end
166
166
 
167
167
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the recommend REST call
57
66
  #
@@ -159,13 +159,6 @@ module Google
159
159
  config.universe_domain = @config.universe_domain
160
160
  end
161
161
 
162
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
163
- config.credentials = credentials
164
- config.quota_project = @quota_project_id
165
- config.endpoint = @config.endpoint
166
- config.universe_domain = @config.universe_domain
167
- end
168
-
169
162
  @schema_service_stub = ::Gapic::ServiceStub.new(
170
163
  ::Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Stub,
171
164
  credentials: credentials,
@@ -176,6 +169,13 @@ module Google
176
169
  interceptors: @config.interceptors,
177
170
  channel_pool_config: @config.channel_pool
178
171
  )
172
+
173
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
174
+ config.credentials = credentials
175
+ config.quota_project = @quota_project_id
176
+ config.endpoint = @schema_service_stub.endpoint
177
+ config.universe_domain = @schema_service_stub.universe_domain
178
+ end
179
179
  end
180
180
 
181
181
  ##
@@ -156,19 +156,19 @@ module Google
156
156
  config.universe_domain = @config.universe_domain
157
157
  end
158
158
 
159
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
- config.credentials = credentials
161
- config.quota_project = @quota_project_id
162
- config.endpoint = @config.endpoint
163
- config.universe_domain = @config.universe_domain
164
- end
165
-
166
159
  @schema_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::SchemaService::Rest::ServiceStub.new(
167
160
  endpoint: @config.endpoint,
168
161
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
169
162
  universe_domain: @config.universe_domain,
170
163
  credentials: credentials
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @schema_service_stub.endpoint
170
+ config.universe_domain = @schema_service_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the get_schema REST call
57
66
  #
@@ -152,13 +152,6 @@ module Google
152
152
  @quota_project_id = @config.quota_project
153
153
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
154
154
 
155
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
- config.credentials = credentials
157
- config.quota_project = @quota_project_id
158
- config.endpoint = @config.endpoint
159
- config.universe_domain = @config.universe_domain
160
- end
161
-
162
155
  @search_service_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::DiscoveryEngine::V1beta::SearchService::Stub,
164
157
  credentials: credentials,
@@ -169,6 +162,13 @@ module Google
169
162
  interceptors: @config.interceptors,
170
163
  channel_pool_config: @config.channel_pool
171
164
  )
165
+
166
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
167
+ config.credentials = credentials
168
+ config.quota_project = @quota_project_id
169
+ config.endpoint = @search_service_stub.endpoint
170
+ config.universe_domain = @search_service_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,19 +149,19 @@ module Google
149
149
  @quota_project_id = @config.quota_project
150
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
151
151
 
152
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
153
- config.credentials = credentials
154
- config.quota_project = @quota_project_id
155
- config.endpoint = @config.endpoint
156
- config.universe_domain = @config.universe_domain
157
- end
158
-
159
152
  @search_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::SearchService::Rest::ServiceStub.new(
160
153
  endpoint: @config.endpoint,
161
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
162
155
  universe_domain: @config.universe_domain,
163
156
  credentials: credentials
164
157
  )
158
+
159
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
160
+ config.credentials = credentials
161
+ config.quota_project = @quota_project_id
162
+ config.endpoint = @search_service_stub.endpoint
163
+ config.universe_domain = @search_service_stub.universe_domain
164
+ end
165
165
  end
166
166
 
167
167
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the search REST call
57
66
  #
@@ -164,13 +164,6 @@ module Google
164
164
  config.universe_domain = @config.universe_domain
165
165
  end
166
166
 
167
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
168
- config.credentials = credentials
169
- config.quota_project = @quota_project_id
170
- config.endpoint = @config.endpoint
171
- config.universe_domain = @config.universe_domain
172
- end
173
-
174
167
  @user_event_service_stub = ::Gapic::ServiceStub.new(
175
168
  ::Google::Cloud::DiscoveryEngine::V1beta::UserEventService::Stub,
176
169
  credentials: credentials,
@@ -181,6 +174,13 @@ module Google
181
174
  interceptors: @config.interceptors,
182
175
  channel_pool_config: @config.channel_pool
183
176
  )
177
+
178
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
179
+ config.credentials = credentials
180
+ config.quota_project = @quota_project_id
181
+ config.endpoint = @user_event_service_stub.endpoint
182
+ config.universe_domain = @user_event_service_stub.universe_domain
183
+ end
184
184
  end
185
185
 
186
186
  ##
@@ -161,19 +161,19 @@ module Google
161
161
  config.universe_domain = @config.universe_domain
162
162
  end
163
163
 
164
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
165
- config.credentials = credentials
166
- config.quota_project = @quota_project_id
167
- config.endpoint = @config.endpoint
168
- config.universe_domain = @config.universe_domain
169
- end
170
-
171
164
  @user_event_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::UserEventService::Rest::ServiceStub.new(
172
165
  endpoint: @config.endpoint,
173
166
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
174
167
  universe_domain: @config.universe_domain,
175
168
  credentials: credentials
176
169
  )
170
+
171
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
172
+ config.credentials = credentials
173
+ config.quota_project = @quota_project_id
174
+ config.endpoint = @user_event_service_stub.endpoint
175
+ config.universe_domain = @user_event_service_stub.universe_domain
176
+ end
177
177
  end
178
178
 
179
179
  ##
@@ -52,6 +52,15 @@ module Google
52
52
  @client_stub.universe_domain
53
53
  end
54
54
 
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
55
64
  ##
56
65
  # Baseline implementation for the write_user_event REST call
57
66
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
23
  module V1beta
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
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-01-11 00:00:00.000000000 Z
11
+ date: 2024-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common