Class GrpcSubscriberStub (1.118.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
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
TypeDescription
UnaryCallable<AcknowledgeRequest,Empty>
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
TypeDescription
UnaryCallable<CreateSnapshotRequest,Snapshot>
Overrides

createSubscriptionCallable()

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

deleteSnapshotCallable()

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

deleteSubscriptionCallable()

public UnaryCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<DeleteSubscriptionRequest,Empty>
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
TypeDescription
UnaryCallable<GetSnapshotRequest,Snapshot>
Overrides

getSubscriptionCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSnapshotsCallable()

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

listSnapshotsPagedCallable()

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

listSubscriptionsCallable()

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

listSubscriptionsPagedCallable()

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

modifyAckDeadlineCallable()

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

modifyPushConfigCallable()

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

pullCallable()

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

seekCallable()

public UnaryCallable<SeekRequest,SeekResponse> seekCallable()
Returns
TypeDescription
UnaryCallable<SeekRequest,SeekResponse>
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
TypeDescription
BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse>
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
TypeDescription
UnaryCallable<UpdateSnapshotRequest,Snapshot>
Overrides

updateSubscriptionCallable()

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