lib/google/cloud/dialogflow/v2/participants/rest/client.rb in google-cloud-dialogflow-v2-0.32.0 vs lib/google/cloud/dialogflow/v2/participants/rest/client.rb in google-cloud-dialogflow-v2-0.32.1

- old
+ new

@@ -152,23 +152,23 @@ end @quota_project_id = @config.quota_project @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - config.bindings_override = @config.bindings_override - end - @participants_stub = ::Google::Cloud::Dialogflow::V2::Participants::Rest::ServiceStub.new( endpoint: @config.endpoint, endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, universe_domain: @config.universe_domain, credentials: credentials ) + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @participants_stub.endpoint + config.universe_domain = @participants_stub.universe_domain + config.bindings_override = @config.bindings_override + end end ## # Get the associated client for mix-in of the Locations. #