Class HttpJsonDashboardsServiceStub (2.32.0)

public class HttpJsonDashboardsServiceStub extends DashboardsServiceStub

REST stub implementation for the DashboardsService service API.

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

Inheritance

java.lang.Object > DashboardsServiceStub > HttpJsonDashboardsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DashboardsServiceStubSettings settings)

public static final HttpJsonDashboardsServiceStub create(DashboardsServiceStubSettings settings)
Parameter
NameDescription
settingsDashboardsServiceStubSettings
Returns
TypeDescription
HttpJsonDashboardsServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDashboardsServiceStub, 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
settingsDashboardsServiceStubSettings
clientContextClientContext

HttpJsonDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createDashboardCallable()

public UnaryCallable<CreateDashboardRequest,Dashboard> createDashboardCallable()
Returns
TypeDescription
UnaryCallable<CreateDashboardRequest,Dashboard>
Overrides

deleteDashboardCallable()

public UnaryCallable<DeleteDashboardRequest,Empty> deleteDashboardCallable()
Returns
TypeDescription
UnaryCallable<DeleteDashboardRequest,Empty>
Overrides

getDashboardCallable()

public UnaryCallable<GetDashboardRequest,Dashboard> getDashboardCallable()
Returns
TypeDescription
UnaryCallable<GetDashboardRequest,Dashboard>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDashboardsCallable()

public UnaryCallable<ListDashboardsRequest,ListDashboardsResponse> listDashboardsCallable()
Returns
TypeDescription
UnaryCallable<ListDashboardsRequest,ListDashboardsResponse>
Overrides

listDashboardsPagedCallable()

public UnaryCallable<ListDashboardsRequest,DashboardsServiceClient.ListDashboardsPagedResponse> listDashboardsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDashboardsRequest,ListDashboardsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDashboardCallable()

public UnaryCallable<UpdateDashboardRequest,Dashboard> updateDashboardCallable()
Returns
TypeDescription
UnaryCallable<UpdateDashboardRequest,Dashboard>
Overrides