Class HttpJsonDashboardsServiceStub (2.53.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonDashboardsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DashboardsServiceStubSettings settings)

public static final HttpJsonDashboardsServiceStub create(DashboardsServiceStubSettings settings)
Parameter
Name Description
settings DashboardsServiceStubSettings
Returns
Type Description
HttpJsonDashboardsServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings DashboardsServiceStubSettings
clientContext ClientContext

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
Name Description
settings DashboardsServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

createDashboardCallable()

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

deleteDashboardCallable()

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

getDashboardCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listDashboardsCallable()

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

listDashboardsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDashboardCallable()

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