Debian Codegraph @

securitycenter/apiv1p1beta1/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/v1p1beta1/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 // Security Command Center'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 the notification.
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_v1p1beta1_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_v1p1beta1_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_v1p1beta1_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_v1p1beta1_notification_message_proto protoreflect.FileDescriptor
126
127 var file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDesc = []byte{
128 0x0a, 0x40, 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, 0x31,
130 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
131 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f,
132 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
133 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
134 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
135 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
136 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
137 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34,
138 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x63,
139 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x70, 0x31,
140 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
141 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf1, 0x01, 0x0a, 0x13, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63,
142 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x18,
143 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e,
144 0x66, 0x69, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16,
145 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
146 0x69, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x07, 0x66, 0x69, 0x6e, 0x64, 0x69, 0x6e,
147 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
148 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63,
149 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e,
150 0x46, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x07, 0x66, 0x69, 0x6e, 0x64, 0x69,
151 0x6e, 0x67, 0x12, 0x4b, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03,
152 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
153 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74,
154 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x52, 0x65, 0x73,
155 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42,
156 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0xfb, 0x01, 0x0a, 0x29, 0x63, 0x6f, 0x6d,
157 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65,
158 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x70,
159 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a, 0x51, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
160 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65,
161 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69,
162 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69,
163 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x63, 0x75, 0x72,
164 0x69, 0x74, 0x79, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x62, 0xaa, 0x02, 0x25, 0x47, 0x6f,
165 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72,
166 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x50, 0x31, 0x42, 0x65,
167 0x74, 0x61, 0x31, 0xca, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
168 0x75, 0x64, 0x5c, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65,
169 0x72, 0x5c, 0x56, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f,
170 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x63,
171 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x31, 0x70,
172 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
173 }
174
175 var (
176 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDescOnce sync.Once
177 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDescData = file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDesc
178 )
179
180 func file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDescGZIP() []byte {
181 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDescOnce.Do(func() {
182 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDescData)
183 })
184 return file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDescData
185 }
186
187 var file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
188 var file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_goTypes = []any{
189 (*NotificationMessage)(nil), // 0: google.cloud.securitycenter.v1p1beta1.NotificationMessage
190 (*Finding)(nil), // 1: google.cloud.securitycenter.v1p1beta1.Finding
191 (*Resource)(nil), // 2: google.cloud.securitycenter.v1p1beta1.Resource
192 }
193 var file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_depIdxs = []int32{
194 1, // 0: google.cloud.securitycenter.v1p1beta1.NotificationMessage.finding:type_name -> google.cloud.securitycenter.v1p1beta1.Finding
195 2, // 1: google.cloud.securitycenter.v1p1beta1.NotificationMessage.resource:type_name -> google.cloud.securitycenter.v1p1beta1.Resource
196 2, // [2:2] is the sub-list for method output_type
197 2, // [2:2] is the sub-list for method input_type
198 2, // [2:2] is the sub-list for extension type_name
199 2, // [2:2] is the sub-list for extension extendee
200 0, // [0:2] is the sub-list for field type_name
201 }
202
203 func init() { file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_init() }
204 func file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_init() {
205 if File_google_cloud_securitycenter_v1p1beta1_notification_message_proto != nil {
206 return
207 }
208 file_google_cloud_securitycenter_v1p1beta1_finding_proto_init()
209 file_google_cloud_securitycenter_v1p1beta1_resource_proto_init()
210 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_msgTypes[0].OneofWrappers = []any{
211 (*NotificationMessage_Finding)(nil),
212 }
213 type x struct{}
214 out := protoimpl.TypeBuilder{
215 File: protoimpl.DescBuilder{
216 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
217 RawDescriptor: file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDesc,
218 NumEnums: 0,
219 NumMessages: 1,
220 NumExtensions: 0,
221 NumServices: 0,
222 },
223 GoTypes: file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_goTypes,
224 DependencyIndexes: file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_depIdxs,
225 MessageInfos: file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_msgTypes,
226 }.Build()
227 File_google_cloud_securitycenter_v1p1beta1_notification_message_proto = out.File
228 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_rawDesc = nil
229 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_goTypes = nil
230 file_google_cloud_securitycenter_v1p1beta1_notification_message_proto_depIdxs = nil
231 }