Class GrpcDashboardsServiceStub
java.lang.Object
com.google.cloud.monitoring.dashboard.v1.stub.DashboardsServiceStub
com.google.cloud.monitoring.dashboard.v1.stub.GrpcDashboardsServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcDashboardsServiceStub
extends DashboardsServiceStub
gRPC stub implementation for the DashboardsService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcDashboardsServiceStub, using the given settings.protectedGrpcDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcDashboardsServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcDashboardsServiceStubcreate(ClientContext clientContext) static final GrpcDashboardsServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcDashboardsServiceStubcreate(DashboardsServiceStubSettings settings) UnaryCallable<DeleteDashboardRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcDashboardsServiceStub
protected GrpcDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcDashboardsServiceStub, 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.- Throws:
IOException
-
GrpcDashboardsServiceStub
protected GrpcDashboardsServiceStub(DashboardsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcDashboardsServiceStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcDashboardsServiceStub create(DashboardsServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcDashboardsServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcDashboardsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createDashboardCallable
- Overrides:
createDashboardCallablein classDashboardsServiceStub
-
listDashboardsCallable
- Overrides:
listDashboardsCallablein classDashboardsServiceStub
-
listDashboardsPagedCallable
public UnaryCallable<ListDashboardsRequest,DashboardsServiceClient.ListDashboardsPagedResponse> listDashboardsPagedCallable()- Overrides:
listDashboardsPagedCallablein classDashboardsServiceStub
-
getDashboardCallable
- Overrides:
getDashboardCallablein classDashboardsServiceStub
-
deleteDashboardCallable
- Overrides:
deleteDashboardCallablein classDashboardsServiceStub
-
updateDashboardCallable
- Overrides:
updateDashboardCallablein classDashboardsServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDashboardsServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-