google-cloud-dialogflow-v2 0.32.0 → 0.32.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agents/client.rb +7 -7
  3. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +8 -8
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/service_stub.rb +9 -0
  5. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +7 -7
  6. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +8 -8
  7. data/lib/google/cloud/dialogflow/v2/answer_records/rest/service_stub.rb +9 -0
  8. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +7 -7
  9. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +8 -8
  10. data/lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb +9 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +7 -7
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +8 -8
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/service_stub.rb +9 -0
  14. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +7 -7
  15. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +8 -8
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/service_stub.rb +9 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +7 -7
  18. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +8 -8
  19. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/service_stub.rb +9 -0
  20. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +7 -7
  21. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +8 -8
  22. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +9 -0
  23. data/lib/google/cloud/dialogflow/v2/documents/client.rb +7 -7
  24. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +8 -8
  25. data/lib/google/cloud/dialogflow/v2/documents/rest/service_stub.rb +9 -0
  26. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +7 -7
  27. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +8 -8
  28. data/lib/google/cloud/dialogflow/v2/entity_types/rest/service_stub.rb +9 -0
  29. data/lib/google/cloud/dialogflow/v2/environments/client.rb +7 -7
  30. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +8 -8
  31. data/lib/google/cloud/dialogflow/v2/environments/rest/service_stub.rb +9 -0
  32. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +7 -7
  33. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +8 -8
  34. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/service_stub.rb +9 -0
  35. data/lib/google/cloud/dialogflow/v2/intents/client.rb +7 -7
  36. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +8 -8
  37. data/lib/google/cloud/dialogflow/v2/intents/rest/service_stub.rb +9 -0
  38. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +7 -7
  39. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +8 -8
  40. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/service_stub.rb +9 -0
  41. data/lib/google/cloud/dialogflow/v2/participants/client.rb +7 -7
  42. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +8 -8
  43. data/lib/google/cloud/dialogflow/v2/participants/rest/service_stub.rb +9 -0
  44. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +7 -7
  45. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +8 -8
  46. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/service_stub.rb +9 -0
  47. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +7 -7
  48. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +8 -8
  49. data/lib/google/cloud/dialogflow/v2/sessions/rest/service_stub.rb +9 -0
  50. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  51. data/lib/google/cloud/dialogflow/v2/versions/client.rb +7 -7
  52. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +8 -8
  53. data/lib/google/cloud/dialogflow/v2/versions/rest/service_stub.rb +9 -0
  54. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ede7ec343a2e8dbb2f8b37191a6f7f7a750b5cb256208b0168c662a391ac6f9
4
- data.tar.gz: a62a8c31664d78f7bd280a09904ef067219aedc173e374e56dff27e90a761068
3
+ metadata.gz: 276092dd54e1fe7b902ee1a8cbe9d25148d2343ed6b923bba1f3df8f74c5ca8b
4
+ data.tar.gz: f25f2c5efa21aa7598bc38ad73b325450edbcdb725d06cdf79c8e6f80d992ae3
5
5
  SHA512:
6
- metadata.gz: 430a4785e1c44533f0d70685566e054783984aaca146066a0d67c9e0ae02cd1aa36e27335a1b79131c2ec023c2e8249feec519e9dec5d8fa373c586f82df4fb6
7
- data.tar.gz: c3d3791107181001617c64f2b0b5e18d5cade910a95d6762e18987b7cb1ba18aa3f00110a1f5a030f4357d5360471545bdb8945954b2c4abf1871fe3cc00f975
6
+ metadata.gz: ade64cf4fe730871dfd3fbc2f61673d49964a1a8adf80217453da37c58c6b1df67e0ec5f76154321fd57f061411147f22b03e94cc04f31c7a8c7c55d3f3518c2
7
+ data.tar.gz: 8296e6d2fdfdae41b9fd6b0127c345dc7b6ca1683cccee0e6c1eed722b2ecceeaa4bd7d493d1daa78424f131d80364995979d602e59ccb3afe22c6d34b1e9c7a
@@ -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
  @agents_stub = ::Gapic::ServiceStub.new(
170
163
  ::Google::Cloud::Dialogflow::V2::Agents::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 = @agents_stub.endpoint
177
+ config.universe_domain = @agents_stub.universe_domain
178
+ end
179
179
  end
180
180
 
181
181
  ##
@@ -156,20 +156,20 @@ 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
- config.bindings_override = @config.bindings_override
165
- end
166
-
167
159
  @agents_stub = ::Google::Cloud::Dialogflow::V2::Agents::Rest::ServiceStub.new(
168
160
  endpoint: @config.endpoint,
169
161
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
170
162
  universe_domain: @config.universe_domain,
171
163
  credentials: credentials
172
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 = @agents_stub.endpoint
170
+ config.universe_domain = @agents_stub.universe_domain
171
+ config.bindings_override = @config.bindings_override
172
+ end
173
173
  end
174
174
 
175
175
  ##
@@ -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_agent REST call
57
66
  #
@@ -153,13 +153,6 @@ module Google
153
153
  @quota_project_id = @config.quota_project
154
154
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
155
 
156
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
157
- config.credentials = credentials
158
- config.quota_project = @quota_project_id
159
- config.endpoint = @config.endpoint
160
- config.universe_domain = @config.universe_domain
161
- end
162
-
163
156
  @answer_records_stub = ::Gapic::ServiceStub.new(
164
157
  ::Google::Cloud::Dialogflow::V2::AnswerRecords::Stub,
165
158
  credentials: credentials,
@@ -170,6 +163,13 @@ module Google
170
163
  interceptors: @config.interceptors,
171
164
  channel_pool_config: @config.channel_pool
172
165
  )
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 = @answer_records_stub.endpoint
171
+ config.universe_domain = @answer_records_stub.universe_domain
172
+ end
173
173
  end
174
174
 
175
175
  ##
@@ -150,20 +150,20 @@ module Google
150
150
  @quota_project_id = @config.quota_project
151
151
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
152
152
 
153
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
154
- config.credentials = credentials
155
- config.quota_project = @quota_project_id
156
- config.endpoint = @config.endpoint
157
- config.universe_domain = @config.universe_domain
158
- config.bindings_override = @config.bindings_override
159
- end
160
-
161
153
  @answer_records_stub = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Rest::ServiceStub.new(
162
154
  endpoint: @config.endpoint,
163
155
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
164
156
  universe_domain: @config.universe_domain,
165
157
  credentials: credentials
166
158
  )
159
+
160
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
161
+ config.credentials = credentials
162
+ config.quota_project = @quota_project_id
163
+ config.endpoint = @answer_records_stub.endpoint
164
+ config.universe_domain = @answer_records_stub.universe_domain
165
+ config.bindings_override = @config.bindings_override
166
+ end
167
167
  end
168
168
 
169
169
  ##
@@ -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 list_answer_records 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
  @contexts_stub = ::Gapic::ServiceStub.new(
163
156
  ::Google::Cloud::Dialogflow::V2::Contexts::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 = @contexts_stub.endpoint
170
+ config.universe_domain = @contexts_stub.universe_domain
171
+ end
172
172
  end
173
173
 
174
174
  ##
@@ -149,20 +149,20 @@ 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
- config.bindings_override = @config.bindings_override
158
- end
159
-
160
152
  @contexts_stub = ::Google::Cloud::Dialogflow::V2::Contexts::Rest::ServiceStub.new(
161
153
  endpoint: @config.endpoint,
162
154
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
155
  universe_domain: @config.universe_domain,
164
156
  credentials: credentials
165
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 = @contexts_stub.endpoint
163
+ config.universe_domain = @contexts_stub.universe_domain
164
+ config.bindings_override = @config.bindings_override
165
+ end
166
166
  end
167
167
 
168
168
  ##
@@ -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 list_contexts REST call
57
66
  #
@@ -162,13 +162,6 @@ module Google
162
162
  config.universe_domain = @config.universe_domain
163
163
  end
164
164
 
165
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
166
- config.credentials = credentials
167
- config.quota_project = @quota_project_id
168
- config.endpoint = @config.endpoint
169
- config.universe_domain = @config.universe_domain
170
- end
171
-
172
165
  @conversation_datasets_stub = ::Gapic::ServiceStub.new(
173
166
  ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Stub,
174
167
  credentials: credentials,
@@ -179,6 +172,13 @@ module Google
179
172
  interceptors: @config.interceptors,
180
173
  channel_pool_config: @config.channel_pool
181
174
  )
175
+
176
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
177
+ config.credentials = credentials
178
+ config.quota_project = @quota_project_id
179
+ config.endpoint = @conversation_datasets_stub.endpoint
180
+ config.universe_domain = @conversation_datasets_stub.universe_domain
181
+ end
182
182
  end
183
183
 
184
184
  ##
@@ -159,20 +159,20 @@ module Google
159
159
  config.universe_domain = @config.universe_domain
160
160
  end
161
161
 
162
- @location_client = Google::Cloud::Location::Locations::Rest::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
- config.bindings_override = @config.bindings_override
168
- end
169
-
170
162
  @conversation_datasets_stub = ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::ServiceStub.new(
171
163
  endpoint: @config.endpoint,
172
164
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
173
165
  universe_domain: @config.universe_domain,
174
166
  credentials: credentials
175
167
  )
168
+
169
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
170
+ config.credentials = credentials
171
+ config.quota_project = @quota_project_id
172
+ config.endpoint = @conversation_datasets_stub.endpoint
173
+ config.universe_domain = @conversation_datasets_stub.universe_domain
174
+ config.bindings_override = @config.bindings_override
175
+ end
176
176
  end
177
177
 
178
178
  ##
@@ -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 create_conversation_dataset 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
  @conversation_models_stub = ::Gapic::ServiceStub.new(
170
163
  ::Google::Cloud::Dialogflow::V2::ConversationModels::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 = @conversation_models_stub.endpoint
177
+ config.universe_domain = @conversation_models_stub.universe_domain
178
+ end
179
179
  end
180
180
 
181
181
  ##
@@ -156,20 +156,20 @@ 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
- config.bindings_override = @config.bindings_override
165
- end
166
-
167
159
  @conversation_models_stub = ::Google::Cloud::Dialogflow::V2::ConversationModels::Rest::ServiceStub.new(
168
160
  endpoint: @config.endpoint,
169
161
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
170
162
  universe_domain: @config.universe_domain,
171
163
  credentials: credentials
172
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 = @conversation_models_stub.endpoint
170
+ config.universe_domain = @conversation_models_stub.universe_domain
171
+ config.bindings_override = @config.bindings_override
172
+ end
173
173
  end
174
174
 
175
175
  ##
@@ -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 create_conversation_model REST call
57
66
  #
@@ -160,13 +160,6 @@ module Google
160
160
  config.universe_domain = @config.universe_domain
161
161
  end
162
162
 
163
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
164
- config.credentials = credentials
165
- config.quota_project = @quota_project_id
166
- config.endpoint = @config.endpoint
167
- config.universe_domain = @config.universe_domain
168
- end
169
-
170
163
  @conversation_profiles_stub = ::Gapic::ServiceStub.new(
171
164
  ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Stub,
172
165
  credentials: credentials,
@@ -177,6 +170,13 @@ module Google
177
170
  interceptors: @config.interceptors,
178
171
  channel_pool_config: @config.channel_pool
179
172
  )
173
+
174
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
175
+ config.credentials = credentials
176
+ config.quota_project = @quota_project_id
177
+ config.endpoint = @conversation_profiles_stub.endpoint
178
+ config.universe_domain = @conversation_profiles_stub.universe_domain
179
+ end
180
180
  end
181
181
 
182
182
  ##
@@ -157,20 +157,20 @@ module Google
157
157
  config.universe_domain = @config.universe_domain
158
158
  end
159
159
 
160
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
161
- config.credentials = credentials
162
- config.quota_project = @quota_project_id
163
- config.endpoint = @config.endpoint
164
- config.universe_domain = @config.universe_domain
165
- config.bindings_override = @config.bindings_override
166
- end
167
-
168
160
  @conversation_profiles_stub = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::ServiceStub.new(
169
161
  endpoint: @config.endpoint,
170
162
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
171
163
  universe_domain: @config.universe_domain,
172
164
  credentials: credentials
173
165
  )
166
+
167
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
168
+ config.credentials = credentials
169
+ config.quota_project = @quota_project_id
170
+ config.endpoint = @conversation_profiles_stub.endpoint
171
+ config.universe_domain = @conversation_profiles_stub.universe_domain
172
+ config.bindings_override = @config.bindings_override
173
+ end
174
174
  end
175
175
 
176
176
  ##
@@ -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 list_conversation_profiles REST call
57
66
  #
@@ -153,13 +153,6 @@ module Google
153
153
  @quota_project_id = @config.quota_project
154
154
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
155
 
156
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
157
- config.credentials = credentials
158
- config.quota_project = @quota_project_id
159
- config.endpoint = @config.endpoint
160
- config.universe_domain = @config.universe_domain
161
- end
162
-
163
156
  @conversations_stub = ::Gapic::ServiceStub.new(
164
157
  ::Google::Cloud::Dialogflow::V2::Conversations::Stub,
165
158
  credentials: credentials,
@@ -170,6 +163,13 @@ module Google
170
163
  interceptors: @config.interceptors,
171
164
  channel_pool_config: @config.channel_pool
172
165
  )
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 = @conversations_stub.endpoint
171
+ config.universe_domain = @conversations_stub.universe_domain
172
+ end
173
173
  end
174
174
 
175
175
  ##
@@ -150,20 +150,20 @@ module Google
150
150
  @quota_project_id = @config.quota_project
151
151
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
152
152
 
153
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
154
- config.credentials = credentials
155
- config.quota_project = @quota_project_id
156
- config.endpoint = @config.endpoint
157
- config.universe_domain = @config.universe_domain
158
- config.bindings_override = @config.bindings_override
159
- end
160
-
161
153
  @conversations_stub = ::Google::Cloud::Dialogflow::V2::Conversations::Rest::ServiceStub.new(
162
154
  endpoint: @config.endpoint,
163
155
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
164
156
  universe_domain: @config.universe_domain,
165
157
  credentials: credentials
166
158
  )
159
+
160
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
161
+ config.credentials = credentials
162
+ config.quota_project = @quota_project_id
163
+ config.endpoint = @conversations_stub.endpoint
164
+ config.universe_domain = @conversations_stub.universe_domain
165
+ config.bindings_override = @config.bindings_override
166
+ end
167
167
  end
168
168
 
169
169
  ##
@@ -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 create_conversation REST call
57
66
  #
@@ -160,13 +160,6 @@ module Google
160
160
  config.universe_domain = @config.universe_domain
161
161
  end
162
162
 
163
- @location_client = Google::Cloud::Location::Locations::Client.new do |config|
164
- config.credentials = credentials
165
- config.quota_project = @quota_project_id
166
- config.endpoint = @config.endpoint
167
- config.universe_domain = @config.universe_domain
168
- end
169
-
170
163
  @documents_stub = ::Gapic::ServiceStub.new(
171
164
  ::Google::Cloud::Dialogflow::V2::Documents::Stub,
172
165
  credentials: credentials,
@@ -177,6 +170,13 @@ module Google
177
170
  interceptors: @config.interceptors,
178
171
  channel_pool_config: @config.channel_pool
179
172
  )
173
+
174
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
175
+ config.credentials = credentials
176
+ config.quota_project = @quota_project_id
177
+ config.endpoint = @documents_stub.endpoint
178
+ config.universe_domain = @documents_stub.universe_domain
179
+ end
180
180
  end
181
181
 
182
182
  ##
@@ -157,20 +157,20 @@ module Google
157
157
  config.universe_domain = @config.universe_domain
158
158
  end
159
159
 
160
- @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
161
- config.credentials = credentials
162
- config.quota_project = @quota_project_id
163
- config.endpoint = @config.endpoint
164
- config.universe_domain = @config.universe_domain
165
- config.bindings_override = @config.bindings_override
166
- end
167
-
168
160
  @documents_stub = ::Google::Cloud::Dialogflow::V2::Documents::Rest::ServiceStub.new(
169
161
  endpoint: @config.endpoint,
170
162
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
171
163
  universe_domain: @config.universe_domain,
172
164
  credentials: credentials
173
165
  )
166
+
167
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
168
+ config.credentials = credentials
169
+ config.quota_project = @quota_project_id
170
+ config.endpoint = @documents_stub.endpoint
171
+ config.universe_domain = @documents_stub.universe_domain
172
+ config.bindings_override = @config.bindings_override
173
+ end
174
174
  end
175
175
 
176
176
  ##
@@ -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 list_documents 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
  @entity_types_stub = ::Gapic::ServiceStub.new(
170
163
  ::Google::Cloud::Dialogflow::V2::EntityTypes::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 = @entity_types_stub.endpoint
177
+ config.universe_domain = @entity_types_stub.universe_domain
178
+ end
179
179
  end
180
180
 
181
181
  ##