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.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonSubscriberStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
HttpJsonSubscriberStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonSubscriberStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Returns | |
---|---|
Type | Description |
HttpJsonSubscriberStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(SubscriberStubSettings settings)
public static final HttpJsonSubscriberStub create(SubscriberStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | SubscriberStubSettings |
Returns | |
---|---|
Type | Description |
HttpJsonSubscriberStub |
Exceptions | |
---|---|
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns | |
---|---|
Type | Description |
List<ApiMethodDescriptor> |
Constructors
HttpJsonSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext)
protected HttpJsonSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext)
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.
Parameters | |
---|---|
Name | Description |
settings | SubscriberStubSettings |
clientContext | ClientContext |
HttpJsonSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
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.
Parameters | |
---|---|
Name | Description |
settings | SubscriberStubSettings |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Methods
acknowledgeCallable()
public UnaryCallable<AcknowledgeRequest,Empty> acknowledgeCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<AcknowledgeRequest,Empty> |
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createSnapshotCallable()
public UnaryCallable<CreateSnapshotRequest,Snapshot> createSnapshotCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSnapshotRequest,Snapshot> |
createSubscriptionCallable()
public UnaryCallable<Subscription,Subscription> createSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<Subscription,Subscription> |
deleteSnapshotCallable()
public UnaryCallable<DeleteSnapshotRequest,Empty> deleteSnapshotCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSnapshotRequest,Empty> |
deleteSubscriptionCallable()
public UnaryCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSubscriptionRequest,Empty> |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getSnapshotCallable()
public UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSnapshotRequest,Snapshot> |
getSubscriptionCallable()
public UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSubscriptionRequest,Subscription> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listSnapshotsCallable()
public UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> |
listSnapshotsPagedCallable()
public UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSnapshotsRequest,ListSnapshotsPagedResponse> |
listSubscriptionsCallable()
public UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> |
listSubscriptionsPagedCallable()
public UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsPagedResponse> |
modifyAckDeadlineCallable()
public UnaryCallable<ModifyAckDeadlineRequest,Empty> modifyAckDeadlineCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ModifyAckDeadlineRequest,Empty> |
modifyPushConfigCallable()
public UnaryCallable<ModifyPushConfigRequest,Empty> modifyPushConfigCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ModifyPushConfigRequest,Empty> |
pullCallable()
public UnaryCallable<PullRequest,PullResponse> pullCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<PullRequest,PullResponse> |
seekCallable()
public UnaryCallable<SeekRequest,SeekResponse> seekCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<SeekRequest,SeekResponse> |
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
streamingPullCallable()
public BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()
Returns | |
---|---|
Type | Description |
BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> |
testIamPermissionsCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
updateSnapshotCallable()
public UnaryCallable<UpdateSnapshotRequest,Snapshot> updateSnapshotCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSnapshotRequest,Snapshot> |
updateSubscriptionCallable()
public UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSubscriptionRequest,Subscription> |