Class GrpcSubscriberStub (1.123.4)

See more code actions.
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.

java.lang.Object > SubscriberStub > GrpcSubscriberStub

create(ClientContext clientContext)

public static final GrpcSubscriberStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcSubscriberStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcSubscriberStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcSubscriberStub
Exceptions
TypeDescription
IOException

create(SubscriberStubSettings settings)

public static final GrpcSubscriberStub create(SubscriberStubSettings settings)
Parameter
NameDescription
settingsSubscriberStubSettings
Returns
TypeDescription
GrpcSubscriberStub
Exceptions
TypeDescription
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
NameDescription
settingsSubscriberStubSettings
clientContextClientContext

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
NameDescription
settingsSubscriberStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

acknowledgeCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createSnapshotCallable()

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

createSubscriptionCallable()

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

deleteSnapshotCallable()

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

deleteSubscriptionCallable()

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

getIamPolicyCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getSnapshotCallable()

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

getSubscriptionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSnapshotsCallable()

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

listSnapshotsPagedCallable()

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

listSubscriptionsCallable()

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

listSubscriptionsPagedCallable()

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

modifyAckDeadlineCallable()

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

modifyPushConfigCallable()

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

pullCallable()

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

seekCallable()

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

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
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 Overrides

testIamPermissionsCallable()

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

updateSnapshotCallable()

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

updateSubscriptionCallable()

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