Skip to content

Commit

Permalink
feat: Add container.create_time, vulnerability.offending_package, vul…
Browse files Browse the repository at this point in the history
…nerability.fixed_package, vulnerability.security_bulletin, vulnerability.cve.impact, vulnerability.cve.exploitation_activity, vulnerability.cve.observed_in_the_wild, vulnerability.cve.zero_day to finding's list of attributes

PiperOrigin-RevId: 611114785

Source-Link: googleapis/googleapis@4bde689

Source-Link: googleapis/googleapis-gen@b1cd799
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VjdXJpdHlDZW50ZXIuVjEvLk93bEJvdC55YW1sIiwiaCI6ImIxY2Q3OTljNGUxMjQ3ZjcwNDcxZmMzNzA5NjNkMTRhYmZiMDI1N2MifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Feb 29, 2024
1 parent 9a0a192 commit bafbb2b
Show file tree
Hide file tree
Showing 2 changed files with 1,115 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,21 @@ public static partial class ContainerReflection {
string.Concat(
"Ci5nb29nbGUvY2xvdWQvc2VjdXJpdHljZW50ZXIvdjEvY29udGFpbmVyLnBy",
"b3RvEh5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjEaKmdvb2dsZS9j",
"bG91ZC9zZWN1cml0eWNlbnRlci92MS9sYWJlbC5wcm90byJvCglDb250YWlu",
"ZXISDAoEbmFtZRgBIAEoCRILCgN1cmkYAiABKAkSEAoIaW1hZ2VfaWQYAyAB",
"KAkSNQoGbGFiZWxzGAQgAygLMiUuZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2Vu",
"dGVyLnYxLkxhYmVsQugBCiJjb20uZ29vZ2xlLmNsb3VkLnNlY3VyaXR5Y2Vu",
"dGVyLnYxQg5Db250YWluZXJQcm90b1ABWkpjbG91ZC5nb29nbGUuY29tL2dv",
"L3NlY3VyaXR5Y2VudGVyL2FwaXYxL3NlY3VyaXR5Y2VudGVycGI7c2VjdXJp",
"dHljZW50ZXJwYqoCHkdvb2dsZS5DbG91ZC5TZWN1cml0eUNlbnRlci5WMcoC",
"Hkdvb2dsZVxDbG91ZFxTZWN1cml0eUNlbnRlclxWMeoCIUdvb2dsZTo6Q2xv",
"dWQ6OlNlY3VyaXR5Q2VudGVyOjpWMWIGcHJvdG8z"));
"bG91ZC9zZWN1cml0eWNlbnRlci92MS9sYWJlbC5wcm90bxofZ29vZ2xlL3By",
"b3RvYnVmL3RpbWVzdGFtcC5wcm90byKgAQoJQ29udGFpbmVyEgwKBG5hbWUY",
"ASABKAkSCwoDdXJpGAIgASgJEhAKCGltYWdlX2lkGAMgASgJEjUKBmxhYmVs",
"cxgEIAMoCzIlLmdvb2dsZS5jbG91ZC5zZWN1cml0eWNlbnRlci52MS5MYWJl",
"bBIvCgtjcmVhdGVfdGltZRgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l",
"c3RhbXBC6AEKImNvbS5nb29nbGUuY2xvdWQuc2VjdXJpdHljZW50ZXIudjFC",
"DkNvbnRhaW5lclByb3RvUAFaSmNsb3VkLmdvb2dsZS5jb20vZ28vc2VjdXJp",
"dHljZW50ZXIvYXBpdjEvc2VjdXJpdHljZW50ZXJwYjtzZWN1cml0eWNlbnRl",
"cnBiqgIeR29vZ2xlLkNsb3VkLlNlY3VyaXR5Q2VudGVyLlYxygIeR29vZ2xl",
"XENsb3VkXFNlY3VyaXR5Q2VudGVyXFYx6gIhR29vZ2xlOjpDbG91ZDo6U2Vj",
"dXJpdHlDZW50ZXI6OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Cloud.SecurityCenter.V1.LabelReflection.Descriptor, },
new pbr::FileDescriptor[] { global::Google.Cloud.SecurityCenter.V1.LabelReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Container), global::Google.Cloud.SecurityCenter.V1.Container.Parser, new[]{ "Name", "Uri", "ImageId", "Labels" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.SecurityCenter.V1.Container), global::Google.Cloud.SecurityCenter.V1.Container.Parser, new[]{ "Name", "Uri", "ImageId", "Labels", "CreateTime" }, null, null, null, null)
}));
}
#endregion
Expand Down Expand Up @@ -87,6 +89,7 @@ public sealed partial class Container : pb::IMessage<Container>
uri_ = other.uri_;
imageId_ = other.imageId_;
labels_ = other.labels_.Clone();
createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}

Expand Down Expand Up @@ -157,6 +160,21 @@ public sealed partial class Container : pb::IMessage<Container>
get { return labels_; }
}

/// <summary>Field number for the "create_time" field.</summary>
public const int CreateTimeFieldNumber = 5;
private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_;
/// <summary>
/// The time that the container was created.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime {
get { return createTime_; }
set {
createTime_ = value;
}
}

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
Expand All @@ -176,6 +194,7 @@ public sealed partial class Container : pb::IMessage<Container>
if (Uri != other.Uri) return false;
if (ImageId != other.ImageId) return false;
if(!labels_.Equals(other.labels_)) return false;
if (!object.Equals(CreateTime, other.CreateTime)) return false;
return Equals(_unknownFields, other._unknownFields);
}

Expand All @@ -187,6 +206,7 @@ public sealed partial class Container : pb::IMessage<Container>
if (Uri.Length != 0) hash ^= Uri.GetHashCode();
if (ImageId.Length != 0) hash ^= ImageId.GetHashCode();
hash ^= labels_.GetHashCode();
if (createTime_ != null) hash ^= CreateTime.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
Expand Down Expand Up @@ -218,6 +238,10 @@ public sealed partial class Container : pb::IMessage<Container>
output.WriteString(ImageId);
}
labels_.WriteTo(output, _repeated_labels_codec);
if (createTime_ != null) {
output.WriteRawTag(42);
output.WriteMessage(CreateTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
Expand All @@ -241,6 +265,10 @@ public sealed partial class Container : pb::IMessage<Container>
output.WriteString(ImageId);
}
labels_.WriteTo(ref output, _repeated_labels_codec);
if (createTime_ != null) {
output.WriteRawTag(42);
output.WriteMessage(CreateTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
Expand All @@ -261,6 +289,9 @@ public sealed partial class Container : pb::IMessage<Container>
size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageId);
}
size += labels_.CalculateSize(_repeated_labels_codec);
if (createTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
Expand All @@ -283,6 +314,12 @@ public sealed partial class Container : pb::IMessage<Container>
ImageId = other.ImageId;
}
labels_.Add(other.labels_);
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);
}

Expand Down Expand Up @@ -314,6 +351,13 @@ public sealed partial class Container : pb::IMessage<Container>
labels_.AddEntriesFrom(input, _repeated_labels_codec);
break;
}
case 42: {
if (createTime_ == null) {
CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreateTime);
break;
}
}
}
#endif
Expand Down Expand Up @@ -345,6 +389,13 @@ public sealed partial class Container : pb::IMessage<Container>
labels_.AddEntriesFrom(ref input, _repeated_labels_codec);
break;
}
case 42: {
if (createTime_ == null) {
CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreateTime);
break;
}
}
}
}
Expand Down
Loading

0 comments on commit bafbb2b

Please sign in to comment.