Class NotificationMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
com.google.cloud.securitycenter.v1p1beta1.NotificationMessage.Builder
All Implemented Interfaces:
NotificationMessageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NotificationMessage

public static final class NotificationMessage.Builder extends com.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder> implements NotificationMessageOrBuilder
 Security Command Center's Notification
 
Protobuf type google.cloud.securitycenter.v1p1beta1.NotificationMessage
  • 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<NotificationMessage.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<NotificationMessage.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<NotificationMessage.Builder>
    • getDefaultInstanceForType

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

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

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

      public NotificationMessage.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<NotificationMessage.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<NotificationMessage.Builder>
    • mergeFrom

      public NotificationMessage.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<NotificationMessage.Builder>
      Throws:
      IOException
    • getEventCase

      public NotificationMessage.EventCase getEventCase()
      Specified by:
      getEventCase in interface NotificationMessageOrBuilder
    • clearEvent

      public NotificationMessage.Builder clearEvent()
    • getNotificationConfigName

      public String getNotificationConfigName()
       Name of the notification config that generated current notification.
       
      string notification_config_name = 1;
      Specified by:
      getNotificationConfigName in interface NotificationMessageOrBuilder
      Returns:
      The notificationConfigName.
    • getNotificationConfigNameBytes

      public com.google.protobuf.ByteString getNotificationConfigNameBytes()
       Name of the notification config that generated current notification.
       
      string notification_config_name = 1;
      Specified by:
      getNotificationConfigNameBytes in interface NotificationMessageOrBuilder
      Returns:
      The bytes for notificationConfigName.
    • setNotificationConfigName

      public NotificationMessage.Builder setNotificationConfigName(String value)
       Name of the notification config that generated current notification.
       
      string notification_config_name = 1;
      Parameters:
      value - The notificationConfigName to set.
      Returns:
      This builder for chaining.
    • clearNotificationConfigName

      public NotificationMessage.Builder clearNotificationConfigName()
       Name of the notification config that generated current notification.
       
      string notification_config_name = 1;
      Returns:
      This builder for chaining.
    • setNotificationConfigNameBytes

      public NotificationMessage.Builder setNotificationConfigNameBytes(com.google.protobuf.ByteString value)
       Name of the notification config that generated current notification.
       
      string notification_config_name = 1;
      Parameters:
      value - The bytes for notificationConfigName to set.
      Returns:
      This builder for chaining.
    • hasFinding

      public boolean hasFinding()
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
      Specified by:
      hasFinding in interface NotificationMessageOrBuilder
      Returns:
      Whether the finding field is set.
    • getFinding

      public Finding getFinding()
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
      Specified by:
      getFinding in interface NotificationMessageOrBuilder
      Returns:
      The finding.
    • setFinding

      public NotificationMessage.Builder setFinding(Finding value)
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
    • setFinding

      public NotificationMessage.Builder setFinding(Finding.Builder builderForValue)
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
    • mergeFinding

      public NotificationMessage.Builder mergeFinding(Finding value)
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
    • clearFinding

      public NotificationMessage.Builder clearFinding()
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
    • getFindingBuilder

      public Finding.Builder getFindingBuilder()
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
    • getFindingOrBuilder

      public FindingOrBuilder getFindingOrBuilder()
       If it's a Finding based notification config, this field will be
       populated.
       
      .google.cloud.securitycenter.v1p1beta1.Finding finding = 2;
      Specified by:
      getFindingOrBuilder in interface NotificationMessageOrBuilder
    • hasResource

      public boolean hasResource()
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
      Specified by:
      hasResource in interface NotificationMessageOrBuilder
      Returns:
      Whether the resource field is set.
    • getResource

      public Resource getResource()
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
      Specified by:
      getResource in interface NotificationMessageOrBuilder
      Returns:
      The resource.
    • setResource

      public NotificationMessage.Builder setResource(Resource value)
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
    • setResource

      public NotificationMessage.Builder setResource(Resource.Builder builderForValue)
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
    • mergeResource

      public NotificationMessage.Builder mergeResource(Resource value)
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
    • clearResource

      public NotificationMessage.Builder clearResource()
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
    • getResourceBuilder

      public Resource.Builder getResourceBuilder()
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
    • getResourceOrBuilder

      public ResourceOrBuilder getResourceOrBuilder()
       The Cloud resource tied to the notification.
       
      .google.cloud.securitycenter.v1p1beta1.Resource resource = 3;
      Specified by:
      getResourceOrBuilder in interface NotificationMessageOrBuilder