Class GrpcUserServiceStub (0.3.0)

public class GrpcUserServiceStub extends UserServiceStub

gRPC stub implementation for the UserService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > UserServiceStub > GrpcUserServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcUserServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcUserServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcUserServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcUserServiceStub
Exceptions
Type Description
IOException

create(UserServiceStubSettings settings)

public static final GrpcUserServiceStub create(UserServiceStubSettings settings)
Parameter
Name Description
settings UserServiceStubSettings
Returns
Type Description
GrpcUserServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcUserServiceStub(UserServiceStubSettings settings, ClientContext clientContext)

protected GrpcUserServiceStub(UserServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcUserServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings UserServiceStubSettings
clientContext ClientContext

GrpcUserServiceStub(UserServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcUserServiceStub(UserServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcUserServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings UserServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createUserCallable()

public UnaryCallable<CreateUserRequest,User> createUserCallable()
Returns
Type Description
UnaryCallable<CreateUserRequest,User>
Overrides

deleteUserCallable()

public UnaryCallable<DeleteUserRequest,Empty> deleteUserCallable()
Returns
Type Description
UnaryCallable<DeleteUserRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getUserCallable()

public UnaryCallable<GetUserRequest,User> getUserCallable()
Returns
Type Description
UnaryCallable<GetUserRequest,User>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listUsersCallable()

public UnaryCallable<ListUsersRequest,ListUsersResponse> listUsersCallable()
Returns
Type Description
UnaryCallable<ListUsersRequest,ListUsersResponse>
Overrides

listUsersPagedCallable()

public UnaryCallable<ListUsersRequest,UserServiceClient.ListUsersPagedResponse> listUsersPagedCallable()
Returns
Type Description
UnaryCallable<ListUsersRequest,ListUsersPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateUserCallable()

public UnaryCallable<UpdateUserRequest,User> updateUserCallable()
Returns
Type Description
UnaryCallable<UpdateUserRequest,User>
Overrides