Interface Notification (0.160.0-beta)

publicinterface Notification

An interface for Pub/Sub Notifications in Google Cloud Storage.

This is a light wrapper around a Storage client. See Also: Google Cloud Pub/Sub Notifications for Storage

Methods

create(Storage storage)

publicabstractNotificationcreate(Storagestorage)
Parameter
Name Description
storage com.google.cloud.storage.Storage
Returns
Type Description
Notification

createNotification(String bucket, NotificationInfo notification)

publicabstractNotificationInfocreateNotification(Stringbucket,NotificationInfonotification)
Parameters
Name Description
bucket String
notification NotificationInfo
Returns
Type Description
NotificationInfo

deleteNotification(String bucket, String notification)

publicabstractbooleandeleteNotification(Stringbucket,Stringnotification)
Parameters
Name Description
bucket String
notification String
Returns
Type Description
boolean

listNotifications(String bucket)

publicabstractList<NotificationInfo>listNotifications(Stringbucket)
Parameter
Name Description
bucket String
Returns
Type Description
List<NotificationInfo>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.