Class HttpJsonUserEventServiceStub (0.15.0)

public class HttpJsonUserEventServiceStub extends UserEventServiceStub

REST stub implementation for the UserEventService service API.

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

Inheritance

java.lang.Object > UserEventServiceStub > HttpJsonUserEventServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonUserEventServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonUserEventServiceStub
Exceptions
TypeDescription
IOException

create(UserEventServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonUserEventServiceStub, 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

HttpJsonUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonUserEventServiceStub(UserEventServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonUserEventServiceStub, 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
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
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