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
Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
EVENT_TYPE_FIELD_NUMBER
public static final int EVENT_TYPE_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
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static NotificationConfig getDefaultInstance()
Returns
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.
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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;
Returns
getEventTypeValue()
public int getEventTypeValue()
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
Returns
Type | Description |
int | The enum numeric value on the wire for eventType.
|
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 = 4 [(.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 = 4 [(.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 = 5 [(.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 = 5 [(.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.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
Returns
getStreamingConfigOrBuilder()
public NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasStreamingConfig()
public boolean hasStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
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
newBuilder()
public static NotificationConfig.Builder newBuilder()
Returns
newBuilder(NotificationConfig prototype)
public static NotificationConfig.Builder newBuilder(NotificationConfig prototype)
Parameter
Returns
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
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
toBuilder()
public NotificationConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions