Class 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 type google.cloud.advisorynotifications.v1.Notification
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • clear

        public Notification.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • getDefaultInstanceForType

        public Notification getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Notification build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Notification buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Notification.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • setField

        public Notification.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • clearField

        public Notification.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • clearOneof

        public Notification.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • addRepeatedField

        public Notification.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • mergeFrom

        public Notification.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Notification.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface NotificationOrBuilder
        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 interface NotificationOrBuilder
        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 interface NotificationOrBuilder
        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 interface NotificationOrBuilder
        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;
      • getMessagesList

        public List<Message> getMessagesList()
         A list of messages in the notification.
         
        repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
        Specified by:
        getMessagesList in interface NotificationOrBuilder
      • getMessagesCount

        public int getMessagesCount()
         A list of messages in the notification.
         
        repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
        Specified by:
        getMessagesCount in interface NotificationOrBuilder
      • 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 interface NotificationOrBuilder
      • 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;
      • 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 interface NotificationOrBuilder
        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 interface NotificationOrBuilder
        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 interface NotificationOrBuilder
      • getNotificationTypeValue

        public int getNotificationTypeValue()
         Type of notification
         
        .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;
        Specified by:
        getNotificationTypeValue in interface NotificationOrBuilder
        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.
      • 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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>
      • mergeUnknownFields

        public final Notification.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Notification.Builder>