public static final class NotificationConfig.Builder extends GeneratedMessageV3.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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public NotificationConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public NotificationConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public NotificationConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder mergeFrom(NotificationConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public NotificationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<NotificationConfig.Builder>
IOException
public NotificationConfig.NotifyConfigCase getNotifyConfigCase()
getNotifyConfigCase
in interface NotificationConfigOrBuilder
public 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".
string name = 1;
getName
in interface NotificationConfigOrBuilder
public 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;
getNameBytes
in interface NotificationConfigOrBuilder
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".
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".
string name = 1;
public NotificationConfig.Builder setNameBytes(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".
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 NotificationConfigOrBuilder
public ByteString getDescriptionBytes()
The description of the notification config (max of 1024 characters).
string description = 2;
getDescriptionBytes
in interface NotificationConfigOrBuilder
public 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(ByteString value)
The description of the notification config (max of 1024 characters).
string description = 2;
value
- The bytes for description to set.public int getEventTypeValue()
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
getEventTypeValue
in interface NotificationConfigOrBuilder
public NotificationConfig.Builder setEventTypeValue(int value)
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
value
- The enum numeric value on the wire for eventType to set.public NotificationConfig.EventType getEventType()
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
getEventType
in interface NotificationConfigOrBuilder
public NotificationConfig.Builder setEventType(NotificationConfig.EventType value)
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
value
- The eventType to set.public NotificationConfig.Builder clearEventType()
The type of events the config is for, e.g. FINDING.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.EventType event_type = 3;
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) = { ... }
getPubsubTopic
in interface NotificationConfigOrBuilder
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) = { ... }
getPubsubTopicBytes
in interface NotificationConfigOrBuilder
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 = 4 [(.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 = 4 [(.google.api.resource_reference) = { ... }
public NotificationConfig.Builder setPubsubTopicBytes(ByteString value)
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
string pubsub_topic = 4 [(.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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getServiceAccount
in interface NotificationConfigOrBuilder
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];
getServiceAccountBytes
in interface NotificationConfigOrBuilder
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 = 5 [(.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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public NotificationConfig.Builder setServiceAccountBytes(ByteString value)
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];
value
- The bytes for serviceAccount to set.public boolean hasStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
hasStreamingConfig
in interface NotificationConfigOrBuilder
public NotificationConfig.StreamingConfig getStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
getStreamingConfig
in interface NotificationConfigOrBuilder
public NotificationConfig.Builder setStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
public NotificationConfig.Builder setStreamingConfig(NotificationConfig.StreamingConfig.Builder builderForValue)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
public NotificationConfig.Builder mergeStreamingConfig(NotificationConfig.StreamingConfig value)
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
public NotificationConfig.Builder clearStreamingConfig()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
public NotificationConfig.StreamingConfig.Builder getStreamingConfigBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
public NotificationConfig.StreamingConfigOrBuilder getStreamingConfigOrBuilder()
The config for triggering streaming-based notifications.
.google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig streaming_config = 6;
getStreamingConfigOrBuilder
in interface NotificationConfigOrBuilder
public final NotificationConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
public final NotificationConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<NotificationConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.