Beispiel #1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, VersionsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListVersions, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.ListVersionsRequest, global::Google.Cloud.Dialogflow.V2.ListVersionsResponse>(serviceImpl.ListVersions));
     serviceBinder.AddMethod(__Method_GetVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.GetVersionRequest, global::Google.Cloud.Dialogflow.V2.Version>(serviceImpl.GetVersion));
     serviceBinder.AddMethod(__Method_CreateVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.CreateVersionRequest, global::Google.Cloud.Dialogflow.V2.Version>(serviceImpl.CreateVersion));
     serviceBinder.AddMethod(__Method_UpdateVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.UpdateVersionRequest, global::Google.Cloud.Dialogflow.V2.Version>(serviceImpl.UpdateVersion));
     serviceBinder.AddMethod(__Method_DeleteVersion, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.DeleteVersionRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteVersion));
 }
Beispiel #2
0
 public static grpc::ServerServiceDefinition BindService(VersionsBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_ListVersions, serviceImpl.ListVersions)
            .AddMethod(__Method_GetVersion, serviceImpl.GetVersion)
            .AddMethod(__Method_CreateVersion, serviceImpl.CreateVersion)
            .AddMethod(__Method_UpdateVersion, serviceImpl.UpdateVersion)
            .AddMethod(__Method_DeleteVersion, serviceImpl.DeleteVersion).Build());
 }