Class SubscriptionsServiceGrpc.SubscriptionsServiceStub (0.3.0)

public static final class SubscriptionsServiceGrpc.SubscriptionsServiceStub extends AbstractAsyncStub<SubscriptionsServiceGrpc.SubscriptionsServiceStub>

A stub to allow clients to do asynchronous rpc calls to service SubscriptionsService.

A service that manages subscriptions to Google Workspace events.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SubscriptionsServiceGrpc.SubscriptionsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected SubscriptionsServiceGrpc.SubscriptionsServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
SubscriptionsServiceGrpc.SubscriptionsServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createSubscription(CreateSubscriptionRequest request, StreamObserver<Operation> responseObserver)

public void createSubscription(CreateSubscriptionRequest request, StreamObserver<Operation> responseObserver)

Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace subscription.

Parameters
NameDescription
requestCreateSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteSubscription(DeleteSubscriptionRequest request, StreamObserver<Operation> responseObserver)

public void deleteSubscription(DeleteSubscriptionRequest request, StreamObserver<Operation> responseObserver)

Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.

Parameters
NameDescription
requestDeleteSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getSubscription(GetSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

public void getSubscription(GetSubscriptionRequest request, StreamObserver<Subscription> responseObserver)

Gets details about a Google Workspace subscription. To learn how to use this method, see Get details about a Google Workspace subscription.

Parameters
NameDescription
requestGetSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Subscription>

listSubscriptions(ListSubscriptionsRequest request, StreamObserver<ListSubscriptionsResponse> responseObserver)

public void listSubscriptions(ListSubscriptionsRequest request, StreamObserver<ListSubscriptionsResponse> responseObserver)

Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.

Parameters
NameDescription
requestListSubscriptionsRequest
responseObserverio.grpc.stub.StreamObserver<ListSubscriptionsResponse>

reactivateSubscription(ReactivateSubscriptionRequest request, StreamObserver<Operation> responseObserver)

public void reactivateSubscription(ReactivateSubscriptionRequest request, StreamObserver<Operation> responseObserver)

Reactivates a suspended Google Workspace subscription. This method resets your subscription's State field to ACTIVE. Before you use this method, you must fix the error that suspended the subscription. To learn how to use this method, see Reactivate a Google Workspace subscription.

Parameters
NameDescription
requestReactivateSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateSubscription(UpdateSubscriptionRequest request, StreamObserver<Operation> responseObserver)

public void updateSubscription(UpdateSubscriptionRequest request, StreamObserver<Operation> responseObserver)

Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.

Parameters
NameDescription
requestUpdateSubscriptionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>