Class HostProjectRegistrationServiceGrpc.HostProjectRegistrationServiceStub (0.2.0)

public static final class HostProjectRegistrationServiceGrpc.HostProjectRegistrationServiceStub extends AbstractAsyncStub<HostProjectRegistrationServiceGrpc.HostProjectRegistrationServiceStub>

A stub to allow clients to do asynchronous rpc calls to service HostProjectRegistrationService.

This service is used for managing the host project registrations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > HostProjectRegistrationServiceGrpc.HostProjectRegistrationServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected HostProjectRegistrationServiceGrpc.HostProjectRegistrationServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
HostProjectRegistrationServiceGrpc.HostProjectRegistrationServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createHostProjectRegistration(CreateHostProjectRegistrationRequest request, StreamObserver<HostProjectRegistration> responseObserver)

public void createHostProjectRegistration(CreateHostProjectRegistrationRequest request, StreamObserver<HostProjectRegistration> responseObserver)

Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.

Parameters
Name Description
request CreateHostProjectRegistrationRequest
responseObserver io.grpc.stub.StreamObserver<HostProjectRegistration>

getHostProjectRegistration(GetHostProjectRegistrationRequest request, StreamObserver<HostProjectRegistration> responseObserver)

public void getHostProjectRegistration(GetHostProjectRegistrationRequest request, StreamObserver<HostProjectRegistration> responseObserver)

Get a host project registration.

Parameters
Name Description
request GetHostProjectRegistrationRequest
responseObserver io.grpc.stub.StreamObserver<HostProjectRegistration>

listHostProjectRegistrations(ListHostProjectRegistrationsRequest request, StreamObserver<ListHostProjectRegistrationsResponse> responseObserver)

public void listHostProjectRegistrations(ListHostProjectRegistrationsRequest request, StreamObserver<ListHostProjectRegistrationsResponse> responseObserver)

Lists host project registrations.

Parameters
Name Description
request ListHostProjectRegistrationsRequest
responseObserver io.grpc.stub.StreamObserver<ListHostProjectRegistrationsResponse>