public static void BindService(grpc::ServiceBinderBase serviceBinder, EnvironmentsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_CreateEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Orchestration.Airflow.Service.V1.CreateEnvironmentRequest, global::Google.LongRunning.Operation>(serviceImpl.CreateEnvironment));
     serviceBinder.AddMethod(__Method_GetEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Orchestration.Airflow.Service.V1.GetEnvironmentRequest, global::Google.Cloud.Orchestration.Airflow.Service.V1.Environment>(serviceImpl.GetEnvironment));
     serviceBinder.AddMethod(__Method_ListEnvironments, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Orchestration.Airflow.Service.V1.ListEnvironmentsRequest, global::Google.Cloud.Orchestration.Airflow.Service.V1.ListEnvironmentsResponse>(serviceImpl.ListEnvironments));
     serviceBinder.AddMethod(__Method_UpdateEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Orchestration.Airflow.Service.V1.UpdateEnvironmentRequest, global::Google.LongRunning.Operation>(serviceImpl.UpdateEnvironment));
     serviceBinder.AddMethod(__Method_DeleteEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Orchestration.Airflow.Service.V1.DeleteEnvironmentRequest, global::Google.LongRunning.Operation>(serviceImpl.DeleteEnvironment));
 }
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, EnvironmentsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListEnvironments, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.ListEnvironmentsRequest, global::Google.Cloud.Dialogflow.V2.ListEnvironmentsResponse>(serviceImpl.ListEnvironments));
     serviceBinder.AddMethod(__Method_GetEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.GetEnvironmentRequest, global::Google.Cloud.Dialogflow.V2.Environment>(serviceImpl.GetEnvironment));
     serviceBinder.AddMethod(__Method_CreateEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.CreateEnvironmentRequest, global::Google.Cloud.Dialogflow.V2.Environment>(serviceImpl.CreateEnvironment));
     serviceBinder.AddMethod(__Method_UpdateEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.UpdateEnvironmentRequest, global::Google.Cloud.Dialogflow.V2.Environment>(serviceImpl.UpdateEnvironment));
     serviceBinder.AddMethod(__Method_DeleteEnvironment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.DeleteEnvironmentRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteEnvironment));
     serviceBinder.AddMethod(__Method_GetEnvironmentHistory, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.GetEnvironmentHistoryRequest, global::Google.Cloud.Dialogflow.V2.EnvironmentHistory>(serviceImpl.GetEnvironmentHistory));
 }
 public static grpc::ServerServiceDefinition BindService(EnvironmentsBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_CreateEnvironment, serviceImpl.CreateEnvironment)
            .AddMethod(__Method_GetEnvironment, serviceImpl.GetEnvironment)
            .AddMethod(__Method_ListEnvironments, serviceImpl.ListEnvironments)
            .AddMethod(__Method_UpdateEnvironment, serviceImpl.UpdateEnvironment)
            .AddMethod(__Method_DeleteEnvironment, serviceImpl.DeleteEnvironment).Build());
 }
Example #4
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, EnvironmentsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListEnvironments, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.ListEnvironmentsRequest, global::Google.Cloud.Dialogflow.V2.ListEnvironmentsResponse>(serviceImpl.ListEnvironments));
 }