public class GrpcSubscriberStub extends SubscriberStub
gRPC stub implementation for the Subscriber service API.
This class is for advanced usage and reflects the underlying API directly.
Inherited Members
Static Methods
create(ClientContext clientContext)
public static final GrpcSubscriberStub create(ClientContext clientContext)
Name | Description |
clientContext | ClientContext |
Type | Description |
GrpcSubscriberStub |
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcSubscriberStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Name | Description |
clientContext | ClientContext |
callableFactory | GrpcStubCallableFactory |
Type | Description |
GrpcSubscriberStub |
Type | Description |
IOException |
create(SubscriberStubSettings settings)
public static final GrpcSubscriberStub create(SubscriberStubSettings settings)
Name | Description |
settings | SubscriberStubSettings |
Type | Description |
GrpcSubscriberStub |
Type | Description |
IOException |
Constructors
GrpcSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext)
protected GrpcSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcSubscriberStub, 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.
Name | Description |
settings | SubscriberStubSettings |
clientContext | ClientContext |
GrpcSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSubscriberStub, 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.
Name | Description |
settings | SubscriberStubSettings |
clientContext | ClientContext |
callableFactory | GrpcStubCallableFactory |
Methods
acknowledgeCallable()
public UnaryCallable<AcknowledgeRequest,Empty> acknowledgeCallable()
Type | Description |
UnaryCallable<AcknowledgeRequest,Empty> |
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
createSnapshotCallable()
public UnaryCallable<CreateSnapshotRequest,Snapshot> createSnapshotCallable()
Type | Description |
UnaryCallable<CreateSnapshotRequest,Snapshot> |
createSubscriptionCallable()
public UnaryCallable<Subscription,Subscription> createSubscriptionCallable()
Type | Description |
UnaryCallable<Subscription,Subscription> |
deleteSnapshotCallable()
public UnaryCallable<DeleteSnapshotRequest,Empty> deleteSnapshotCallable()
Type | Description |
UnaryCallable<DeleteSnapshotRequest,Empty> |
deleteSubscriptionCallable()
public UnaryCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable()
Type | Description |
UnaryCallable<DeleteSubscriptionRequest,Empty> |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Type | Description |
GrpcOperationsStub |
getSnapshotCallable()
public UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()
Type | Description |
UnaryCallable<GetSnapshotRequest,Snapshot> |
getSubscriptionCallable()
public UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
Type | Description |
UnaryCallable<GetSubscriptionRequest,Subscription> |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
listSnapshotsCallable()
public UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()
Type | Description |
UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> |
listSnapshotsPagedCallable()
public UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsPagedCallable()
Type | Description |
UnaryCallable<ListSnapshotsRequest,ListSnapshotsPagedResponse> |
listSubscriptionsCallable()
public UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
Type | Description |
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> |
listSubscriptionsPagedCallable()
public UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
Type | Description |
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsPagedResponse> |
modifyAckDeadlineCallable()
public UnaryCallable<ModifyAckDeadlineRequest,Empty> modifyAckDeadlineCallable()
Type | Description |
UnaryCallable<ModifyAckDeadlineRequest,Empty> |
modifyPushConfigCallable()
public UnaryCallable<ModifyPushConfigRequest,Empty> modifyPushConfigCallable()
Type | Description |
UnaryCallable<ModifyPushConfigRequest,Empty> |
pullCallable()
public UnaryCallable<PullRequest,PullResponse> pullCallable()
Type | Description |
UnaryCallable<PullRequest,PullResponse> |
seekCallable()
public UnaryCallable<SeekRequest,SeekResponse> seekCallable()
Type | Description |
UnaryCallable<SeekRequest,SeekResponse> |
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
streamingPullCallable()
public BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()
Type | Description |
BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> |
testIamPermissionsCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
updateSnapshotCallable()
public UnaryCallable<UpdateSnapshotRequest,Snapshot> updateSnapshotCallable()
Type | Description |
UnaryCallable<UpdateSnapshotRequest,Snapshot> |
updateSubscriptionCallable()
public UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
Type | Description |
UnaryCallable<UpdateSubscriptionRequest,Subscription> |