Exemplo n.º 1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, IndexEndpointServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_CreateIndexEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.CreateIndexEndpointRequest, global::Google.LongRunning.Operation>(serviceImpl.CreateIndexEndpoint));
     serviceBinder.AddMethod(__Method_GetIndexEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.GetIndexEndpointRequest, global::Google.Cloud.AIPlatform.V1.IndexEndpoint>(serviceImpl.GetIndexEndpoint));
     serviceBinder.AddMethod(__Method_ListIndexEndpoints, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.ListIndexEndpointsRequest, global::Google.Cloud.AIPlatform.V1.ListIndexEndpointsResponse>(serviceImpl.ListIndexEndpoints));
     serviceBinder.AddMethod(__Method_UpdateIndexEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.UpdateIndexEndpointRequest, global::Google.Cloud.AIPlatform.V1.IndexEndpoint>(serviceImpl.UpdateIndexEndpoint));
     serviceBinder.AddMethod(__Method_DeleteIndexEndpoint, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.DeleteIndexEndpointRequest, global::Google.LongRunning.Operation>(serviceImpl.DeleteIndexEndpoint));
     serviceBinder.AddMethod(__Method_DeployIndex, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.DeployIndexRequest, global::Google.LongRunning.Operation>(serviceImpl.DeployIndex));
     serviceBinder.AddMethod(__Method_UndeployIndex, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.AIPlatform.V1.UndeployIndexRequest, global::Google.LongRunning.Operation>(serviceImpl.UndeployIndex));
 }
Exemplo n.º 2
0
 public static grpc::ServerServiceDefinition BindService(IndexEndpointServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_CreateIndexEndpoint, serviceImpl.CreateIndexEndpoint)
            .AddMethod(__Method_GetIndexEndpoint, serviceImpl.GetIndexEndpoint)
            .AddMethod(__Method_ListIndexEndpoints, serviceImpl.ListIndexEndpoints)
            .AddMethod(__Method_UpdateIndexEndpoint, serviceImpl.UpdateIndexEndpoint)
            .AddMethod(__Method_DeleteIndexEndpoint, serviceImpl.DeleteIndexEndpoint)
            .AddMethod(__Method_DeployIndex, serviceImpl.DeployIndex)
            .AddMethod(__Method_UndeployIndex, serviceImpl.UndeployIndex).Build());
 }