Class NotificationConfig

  • All Implemented Interfaces:
    NotificationConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class NotificationConfig
    extends com.google.protobuf.GeneratedMessageV3
    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:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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