Class NotificationConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.securitycenter.v1p1beta1.NotificationConfig
All Implemented Interfaces:
NotificationConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class NotificationConfig extends com.google.protobuf.GeneratedMessage implements NotificationConfigOrBuilder
 Security Command Center notification configs.

 A notification config is a Security Command Center resource that contains the
 configuration to send notifications for create/update events of findings,
 assets and etc.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.NotificationConfig
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • EVENT_TYPE_FIELD_NUMBER

      public static final int EVENT_TYPE_FIELD_NUMBER
      See Also:
    • PUBSUB_TOPIC_FIELD_NUMBER

      public static final int PUBSUB_TOPIC_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
    • STREAMING_CONFIG_FIELD_NUMBER

      public static final int STREAMING_CONFIG_FIELD_NUMBER
      See Also:
  • 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
    • getNotifyConfigCase

      public NotificationConfig.NotifyConfigCase getNotifyConfigCase()
      Specified by:
      getNotifyConfigCase in interface NotificationConfigOrBuilder
    • getName

      public String getName()
       The relative resource name of this notification config. See:
       https://cloud.google.com/apis/design/resource_names#relative_resource_name
       Example:
       "organizations/{organization_id}/notificationConfigs/notify_public_bucket".
       
      string name = 1;
      Specified by:
      getName in interface NotificationConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The relative resource name of this notification config. See:
       https://cloud.google.com/apis/design/resource_names#relative_resource_name
       Example:
       "organizations/{organization_id}/notificationConfigs/notify_public_bucket".
       
      string name = 1;
      Specified by:
      getNameBytes in interface NotificationConfigOrBuilder
      Returns:
      The bytes for name.
    • getDescription

      public String getDescription()
       The description of the notification config (max of 1024 characters).
       
      string description = 2;
      Specified by:
      getDescription in interface NotificationConfigOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The description of the notification config (max of 1024 characters).
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface NotificationConfigOrBuilder
      Returns:
      The bytes for description.
    • getEventTypeValue

      public int getEventTypeValue()
       The type of events the config is for, e.g. FINDING.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
      Specified by:
      getEventTypeValue in interface NotificationConfigOrBuilder
      Returns:
      The enum numeric value on the wire for eventType.
    • getEventType

      public NotificationConfig.EventType getEventType()
       The type of events the config is for, e.g. FINDING.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
      Specified by:
      getEventType in interface NotificationConfigOrBuilder
      Returns:
      The eventType.
    • getPubsubTopic

      public String getPubsubTopic()
       The Pub/Sub topic to send notifications to. Its format is
       "projects/[project_id]/topics/[topic]".
       
      string pubsub_topic = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPubsubTopic in interface NotificationConfigOrBuilder
      Returns:
      The pubsubTopic.
    • getPubsubTopicBytes

      public com.google.protobuf.ByteString getPubsubTopicBytes()
       The Pub/Sub topic to send notifications to. Its format is
       "projects/[project_id]/topics/[topic]".
       
      string pubsub_topic = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPubsubTopicBytes in interface NotificationConfigOrBuilder
      Returns:
      The bytes for pubsubTopic.
    • getServiceAccount

      public String getServiceAccount()
       Output only. The service account that needs "pubsub.topics.publish"
       permission to publish to the Pub/Sub topic.
       
      string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAccount in interface NotificationConfigOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       Output only. The service account that needs "pubsub.topics.publish"
       permission to publish to the Pub/Sub topic.
       
      string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getServiceAccountBytes in interface NotificationConfigOrBuilder
      Returns:
      The bytes for serviceAccount.
    • hasStreamingConfig

      public boolean hasStreamingConfig()
       The config for triggering streaming-based notifications.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
      Specified by:
      hasStreamingConfig in interface NotificationConfigOrBuilder
      Returns:
      Whether the streamingConfig field is set.
    • getStreamingConfig

      public NotificationConfig.StreamingConfig getStreamingConfig()
       The config for triggering streaming-based notifications.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
      Specified by:
      getStreamingConfig in interface NotificationConfigOrBuilder
      Returns:
      The streamingConfig.
    • getStreamingConfigOrBuilder

      public NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder()
       The config for triggering streaming-based notifications.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
      Specified by:
      getStreamingConfigOrBuilder in interface NotificationConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static NotificationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NotificationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NotificationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NotificationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NotificationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NotificationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NotificationConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NotificationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NotificationConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NotificationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NotificationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NotificationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public NotificationConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static NotificationConfig.Builder newBuilder()
    • newBuilder

      public static NotificationConfig.Builder newBuilder(NotificationConfig prototype)
    • toBuilder

      public NotificationConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected NotificationConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static NotificationConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NotificationConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<NotificationConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public NotificationConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder