public static void BindService(grpc::ServiceBinderBase serviceBinder, MetadataServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetEntity, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataplex.V1.GetEntityRequest, global::Google.Cloud.Dataplex.V1.Entity>(serviceImpl.GetEntity)); serviceBinder.AddMethod(__Method_ListEntities, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataplex.V1.ListEntitiesRequest, global::Google.Cloud.Dataplex.V1.ListEntitiesResponse>(serviceImpl.ListEntities)); serviceBinder.AddMethod(__Method_GetPartition, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataplex.V1.GetPartitionRequest, global::Google.Cloud.Dataplex.V1.Partition>(serviceImpl.GetPartition)); serviceBinder.AddMethod(__Method_ListPartitions, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dataplex.V1.ListPartitionsRequest, global::Google.Cloud.Dataplex.V1.ListPartitionsResponse>(serviceImpl.ListPartitions)); }
public static grpc::ServerServiceDefinition BindService(MetadataServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetEntity, serviceImpl.GetEntity) .AddMethod(__Method_ListEntities, serviceImpl.ListEntities) .AddMethod(__Method_GetPartition, serviceImpl.GetPartition) .AddMethod(__Method_ListPartitions, serviceImpl.ListPartitions).Build()); }