Class GrpcSubscriberStub (1.131.0)

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.

Inheritance

java.lang.Object > SubscriberStub > GrpcSubscriberStub

Static Methods

create(ClientContext clientContext)

public static final GrpcSubscriberStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcSubscriberStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SubscriberStubSettings settings)

public static final GrpcSubscriberStub create(SubscriberStubSettings settings)
Parameter
Name Description
settings SubscriberStubSettings
Returns
Type Description
GrpcSubscriberStub
Exceptions
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.

Parameters
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.

Parameters
Name Description
settings SubscriberStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

acknowledgeCallable()

public UnaryCallable<AcknowledgeRequest,Empty> acknowledgeCallable()
Returns
Type Description
UnaryCallable<AcknowledgeRequest,Empty>
Overrides

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

createSnapshotCallable()

public UnaryCallable<CreateSnapshotRequest,Snapshot> createSnapshotCallable()
Returns
Type Description
UnaryCallable<CreateSnapshotRequest,Snapshot>
Overrides

createSubscriptionCallable()

public UnaryCallable<Subscription,Subscription> createSubscriptionCallable()
Returns
Type Description
UnaryCallable<Subscription,Subscription>
Overrides

deleteSnapshotCallable()

public UnaryCallable<DeleteSnapshotRequest,Empty> deleteSnapshotCallable()
Returns
Type Description
UnaryCallable<DeleteSnapshotRequest,Empty>
Overrides

deleteSubscriptionCallable()

public UnaryCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable()
Returns
Type Description
UnaryCallable<DeleteSubscriptionRequest,Empty>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getSnapshotCallable()

public UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()
Returns
Type Description
UnaryCallable<GetSnapshotRequest,Snapshot>
Overrides

getSubscriptionCallable()

public UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
Returns
Type Description
UnaryCallable<GetSubscriptionRequest,Subscription>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listSnapshotsCallable()

public UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()
Returns
Type Description
UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse>
Overrides

listSnapshotsPagedCallable()

public UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsPagedCallable()
Returns
Type Description
UnaryCallable<ListSnapshotsRequest,ListSnapshotsPagedResponse>
Overrides

listSubscriptionsCallable()

public UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
Returns
Type Description
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse>
Overrides

listSubscriptionsPagedCallable()

public UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
Returns
Type Description
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsPagedResponse>
Overrides

modifyAckDeadlineCallable()

public UnaryCallable<ModifyAckDeadlineRequest,Empty> modifyAckDeadlineCallable()
Returns
Type Description
UnaryCallable<ModifyAckDeadlineRequest,Empty>
Overrides

modifyPushConfigCallable()

public UnaryCallable<ModifyPushConfigRequest,Empty> modifyPushConfigCallable()
Returns
Type Description
UnaryCallable<ModifyPushConfigRequest,Empty>
Overrides

pullCallable()

public UnaryCallable<PullRequest,PullResponse> pullCallable()
Returns
Type Description
UnaryCallable<PullRequest,PullResponse>
Overrides

seekCallable()

public UnaryCallable<SeekRequest,SeekResponse> seekCallable()
Returns
Type Description
UnaryCallable<SeekRequest,SeekResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingPullCallable()

public BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()
Returns
Type Description
BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateSnapshotCallable()

public UnaryCallable<UpdateSnapshotRequest,Snapshot> updateSnapshotCallable()
Returns
Type Description
UnaryCallable<UpdateSnapshotRequest,Snapshot>
Overrides

updateSubscriptionCallable()

public UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
Returns
Type Description
UnaryCallable<UpdateSubscriptionRequest,Subscription>
Overrides