Class HttpJsonSubscriberStub (1.134.1)

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
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>
Overrides

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()
Overrides

createSnapshotCallable()

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

createSubscriptionCallable()

public UnaryCallable<Subscription,Subscription> createSubscriptionCallable()
Returns
Type Description
UnaryCallable<Subscription,Subscription>
Overrides

deleteSnapshotCallable()

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

deleteSubscriptionCallable()

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

getIamPolicyCallable()

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

getSnapshotCallable()

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

getSubscriptionCallable()

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

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>
Overrides

listSnapshotsPagedCallable()

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

listSubscriptionsCallable()

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

listSubscriptionsPagedCallable()

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

modifyAckDeadlineCallable()

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

modifyPushConfigCallable()

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

pullCallable()

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

seekCallable()

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

setIamPolicyCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingPullCallable()

public BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse> streamingPullCallable()
Returns
Type Description
BidiStreamingCallable<StreamingPullRequest,StreamingPullResponse>
Overrides

testIamPermissionsCallable()

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

updateSnapshotCallable()

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

updateSubscriptionCallable()

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