Class Notification.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
- com.google.cloud.advisorynotifications.v1.Notification.Builder
-
- All Implemented Interfaces:
NotificationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Notification
public static final class Notification.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder> implements NotificationOrBuilder
A notification object for notifying customers about security and privacy issues.
Protobuf typegoogle.cloud.advisorynotifications.v1.Notification
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Notification.BuilderaddAllMessages(Iterable<? extends Message> values)A list of messages in the notification.Notification.BuilderaddMessages(int index, Message value)A list of messages in the notification.Notification.BuilderaddMessages(int index, Message.Builder builderForValue)A list of messages in the notification.Notification.BuilderaddMessages(Message value)A list of messages in the notification.Notification.BuilderaddMessages(Message.Builder builderForValue)A list of messages in the notification.Message.BuilderaddMessagesBuilder()A list of messages in the notification.Message.BuilderaddMessagesBuilder(int index)A list of messages in the notification.Notification.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Notificationbuild()NotificationbuildPartial()Notification.Builderclear()Notification.BuilderclearCreateTime()Output only.Notification.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Notification.BuilderclearMessages()A list of messages in the notification.Notification.BuilderclearName()The resource name of the notification.Notification.BuilderclearNotificationType()Type of notificationNotification.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Notification.BuilderclearSubject()The subject line of the notification.Notification.Builderclone()com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.NotificationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()MessagegetMessages(int index)A list of messages in the notification.Message.BuildergetMessagesBuilder(int index)A list of messages in the notification.List<Message.Builder>getMessagesBuilderList()A list of messages in the notification.intgetMessagesCount()A list of messages in the notification.List<Message>getMessagesList()A list of messages in the notification.MessageOrBuildergetMessagesOrBuilder(int index)A list of messages in the notification.List<? extends MessageOrBuilder>getMessagesOrBuilderList()A list of messages in the notification.StringgetName()The resource name of the notification.com.google.protobuf.ByteStringgetNameBytes()The resource name of the notification.NotificationTypegetNotificationType()Type of notificationintgetNotificationTypeValue()Type of notificationSubjectgetSubject()The subject line of the notification.Subject.BuildergetSubjectBuilder()The subject line of the notification.SubjectOrBuildergetSubjectOrBuilder()The subject line of the notification.booleanhasCreateTime()Output only.booleanhasSubject()The subject line of the notification.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Notification.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Notification.BuildermergeFrom(Notification other)Notification.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Notification.BuildermergeFrom(com.google.protobuf.Message other)Notification.BuildermergeSubject(Subject value)The subject line of the notification.Notification.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Notification.BuilderremoveMessages(int index)A list of messages in the notification.Notification.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Notification.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Notification.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Notification.BuildersetMessages(int index, Message value)A list of messages in the notification.Notification.BuildersetMessages(int index, Message.Builder builderForValue)A list of messages in the notification.Notification.BuildersetName(String value)The resource name of the notification.Notification.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource name of the notification.Notification.BuildersetNotificationType(NotificationType value)Type of notificationNotification.BuildersetNotificationTypeValue(int value)Type of notificationNotification.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Notification.BuildersetSubject(Subject value)The subject line of the notification.Notification.BuildersetSubject(Subject.Builder builderForValue)The subject line of the notification.Notification.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
clear
public Notification.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
getDefaultInstanceForType
public Notification getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Notification build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Notification buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Notification.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
setField
public Notification.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
clearField
public Notification.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
clearOneof
public Notification.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
setRepeatedField
public Notification.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
addRepeatedField
public Notification.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
mergeFrom
public Notification.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Notification.Builder>
-
mergeFrom
public Notification.Builder mergeFrom(Notification other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
mergeFrom
public Notification.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Notification.Builder>- Throws:
IOException
-
getName
public String getName()
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.string name = 1;- Specified by:
getNamein interfaceNotificationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.string name = 1;- Specified by:
getNameBytesin interfaceNotificationOrBuilder- Returns:
- The bytes for name.
-
setName
public Notification.Builder setName(String value)
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Notification.Builder clearName()
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Notification.Builder setNameBytes(com.google.protobuf.ByteString value)
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasSubject
public boolean hasSubject()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;- Specified by:
hasSubjectin interfaceNotificationOrBuilder- Returns:
- Whether the subject field is set.
-
getSubject
public Subject getSubject()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;- Specified by:
getSubjectin interfaceNotificationOrBuilder- Returns:
- The subject.
-
setSubject
public Notification.Builder setSubject(Subject value)
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
-
setSubject
public Notification.Builder setSubject(Subject.Builder builderForValue)
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
-
mergeSubject
public Notification.Builder mergeSubject(Subject value)
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
-
clearSubject
public Notification.Builder clearSubject()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
-
getSubjectBuilder
public Subject.Builder getSubjectBuilder()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
-
getSubjectOrBuilder
public SubjectOrBuilder getSubjectOrBuilder()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;- Specified by:
getSubjectOrBuilderin interfaceNotificationOrBuilder
-
getMessagesList
public List<Message> getMessagesList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesListin interfaceNotificationOrBuilder
-
getMessagesCount
public int getMessagesCount()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesCountin interfaceNotificationOrBuilder
-
getMessages
public Message getMessages(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesin interfaceNotificationOrBuilder
-
setMessages
public Notification.Builder setMessages(int index, Message value)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
setMessages
public Notification.Builder setMessages(int index, Message.Builder builderForValue)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
addMessages
public Notification.Builder addMessages(Message value)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
addMessages
public Notification.Builder addMessages(int index, Message value)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
addMessages
public Notification.Builder addMessages(Message.Builder builderForValue)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
addMessages
public Notification.Builder addMessages(int index, Message.Builder builderForValue)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
addAllMessages
public Notification.Builder addAllMessages(Iterable<? extends Message> values)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
clearMessages
public Notification.Builder clearMessages()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
removeMessages
public Notification.Builder removeMessages(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
getMessagesBuilder
public Message.Builder getMessagesBuilder(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
getMessagesOrBuilder
public MessageOrBuilder getMessagesOrBuilder(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesOrBuilderin interfaceNotificationOrBuilder
-
getMessagesOrBuilderList
public List<? extends MessageOrBuilder> getMessagesOrBuilderList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesOrBuilderListin interfaceNotificationOrBuilder
-
addMessagesBuilder
public Message.Builder addMessagesBuilder()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
addMessagesBuilder
public Message.Builder addMessagesBuilder(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
getMessagesBuilderList
public List<Message.Builder> getMessagesBuilderList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
-
hasCreateTime
public boolean hasCreateTime()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceNotificationOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceNotificationOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Notification.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Notification.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Notification.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Notification.Builder clearCreateTime()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceNotificationOrBuilder
-
getNotificationTypeValue
public int getNotificationTypeValue()
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Specified by:
getNotificationTypeValuein interfaceNotificationOrBuilder- Returns:
- The enum numeric value on the wire for notificationType.
-
setNotificationTypeValue
public Notification.Builder setNotificationTypeValue(int value)
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Parameters:
value- The enum numeric value on the wire for notificationType to set.- Returns:
- This builder for chaining.
-
getNotificationType
public NotificationType getNotificationType()
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Specified by:
getNotificationTypein interfaceNotificationOrBuilder- Returns:
- The notificationType.
-
setNotificationType
public Notification.Builder setNotificationType(NotificationType value)
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Parameters:
value- The notificationType to set.- Returns:
- This builder for chaining.
-
clearNotificationType
public Notification.Builder clearNotificationType()
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Notification.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
mergeUnknownFields
public final Notification.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
-