lib/google/cloud/dialogflow/v2/documents/client.rb in google-cloud-dialogflow-v2-0.16.0 vs lib/google/cloud/dialogflow/v2/documents/client.rb in google-cloud-dialogflow-v2-0.17.0

- old
+ new

@@ -16,10 +16,11 @@ # Auto-generated by gapic-generator-ruby. DO NOT EDIT! require "google/cloud/errors" require "google/cloud/dialogflow/v2/document_pb" +require "google/cloud/location" module Google module Cloud module Dialogflow module V2 @@ -142,10 +143,16 @@ config.credentials = credentials config.quota_project = @quota_project_id config.endpoint = @config.endpoint end + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + end + @documents_stub = ::Gapic::ServiceStub.new( ::Google::Cloud::Dialogflow::V2::Documents::Stub, credentials: credentials, endpoint: @config.endpoint, channel_args: @config.channel_args, @@ -157,9 +164,16 @@ # Get the associated client for long-running operations. # # @return [::Google::Cloud::Dialogflow::V2::Documents::Operations] # attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client # Service calls ## # Returns the list of all documents of the knowledge base.