Class GrpcUserEventServiceStub (0.13.0)

public class GrpcUserEventServiceStub extends UserEventServiceStub

gRPC stub implementation for the UserEventService service API.

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

Inheritance

java.lang.Object > UserEventServiceStub > GrpcUserEventServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcUserEventServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcUserEventServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcUserEventServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcUserEventServiceStub
Exceptions
TypeDescription
IOException

create(UserEventServiceStubSettings settings)

public static final GrpcUserEventServiceStub create(UserEventServiceStubSettings settings)
Parameter
NameDescription
settingsUserEventServiceStubSettings
Returns
TypeDescription
GrpcUserEventServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext)

protected GrpcUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcUserEventServiceStub, 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
NameDescription
settingsUserEventServiceStubSettings
clientContextClientContext

GrpcUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcUserEventServiceStub, 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
NameDescription
settingsUserEventServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

collectUserEventCallable()

public UnaryCallable<CollectUserEventRequest,HttpBody> collectUserEventCallable()
Returns
TypeDescription
UnaryCallable<CollectUserEventRequest,com.google.api.HttpBody>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importUserEventsCallable()

public UnaryCallable<ImportUserEventsRequest,Operation> importUserEventsCallable()
Returns
TypeDescription
UnaryCallable<ImportUserEventsRequest,Operation>
Overrides

importUserEventsOperationCallable()

public OperationCallable<ImportUserEventsRequest,ImportUserEventsResponse,ImportUserEventsMetadata> importUserEventsOperationCallable()
Returns
TypeDescription
OperationCallable<ImportUserEventsRequest,ImportUserEventsResponse,ImportUserEventsMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

writeUserEventCallable()

public UnaryCallable<WriteUserEventRequest,UserEvent> writeUserEventCallable()
Returns
TypeDescription
UnaryCallable<WriteUserEventRequest,UserEvent>
Overrides