Package com.google.cloud.pubsub.v1.stub
Class HttpJsonSubscriberStub
java.lang.Object
com.google.cloud.pubsub.v1.stub.SubscriberStub
com.google.cloud.pubsub.v1.stub.HttpJsonSubscriberStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
REST stub implementation for the Subscriber service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of HttpJsonSubscriberStub, using the given settings.protectedHttpJsonSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonSubscriberStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.UnaryCallable<AcknowledgeRequest,com.google.protobuf.Empty> booleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonSubscriberStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final HttpJsonSubscriberStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) static final HttpJsonSubscriberStubcreate(SubscriberStubSettings settings) com.google.api.gax.rpc.UnaryCallable<CreateSnapshotRequest,Snapshot> com.google.api.gax.rpc.UnaryCallable<Subscription,Subscription> com.google.api.gax.rpc.UnaryCallable<DeleteSnapshotRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteSubscriptionRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> static List<com.google.api.gax.httpjson.ApiMethodDescriptor>com.google.api.gax.rpc.UnaryCallable<GetSnapshotRequest,Snapshot> com.google.api.gax.rpc.UnaryCallable<GetSubscriptionRequest,Subscription> booleanbooleancom.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> com.google.api.gax.rpc.UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> com.google.api.gax.rpc.UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ModifyAckDeadlineRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<ModifyPushConfigRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<PullRequest,PullResponse> com.google.api.gax.rpc.UnaryCallable<SeekRequest,SeekResponse> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> voidshutdown()voidcom.google.api.gax.rpc.BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> com.google.api.gax.rpc.UnaryCallable<UpdateSnapshotRequest,Snapshot> com.google.api.gax.rpc.UnaryCallable<UpdateSubscriptionRequest,Subscription>
-
Constructor Details
-
HttpJsonSubscriberStub
protected HttpJsonSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of HttpJsonSubscriberStub, 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
-
HttpJsonSubscriberStub
protected HttpJsonSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonSubscriberStub, 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 Details
-
create
public static final HttpJsonSubscriberStub create(SubscriberStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonSubscriberStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonSubscriberStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors() -
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
- Overrides:
pullCallablein classSubscriberStub
-
modifyPushConfigCallable
public com.google.api.gax.rpc.UnaryCallable<ModifyPushConfigRequest,com.google.protobuf.Empty> modifyPushConfigCallable()- Overrides:
modifyPushConfigCallablein classSubscriberStub
-
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
- 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
-
streamingPullCallable
public com.google.api.gax.rpc.BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()- Overrides:
streamingPullCallablein 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
- Throws:
InterruptedException
-