public static final class NotificationConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder> 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| Modifier and Type | Method and Description |
|---|---|
NotificationConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NotificationConfig |
build() |
NotificationConfig |
buildPartial() |
NotificationConfig.Builder |
clear() |
NotificationConfig.Builder |
clearDescription()
The description of the notification config (max of 1024 characters).
|
NotificationConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
NotificationConfig.Builder |
clearName()
The relative resource name of this notification config.
|
NotificationConfig.Builder |
clearNotifyConfig() |
NotificationConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
NotificationConfig.Builder |
clearPubsubTopic()
The Pub/Sub topic to send notifications to.
|
NotificationConfig.Builder |
clearServiceAccount()
Output only.
|
NotificationConfig.Builder |
clearStreamingConfig()
The config for triggering streaming-based notifications.
|
NotificationConfig.Builder |
clone() |
NotificationConfig |
getDefaultInstanceForType() |
String |
getDescription()
The description of the notification config (max of 1024 characters).
|
com.google.protobuf.ByteString |
getDescriptionBytes()
The description of the notification config (max of 1024 characters).
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The relative resource name of this notification config.
|
com.google.protobuf.ByteString |
getNameBytes()
The relative resource name of this notification config.
|
NotificationConfig.NotifyConfigCase |
getNotifyConfigCase() |
String |
getPubsubTopic()
The Pub/Sub topic to send notifications to.
|
com.google.protobuf.ByteString |
getPubsubTopicBytes()
The Pub/Sub topic to send notifications to.
|
String |
getServiceAccount()
Output only.
|
com.google.protobuf.ByteString |
getServiceAccountBytes()
Output only.
|
NotificationConfig.StreamingConfig |
getStreamingConfig()
The config for triggering streaming-based notifications.
|
NotificationConfig.StreamingConfig.Builder |
getStreamingConfigBuilder()
The config for triggering streaming-based notifications.
|
NotificationConfig.StreamingConfigOrBuilder |
getStreamingConfigOrBuilder()
The config for triggering streaming-based notifications.
|
boolean |
hasStreamingConfig()
The config for triggering streaming-based notifications.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
NotificationConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
NotificationConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
NotificationConfig.Builder |
mergeFrom(NotificationConfig other) |
NotificationConfig.Builder |
mergeStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
|
NotificationConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
NotificationConfig.Builder |
setDescription(String value)
The description of the notification config (max of 1024 characters).
|
NotificationConfig.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
The description of the notification config (max of 1024 characters).
|
NotificationConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NotificationConfig.Builder |
setName(String value)
The relative resource name of this notification config.
|
NotificationConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The relative resource name of this notification config.
|
NotificationConfig.Builder |
setPubsubTopic(String value)
The Pub/Sub topic to send notifications to.
|
NotificationConfig.Builder |
setPubsubTopicBytes(com.google.protobuf.ByteString value)
The Pub/Sub topic to send notifications to.
|
NotificationConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
NotificationConfig.Builder |
setServiceAccount(String value)
Output only.
|
NotificationConfig.Builder |
setServiceAccountBytes(com.google.protobuf.ByteString value)
Output only.
|
NotificationConfig.Builder |
setStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue)
The config for triggering streaming-based notifications.
|
NotificationConfig.Builder |
setStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
|
NotificationConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic NotificationConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic NotificationConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic NotificationConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>public NotificationConfig.Builder mergeFrom(NotificationConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public NotificationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>IOExceptionpublic NotificationConfig.NotifyConfigCase getNotifyConfigCase()
getNotifyConfigCase in interface NotificationConfigOrBuilderpublic NotificationConfig.Builder clearNotifyConfig()
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;getName in interface NotificationConfigOrBuilderpublic 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;getNameBytes in interface NotificationConfigOrBuilderpublic NotificationConfig.Builder setName(String value)
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;value - The name to set.public NotificationConfig.Builder clearName()
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;public NotificationConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
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;value - The bytes for name to set.public String getDescription()
The description of the notification config (max of 1024 characters).
string description = 2;getDescription in interface NotificationConfigOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
The description of the notification config (max of 1024 characters).
string description = 2;getDescriptionBytes in interface NotificationConfigOrBuilderpublic NotificationConfig.Builder setDescription(String value)
The description of the notification config (max of 1024 characters).
string description = 2;value - The description to set.public NotificationConfig.Builder clearDescription()
The description of the notification config (max of 1024 characters).
string description = 2;public NotificationConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
The description of the notification config (max of 1024 characters).
string description = 2;value - The bytes for description to set.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) = { ... }getPubsubTopic in interface NotificationConfigOrBuilderpublic 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) = { ... }getPubsubTopicBytes in interface NotificationConfigOrBuilderpublic NotificationConfig.Builder setPubsubTopic(String value)
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
string pubsub_topic = 3 [(.google.api.resource_reference) = { ... }value - The pubsubTopic to set.public NotificationConfig.Builder clearPubsubTopic()
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
string pubsub_topic = 3 [(.google.api.resource_reference) = { ... }public NotificationConfig.Builder setPubsubTopicBytes(com.google.protobuf.ByteString value)
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
string pubsub_topic = 3 [(.google.api.resource_reference) = { ... }value - The bytes for pubsubTopic to set.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];getServiceAccount in interface NotificationConfigOrBuilderpublic 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];getServiceAccountBytes in interface NotificationConfigOrBuilderpublic NotificationConfig.Builder setServiceAccount(String value)
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];value - The serviceAccount to set.public NotificationConfig.Builder clearServiceAccount()
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];public NotificationConfig.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
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];value - The bytes for serviceAccount to set.public boolean hasStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
hasStreamingConfig in interface NotificationConfigOrBuilderpublic NotificationConfig.StreamingConfig getStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
getStreamingConfig in interface NotificationConfigOrBuilderpublic NotificationConfig.Builder setStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
public NotificationConfig.Builder setStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
public NotificationConfig.Builder mergeStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
public NotificationConfig.Builder clearStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
public NotificationConfig.StreamingConfig.Builder getStreamingConfigBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
public NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
getStreamingConfigOrBuilder in interface NotificationConfigOrBuilderpublic final NotificationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>public final NotificationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.