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.Builder
addAllMessages(Iterable<? extends Message> values)
A list of messages in the notification.Notification.Builder
addMessages(int index, Message value)
A list of messages in the notification.Notification.Builder
addMessages(int index, Message.Builder builderForValue)
A list of messages in the notification.Notification.Builder
addMessages(Message value)
A list of messages in the notification.Notification.Builder
addMessages(Message.Builder builderForValue)
A list of messages in the notification.Message.Builder
addMessagesBuilder()
A list of messages in the notification.Message.Builder
addMessagesBuilder(int index)
A list of messages in the notification.Notification.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Notification
build()
Notification
buildPartial()
Notification.Builder
clear()
Notification.Builder
clearCreateTime()
Output only.Notification.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Notification.Builder
clearMessages()
A list of messages in the notification.Notification.Builder
clearName()
The resource name of the notification.Notification.Builder
clearNotificationType()
Type of notificationNotification.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Notification.Builder
clearSubject()
The subject line of the notification.Notification.Builder
clone()
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Notification
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Message
getMessages(int index)
A list of messages in the notification.Message.Builder
getMessagesBuilder(int index)
A list of messages in the notification.List<Message.Builder>
getMessagesBuilderList()
A list of messages in the notification.int
getMessagesCount()
A list of messages in the notification.List<Message>
getMessagesList()
A list of messages in the notification.MessageOrBuilder
getMessagesOrBuilder(int index)
A list of messages in the notification.List<? extends MessageOrBuilder>
getMessagesOrBuilderList()
A list of messages in the notification.String
getName()
The resource name of the notification.com.google.protobuf.ByteString
getNameBytes()
The resource name of the notification.NotificationType
getNotificationType()
Type of notificationint
getNotificationTypeValue()
Type of notificationSubject
getSubject()
The subject line of the notification.Subject.Builder
getSubjectBuilder()
The subject line of the notification.SubjectOrBuilder
getSubjectOrBuilder()
The subject line of the notification.boolean
hasCreateTime()
Output only.boolean
hasSubject()
The subject line of the notification.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Notification.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Notification.Builder
mergeFrom(Notification other)
Notification.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Notification.Builder
mergeFrom(com.google.protobuf.Message other)
Notification.Builder
mergeSubject(Subject value)
The subject line of the notification.Notification.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Notification.Builder
removeMessages(int index)
A list of messages in the notification.Notification.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Notification.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Notification.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Notification.Builder
setMessages(int index, Message value)
A list of messages in the notification.Notification.Builder
setMessages(int index, Message.Builder builderForValue)
A list of messages in the notification.Notification.Builder
setName(String value)
The resource name of the notification.Notification.Builder
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the notification.Notification.Builder
setNotificationType(NotificationType value)
Type of notificationNotification.Builder
setNotificationTypeValue(int value)
Type of notificationNotification.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Notification.Builder
setSubject(Subject value)
The subject line of the notification.Notification.Builder
setSubject(Subject.Builder builderForValue)
The subject line of the notification.Notification.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
clear
public Notification.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
getDefaultInstanceForType
public Notification getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Notification build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Notification buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Notification.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
setField
public Notification.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
clearField
public Notification.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
clearOneof
public Notification.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
setRepeatedField
public Notification.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
addRepeatedField
public Notification.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
mergeFrom
public Notification.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Notification.Builder>
-
mergeFrom
public Notification.Builder mergeFrom(Notification other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
hasSubject
in 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:
getSubject
in 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:
getSubjectOrBuilder
in interfaceNotificationOrBuilder
-
getMessagesList
public List<Message> getMessagesList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
- Specified by:
getMessagesList
in interfaceNotificationOrBuilder
-
getMessagesCount
public int getMessagesCount()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
- Specified by:
getMessagesCount
in interfaceNotificationOrBuilder
-
getMessages
public Message getMessages(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
- Specified by:
getMessages
in 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:
getMessagesOrBuilder
in interfaceNotificationOrBuilder
-
getMessagesOrBuilderList
public List<? extends MessageOrBuilder> getMessagesOrBuilderList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
- Specified by:
getMessagesOrBuilderList
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceNotificationOrBuilder
-
getNotificationTypeValue
public int getNotificationTypeValue()
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;
- Specified by:
getNotificationTypeValue
in 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:
getNotificationType
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
mergeUnknownFields
public final Notification.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
-
-