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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Notification.Builder mergeFrom(Notification other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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}
       or projects/{project}/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}
       or projects/{project}/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}
       or projects/{project}/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}
       or projects/{project}/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}
       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:
      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;
    • getSubjectOrBuilder

      public SubjectOrBuilder getSubjectOrBuilder()
       The subject line of the notification.
       
      .google.cloud.advisorynotifications.v1.Subject subject = 2;
      Specified by:
      getSubjectOrBuilder in interface NotificationOrBuilder
    • 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;
    • 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 interface NotificationOrBuilder
    • 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 interface NotificationOrBuilder
    • 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.
    • getNotificationType

      public NotificationType getNotificationType()
       Type of notification
       
      .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12;
      Specified by:
      getNotificationType in interface NotificationOrBuilder
      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.