Class Notification.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Notification.Builder>
implements NotificationOrBuilder
A notification object for notifying customers about security and privacy issues.Protobuf type
google.cloud.advisorynotifications.v1.Notification-
Method Summary
Modifier and TypeMethodDescriptionaddAllMessages(Iterable<? extends Message> values) A list of messages in the notification.addMessages(int index, Message value) A list of messages in the notification.addMessages(int index, Message.Builder builderForValue) A list of messages in the notification.addMessages(Message value) A list of messages in the notification.addMessages(Message.Builder builderForValue) A list of messages in the notification.A list of messages in the notification.addMessagesBuilder(int index) A list of messages in the notification.build()clear()Output only.A list of messages in the notification.The resource name of the notification.Type of notificationThe subject line of the notification.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMessages(int index) A list of messages in the notification.getMessagesBuilder(int index) A list of messages in the notification.A list of messages in the notification.intA list of messages in the notification.A list of messages in the notification.getMessagesOrBuilder(int index) A list of messages in the notification.List<? extends MessageOrBuilder>A list of messages in the notification.getName()The resource name of the notification.com.google.protobuf.ByteStringThe resource name of the notification.Type of notificationintType of notificationThe subject line of the notification.The subject line of the notification.The subject line of the notification.booleanOutput only.booleanThe subject line of the notification.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(Notification other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSubject(Subject value) The subject line of the notification.removeMessages(int index) A list of messages in the notification.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setMessages(int index, Message value) A list of messages in the notification.setMessages(int index, Message.Builder builderForValue) A list of messages in the notification.The resource name of the notification.setNameBytes(com.google.protobuf.ByteString value) The resource name of the notification.Type of notificationsetNotificationTypeValue(int value) Type of notificationsetSubject(Subject value) The subject line of the notification.setSubject(Subject.Builder builderForValue) The subject line of the notification.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Notification.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Notification.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Notification.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/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} or projects/{project}/locations/{location}/notifications/{notification}.string name = 1;- Specified by:
getNameBytesin interfaceNotificationOrBuilder- Returns:
- The bytes for name.
-
setName
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/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
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;- Specified by:
getSubjectin interfaceNotificationOrBuilder- Returns:
- The subject.
-
setSubject
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2; -
setSubject
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2; -
mergeSubject
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2; -
clearSubject
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2; -
getSubjectBuilder
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2; -
getSubjectOrBuilder
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;- Specified by:
getSubjectOrBuilderin interfaceNotificationOrBuilder
-
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
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesin interfaceNotificationOrBuilder
-
setMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
setMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
addMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
addMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
addMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
addMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
addAllMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
clearMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
removeMessages
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
getMessagesBuilder
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
getMessagesOrBuilder
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesOrBuilderin interfaceNotificationOrBuilder
-
getMessagesOrBuilderList
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;- Specified by:
getMessagesOrBuilderListin interfaceNotificationOrBuilder
-
addMessagesBuilder
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
addMessagesBuilder
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3; -
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
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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
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
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Specified by:
getNotificationTypein interfaceNotificationOrBuilder- Returns:
- The notificationType.
-
setNotificationType
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Parameters:
value- The notificationType to set.- Returns:
- This builder for chaining.
-
clearNotificationType
Type of notification
.google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;- Returns:
- This builder for chaining.
-