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.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(NotificationConfig other)
NotificationConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NotificationConfig.Builder
mergeFrom(com.google.protobuf.Message 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 value)
The config for triggering streaming-based notifications.NotificationConfig.Builder
setStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue)
The config for triggering streaming-based notifications.NotificationConfig.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clear
public NotificationConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
getDefaultInstanceForType
public NotificationConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NotificationConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NotificationConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NotificationConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
setField
public NotificationConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clearField
public NotificationConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
clearOneof
public NotificationConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
setRepeatedField
public NotificationConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
addRepeatedField
public NotificationConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
mergeFrom
public NotificationConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>
-
mergeFrom
public NotificationConfig.Builder mergeFrom(NotificationConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NotificationConfig.Builder>
- Throws:
IOException
-
getNotifyConfigCase
public NotificationConfig.NotifyConfigCase getNotifyConfigCase()
- Specified by:
getNotifyConfigCase
in 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:
getName
in 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:
getNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getPubsubTopic
in 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:
getPubsubTopicBytes
in 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:
getServiceAccount
in 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:
getServiceAccountBytes
in 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:
hasStreamingConfig
in 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:
getStreamingConfig
in 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:
getStreamingConfigOrBuilder
in interfaceNotificationConfigOrBuilder
-
setUnknownFields
public final NotificationConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
mergeUnknownFields
public final NotificationConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NotificationConfig.Builder>
-
-