Class NotificationConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
- com.google.cloud.securitycenter.v1.NotificationConfig.Builder
-
- All Implemented Interfaces:
NotificationConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NotificationConfig
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 typegoogle.cloud.securitycenter.v1.NotificationConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NotificationConfigbuild()NotificationConfigbuildPartial()NotificationConfig.Builderclear()NotificationConfig.BuilderclearDescription()The description of the notification config (max of 1024 characters).NotificationConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)NotificationConfig.BuilderclearName()The relative resource name of this notification config.NotificationConfig.BuilderclearNotifyConfig()NotificationConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)NotificationConfig.BuilderclearPubsubTopic()The Pub/Sub topic to send notifications to.NotificationConfig.BuilderclearServiceAccount()Output only.NotificationConfig.BuilderclearStreamingConfig()The config for triggering streaming-based notifications.NotificationConfig.Builderclone()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()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()The relative resource name of this notification config.com.google.protobuf.ByteStringgetNameBytes()The relative resource name of this notification config.NotificationConfig.NotifyConfigCasegetNotifyConfigCase()StringgetPubsubTopic()The Pub/Sub topic to send notifications to.com.google.protobuf.ByteStringgetPubsubTopicBytes()The Pub/Sub topic to send notifications to.StringgetServiceAccount()Output only.com.google.protobuf.ByteStringgetServiceAccountBytes()Output only.NotificationConfig.StreamingConfiggetStreamingConfig()The config for triggering streaming-based notifications.NotificationConfig.StreamingConfig.BuildergetStreamingConfigBuilder()The config for triggering streaming-based notifications.NotificationConfig.StreamingConfigOrBuildergetStreamingConfigOrBuilder()The config for triggering streaming-based notifications.booleanhasStreamingConfig()The config for triggering streaming-based notifications.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()NotificationConfig.BuildermergeFrom(NotificationConfig other)NotificationConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)NotificationConfig.BuildermergeFrom(com.google.protobuf.Message other)NotificationConfig.BuildermergeStreamingConfig(NotificationConfig.StreamingConfig value)The config for triggering streaming-based notifications.NotificationConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)NotificationConfig.BuildersetDescription(String value)The description of the notification config (max of 1024 characters).NotificationConfig.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)The description of the notification config (max of 1024 characters).NotificationConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)NotificationConfig.BuildersetName(String value)The relative resource name of this notification config.NotificationConfig.BuildersetNameBytes(com.google.protobuf.ByteString value)The relative resource name of this notification config.NotificationConfig.BuildersetPubsubTopic(String value)The Pub/Sub topic to send notifications to.NotificationConfig.BuildersetPubsubTopicBytes(com.google.protobuf.ByteString value)The Pub/Sub topic to send notifications to.NotificationConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)NotificationConfig.BuildersetServiceAccount(String value)Output only.NotificationConfig.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)Output only.NotificationConfig.BuildersetStreamingConfig(NotificationConfig.StreamingConfig value)The config for triggering streaming-based notifications.NotificationConfig.BuildersetStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue)The config for triggering streaming-based notifications.NotificationConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<NotificationConfig.Builder>
-
clear
public NotificationConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
getDefaultInstanceForType
public NotificationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public NotificationConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NotificationConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NotificationConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
setField
public NotificationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clearField
public NotificationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clearOneof
public NotificationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
setRepeatedField
public NotificationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
addRepeatedField
public NotificationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
mergeFrom
public NotificationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>
-
mergeFrom
public NotificationConfig.Builder mergeFrom(NotificationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
mergeFrom
public NotificationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>- Throws:
IOException
-
getNotifyConfigCase
public NotificationConfig.NotifyConfigCase getNotifyConfigCase()
- Specified by:
getNotifyConfigCasein interfaceNotificationConfigOrBuilder
-
clearNotifyConfig
public NotificationConfig.Builder clearNotifyConfig()
-
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.
-
setName
public 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setDescription
public NotificationConfig.Builder setDescription(String value)
The description of the notification config (max of 1024 characters).
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public NotificationConfig.Builder clearDescription()
The description of the notification config (max of 1024 characters).
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public NotificationConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
The description of the notification config (max of 1024 characters).
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setPubsubTopic
public 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) = { ... }- Parameters:
value- The pubsubTopic to set.- Returns:
- This builder for chaining.
-
clearPubsubTopic
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) = { ... }- Returns:
- This builder for chaining.
-
setPubsubTopicBytes
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) = { ... }- Parameters:
value- The bytes for pubsubTopic to set.- Returns:
- This builder for chaining.
-
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.
-
setServiceAccount
public 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];- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
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];- Returns:
- This builder for chaining.
-
setServiceAccountBytes
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];- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
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.
-
setStreamingConfig
public NotificationConfig.Builder setStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
-
setStreamingConfig
public NotificationConfig.Builder setStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
-
mergeStreamingConfig
public NotificationConfig.Builder mergeStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
-
clearStreamingConfig
public NotificationConfig.Builder clearStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
-
getStreamingConfigBuilder
public NotificationConfig.StreamingConfig.Builder getStreamingConfigBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig streaming_config = 5;
-
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
-
setUnknownFields
public final NotificationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
mergeUnknownFields
public final NotificationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
-