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 protectedGrpcSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcSubscriberStub, using the given settings.protectedGrpcSubscriberStub(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()booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcSubscriberStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcSubscriberStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcSubscriberStubcreate(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.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot>getSnapshotCallable()com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription>getSubscriptionCallable()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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:
createSubscriptionCallablein classSubscriberStub
-
getSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
- Overrides:
getSubscriptionCallablein classSubscriberStub
-
updateSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
- Overrides:
updateSubscriptionCallablein classSubscriberStub
-
listSubscriptionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
- Overrides:
listSubscriptionsCallablein classSubscriberStub
-
listSubscriptionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
- Overrides:
listSubscriptionsPagedCallablein classSubscriberStub
-
deleteSubscriptionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSubscriptionRequest,com.google.protobuf.Empty> deleteSubscriptionCallable()
- Overrides:
deleteSubscriptionCallablein classSubscriberStub
-
modifyAckDeadlineCallable
public com.google.api.gax.rpc.UnaryCallable<ModifyAckDeadlineRequest,com.google.protobuf.Empty> modifyAckDeadlineCallable()
- Overrides:
modifyAckDeadlineCallablein classSubscriberStub
-
acknowledgeCallable
public com.google.api.gax.rpc.UnaryCallable<AcknowledgeRequest,com.google.protobuf.Empty> acknowledgeCallable()
- Overrides:
acknowledgeCallablein classSubscriberStub
-
pullCallable
public com.google.api.gax.rpc.UnaryCallable<PullRequest,PullResponse> pullCallable()
- Overrides:
pullCallablein classSubscriberStub
-
streamingPullCallable
public com.google.api.gax.rpc.BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()
- Overrides:
streamingPullCallablein classSubscriberStub
-
modifyPushConfigCallable
public com.google.api.gax.rpc.UnaryCallable<ModifyPushConfigRequest,com.google.protobuf.Empty> modifyPushConfigCallable()
- Overrides:
modifyPushConfigCallablein classSubscriberStub
-
getSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()
- Overrides:
getSnapshotCallablein classSubscriberStub
-
listSnapshotsCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()
- Overrides:
listSnapshotsCallablein classSubscriberStub
-
listSnapshotsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsPagedCallable()
- Overrides:
listSnapshotsPagedCallablein classSubscriberStub
-
createSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<CreateSnapshotRequest,Snapshot> createSnapshotCallable()
- Overrides:
createSnapshotCallablein classSubscriberStub
-
updateSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateSnapshotRequest,Snapshot> updateSnapshotCallable()
- Overrides:
updateSnapshotCallablein classSubscriberStub
-
deleteSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,com.google.protobuf.Empty> deleteSnapshotCallable()
- Overrides:
deleteSnapshotCallablein classSubscriberStub
-
seekCallable
public com.google.api.gax.rpc.UnaryCallable<SeekRequest,SeekResponse> seekCallable()
- Overrides:
seekCallablein classSubscriberStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classSubscriberStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classSubscriberStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classSubscriberStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-