public final class NotificationConfig extends 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
Modifier and Type | Class and Description |
---|---|
static class |
NotificationConfig.Builder
Security Command Center notification configs.
|
static class |
NotificationConfig.EventType
The type of events.
|
static class |
NotificationConfig.NotifyConfigCase |
static class |
NotificationConfig.StreamingConfig
The config for streaming-based notifications, which send each event as soon
as it is detected.
|
static interface |
NotificationConfig.StreamingConfigOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
EVENT_TYPE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PUBSUB_TOPIC_FIELD_NUMBER |
static int |
SERVICE_ACCOUNT_FIELD_NUMBER |
static int |
STREAMING_CONFIG_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int EVENT_TYPE_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
public static final int STREAMING_CONFIG_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public NotificationConfig.NotifyConfigCase getNotifyConfigCase()
getNotifyConfigCase
in interface NotificationConfigOrBuilder
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;
getName
in interface NotificationConfigOrBuilder
public 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;
getNameBytes
in interface NotificationConfigOrBuilder
public String getDescription()
The description of the notification config (max of 1024 characters).
string description = 2;
getDescription
in interface NotificationConfigOrBuilder
public ByteString getDescriptionBytes()
The description of the notification config (max of 1024 characters).
string description = 2;
getDescriptionBytes
in interface NotificationConfigOrBuilder
public int getEventTypeValue()
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
getEventTypeValue
in interface NotificationConfigOrBuilder
public NotificationConfig.EventType getEventType()
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
getEventType
in interface NotificationConfigOrBuilder
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) = { ... }
getPubsubTopic
in interface NotificationConfigOrBuilder
public 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) = { ... }
getPubsubTopicBytes
in interface NotificationConfigOrBuilder
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];
getServiceAccount
in interface NotificationConfigOrBuilder
public 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];
getServiceAccountBytes
in interface NotificationConfigOrBuilder
public boolean hasStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
hasStreamingConfig
in interface NotificationConfigOrBuilder
public NotificationConfig.StreamingConfig getStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
getStreamingConfig
in interface NotificationConfigOrBuilder
public NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
getStreamingConfigOrBuilder
in interface NotificationConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static NotificationConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NotificationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NotificationConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NotificationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NotificationConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NotificationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static NotificationConfig parseFrom(InputStream input) throws IOException
IOException
public static NotificationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static NotificationConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static NotificationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static NotificationConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static NotificationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public NotificationConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static NotificationConfig.Builder newBuilder()
public static NotificationConfig.Builder newBuilder(NotificationConfig prototype)
public NotificationConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected NotificationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static NotificationConfig getDefaultInstance()
public static Parser<NotificationConfig> parser()
public Parser<NotificationConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public NotificationConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.