Class NotificationConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Builder>
com.google.cloud.securitycenter.v1p1beta1.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.GeneratedMessage.Builder<NotificationConfig.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The description of the notification config (max of 1024 characters).The type of events the config is for, e.g.The relative resource name of this notification config.The Pub/Sub topic to send notifications to.Output only.The config for triggering streaming-based notifications.The description of the notification config (max of 1024 characters).com.google.protobuf.ByteStringThe description of the notification config (max of 1024 characters).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe type of events the config is for, e.g.intThe type of events the config is for, e.g.getName()The relative resource name of this notification config.com.google.protobuf.ByteStringThe relative resource name of this notification config.The Pub/Sub topic to send notifications to.com.google.protobuf.ByteStringThe Pub/Sub topic to send notifications to.Output only.com.google.protobuf.ByteStringOutput only.The config for triggering streaming-based notifications.The config for triggering streaming-based notifications.The config for triggering streaming-based notifications.booleanThe config for triggering streaming-based notifications.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(NotificationConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The config for triggering streaming-based notifications.setDescription(String value) The description of the notification config (max of 1024 characters).setDescriptionBytes(com.google.protobuf.ByteString value) The description of the notification config (max of 1024 characters).The type of events the config is for, e.g.setEventTypeValue(int value) The type of events the config is for, e.g.The relative resource name of this notification config.setNameBytes(com.google.protobuf.ByteString value) The relative resource name of this notification config.setPubsubTopic(String value) The Pub/Sub topic to send notifications to.setPubsubTopicBytes(com.google.protobuf.ByteString value) The Pub/Sub topic to send notifications to.setServiceAccount(String value) Output only.setServiceAccountBytes(com.google.protobuf.ByteString value) Output only.The config for triggering streaming-based notifications.setStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue) The config for triggering streaming-based notifications.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NotificationConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<NotificationConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getNotifyConfigCasein interfaceNotificationConfigOrBuilder
-
clearNotifyConfig
-
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;- 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".string name = 1;- Specified by:
getNameBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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".string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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
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
The description of the notification config (max of 1024 characters).
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
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.
-
getEventTypeValue
public int getEventTypeValue()The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;- Specified by:
getEventTypeValuein interfaceNotificationConfigOrBuilder- Returns:
- The enum numeric value on the wire for eventType.
-
setEventTypeValue
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;- Parameters:
value- The enum numeric value on the wire for eventType to set.- Returns:
- This builder for chaining.
-
getEventType
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;- Specified by:
getEventTypein interfaceNotificationConfigOrBuilder- Returns:
- The eventType.
-
setEventType
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;- Parameters:
value- The eventType to set.- Returns:
- This builder for chaining.
-
clearEventType
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;- Returns:
- This builder for chaining.
-
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) = { ... }- 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 = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getPubsubTopicBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for pubsubTopic.
-
setPubsubTopic
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
string pubsub_topic = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The pubsubTopic to set.- Returns:
- This builder for chaining.
-
clearPubsubTopic
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:
- This builder for chaining.
-
setPubsubTopicBytes
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
string pubsub_topic = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for pubsubTopic to set.- Returns:
- This builder for chaining.
-
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];- 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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getServiceAccountBytesin interfaceNotificationConfigOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
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];- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
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:
- This builder for chaining.
-
setServiceAccountBytes
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];- 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.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;- Specified by:
hasStreamingConfigin interfaceNotificationConfigOrBuilder- Returns:
- Whether the streamingConfig field is set.
-
getStreamingConfig
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;- Specified by:
getStreamingConfigin interfaceNotificationConfigOrBuilder- Returns:
- The streamingConfig.
-
setStreamingConfig
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; -
setStreamingConfig
public NotificationConfig.Builder setStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue) The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; -
mergeStreamingConfig
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; -
clearStreamingConfig
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; -
getStreamingConfigBuilder
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6; -
getStreamingConfigOrBuilder
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;- Specified by:
getStreamingConfigOrBuilderin interfaceNotificationConfigOrBuilder
-