Class RegistrationServiceGrpc.RegistrationServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<RegistrationServiceGrpc.RegistrationServiceStub>
com.google.cloud.servicedirectory.v1beta1.RegistrationServiceGrpc.RegistrationServiceStub
- Enclosing class:
- RegistrationServiceGrpc
public static final class RegistrationServiceGrpc.RegistrationServiceStub
extends io.grpc.stub.AbstractAsyncStub<RegistrationServiceGrpc.RegistrationServiceStub>
A stub to allow clients to do asynchronous 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/*`.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcreateEndpoint(CreateEndpointRequest request, io.grpc.stub.StreamObserver<Endpoint> responseObserver) Creates an endpoint, and returns the new endpoint.voidcreateNamespace(CreateNamespaceRequest request, io.grpc.stub.StreamObserver<Namespace> responseObserver) Creates a namespace, and returns the new namespace.voidcreateService(CreateServiceRequest request, io.grpc.stub.StreamObserver<Service> responseObserver) Creates a service, and returns the new service.voiddeleteEndpoint(DeleteEndpointRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an endpoint.voiddeleteNamespace(DeleteNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a namespace.voiddeleteService(DeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a service.voidgetEndpoint(GetEndpointRequest request, io.grpc.stub.StreamObserver<Endpoint> responseObserver) Gets an endpoint.voidgetIamPolicy(GetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Gets the IAM Policy for a resourcevoidgetNamespace(GetNamespaceRequest request, io.grpc.stub.StreamObserver<Namespace> responseObserver) Gets a namespace.voidgetService(GetServiceRequest request, io.grpc.stub.StreamObserver<Service> responseObserver) Gets a service.voidlistEndpoints(ListEndpointsRequest request, io.grpc.stub.StreamObserver<ListEndpointsResponse> responseObserver) Lists all endpoints.voidlistNamespaces(ListNamespacesRequest request, io.grpc.stub.StreamObserver<ListNamespacesResponse> responseObserver) Lists all namespaces.voidlistServices(ListServicesRequest request, io.grpc.stub.StreamObserver<ListServicesResponse> responseObserver) Lists all services belonging to a namespace.voidsetIamPolicy(SetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Sets the IAM Policy for a resourcevoidtestIamPermissions(TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<TestIamPermissionsResponse> responseObserver) Tests IAM permissions for a resource (namespace, service or service workload only).voidupdateEndpoint(UpdateEndpointRequest request, io.grpc.stub.StreamObserver<Endpoint> responseObserver) Updates an endpoint.voidupdateNamespace(UpdateNamespaceRequest request, io.grpc.stub.StreamObserver<Namespace> responseObserver) Updates a namespace.voidupdateService(UpdateServiceRequest request, io.grpc.stub.StreamObserver<Service> responseObserver) Updates a service.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected RegistrationServiceGrpc.RegistrationServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<RegistrationServiceGrpc.RegistrationServiceStub>
-
createNamespace
public void createNamespace(CreateNamespaceRequest request, io.grpc.stub.StreamObserver<Namespace> responseObserver) Creates a namespace, and returns the new namespace.
-
listNamespaces
public void listNamespaces(ListNamespacesRequest request, io.grpc.stub.StreamObserver<ListNamespacesResponse> responseObserver) Lists all namespaces.
-
getNamespace
public void getNamespace(GetNamespaceRequest request, io.grpc.stub.StreamObserver<Namespace> responseObserver) Gets a namespace.
-
updateNamespace
public void updateNamespace(UpdateNamespaceRequest request, io.grpc.stub.StreamObserver<Namespace> responseObserver) Updates a namespace.
-
deleteNamespace
public void deleteNamespace(DeleteNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a namespace. This also deletes all services and endpoints in the namespace.
-
createService
public void createService(CreateServiceRequest request, io.grpc.stub.StreamObserver<Service> responseObserver) Creates a service, and returns the new service.
-
listServices
public void listServices(ListServicesRequest request, io.grpc.stub.StreamObserver<ListServicesResponse> responseObserver) Lists all services belonging to a namespace.
-
getService
public void getService(GetServiceRequest request, io.grpc.stub.StreamObserver<Service> responseObserver) Gets a service.
-
updateService
public void updateService(UpdateServiceRequest request, io.grpc.stub.StreamObserver<Service> responseObserver) Updates a service.
-
deleteService
public void deleteService(DeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes a service. This also deletes all endpoints associated with the service.
-
createEndpoint
public void createEndpoint(CreateEndpointRequest request, io.grpc.stub.StreamObserver<Endpoint> responseObserver) Creates an endpoint, and returns the new endpoint.
-
listEndpoints
public void listEndpoints(ListEndpointsRequest request, io.grpc.stub.StreamObserver<ListEndpointsResponse> responseObserver) Lists all endpoints.
-
getEndpoint
public void getEndpoint(GetEndpointRequest request, io.grpc.stub.StreamObserver<Endpoint> responseObserver) Gets an endpoint.
-
updateEndpoint
public void updateEndpoint(UpdateEndpointRequest request, io.grpc.stub.StreamObserver<Endpoint> responseObserver) Updates an endpoint.
-
deleteEndpoint
public void deleteEndpoint(DeleteEndpointRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Deletes an endpoint.
-
getIamPolicy
public void getIamPolicy(GetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Gets the IAM Policy for a resource
-
setIamPolicy
public void setIamPolicy(SetIamPolicyRequest request, io.grpc.stub.StreamObserver<Policy> responseObserver) Sets the IAM Policy for a resource
-
testIamPermissions
public void testIamPermissions(TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<TestIamPermissionsResponse> responseObserver) Tests IAM permissions for a resource (namespace, service or service workload only).
-