Class NotificationConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.securitycenter.v1.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
Cloud Security Command Center (Cloud SCC) notification configs. A notification config is a Cloud SCC resource that contains the configuration to send notifications for create/update events of findings, assets and etc.
Protobuf typegoogle.cloud.securitycenter.v1.NotificationConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotificationConfig.BuilderCloud Security Command Center (Cloud SCC) notification configs.static classNotificationConfig.NotifyConfigCasestatic classNotificationConfig.StreamingConfigThe config for streaming-based notifications, which send each event as soon as it is detected.static interfaceNotificationConfig.StreamingConfigOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDESCRIPTION_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPUBSUB_TOPIC_FIELD_NUMBERstatic intSERVICE_ACCOUNT_FIELD_NUMBERstatic intSTREAMING_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static NotificationConfiggetDefaultInstance()NotificationConfiggetDefaultInstanceForType()StringgetDescription()The description of the notification config (max of 1024 characters).com.google.protobuf.ByteStringgetDescriptionBytes()The description of the notification config (max of 1024 characters).static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetName()The relative resource name of this notification config.com.google.protobuf.ByteStringgetNameBytes()The relative resource name of this notification config.NotificationConfig.NotifyConfigCasegetNotifyConfigCase()com.google.protobuf.Parser<NotificationConfig>getParserForType()StringgetPubsubTopic()The Pub/Sub topic to send notifications to.com.google.protobuf.ByteStringgetPubsubTopicBytes()The Pub/Sub topic to send notifications to.intgetSerializedSize()StringgetServiceAccount()Output only.com.google.protobuf.ByteStringgetServiceAccountBytes()Output only.NotificationConfig.StreamingConfiggetStreamingConfig()The config for triggering streaming-based notifications.NotificationConfig.StreamingConfigOrBuildergetStreamingConfigOrBuilder()The config for triggering streaming-based notifications.inthashCode()booleanhasStreamingConfig()The config for triggering streaming-based notifications.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static NotificationConfig.BuildernewBuilder()static NotificationConfig.BuildernewBuilder(NotificationConfig prototype)NotificationConfig.BuildernewBuilderForType()protected NotificationConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static NotificationConfigparseDelimitedFrom(InputStream input)static NotificationConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationConfigparseFrom(byte[] data)static NotificationConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationConfigparseFrom(com.google.protobuf.ByteString data)static NotificationConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationConfigparseFrom(com.google.protobuf.CodedInputStream input)static NotificationConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationConfigparseFrom(InputStream input)static NotificationConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NotificationConfigparseFrom(ByteBuffer data)static NotificationConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<NotificationConfig>parser()NotificationConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PUBSUB_TOPIC_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STREAMING_CONFIG_FIELD_NUMBER
public static final int STREAMING_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getNotifyConfigCase
public NotificationConfig.NotifyConfigCase getNotifyConfigCase()
- Specified by:
getNotifyConfigCasein interfaceNotificationConfigOrBuilder
-
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", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".string name = 1;- Specified by:
getNamein interfaceNotificationConfigOrBuilder- 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", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".string name = 1;- Specified by:
getNameBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for name.
-
getDescription
public String getDescription()
The description of the notification config (max of 1024 characters).
string description = 2;- Specified by:
getDescriptionin interfaceNotificationConfigOrBuilder- 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:
getDescriptionBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for description.
-
getPubsubTopic
public String getPubsubTopic()
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
string pubsub_topic = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getPubsubTopicin interfaceNotificationConfigOrBuilder- 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 = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getPubsubTopicBytesin interfaceNotificationConfigOrBuilder- 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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceAccountin interfaceNotificationConfigOrBuilder- 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 = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceAccountBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for serviceAccount.
-
hasStreamingConfig
public boolean hasStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;- Specified by:
hasStreamingConfigin interfaceNotificationConfigOrBuilder- Returns:
- Whether the streamingConfig field is set.
-
getStreamingConfig
public NotificationConfig.StreamingConfig getStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;- Specified by:
getStreamingConfigin interfaceNotificationConfigOrBuilder- Returns:
- The streamingConfig.
-
getStreamingConfigOrBuilder
public NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;- Specified by:
getStreamingConfigOrBuilderin interfaceNotificationConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static NotificationConfig.Builder newBuilder()
-
newBuilder
public static NotificationConfig.Builder newBuilder(NotificationConfig prototype)
-
toBuilder
public NotificationConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NotificationConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static NotificationConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<NotificationConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<NotificationConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public NotificationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-