/
Finding.cs
548 lines (513 loc) · 22.2 KB
/
Finding.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/securitycenter/v1p1beta1/finding.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Cloud.SecurityCenter.V1P1Beta1 {
/// <summary>Holder for reflection information generated from google/cloud/securitycenter/v1p1beta1/finding.proto</summary>
public static partial class FindingReflection {
#region Descriptor
/// <summary>File descriptor for google/cloud/securitycenter/v1p1beta1/finding.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static FindingReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjNnb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjFwMWJldGExL2ZpbmRp",
"bmcucHJvdG8SJWdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MXAxYmV0",
"YTEaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9hcGkv",
"ZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJv",
"dG8aOmdvb2dsZS9jbG91ZC9zZWN1cml0eWNlbnRlci92MXAxYmV0YTEvc2Vj",
"dXJpdHlfbWFya3MucHJvdG8aHGdvb2dsZS9wcm90b2J1Zi9zdHJ1Y3QucHJv",
"dG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8iuQUKB0ZpbmRp",
"bmcSDAoEbmFtZRgBIAEoCRIOCgZwYXJlbnQYAiABKAkSFQoNcmVzb3VyY2Vf",
"bmFtZRgDIAEoCRJDCgVzdGF0ZRgEIAEoDjI0Lmdvb2dsZS5jbG91ZC5zZWN1",
"cml0eWNlbnRlci52MXAxYmV0YTEuRmluZGluZy5TdGF0ZRIQCghjYXRlZ29y",
"eRgFIAEoCRIUCgxleHRlcm5hbF91cmkYBiABKAkSXwoRc291cmNlX3Byb3Bl",
"cnRpZXMYByADKAsyRC5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjFw",
"MWJldGExLkZpbmRpbmcuU291cmNlUHJvcGVydGllc0VudHJ5ElEKDnNlY3Vy",
"aXR5X21hcmtzGAggASgLMjQuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2VudGVy",
"LnYxcDFiZXRhMS5TZWN1cml0eU1hcmtzQgPgQQMSLgoKZXZlbnRfdGltZRgJ",
"IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLwoLY3JlYXRlX3Rp",
"bWUYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wGk8KFVNvdXJj",
"ZVByb3BlcnRpZXNFbnRyeRILCgNrZXkYASABKAkSJQoFdmFsdWUYAiABKAsy",
"Fi5nb29nbGUucHJvdG9idWYuVmFsdWU6AjgBIjgKBVN0YXRlEhUKEVNUQVRF",
"X1VOU1BFQ0lGSUVEEAASCgoGQUNUSVZFEAESDAoISU5BQ1RJVkUQAjps6kFp",
"CiVzZWN1cml0eWNlbnRlci5nb29nbGVhcGlzLmNvbS9GaW5kaW5nEkBvcmdh",
"bml6YXRpb25zL3tvcmdhbml6YXRpb259L3NvdXJjZXMve3NvdXJjZX0vZmlu",
"ZGluZ3Mve2ZpbmRpbmd9Qv0BCiljb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5",
"Y2VudGVyLnYxcDFiZXRhMVABWlNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90",
"by9nb29nbGVhcGlzL2Nsb3VkL3NlY3VyaXR5Y2VudGVyL3YxcDFiZXRhMTtz",
"ZWN1cml0eWNlbnRlcqoCJUdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5W",
"MVAxQmV0YTHKAiVHb29nbGVcQ2xvdWRcU2VjdXJpdHlDZW50ZXJcVjFwMWJl",
"dGEx6gIoR29vZ2xlOjpDbG91ZDo6U2VjdXJpdHlDZW50ZXI6OlYxcDFiZXRh",
"MWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarksReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding), global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Parser, new[]{ "Name", "Parent", "ResourceName", "State", "Category", "ExternalUri", "SourceProperties", "SecurityMarks", "EventTime", "CreateTime" }, null, new[]{ typeof(global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State) }, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
}
#region Messages
/// <summary>
/// Security Command Center finding.
///
/// A finding is a record of assessment data (security, risk, health or privacy)
/// ingested into Security Command Center for presentation, notification,
/// analysis, policy testing, and enforcement. For example, an XSS vulnerability
/// in an App Engine application is a finding.
/// </summary>
public sealed partial class Finding : pb::IMessage<Finding> {
private static readonly pb::MessageParser<Finding> _parser = new pb::MessageParser<Finding>(() => new Finding());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Finding> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Cloud.SecurityCenter.V1P1Beta1.FindingReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Finding() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Finding(Finding other) : this() {
name_ = other.name_;
parent_ = other.parent_;
resourceName_ = other.resourceName_;
state_ = other.state_;
category_ = other.category_;
externalUri_ = other.externalUri_;
sourceProperties_ = other.sourceProperties_.Clone();
securityMarks_ = other.securityMarks_ != null ? other.securityMarks_.Clone() : null;
eventTime_ = other.eventTime_ != null ? other.eventTime_.Clone() : null;
createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Finding Clone() {
return new Finding(this);
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 1;
private string name_ = "";
/// <summary>
/// The relative resource name of this finding. See:
/// https://cloud.google.com/apis/design/resource_names#relative_resource_name
/// Example:
/// "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}"
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "parent" field.</summary>
public const int ParentFieldNumber = 2;
private string parent_ = "";
/// <summary>
/// The relative resource name of the source the finding belongs to. See:
/// https://cloud.google.com/apis/design/resource_names#relative_resource_name
/// This field is immutable after creation time.
/// For example:
/// "organizations/{organization_id}/sources/{source_id}"
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Parent {
get { return parent_; }
set {
parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "resource_name" field.</summary>
public const int ResourceNameFieldNumber = 3;
private string resourceName_ = "";
/// <summary>
/// For findings on Google Cloud resources, the full resource
/// name of the Google Cloud resource this finding is for. See:
/// https://cloud.google.com/apis/design/resource_names#full_resource_name
/// When the finding is for a non-Google Cloud resource, the resourceName can
/// be a customer or partner defined string. This field is immutable after
/// creation time.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ResourceName {
get { return resourceName_; }
set {
resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "state" field.</summary>
public const int StateFieldNumber = 4;
private global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State state_ = global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State.Unspecified;
/// <summary>
/// The state of the finding.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State State {
get { return state_; }
set {
state_ = value;
}
}
/// <summary>Field number for the "category" field.</summary>
public const int CategoryFieldNumber = 5;
private string category_ = "";
/// <summary>
/// The additional taxonomy group within findings from a given source.
/// This field is immutable after creation time.
/// Example: "XSS_FLASH_INJECTION"
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Category {
get { return category_; }
set {
category_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "external_uri" field.</summary>
public const int ExternalUriFieldNumber = 6;
private string externalUri_ = "";
/// <summary>
/// The URI that, if available, points to a web page outside of Security
/// Command Center where additional information about the finding can be found.
/// This field is guaranteed to be either empty or a well formed URL.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ExternalUri {
get { return externalUri_; }
set {
externalUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "source_properties" field.</summary>
public const int SourcePropertiesFieldNumber = 7;
private static readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec _map_sourceProperties_codec
= new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Value.Parser), 58);
private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> sourceProperties_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>();
/// <summary>
/// Source specific properties. These properties are managed by the source
/// that writes the finding. The key names in the source_properties map must be
/// between 1 and 255 characters, and must start with a letter and contain
/// alphanumeric characters or underscores only.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> SourceProperties {
get { return sourceProperties_; }
}
/// <summary>Field number for the "security_marks" field.</summary>
public const int SecurityMarksFieldNumber = 8;
private global::Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks securityMarks_;
/// <summary>
/// Output only. User specified security marks. These marks are entirely
/// managed by the user and come from the SecurityMarks resource that belongs
/// to the finding.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks SecurityMarks {
get { return securityMarks_; }
set {
securityMarks_ = value;
}
}
/// <summary>Field number for the "event_time" field.</summary>
public const int EventTimeFieldNumber = 9;
private global::Google.Protobuf.WellKnownTypes.Timestamp eventTime_;
/// <summary>
/// The time at which the event took place. For example, if the finding
/// represents an open firewall it would capture the time the detector believes
/// the firewall became open. The accuracy is determined by the detector.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Timestamp EventTime {
get { return eventTime_; }
set {
eventTime_ = value;
}
}
/// <summary>Field number for the "create_time" field.</summary>
public const int CreateTimeFieldNumber = 10;
private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_;
/// <summary>
/// The time at which the finding was created in Security Command Center.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime {
get { return createTime_; }
set {
createTime_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Finding);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Finding other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (Parent != other.Parent) return false;
if (ResourceName != other.ResourceName) return false;
if (State != other.State) return false;
if (Category != other.Category) return false;
if (ExternalUri != other.ExternalUri) return false;
if (!SourceProperties.Equals(other.SourceProperties)) return false;
if (!object.Equals(SecurityMarks, other.SecurityMarks)) return false;
if (!object.Equals(EventTime, other.EventTime)) return false;
if (!object.Equals(CreateTime, other.CreateTime)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Parent.Length != 0) hash ^= Parent.GetHashCode();
if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode();
if (State != global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State.Unspecified) hash ^= State.GetHashCode();
if (Category.Length != 0) hash ^= Category.GetHashCode();
if (ExternalUri.Length != 0) hash ^= ExternalUri.GetHashCode();
hash ^= SourceProperties.GetHashCode();
if (securityMarks_ != null) hash ^= SecurityMarks.GetHashCode();
if (eventTime_ != null) hash ^= EventTime.GetHashCode();
if (createTime_ != null) hash ^= CreateTime.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (Name.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (Parent.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Parent);
}
if (ResourceName.Length != 0) {
output.WriteRawTag(26);
output.WriteString(ResourceName);
}
if (State != global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State.Unspecified) {
output.WriteRawTag(32);
output.WriteEnum((int) State);
}
if (Category.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Category);
}
if (ExternalUri.Length != 0) {
output.WriteRawTag(50);
output.WriteString(ExternalUri);
}
sourceProperties_.WriteTo(output, _map_sourceProperties_codec);
if (securityMarks_ != null) {
output.WriteRawTag(66);
output.WriteMessage(SecurityMarks);
}
if (eventTime_ != null) {
output.WriteRawTag(74);
output.WriteMessage(EventTime);
}
if (createTime_ != null) {
output.WriteRawTag(82);
output.WriteMessage(CreateTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Parent.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent);
}
if (ResourceName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName);
}
if (State != global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State.Unspecified) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
}
if (Category.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Category);
}
if (ExternalUri.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalUri);
}
size += sourceProperties_.CalculateSize(_map_sourceProperties_codec);
if (securityMarks_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SecurityMarks);
}
if (eventTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventTime);
}
if (createTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Finding other) {
if (other == null) {
return;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Parent.Length != 0) {
Parent = other.Parent;
}
if (other.ResourceName.Length != 0) {
ResourceName = other.ResourceName;
}
if (other.State != global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State.Unspecified) {
State = other.State;
}
if (other.Category.Length != 0) {
Category = other.Category;
}
if (other.ExternalUri.Length != 0) {
ExternalUri = other.ExternalUri;
}
sourceProperties_.Add(other.sourceProperties_);
if (other.securityMarks_ != null) {
if (securityMarks_ == null) {
SecurityMarks = new global::Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks();
}
SecurityMarks.MergeFrom(other.SecurityMarks);
}
if (other.eventTime_ != null) {
if (eventTime_ == null) {
EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
EventTime.MergeFrom(other.EventTime);
}
if (other.createTime_ != null) {
if (createTime_ == null) {
CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
CreateTime.MergeFrom(other.CreateTime);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Name = input.ReadString();
break;
}
case 18: {
Parent = input.ReadString();
break;
}
case 26: {
ResourceName = input.ReadString();
break;
}
case 32: {
State = (global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding.Types.State) input.ReadEnum();
break;
}
case 42: {
Category = input.ReadString();
break;
}
case 50: {
ExternalUri = input.ReadString();
break;
}
case 58: {
sourceProperties_.AddEntriesFrom(input, _map_sourceProperties_codec);
break;
}
case 66: {
if (securityMarks_ == null) {
SecurityMarks = new global::Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks();
}
input.ReadMessage(SecurityMarks);
break;
}
case 74: {
if (eventTime_ == null) {
EventTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EventTime);
break;
}
case 82: {
if (createTime_ == null) {
CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreateTime);
break;
}
}
}
}
#region Nested types
/// <summary>Container for nested types declared in the Finding message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
/// <summary>
/// The state of the finding.
/// </summary>
public enum State {
/// <summary>
/// Unspecified state.
/// </summary>
[pbr::OriginalName("STATE_UNSPECIFIED")] Unspecified = 0,
/// <summary>
/// The finding requires attention and has not been addressed yet.
/// </summary>
[pbr::OriginalName("ACTIVE")] Active = 1,
/// <summary>
/// The finding has been fixed, triaged as a non-issue or otherwise addressed
/// and is no longer active.
/// </summary>
[pbr::OriginalName("INACTIVE")] Inactive = 2,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code