Class HttpJsonSubscriberStub (1.122.2)

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.

Inheritance

java.lang.Object > SubscriberStub > HttpJsonSubscriberStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonSubscriberStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonSubscriberStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonSubscriberStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonSubscriberStub
Exceptions
TypeDescription
IOException

create(SubscriberStubSettings settings)

public static final HttpJsonSubscriberStub create(SubscriberStubSettings settings)
Parameter
NameDescription
settingsSubscriberStubSettings
Returns
TypeDescription
HttpJsonSubscriberStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsSubscriberStubSettings
clientContextClientContext

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
NameDescription
settingsSubscriberStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

acknowledgeCallable()

public UnaryCallable<AcknowledgeRequest,Empty> acknowledgeCallable()
Returns
TypeDescription
UnaryCallable<AcknowledgeRequest,Empty>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createSnapshotCallable()

public UnaryCallable<CreateSnapshotRequest,Snapshot> createSnapshotCallable()
Returns
TypeDescription
UnaryCallable<CreateSnapshotRequest,Snapshot>
Overrides

createSubscriptionCallable()

public UnaryCallable<Subscription,Subscription> createSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<Subscription,Subscription>
Overrides

deleteSnapshotCallable()

public UnaryCallable<DeleteSnapshotRequest,Empty> deleteSnapshotCallable()
Returns
TypeDescription
UnaryCallable<DeleteSnapshotRequest,Empty>
Overrides

deleteSubscriptionCallable()

public UnaryCallable<DeleteSubscriptionRequest,Empty> deleteSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<DeleteSubscriptionRequest,Empty>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getSnapshotCallable()

public UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()
Returns
TypeDescription
UnaryCallable<GetSnapshotRequest,Snapshot>
Overrides

getSubscriptionCallable()

public UnaryCallable<GetSubscriptionRequest,Subscription> getSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<GetSubscriptionRequest,Subscription>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listSnapshotsCallable()

public UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()
Returns
TypeDescription
UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse>
Overrides

listSnapshotsPagedCallable()

public UnaryCallable<ListSnapshotsRequest,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSnapshotsRequest,ListSnapshotsPagedResponse>
Overrides

listSubscriptionsCallable()

public UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse> listSubscriptionsCallable()
Returns
TypeDescription
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsResponse>
Overrides

listSubscriptionsPagedCallable()

public UnaryCallable<ListSubscriptionsRequest,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSubscriptionsRequest,ListSubscriptionsPagedResponse>
Overrides

modifyAckDeadlineCallable()

public UnaryCallable<ModifyAckDeadlineRequest,Empty> modifyAckDeadlineCallable()
Returns
TypeDescription
UnaryCallable<ModifyAckDeadlineRequest,Empty>
Overrides

modifyPushConfigCallable()

public UnaryCallable<ModifyPushConfigRequest,Empty> modifyPushConfigCallable()
Returns
TypeDescription
UnaryCallable<ModifyPushConfigRequest,Empty>
Overrides

pullCallable()

public UnaryCallable<PullRequest,PullResponse> pullCallable()
Returns
TypeDescription
UnaryCallable<PullRequest,PullResponse>
Overrides

seekCallable()

public UnaryCallable<SeekRequest,SeekResponse> seekCallable()
Returns
TypeDescription
UnaryCallable<SeekRequest,SeekResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateSnapshotCallable()

public UnaryCallable<UpdateSnapshotRequest,Snapshot> updateSnapshotCallable()
Returns
TypeDescription
UnaryCallable<UpdateSnapshotRequest,Snapshot>
Overrides

updateSubscriptionCallable()

public UnaryCallable<UpdateSubscriptionRequest,Subscription> updateSubscriptionCallable()
Returns
TypeDescription
UnaryCallable<UpdateSubscriptionRequest,Subscription>
Overrides