Class NotificationInfo.Builder (0.158.0-beta)

publicstaticfinalclass NotificationInfo.Builder

Inheritance

java.lang.Object > NotificationInfo.Builder

Methods

build()

publicNotificationInfobuild()
Returns
Type Description
NotificationInfo

setCustomAttributes(Map<String,String> customAttributes)

publicNotificationInfo.BuildersetCustomAttributes(Map<String,String>customAttributes)
Parameter
Name Description
customAttributes Map<String,String>
Returns
Type Description
NotificationInfo.Builder

setEventTypes(Iterable<String> eventTypes)

publicNotificationInfo.BuildersetEventTypes(Iterable<String>eventTypes)
Parameter
Name Description
eventTypes Iterable<String>
Returns
Type Description
NotificationInfo.Builder

setObjectNamePrefix(String objectNamePrefix)

publicNotificationInfo.BuildersetObjectNamePrefix(StringobjectNamePrefix)

GcpLaunchStage.Alpha

Parameter
Name Description
objectNamePrefix String
Returns
Type Description
NotificationInfo.Builder

setPayloadFormat(NotificationInfo.PayloadFormat payloadFormat)

publicNotificationInfo.BuildersetPayloadFormat(NotificationInfo.PayloadFormatpayloadFormat)
Parameter
Name Description
payloadFormat NotificationInfo.PayloadFormat
Returns
Type Description
NotificationInfo.Builder

setTopic(ProjectTopicName topic)

publicNotificationInfo.BuildersetTopic(ProjectTopicNametopic)
Parameter
Name Description
topic com.google.pubsub.v1.ProjectTopicName
Returns
Type Description
NotificationInfo.Builder

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.