Class UserServiceGrpc.UserServiceStub (0.3.0)

public static final class UserServiceGrpc.UserServiceStub extends AbstractAsyncStub<UserServiceGrpc.UserServiceStub>

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

Service to support user API.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > UserServiceGrpc.UserServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

createUser(CreateUserRequest request, StreamObserver<User> responseObserver)

public void createUser(CreateUserRequest request, StreamObserver<User> responseObserver)

Creates a Merchant Center account user. Executing this method requires admin access.

Parameters
Name Description
request CreateUserRequest
responseObserver io.grpc.stub.StreamObserver<User>

deleteUser(DeleteUserRequest request, StreamObserver<Empty> responseObserver)

public void deleteUser(DeleteUserRequest request, StreamObserver<Empty> responseObserver)

Deletes a Merchant Center account user. Executing this method requires admin access.

Parameters
Name Description
request DeleteUserRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getUser(GetUserRequest request, StreamObserver<User> responseObserver)

public void getUser(GetUserRequest request, StreamObserver<User> responseObserver)

Retrieves a Merchant Center account user.

Parameters
Name Description
request GetUserRequest
responseObserver io.grpc.stub.StreamObserver<User>

listUsers(ListUsersRequest request, StreamObserver<ListUsersResponse> responseObserver)

public void listUsers(ListUsersRequest request, StreamObserver<ListUsersResponse> responseObserver)

Lists all users of a Merchant Center account.

Parameters
Name Description
request ListUsersRequest
responseObserver io.grpc.stub.StreamObserver<ListUsersResponse>

updateUser(UpdateUserRequest request, StreamObserver<User> responseObserver)

public void updateUser(UpdateUserRequest request, StreamObserver<User> responseObserver)

Updates a Merchant Center account user. Executing this method requires admin access.

Parameters
Name Description
request UpdateUserRequest
responseObserver io.grpc.stub.StreamObserver<User>