blob: 6797f7ad86af0aafc1ec1b0f0cb4424e5434ba01 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/securitycenter/v1p1beta1/notification_config.proto
package securitycenter
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// The type of events.
type NotificationConfig_EventType int32
const (
// Unspecified event type.
NotificationConfig_EVENT_TYPE_UNSPECIFIED NotificationConfig_EventType = 0
// Events for findings.
NotificationConfig_FINDING NotificationConfig_EventType = 1
)
var NotificationConfig_EventType_name = map[int32]string{
0: "EVENT_TYPE_UNSPECIFIED",
1: "FINDING",
}
var NotificationConfig_EventType_value = map[string]int32{
"EVENT_TYPE_UNSPECIFIED": 0,
"FINDING": 1,
}
func (x NotificationConfig_EventType) String() string {
return proto.EnumName(NotificationConfig_EventType_name, int32(x))
}
func (NotificationConfig_EventType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4c034a8341e15b36, []int{0, 0}
}
// 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.
type NotificationConfig struct {
// 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".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The description of the notification config (max of 1024 characters).
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// The type of events the config is for, e.g. FINDING.
EventType NotificationConfig_EventType `protobuf:"varint,3,opt,name=event_type,json=eventType,proto3,enum=google.cloud.securitycenter.v1p1beta1.NotificationConfig_EventType" json:"event_type,omitempty"`
// The PubSub topic to send notifications to. Its format is
// "projects/[project_id]/topics/[topic]".
PubsubTopic string `protobuf:"bytes,4,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"`
// Output only. The service account that needs "pubsub.topics.publish"
// permission to publish to the PubSub topic.
ServiceAccount string `protobuf:"bytes,5,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// The config for triggering notifications.
//
// Types that are valid to be assigned to NotifyConfig:
// *NotificationConfig_StreamingConfig_
NotifyConfig isNotificationConfig_NotifyConfig `protobuf_oneof:"notify_config"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NotificationConfig) Reset() { *m = NotificationConfig{} }
func (m *NotificationConfig) String() string { return proto.CompactTextString(m) }
func (*NotificationConfig) ProtoMessage() {}
func (*NotificationConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_4c034a8341e15b36, []int{0}
}
func (m *NotificationConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NotificationConfig.Unmarshal(m, b)
}
func (m *NotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NotificationConfig.Marshal(b, m, deterministic)
}
func (m *NotificationConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_NotificationConfig.Merge(m, src)
}
func (m *NotificationConfig) XXX_Size() int {
return xxx_messageInfo_NotificationConfig.Size(m)
}
func (m *NotificationConfig) XXX_DiscardUnknown() {
xxx_messageInfo_NotificationConfig.DiscardUnknown(m)
}
var xxx_messageInfo_NotificationConfig proto.InternalMessageInfo
func (m *NotificationConfig) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *NotificationConfig) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *NotificationConfig) GetEventType() NotificationConfig_EventType {
if m != nil {
return m.EventType
}
return NotificationConfig_EVENT_TYPE_UNSPECIFIED
}
func (m *NotificationConfig) GetPubsubTopic() string {
if m != nil {
return m.PubsubTopic
}
return ""
}
func (m *NotificationConfig) GetServiceAccount() string {
if m != nil {
return m.ServiceAccount
}
return ""
}
type isNotificationConfig_NotifyConfig interface {
isNotificationConfig_NotifyConfig()
}
type NotificationConfig_StreamingConfig_ struct {
StreamingConfig *NotificationConfig_StreamingConfig `protobuf:"bytes,6,opt,name=streaming_config,json=streamingConfig,proto3,oneof"`
}
func (*NotificationConfig_StreamingConfig_) isNotificationConfig_NotifyConfig() {}
func (m *NotificationConfig) GetNotifyConfig() isNotificationConfig_NotifyConfig {
if m != nil {
return m.NotifyConfig
}
return nil
}
func (m *NotificationConfig) GetStreamingConfig() *NotificationConfig_StreamingConfig {
if x, ok := m.GetNotifyConfig().(*NotificationConfig_StreamingConfig_); ok {
return x.StreamingConfig
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*NotificationConfig) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*NotificationConfig_StreamingConfig_)(nil),
}
}
// The config for streaming-based notifications, which send each event as soon
// as it is detected.
type NotificationConfig_StreamingConfig struct {
// Expression that defines the filter to apply across create/update events
// of assets or findings as specified by the event type. The expression is a
// list of zero or more restrictions combined via logical operators `AND`
// and `OR`. Parentheses are supported, and `OR` has higher precedence than
// `AND`.
//
// Restrictions have the form `<field> <operator> <value>` and may have a
// `-` character in front of them to indicate negation. The fields map to
// those defined in the corresponding resource.
//
// The supported operators are:
//
// * `=` for all value types.
// * `>`, `<`, `>=`, `<=` for integer values.
// * `:`, meaning substring matching, for strings.
//
// The supported value types are:
//
// * string literals in quotes.
// * integer literals without quotes.
// * boolean literals `true` and `false` without quotes.
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NotificationConfig_StreamingConfig) Reset() { *m = NotificationConfig_StreamingConfig{} }
func (m *NotificationConfig_StreamingConfig) String() string { return proto.CompactTextString(m) }
func (*NotificationConfig_StreamingConfig) ProtoMessage() {}
func (*NotificationConfig_StreamingConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_4c034a8341e15b36, []int{0, 0}
}
func (m *NotificationConfig_StreamingConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NotificationConfig_StreamingConfig.Unmarshal(m, b)
}
func (m *NotificationConfig_StreamingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NotificationConfig_StreamingConfig.Marshal(b, m, deterministic)
}
func (m *NotificationConfig_StreamingConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_NotificationConfig_StreamingConfig.Merge(m, src)
}
func (m *NotificationConfig_StreamingConfig) XXX_Size() int {
return xxx_messageInfo_NotificationConfig_StreamingConfig.Size(m)
}
func (m *NotificationConfig_StreamingConfig) XXX_DiscardUnknown() {
xxx_messageInfo_NotificationConfig_StreamingConfig.DiscardUnknown(m)
}
var xxx_messageInfo_NotificationConfig_StreamingConfig proto.InternalMessageInfo
func (m *NotificationConfig_StreamingConfig) GetFilter() string {
if m != nil {
return m.Filter
}
return ""
}
func init() {
proto.RegisterEnum("google.cloud.securitycenter.v1p1beta1.NotificationConfig_EventType", NotificationConfig_EventType_name, NotificationConfig_EventType_value)
proto.RegisterType((*NotificationConfig)(nil), "google.cloud.securitycenter.v1p1beta1.NotificationConfig")
proto.RegisterType((*NotificationConfig_StreamingConfig)(nil), "google.cloud.securitycenter.v1p1beta1.NotificationConfig.StreamingConfig")
}
func init() {
proto.RegisterFile("google/cloud/securitycenter/v1p1beta1/notification_config.proto", fileDescriptor_4c034a8341e15b36)
}
var fileDescriptor_4c034a8341e15b36 = []byte{
// 578 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xdd, 0x6e, 0x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