@java.lang.Override public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { return blockingUnaryCall( getChannel().newCall(METHOD_MODIFY_PUSH_CONFIG, getCallOptions()), request); } }
@java.lang.Override public com.google.pubsub.v1.Subscription getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { return blockingUnaryCall( getChannel().newCall(METHOD_GET_SUBSCRIPTION, getCallOptions()), request); }
@java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { return blockingUnaryCall( getChannel().newCall(METHOD_LIST_SUBSCRIPTIONS, getCallOptions()), request); }
/** * <pre> * Lists matching subscriptions. * </pre> */ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { return blockingUnaryCall( getChannel(), METHOD_LIST_SUBSCRIPTIONS, getCallOptions(), request); }
/** * * * <pre> * Gets the configuration details of a subscription. * </pre> */ public com.google.pubsub.v1.Subscription getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request) { return blockingUnaryCall( getChannel(), getGetSubscriptionMethodHelper(), getCallOptions(), request); }
com.google.pubsub.v1.CreateSnapshotRequest request) { return blockingUnaryCall( getChannel(), getCreateSnapshotMethodHelper(), getCallOptions(), request);
/** * * * <pre> * Removes an existing snapshot. Snapshots are used in * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * operations, which allow * you to manage message acknowledgments in bulk. That is, you can set the * acknowledgment state of messages in an existing subscription to the state * captured by a snapshot.<br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be * changed in backward-incompatible ways and is not recommended for production * use. It is not subject to any SLA or deprecation policy. * When the snapshot is deleted, all messages retained in the snapshot * are immediately dropped. After a snapshot is deleted, a new one may be * created with the same name, but the new one has no association with the old * snapshot or its subscription, unless the same subscription is specified. * </pre> */ public com.google.protobuf.Empty deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request) { return blockingUnaryCall( getChannel(), getDeleteSnapshotMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Creates a subscription to a given topic. See the * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> * resource name rules</a>. * If the subscription already exists, returns `ALREADY_EXISTS`. * If the corresponding topic doesn't exist, returns `NOT_FOUND`. * If the name is not provided in the request, the server will assign a random * name for this subscription on the same project as the topic, conforming * to the * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names). * The generated name is populated in the returned Subscription object. * Note that for REST API requests, you must specify a name in the request. * </pre> */ public com.google.pubsub.v1.Subscription createSubscription( com.google.pubsub.v1.Subscription request) { return blockingUnaryCall( getChannel(), getCreateSubscriptionMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Updates an existing snapshot. Snapshots are used in * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * operations, which allow * you to manage message acknowledgments in bulk. That is, you can set the * acknowledgment state of messages in an existing subscription to the state * captured by a snapshot.<br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be * changed in backward-incompatible ways and is not recommended for production * use. It is not subject to any SLA or deprecation policy. * Note that certain properties of a snapshot are not modifiable. * </pre> */ public com.google.pubsub.v1.Snapshot updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request) { return blockingUnaryCall( getChannel(), getUpdateSnapshotMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Seeks an existing subscription to a point in time or to a given snapshot, * whichever is provided in the request. Snapshots are used in * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * operations, which allow * you to manage message acknowledgments in bulk. That is, you can set the * acknowledgment state of messages in an existing subscription to the state * captured by a snapshot. Note that both the subscription and the snapshot * must be on the same topic.<br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be * changed in backward-incompatible ways and is not recommended for production * use. It is not subject to any SLA or deprecation policy. * </pre> */ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { return blockingUnaryCall(getChannel(), getSeekMethodHelper(), getCallOptions(), request); } }
/** * * * <pre> * Lists the existing snapshots. Snapshots are used in * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * operations, which allow * you to manage message acknowledgments in bulk. That is, you can set the * acknowledgment state of messages in an existing subscription to the state * captured by a snapshot.<br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be * changed in backward-incompatible ways and is not recommended for production * use. It is not subject to any SLA or deprecation policy. * </pre> */ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request) { return blockingUnaryCall( getChannel(), getListSnapshotsMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Gets the configuration details of a snapshot. Snapshots are used in * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * operations, which allow you to manage message acknowledgments in bulk. That * is, you can set the acknowledgment state of messages in an existing * subscription to the state captured by a snapshot.<br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be * changed in backward-incompatible ways and is not recommended for production * use. It is not subject to any SLA or deprecation policy. * </pre> */ public com.google.pubsub.v1.Snapshot getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request) { return blockingUnaryCall( getChannel(), getGetSnapshotMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Deletes an existing subscription. All messages retained in the subscription * are immediately dropped. Calls to `Pull` after deletion will return * `NOT_FOUND`. After a subscription is deleted, a new one may be created with * the same name, but the new one has no association with the old * subscription or its topic unless the same topic is specified. * </pre> */ public com.google.protobuf.Empty deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request) { return blockingUnaryCall( getChannel(), getDeleteSubscriptionMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Modifies the `PushConfig` for a specified subscription. * This may be used to change a push subscription to a pull one (signified by * an empty `PushConfig`) or vice versa, or change the endpoint URL and other * attributes of a push subscription. Messages will accumulate for delivery * continuously through the call regardless of changes to the `PushConfig`. * </pre> */ public com.google.protobuf.Empty modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request) { return blockingUnaryCall( getChannel(), getModifyPushConfigMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Acknowledges the messages associated with the `ack_ids` in the * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages * from the subscription. * Acknowledging a message whose ack deadline has expired may succeed, * but such a message may be redelivered later. Acknowledging a message more * than once will not result in an error. * </pre> */ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { return blockingUnaryCall( getChannel(), getAcknowledgeMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Modifies the ack deadline for a specific message. This method is useful * to indicate that more time is needed to process a message by the * subscriber, or to make the message available for redelivery if the * processing was interrupted. Note that this does not modify the * subscription-level `ackDeadlineSeconds` used for subsequent messages. * </pre> */ public com.google.protobuf.Empty modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request) { return blockingUnaryCall( getChannel(), getModifyAckDeadlineMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Updates an existing subscription. Note that certain properties of a * subscription, such as its topic, are not modifiable. * </pre> */ public com.google.pubsub.v1.Subscription updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request) { return blockingUnaryCall( getChannel(), getUpdateSubscriptionMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Gets the configuration details of a subscription. * </pre> */ public com.google.pubsub.v1.Subscription getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request) { return blockingUnaryCall( getChannel(), getGetSubscriptionMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Lists matching subscriptions. * </pre> */ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( com.google.pubsub.v1.ListSubscriptionsRequest request) { return blockingUnaryCall( getChannel(), getListSubscriptionsMethodHelper(), getCallOptions(), request); }
/** * * * <pre> * Pulls messages from the server. The server may return `UNAVAILABLE` if * there are too many concurrent pull requests pending for the given * subscription. * </pre> */ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { return blockingUnaryCall(getChannel(), getPullMethodHelper(), getCallOptions(), request); }