public final class NotificationConfig extends 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 type google.cloud.securitycenter.v1.NotificationConfig
Static Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PUBSUB_TOPIC_FIELD_NUMBER
public static final int PUBSUB_TOPIC_FIELD_NUMBER
Field Value
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
STREAMING_CONFIG_FIELD_NUMBER
public static final int STREAMING_CONFIG_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static NotificationConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static NotificationConfig.Builder newBuilder()
Returns
newBuilder(NotificationConfig prototype)
public static NotificationConfig.Builder newBuilder(NotificationConfig prototype)
Parameter
Returns
public static NotificationConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static NotificationConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static NotificationConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static NotificationConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static NotificationConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static NotificationConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NotificationConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static NotificationConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static NotificationConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static NotificationConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static NotificationConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static NotificationConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<NotificationConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public NotificationConfig getDefaultInstanceForType()
Returns
getDescription()
public String getDescription()
The description of the notification config (max of 1024 characters).
string description = 2;
Returns
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
The description of the notification config (max of 1024 characters).
string description = 2;
Returns
Type | Description |
ByteString | The bytes for description.
|
getName()
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Returns
getNotifyConfigCase()
public NotificationConfig.NotifyConfigCase getNotifyConfigCase()
Returns
getParserForType()
public Parser<NotificationConfig> getParserForType()
Returns
Overrides
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) = { ... }
Returns
Type | Description |
String | The pubsubTopic.
|
getPubsubTopicBytes()
public 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) = { ... }
Returns
Type | Description |
ByteString | The bytes for pubsubTopic.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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];
Returns
Type | Description |
String | The serviceAccount.
|
getServiceAccountBytes()
public 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];
Returns
Type | Description |
ByteString | The bytes for serviceAccount.
|
getStreamingConfig()
public NotificationConfig.StreamingConfig getStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
Returns
getStreamingConfigOrBuilder()
public NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasStreamingConfig()
public boolean hasStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
Returns
Type | Description |
boolean | Whether the streamingConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public NotificationConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected NotificationConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public NotificationConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions