Package com.google.cloud.pubsub.v1.stub
Class GrpcSubscriberStub
- java.lang.Object
-
- com.google.cloud.pubsub.v1.stub.SubscriberStub
-
- com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcSubscriberStub, using the given settings.protected
GrpcSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSubscriberStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallable<AcknowledgeRequest,com.google.protobuf.Empty>
acknowledgeCallable()
boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcSubscriberStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcSubscriberStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcSubscriberStub
create(SubscriberStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateSnapshotRequest,Snapshot>
createSnapshotCallable()
com.google.api.gax.rpc.UnaryCallable<Subscription,Subscription>
createSubscriptionCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,com.google.protobuf.Empty>
deleteSnapshotCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteSubscriptionRequest,com.google.protobuf.Empty>
deleteSubscriptionCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot>
getSnapshotCallable()
com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription>
getSubscriptionCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse>
listSnapshotsCallable()
com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse>
listSnapshotsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse>
listSubscriptionsCallable()
com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse>
listSubscriptionsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ModifyAckDeadlineRequest,com.google.protobuf.Empty>
modifyAckDeadlineCallable()
com.google.api.gax.rpc.UnaryCallable<ModifyPushConfigRequest,com.google.protobuf.Empty>
modifyPushConfigCallable()
com.google.api.gax.rpc.UnaryCallable<PullRequest,PullResponse>
pullCallable()
com.google.api.gax.rpc.UnaryCallable<SeekRequest,SeekResponse>
seekCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse>
streamingPullCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateSnapshotRequest,Snapshot>
updateSnapshotCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateSubscriptionRequest,Subscription>
updateSubscriptionCallable()
-
-
-
Constructor Detail
-
GrpcSubscriberStub
protected GrpcSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcSubscriberStub
protected GrpcSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcSubscriberStub create(SubscriberStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcSubscriberStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcSubscriberStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<Subscription,Subscription> createSubscriptionCallable()
- Overrides:
createSubscriptionCallable
in classSubscriberStub
-
getSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
- Overrides:
getSubscriptionCallable
in classSubscriberStub
-
updateSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
- Overrides:
updateSubscriptionCallable
in classSubscriberStub
-
listSubscriptionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
- Overrides:
listSubscriptionsCallable
in classSubscriberStub
-
listSubscriptionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
- Overrides:
listSubscriptionsPagedCallable
in classSubscriberStub
-
deleteSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSubscriptionRequest,com.google.protobuf.Empty> deleteSubscriptionCallable()
- Overrides:
deleteSubscriptionCallable
in classSubscriberStub
-
modifyAckDeadlineCallable
public com.google.api.gax.rpc.UnaryCallable<ModifyAckDeadlineRequest,com.google.protobuf.Empty> modifyAckDeadlineCallable()
- Overrides:
modifyAckDeadlineCallable
in classSubscriberStub
-
acknowledgeCallable
public com.google.api.gax.rpc.UnaryCallable<AcknowledgeRequest,com.google.protobuf.Empty> acknowledgeCallable()
- Overrides:
acknowledgeCallable
in classSubscriberStub
-
pullCallable
public com.google.api.gax.rpc.UnaryCallable<PullRequest,PullResponse> pullCallable()
- Overrides:
pullCallable
in classSubscriberStub
-
streamingPullCallable
public com.google.api.gax.rpc.BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()
- Overrides:
streamingPullCallable
in classSubscriberStub
-
modifyPushConfigCallable
public com.google.api.gax.rpc.UnaryCallable<ModifyPushConfigRequest,com.google.protobuf.Empty> modifyPushConfigCallable()
- Overrides:
modifyPushConfigCallable
in classSubscriberStub
-
getSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()
- Overrides:
getSnapshotCallable
in classSubscriberStub
-
listSnapshotsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()
- Overrides:
listSnapshotsCallable
in classSubscriberStub
-
listSnapshotsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsPagedCallable()
- Overrides:
listSnapshotsPagedCallable
in classSubscriberStub
-
createSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSnapshotRequest,Snapshot> createSnapshotCallable()
- Overrides:
createSnapshotCallable
in classSubscriberStub
-
updateSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSnapshotRequest,Snapshot> updateSnapshotCallable()
- Overrides:
updateSnapshotCallable
in classSubscriberStub
-
deleteSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,com.google.protobuf.Empty> deleteSnapshotCallable()
- Overrides:
deleteSnapshotCallable
in classSubscriberStub
-
seekCallable
public com.google.api.gax.rpc.UnaryCallable<SeekRequest,SeekResponse> seekCallable()
- Overrides:
seekCallable
in classSubscriberStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classSubscriberStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classSubscriberStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classSubscriberStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classSubscriberStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-