lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb in google-cloud-dialogflow-v2-0.31.0 vs lib/google/cloud/dialogflow/v2/contexts/rest/service_stub.rb in google-cloud-dialogflow-v2-0.32.0

- old
+ new

@@ -28,17 +28,29 @@ # REST service stub for the Contexts service. # Service stub contains baseline method implementations # including transcoding, making the REST call, and deserialing the response. # class ServiceStub - def initialize endpoint:, credentials: + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: # These require statements are intentionally placed here to initialize # the REST modules only when it's required. require "gapic/rest" - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, numeric_enums: true, raise_faraday_errors: false + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain end ## # Baseline implementation for the list_contexts REST call #