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
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonSubscriberStub extends SubscriberStub
REST 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
HttpJsonSubscriberStub(SubscriberStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonSubscriberStub, using the given settings.protected
HttpJsonSubscriberStub(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
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 HttpJsonSubscriberStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonSubscriberStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonSubscriberStub
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()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
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
-
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 Detail
-
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
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
-
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
-
streamingPullCallable
public com.google.api.gax.rpc.BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()
- Overrides:
streamingPullCallable
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
-
-