Debian Codegraph @

securitycenter/apiv2/securitycenterpb/notification_message.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/securitycenter/v2/notification_message.proto
20
21 package securitycenterpb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Cloud SCC's Notification
38 type NotificationMessage struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // Name of the notification config that generated current notification.
44 NotificationConfigName string `protobuf:"bytes,1,opt,name=notification_config_name,json=notificationConfigName,proto3" json:"notification_config_name,omitempty"`
45 // Notification Event.
46 //
47 // Types that are assignable to Event:
48 //
49 // *NotificationMessage_Finding
50 Event isNotificationMessage_Event `protobuf_oneof:"event"`
51 // The Cloud resource tied to this notification's Finding.
52 Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
53 }
54
55 func (x *NotificationMessage) Reset() {
56 *x = NotificationMessage{}
57 mi := &file_google_cloud_securitycenter_v2_notification_message_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61
62 func (x *NotificationMessage) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*NotificationMessage) ProtoMessage() {}
67
68 func (x *NotificationMessage) ProtoReflect() protoreflect.Message {
69 mi := &file_google_cloud_securitycenter_v2_notification_message_proto_msgTypes[0]
70 if x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80 // Deprecated: Use NotificationMessage.ProtoReflect.Descriptor instead.
81 func (*NotificationMessage) Descriptor() ([]byte, []int) {
82 return file_google_cloud_securitycenter_v2_notification_message_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *NotificationMessage) GetNotificationConfigName() string {
86 if x != nil {
87 return x.NotificationConfigName
88 }
89 return ""
90 }
91
92 func (m *NotificationMessage) GetEvent() isNotificationMessage_Event {
93 if m != nil {
94 return m.Event
95 }
96 return nil
97 }
98
99 func (x *NotificationMessage) GetFinding() *Finding {
100 if x, ok := x.GetEvent().(*NotificationMessage_Finding); ok {
101 return x.Finding
102 }
103 return nil
104 }
105
106 func (x *NotificationMessage) GetResource() *Resource {
107 if x != nil {
108 return x.Resource
109 }
110 return nil
111 }
112
113 type isNotificationMessage_Event interface {
114 isNotificationMessage_Event()
115 }
116
117 type NotificationMessage_Finding struct {
118 // If it's a Finding based notification config, this field will be
119 // populated.
120 Finding *Finding `protobuf:"bytes,2,opt,name=finding,proto3,oneof"`
121 }
122
123 func (*NotificationMessage_Finding) isNotificationMessage_Event() {}
124
125 var File_google_cloud_securitycenter_v2_notification_message_proto protoreflect.FileDescriptor
126
127 var file_google_cloud_securitycenter_v2_notification_message_proto_rawDesc = []byte{
128 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
129 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32,
130 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65,
131 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f,
132 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
133 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x2c, 0x67, 0x6f, 0x6f,
134 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
135 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x69, 0x6e, 0x64,
136 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
137 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
138 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
139 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe3, 0x01, 0x0a, 0x13, 0x4e, 0x6f, 0x74,
140 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
141 0x12, 0x38, 0x0a, 0x18, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
142 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
143 0x28, 0x09, 0x52, 0x16, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
144 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x07, 0x66, 0x69,
145 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f,
146 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72,
147 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6e,
148 0x64, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x07, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12,
149 0x44, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
150 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
151 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
152 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73,
153 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0xf2,
154 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
155 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
156 0x65, 0x72, 0x2e, 0x76, 0x32, 0x42, 0x18, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
157 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
158 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
159 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63,
160 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x63, 0x75,
161 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63,
162 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x1e,
163 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63,
164 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x32, 0xca, 0x02,
165 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65,
166 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x5c, 0x56, 0x32, 0xea,
167 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,
168 0x3a, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a,
169 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
170 }
171
172 var (
173 file_google_cloud_securitycenter_v2_notification_message_proto_rawDescOnce sync.Once
174 file_google_cloud_securitycenter_v2_notification_message_proto_rawDescData = file_google_cloud_securitycenter_v2_notification_message_proto_rawDesc
175 )
176
177 func file_google_cloud_securitycenter_v2_notification_message_proto_rawDescGZIP() []byte {
178 file_google_cloud_securitycenter_v2_notification_message_proto_rawDescOnce.Do(func() {
179 file_google_cloud_securitycenter_v2_notification_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v2_notification_message_proto_rawDescData)
180 })
181 return file_google_cloud_securitycenter_v2_notification_message_proto_rawDescData
182 }
183
184 var file_google_cloud_securitycenter_v2_notification_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
185 var file_google_cloud_securitycenter_v2_notification_message_proto_goTypes = []any{
186 (*NotificationMessage)(nil), // 0: google.cloud.securitycenter.v2.NotificationMessage
187 (*Finding)(nil), // 1: google.cloud.securitycenter.v2.Finding
188 (*Resource)(nil), // 2: google.cloud.securitycenter.v2.Resource
189 }
190 var file_google_cloud_securitycenter_v2_notification_message_proto_depIdxs = []int32{
191 1, // 0: google.cloud.securitycenter.v2.NotificationMessage.finding:type_name -> google.cloud.securitycenter.v2.Finding
192 2, // 1: google.cloud.securitycenter.v2.NotificationMessage.resource:type_name -> google.cloud.securitycenter.v2.Resource
193 2, // [2:2] is the sub-list for method output_type
194 2, // [2:2] is the sub-list for method input_type
195 2, // [2:2] is the sub-list for extension type_name
196 2, // [2:2] is the sub-list for extension extendee
197 0, // [0:2] is the sub-list for field type_name
198 }
199
200 func init() { file_google_cloud_securitycenter_v2_notification_message_proto_init() }
201 func file_google_cloud_securitycenter_v2_notification_message_proto_init() {
202 if File_google_cloud_securitycenter_v2_notification_message_proto != nil {
203 return
204 }
205 file_google_cloud_securitycenter_v2_finding_proto_init()
206 file_google_cloud_securitycenter_v2_resource_proto_init()
207 file_google_cloud_securitycenter_v2_notification_message_proto_msgTypes[0].OneofWrappers = []any{
208 (*NotificationMessage_Finding)(nil),
209 }
210 type x struct{}
211 out := protoimpl.TypeBuilder{
212 File: protoimpl.DescBuilder{
213 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
214 RawDescriptor: file_google_cloud_securitycenter_v2_notification_message_proto_rawDesc,
215 NumEnums: 0,
216 NumMessages: 1,
217 NumExtensions: 0,
218 NumServices: 0,
219 },
220 GoTypes: file_google_cloud_securitycenter_v2_notification_message_proto_goTypes,
221 DependencyIndexes: file_google_cloud_securitycenter_v2_notification_message_proto_depIdxs,
222 MessageInfos: file_google_cloud_securitycenter_v2_notification_message_proto_msgTypes,
223 }.Build()
224 File_google_cloud_securitycenter_v2_notification_message_proto = out.File
225 file_google_cloud_securitycenter_v2_notification_message_proto_rawDesc = nil
226 file_google_cloud_securitycenter_v2_notification_message_proto_goTypes = nil
227 file_google_cloud_securitycenter_v2_notification_message_proto_depIdxs = nil
228 }