Class GrpcGroupServiceStub
java.lang.Object
com.google.cloud.monitoring.v3.stub.GroupServiceStub
com.google.cloud.monitoring.v3.stub.GrpcGroupServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the GroupService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcGroupServiceStub(GroupServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcGroupServiceStub, using the given settings.protectedGrpcGroupServiceStub(GroupServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcGroupServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcGroupServiceStubcreate(ClientContext clientContext) static final GrpcGroupServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcGroupServiceStubcreate(GroupServiceStubSettings settings) UnaryCallable<DeleteGroupRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcGroupServiceStub
protected GrpcGroupServiceStub(GroupServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcGroupServiceStub, 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
-
GrpcGroupServiceStub
protected GrpcGroupServiceStub(GroupServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcGroupServiceStub, 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 GrpcGroupServiceStub create(GroupServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcGroupServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listGroupsCallable
- Overrides:
listGroupsCallablein classGroupServiceStub
-
listGroupsPagedCallable
public UnaryCallable<ListGroupsRequest,GroupServiceClient.ListGroupsPagedResponse> listGroupsPagedCallable()- Overrides:
listGroupsPagedCallablein classGroupServiceStub
-
getGroupCallable
- Overrides:
getGroupCallablein classGroupServiceStub
-
createGroupCallable
- Overrides:
createGroupCallablein classGroupServiceStub
-
updateGroupCallable
- Overrides:
updateGroupCallablein classGroupServiceStub
-
deleteGroupCallable
- Overrides:
deleteGroupCallablein classGroupServiceStub
-
listGroupMembersCallable
- Overrides:
listGroupMembersCallablein classGroupServiceStub
-
listGroupMembersPagedCallable
public UnaryCallable<ListGroupMembersRequest,GroupServiceClient.ListGroupMembersPagedResponse> listGroupMembersPagedCallable()- Overrides:
listGroupMembersPagedCallablein classGroupServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classGroupServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-