Class RegistrationServiceGrpc.RegistrationServiceBlockingV2Stub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<RegistrationServiceGrpc.RegistrationServiceBlockingV2Stub>
com.google.cloud.servicedirectory.v1beta1.RegistrationServiceGrpc.RegistrationServiceBlockingV2Stub
Enclosing class:
RegistrationServiceGrpc

public static final class RegistrationServiceGrpc.RegistrationServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<RegistrationServiceGrpc.RegistrationServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service RegistrationService.
 Service Directory API for registering services. It defines the following
 resource model:
 - The API has a collection of
 [Namespace][google.cloud.servicedirectory.v1beta1.Namespace]
 resources, named `projects/*/locations/*/namespaces/*`.
 - Each Namespace has a collection of
 [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named
 `projects/*/locations/*/namespaces/*/services/*`.
 - Each Service has a collection of
 [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint]
 resources, named
 `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
 
  • Method Details

    • build

      protected RegistrationServiceGrpc.RegistrationServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<RegistrationServiceGrpc.RegistrationServiceBlockingV2Stub>
    • createNamespace

      public Namespace createNamespace(CreateNamespaceRequest request) throws io.grpc.StatusException
       Creates a namespace, and returns the new namespace.
       
      Throws:
      io.grpc.StatusException
    • listNamespaces

      public ListNamespacesResponse listNamespaces(ListNamespacesRequest request) throws io.grpc.StatusException
       Lists all namespaces.
       
      Throws:
      io.grpc.StatusException
    • getNamespace

      public Namespace getNamespace(GetNamespaceRequest request) throws io.grpc.StatusException
       Gets a namespace.
       
      Throws:
      io.grpc.StatusException
    • updateNamespace

      public Namespace updateNamespace(UpdateNamespaceRequest request) throws io.grpc.StatusException
       Updates a namespace.
       
      Throws:
      io.grpc.StatusException
    • deleteNamespace

      public com.google.protobuf.Empty deleteNamespace(DeleteNamespaceRequest request) throws io.grpc.StatusException
       Deletes a namespace. This also deletes all services and endpoints in
       the namespace.
       
      Throws:
      io.grpc.StatusException
    • createService

      public Service createService(CreateServiceRequest request) throws io.grpc.StatusException
       Creates a service, and returns the new service.
       
      Throws:
      io.grpc.StatusException
    • listServices

      public ListServicesResponse listServices(ListServicesRequest request) throws io.grpc.StatusException
       Lists all services belonging to a namespace.
       
      Throws:
      io.grpc.StatusException
    • getService

      public Service getService(GetServiceRequest request) throws io.grpc.StatusException
       Gets a service.
       
      Throws:
      io.grpc.StatusException
    • updateService

      public Service updateService(UpdateServiceRequest request) throws io.grpc.StatusException
       Updates a service.
       
      Throws:
      io.grpc.StatusException
    • deleteService

      public com.google.protobuf.Empty deleteService(DeleteServiceRequest request) throws io.grpc.StatusException
       Deletes a service. This also deletes all endpoints associated with
       the service.
       
      Throws:
      io.grpc.StatusException
    • createEndpoint

      public Endpoint createEndpoint(CreateEndpointRequest request) throws io.grpc.StatusException
       Creates an endpoint, and returns the new endpoint.
       
      Throws:
      io.grpc.StatusException
    • listEndpoints

      public ListEndpointsResponse listEndpoints(ListEndpointsRequest request) throws io.grpc.StatusException
       Lists all endpoints.
       
      Throws:
      io.grpc.StatusException
    • getEndpoint

      public Endpoint getEndpoint(GetEndpointRequest request) throws io.grpc.StatusException
       Gets an endpoint.
       
      Throws:
      io.grpc.StatusException
    • updateEndpoint

      public Endpoint updateEndpoint(UpdateEndpointRequest request) throws io.grpc.StatusException
       Updates an endpoint.
       
      Throws:
      io.grpc.StatusException
    • deleteEndpoint

      public com.google.protobuf.Empty deleteEndpoint(DeleteEndpointRequest request) throws io.grpc.StatusException
       Deletes an endpoint.
       
      Throws:
      io.grpc.StatusException
    • getIamPolicy

      public Policy getIamPolicy(GetIamPolicyRequest request) throws io.grpc.StatusException
       Gets the IAM Policy for a resource
       
      Throws:
      io.grpc.StatusException
    • setIamPolicy

      public Policy setIamPolicy(SetIamPolicyRequest request) throws io.grpc.StatusException
       Sets the IAM Policy for a resource
       
      Throws:
      io.grpc.StatusException
    • testIamPermissions

      public TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) throws io.grpc.StatusException
       Tests IAM permissions for a resource (namespace, service  or
       service workload only).
       
      Throws:
      io.grpc.StatusException