Опытные проблемы с документацией C # SDK, которые можно найти здесь: http://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.Dialogflow.V2/api/Google.Cloud.Dialogflow.V2.SessionsClient.html#Google_Cloud_Dialogflow_V2_SessionsClient_Create_Google_Api_Gax_Grpc_ServiceEndpoint_Google_Cloud_Dialogflow_V2_SessionsSettings_
Нет ссылки на метод ToChannelCredentials ().Мы не можем подключить SDK к диалоговому потоку, даже с пустым проектом.Этот метод все еще существует или устарел?
using Google.Cloud.Dialogflow.V2; using Google.Apis.Auth.OAuth2; using Grpc.Auth; using Grpc.Core; ... GoogleCredential cred = GoogleCredential.FromFile("/path/to/credentials.json"); Channel channel = new Channel( SessionsClient.DefaultEndpoint.Host, SessionsClient.DefaultEndpoint.Port, cred.ToChannelCredentials()); SessionsClient client = SessionsClient.Create(channel); ... // Shutdown the channel when it is no longer required. channel.ShutdownAsync().Wait();