grafeas-v1 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e547f1df4a788bb7183f29e649f482ed367e4e38e85f2b1ded030b63e78bb0e
4
- data.tar.gz: ef830f18645f267be08db537f1fcab4cb99394347b6d2721714ebcb7c48e9f59
3
+ metadata.gz: bec07dddcbc243a49f13fcac9ebd1c062544cb2dc29932c8e4d23188176dfb7b
4
+ data.tar.gz: 0fda263a0822ef9191db710492ed9d8b123c3d168ecb49c4afe2112b0b84a334
5
5
  SHA512:
6
- metadata.gz: 986d94446c42d284be3f3692c5416bfd323bd7ec03ede9c9cfff1d0918da2acb290152d60990678ce12a8b9caef98ce6e59702f8613ed52b7920542b2e68ce61
7
- data.tar.gz: b116771fa252e447dc1959a0189ee8b8a08dbe8046f24a5357551c9b5b431af5ea7c3294bd7123a20ef9e20d2ecdbc5c825465e4f884376bdfd563e9b20ed1ef
6
+ metadata.gz: e8bf5043cbaca6c9e730c2301202b1ae10ae593bc4d22608ba27bfb6af80b413a994b86201d30d2193b4e3bf5fc1d4b8d46618869bae179d4533ff6528c335d8
7
+ data.tar.gz: 356e96ccdae069336c45c6189ba0bb223e2bdafc375527904b83bae46900929843c97eff9f2601e33e154178e1515bd7198d7a9f75d729a9d1292347bcf5fe38
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/attestation.proto
3
4
 
@@ -5,23 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'grafeas/v1/common_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("grafeas/v1/attestation.proto", :syntax => :proto3) do
10
- add_message "grafeas.v1.AttestationNote" do
11
- optional :hint, :message, 1, "grafeas.v1.AttestationNote.Hint"
12
- end
13
- add_message "grafeas.v1.AttestationNote.Hint" do
14
- optional :human_readable_name, :string, 1
15
- end
16
- add_message "grafeas.v1.Jwt" do
17
- optional :compact_jwt, :string, 1
18
- end
19
- add_message "grafeas.v1.AttestationOccurrence" do
20
- optional :serialized_payload, :bytes, 1
21
- repeated :signatures, :message, 2, "grafeas.v1.Signature"
22
- repeated :jwts, :message, 3, "grafeas.v1.Jwt"
9
+
10
+ descriptor_data = "\n\x1cgrafeas/v1/attestation.proto\x12\ngrafeas.v1\x1a\x17grafeas/v1/common.proto\"f\n\x0f\x41ttestationNote\x12.\n\x04hint\x18\x01 \x01(\x0b\x32 .grafeas.v1.AttestationNote.Hint\x1a#\n\x04Hint\x12\x1b\n\x13human_readable_name\x18\x01 \x01(\t\"\x1a\n\x03Jwt\x12\x13\n\x0b\x63ompact_jwt\x18\x01 \x01(\t\"}\n\x15\x41ttestationOccurrence\x12\x1a\n\x12serialized_payload\x18\x01 \x01(\x0c\x12)\n\nsignatures\x18\x02 \x03(\x0b\x32\x15.grafeas.v1.Signature\x12\x1d\n\x04jwts\x18\x03 \x03(\x0b\x32\x0f.grafeas.v1.JwtBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["grafeas.v1.Signature", "grafeas/v1/common.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
23
31
  end
24
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
25
35
  end
26
36
 
27
37
  module Grafeas
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/build.proto
3
4
 
@@ -7,18 +8,34 @@ require 'grafeas/v1/intoto_provenance_pb'
7
8
  require 'grafeas/v1/intoto_statement_pb'
8
9
  require 'grafeas/v1/provenance_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("grafeas/v1/build.proto", :syntax => :proto3) do
12
- add_message "grafeas.v1.BuildNote" do
13
- optional :builder_version, :string, 1
14
- end
15
- add_message "grafeas.v1.BuildOccurrence" do
16
- optional :provenance, :message, 1, "grafeas.v1.BuildProvenance"
17
- optional :provenance_bytes, :string, 2
18
- optional :intoto_provenance, :message, 3, "grafeas.v1.InTotoProvenance"
19
- optional :intoto_statement, :message, 4, "grafeas.v1.InTotoStatement"
11
+
12
+ descriptor_data = "\n\x16grafeas/v1/build.proto\x12\ngrafeas.v1\x1a\"grafeas/v1/intoto_provenance.proto\x1a!grafeas/v1/intoto_statement.proto\x1a\x1bgrafeas/v1/provenance.proto\"$\n\tBuildNote\x12\x17\n\x0f\x62uilder_version\x18\x01 \x01(\t\"\xcc\x01\n\x0f\x42uildOccurrence\x12/\n\nprovenance\x18\x01 \x01(\x0b\x32\x1b.grafeas.v1.BuildProvenance\x12\x18\n\x10provenance_bytes\x18\x02 \x01(\t\x12\x37\n\x11intoto_provenance\x18\x03 \x01(\x0b\x32\x1c.grafeas.v1.InTotoProvenance\x12\x35\n\x10intoto_statement\x18\x04 \x01(\x0b\x32\x1b.grafeas.v1.InTotoStatementBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["grafeas.v1.BuildProvenance", "grafeas/v1/provenance.proto"],
28
+ ["grafeas.v1.InTotoProvenance", "grafeas/v1/intoto_provenance.proto"],
29
+ ["grafeas.v1.InTotoStatement", "grafeas/v1/intoto_statement.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
20
35
  end
21
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
22
39
  end
23
40
 
24
41
  module Grafeas
@@ -1,53 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/common.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("grafeas/v1/common.proto", :syntax => :proto3) do
8
- add_message "grafeas.v1.RelatedUrl" do
9
- optional :url, :string, 1
10
- optional :label, :string, 2
11
- end
12
- add_message "grafeas.v1.Signature" do
13
- optional :signature, :bytes, 1
14
- optional :public_key_id, :string, 2
15
- end
16
- add_message "grafeas.v1.Envelope" do
17
- optional :payload, :bytes, 1
18
- optional :payload_type, :string, 2
19
- repeated :signatures, :message, 3, "grafeas.v1.EnvelopeSignature"
20
- end
21
- add_message "grafeas.v1.EnvelopeSignature" do
22
- optional :sig, :bytes, 1
23
- optional :keyid, :string, 2
24
- end
25
- add_message "grafeas.v1.FileLocation" do
26
- optional :file_path, :string, 1
27
- end
28
- add_message "grafeas.v1.License" do
29
- optional :expression, :string, 1
30
- optional :comments, :string, 2
31
- end
32
- add_message "grafeas.v1.Digest" do
33
- optional :algo, :string, 1
34
- optional :digest_bytes, :bytes, 2
35
- end
36
- add_enum "grafeas.v1.NoteKind" do
37
- value :NOTE_KIND_UNSPECIFIED, 0
38
- value :VULNERABILITY, 1
39
- value :BUILD, 2
40
- value :IMAGE, 3
41
- value :PACKAGE, 4
42
- value :DEPLOYMENT, 5
43
- value :DISCOVERY, 6
44
- value :ATTESTATION, 7
45
- value :UPGRADE, 8
46
- value :COMPLIANCE, 9
47
- value :DSSE_ATTESTATION, 10
48
- value :VULNERABILITY_ASSESSMENT, 11
7
+
8
+ descriptor_data = "\n\x17grafeas/v1/common.proto\x12\ngrafeas.v1\"(\n\nRelatedUrl\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\"5\n\tSignature\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x15\n\rpublic_key_id\x18\x02 \x01(\t\"d\n\x08\x45nvelope\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x14\n\x0cpayload_type\x18\x02 \x01(\t\x12\x31\n\nsignatures\x18\x03 \x03(\x0b\x32\x1d.grafeas.v1.EnvelopeSignature\"/\n\x11\x45nvelopeSignature\x12\x0b\n\x03sig\x18\x01 \x01(\x0c\x12\r\n\x05keyid\x18\x02 \x01(\t\"!\n\x0c\x46ileLocation\x12\x11\n\tfile_path\x18\x01 \x01(\t\"/\n\x07License\x12\x12\n\nexpression\x18\x01 \x01(\t\x12\x10\n\x08\x63omments\x18\x02 \x01(\t\",\n\x06\x44igest\x12\x0c\n\x04\x61lgo\x18\x01 \x01(\t\x12\x14\n\x0c\x64igest_bytes\x18\x02 \x01(\x0c*\xdc\x01\n\x08NoteKind\x12\x19\n\x15NOTE_KIND_UNSPECIFIED\x10\x00\x12\x11\n\rVULNERABILITY\x10\x01\x12\t\n\x05\x42UILD\x10\x02\x12\t\n\x05IMAGE\x10\x03\x12\x0b\n\x07PACKAGE\x10\x04\x12\x0e\n\nDEPLOYMENT\x10\x05\x12\r\n\tDISCOVERY\x10\x06\x12\x0f\n\x0b\x41TTESTATION\x10\x07\x12\x0b\n\x07UPGRADE\x10\x08\x12\x0e\n\nCOMPLIANCE\x10\t\x12\x14\n\x10\x44SSE_ATTESTATION\x10\n\x12\x1c\n\x18VULNERABILITY_ASSESSMENT\x10\x0b\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
49
28
  end
50
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
51
32
  end
52
33
 
53
34
  module Grafeas
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/compliance.proto
3
4
 
@@ -5,38 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'grafeas/v1/severity_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("grafeas/v1/compliance.proto", :syntax => :proto3) do
10
- add_message "grafeas.v1.ComplianceNote" do
11
- optional :title, :string, 1
12
- optional :description, :string, 2
13
- repeated :version, :message, 3, "grafeas.v1.ComplianceVersion"
14
- optional :rationale, :string, 4
15
- optional :remediation, :string, 5
16
- optional :scan_instructions, :bytes, 7
17
- oneof :compliance_type do
18
- optional :cis_benchmark, :message, 6, "grafeas.v1.ComplianceNote.CisBenchmark"
19
- end
20
- end
21
- add_message "grafeas.v1.ComplianceNote.CisBenchmark" do
22
- optional :profile_level, :int32, 1
23
- optional :severity, :enum, 2, "grafeas.v1.Severity"
24
- end
25
- add_message "grafeas.v1.ComplianceVersion" do
26
- optional :cpe_uri, :string, 1
27
- optional :benchmark_document, :string, 3
28
- optional :version, :string, 2
29
- end
30
- add_message "grafeas.v1.ComplianceOccurrence" do
31
- repeated :non_compliant_files, :message, 2, "grafeas.v1.NonCompliantFile"
32
- optional :non_compliance_reason, :string, 3
33
- end
34
- add_message "grafeas.v1.NonCompliantFile" do
35
- optional :path, :string, 1
36
- optional :display_command, :string, 2
37
- optional :reason, :string, 3
9
+
10
+ descriptor_data = "\n\x1bgrafeas/v1/compliance.proto\x12\ngrafeas.v1\x1a\x19grafeas/v1/severity.proto\"\xcb\x02\n\x0e\x43omplianceNote\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12.\n\x07version\x18\x03 \x03(\x0b\x32\x1d.grafeas.v1.ComplianceVersion\x12\x11\n\trationale\x18\x04 \x01(\t\x12\x13\n\x0bremediation\x18\x05 \x01(\t\x12@\n\rcis_benchmark\x18\x06 \x01(\x0b\x32\'.grafeas.v1.ComplianceNote.CisBenchmarkH\x00\x12\x19\n\x11scan_instructions\x18\x07 \x01(\x0c\x1aM\n\x0c\x43isBenchmark\x12\x15\n\rprofile_level\x18\x01 \x01(\x05\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.SeverityB\x11\n\x0f\x63ompliance_type\"Q\n\x11\x43omplianceVersion\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12\x1a\n\x12\x62\x65nchmark_document\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\"p\n\x14\x43omplianceOccurrence\x12\x39\n\x13non_compliant_files\x18\x02 \x03(\x0b\x32\x1c.grafeas.v1.NonCompliantFile\x12\x1d\n\x15non_compliance_reason\x18\x03 \x01(\t\"I\n\x10NonCompliantFile\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x17\n\x0f\x64isplay_command\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\tBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
38
30
  end
39
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
40
34
  end
41
35
 
42
36
  module Grafeas
@@ -1,120 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/cvss.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("grafeas/v1/cvss.proto", :syntax => :proto3) do
8
- add_message "grafeas.v1.CVSSv3" do
9
- optional :base_score, :float, 1
10
- optional :exploitability_score, :float, 2
11
- optional :impact_score, :float, 3
12
- optional :attack_vector, :enum, 5, "grafeas.v1.CVSSv3.AttackVector"
13
- optional :attack_complexity, :enum, 6, "grafeas.v1.CVSSv3.AttackComplexity"
14
- optional :privileges_required, :enum, 7, "grafeas.v1.CVSSv3.PrivilegesRequired"
15
- optional :user_interaction, :enum, 8, "grafeas.v1.CVSSv3.UserInteraction"
16
- optional :scope, :enum, 9, "grafeas.v1.CVSSv3.Scope"
17
- optional :confidentiality_impact, :enum, 10, "grafeas.v1.CVSSv3.Impact"
18
- optional :integrity_impact, :enum, 11, "grafeas.v1.CVSSv3.Impact"
19
- optional :availability_impact, :enum, 12, "grafeas.v1.CVSSv3.Impact"
20
- end
21
- add_enum "grafeas.v1.CVSSv3.AttackVector" do
22
- value :ATTACK_VECTOR_UNSPECIFIED, 0
23
- value :ATTACK_VECTOR_NETWORK, 1
24
- value :ATTACK_VECTOR_ADJACENT, 2
25
- value :ATTACK_VECTOR_LOCAL, 3
26
- value :ATTACK_VECTOR_PHYSICAL, 4
27
- end
28
- add_enum "grafeas.v1.CVSSv3.AttackComplexity" do
29
- value :ATTACK_COMPLEXITY_UNSPECIFIED, 0
30
- value :ATTACK_COMPLEXITY_LOW, 1
31
- value :ATTACK_COMPLEXITY_HIGH, 2
32
- end
33
- add_enum "grafeas.v1.CVSSv3.PrivilegesRequired" do
34
- value :PRIVILEGES_REQUIRED_UNSPECIFIED, 0
35
- value :PRIVILEGES_REQUIRED_NONE, 1
36
- value :PRIVILEGES_REQUIRED_LOW, 2
37
- value :PRIVILEGES_REQUIRED_HIGH, 3
38
- end
39
- add_enum "grafeas.v1.CVSSv3.UserInteraction" do
40
- value :USER_INTERACTION_UNSPECIFIED, 0
41
- value :USER_INTERACTION_NONE, 1
42
- value :USER_INTERACTION_REQUIRED, 2
43
- end
44
- add_enum "grafeas.v1.CVSSv3.Scope" do
45
- value :SCOPE_UNSPECIFIED, 0
46
- value :SCOPE_UNCHANGED, 1
47
- value :SCOPE_CHANGED, 2
48
- end
49
- add_enum "grafeas.v1.CVSSv3.Impact" do
50
- value :IMPACT_UNSPECIFIED, 0
51
- value :IMPACT_HIGH, 1
52
- value :IMPACT_LOW, 2
53
- value :IMPACT_NONE, 3
54
- end
55
- add_message "grafeas.v1.CVSS" do
56
- optional :base_score, :float, 1
57
- optional :exploitability_score, :float, 2
58
- optional :impact_score, :float, 3
59
- optional :attack_vector, :enum, 4, "grafeas.v1.CVSS.AttackVector"
60
- optional :attack_complexity, :enum, 5, "grafeas.v1.CVSS.AttackComplexity"
61
- optional :authentication, :enum, 6, "grafeas.v1.CVSS.Authentication"
62
- optional :privileges_required, :enum, 7, "grafeas.v1.CVSS.PrivilegesRequired"
63
- optional :user_interaction, :enum, 8, "grafeas.v1.CVSS.UserInteraction"
64
- optional :scope, :enum, 9, "grafeas.v1.CVSS.Scope"
65
- optional :confidentiality_impact, :enum, 10, "grafeas.v1.CVSS.Impact"
66
- optional :integrity_impact, :enum, 11, "grafeas.v1.CVSS.Impact"
67
- optional :availability_impact, :enum, 12, "grafeas.v1.CVSS.Impact"
68
- end
69
- add_enum "grafeas.v1.CVSS.AttackVector" do
70
- value :ATTACK_VECTOR_UNSPECIFIED, 0
71
- value :ATTACK_VECTOR_NETWORK, 1
72
- value :ATTACK_VECTOR_ADJACENT, 2
73
- value :ATTACK_VECTOR_LOCAL, 3
74
- value :ATTACK_VECTOR_PHYSICAL, 4
75
- end
76
- add_enum "grafeas.v1.CVSS.AttackComplexity" do
77
- value :ATTACK_COMPLEXITY_UNSPECIFIED, 0
78
- value :ATTACK_COMPLEXITY_LOW, 1
79
- value :ATTACK_COMPLEXITY_HIGH, 2
80
- value :ATTACK_COMPLEXITY_MEDIUM, 3
81
- end
82
- add_enum "grafeas.v1.CVSS.Authentication" do
83
- value :AUTHENTICATION_UNSPECIFIED, 0
84
- value :AUTHENTICATION_MULTIPLE, 1
85
- value :AUTHENTICATION_SINGLE, 2
86
- value :AUTHENTICATION_NONE, 3
87
- end
88
- add_enum "grafeas.v1.CVSS.PrivilegesRequired" do
89
- value :PRIVILEGES_REQUIRED_UNSPECIFIED, 0
90
- value :PRIVILEGES_REQUIRED_NONE, 1
91
- value :PRIVILEGES_REQUIRED_LOW, 2
92
- value :PRIVILEGES_REQUIRED_HIGH, 3
93
- end
94
- add_enum "grafeas.v1.CVSS.UserInteraction" do
95
- value :USER_INTERACTION_UNSPECIFIED, 0
96
- value :USER_INTERACTION_NONE, 1
97
- value :USER_INTERACTION_REQUIRED, 2
98
- end
99
- add_enum "grafeas.v1.CVSS.Scope" do
100
- value :SCOPE_UNSPECIFIED, 0
101
- value :SCOPE_UNCHANGED, 1
102
- value :SCOPE_CHANGED, 2
103
- end
104
- add_enum "grafeas.v1.CVSS.Impact" do
105
- value :IMPACT_UNSPECIFIED, 0
106
- value :IMPACT_HIGH, 1
107
- value :IMPACT_LOW, 2
108
- value :IMPACT_NONE, 3
109
- value :IMPACT_PARTIAL, 4
110
- value :IMPACT_COMPLETE, 5
111
- end
112
- add_enum "grafeas.v1.CVSSVersion" do
113
- value :CVSS_VERSION_UNSPECIFIED, 0
114
- value :CVSS_VERSION_2, 1
115
- value :CVSS_VERSION_3, 2
7
+
8
+ descriptor_data = "\n\x15grafeas/v1/cvss.proto\x12\ngrafeas.v1\"\xc5\t\n\x06\x43VSSv3\x12\x12\n\nbase_score\x18\x01 \x01(\x02\x12\x1c\n\x14\x65xploitability_score\x18\x02 \x01(\x02\x12\x14\n\x0cimpact_score\x18\x03 \x01(\x02\x12\x36\n\rattack_vector\x18\x05 \x01(\x0e\x32\x1f.grafeas.v1.CVSSv3.AttackVector\x12>\n\x11\x61ttack_complexity\x18\x06 \x01(\x0e\x32#.grafeas.v1.CVSSv3.AttackComplexity\x12\x42\n\x13privileges_required\x18\x07 \x01(\x0e\x32%.grafeas.v1.CVSSv3.PrivilegesRequired\x12<\n\x10user_interaction\x18\x08 \x01(\x0e\x32\".grafeas.v1.CVSSv3.UserInteraction\x12\'\n\x05scope\x18\t \x01(\x0e\x32\x18.grafeas.v1.CVSSv3.Scope\x12\x39\n\x16\x63onfidentiality_impact\x18\n \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact\x12\x33\n\x10integrity_impact\x18\x0b \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact\x12\x36\n\x13\x61vailability_impact\x18\x0c \x01(\x0e\x32\x19.grafeas.v1.CVSSv3.Impact\"\x99\x01\n\x0c\x41ttackVector\x12\x1d\n\x19\x41TTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16\x41TTACK_VECTOR_ADJACENT\x10\x02\x12\x17\n\x13\x41TTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16\x41TTACK_VECTOR_PHYSICAL\x10\x04\"l\n\x10\x41ttackComplexity\x12!\n\x1d\x41TTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_COMPLEXITY_LOW\x10\x01\x12\x1a\n\x16\x41TTACK_COMPLEXITY_HIGH\x10\x02\"\x92\x01\n\x12PrivilegesRequired\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1c\n\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\n\x0fUserInteraction\x12 \n\x1cUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\n\x15USER_INTERACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02\"F\n\x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSCOPE_UNCHANGED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02\"R\n\x06Impact\x12\x16\n\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03\"\xb8\x0b\n\x04\x43VSS\x12\x12\n\nbase_score\x18\x01 \x01(\x02\x12\x1c\n\x14\x65xploitability_score\x18\x02 \x01(\x02\x12\x14\n\x0cimpact_score\x18\x03 \x01(\x02\x12\x34\n\rattack_vector\x18\x04 \x01(\x0e\x32\x1d.grafeas.v1.CVSS.AttackVector\x12<\n\x11\x61ttack_complexity\x18\x05 \x01(\x0e\x32!.grafeas.v1.CVSS.AttackComplexity\x12\x37\n\x0e\x61uthentication\x18\x06 \x01(\x0e\x32\x1f.grafeas.v1.CVSS.Authentication\x12@\n\x13privileges_required\x18\x07 \x01(\x0e\x32#.grafeas.v1.CVSS.PrivilegesRequired\x12:\n\x10user_interaction\x18\x08 \x01(\x0e\x32 .grafeas.v1.CVSS.UserInteraction\x12%\n\x05scope\x18\t \x01(\x0e\x32\x16.grafeas.v1.CVSS.Scope\x12\x37\n\x16\x63onfidentiality_impact\x18\n \x01(\x0e\x32\x17.grafeas.v1.CVSS.Impact\x12\x31\n\x10integrity_impact\x18\x0b \x01(\x0e\x32\x17.grafeas.v1.CVSS.Impact\x12\x34\n\x13\x61vailability_impact\x18\x0c \x01(\x0e\x32\x17.grafeas.v1.CVSS.Impact\"\x99\x01\n\x0c\x41ttackVector\x12\x1d\n\x19\x41TTACK_VECTOR_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_VECTOR_NETWORK\x10\x01\x12\x1a\n\x16\x41TTACK_VECTOR_ADJACENT\x10\x02\x12\x17\n\x13\x41TTACK_VECTOR_LOCAL\x10\x03\x12\x1a\n\x16\x41TTACK_VECTOR_PHYSICAL\x10\x04\"\x8a\x01\n\x10\x41ttackComplexity\x12!\n\x1d\x41TTACK_COMPLEXITY_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41TTACK_COMPLEXITY_LOW\x10\x01\x12\x1a\n\x16\x41TTACK_COMPLEXITY_HIGH\x10\x02\x12\x1c\n\x18\x41TTACK_COMPLEXITY_MEDIUM\x10\x03\"\x81\x01\n\x0e\x41uthentication\x12\x1e\n\x1a\x41UTHENTICATION_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x41UTHENTICATION_MULTIPLE\x10\x01\x12\x19\n\x15\x41UTHENTICATION_SINGLE\x10\x02\x12\x17\n\x13\x41UTHENTICATION_NONE\x10\x03\"\x92\x01\n\x12PrivilegesRequired\x12#\n\x1fPRIVILEGES_REQUIRED_UNSPECIFIED\x10\x00\x12\x1c\n\x18PRIVILEGES_REQUIRED_NONE\x10\x01\x12\x1b\n\x17PRIVILEGES_REQUIRED_LOW\x10\x02\x12\x1c\n\x18PRIVILEGES_REQUIRED_HIGH\x10\x03\"m\n\x0fUserInteraction\x12 \n\x1cUSER_INTERACTION_UNSPECIFIED\x10\x00\x12\x19\n\x15USER_INTERACTION_NONE\x10\x01\x12\x1d\n\x19USER_INTERACTION_REQUIRED\x10\x02\"F\n\x05Scope\x12\x15\n\x11SCOPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSCOPE_UNCHANGED\x10\x01\x12\x11\n\rSCOPE_CHANGED\x10\x02\"{\n\x06Impact\x12\x16\n\x12IMPACT_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIMPACT_HIGH\x10\x01\x12\x0e\n\nIMPACT_LOW\x10\x02\x12\x0f\n\x0bIMPACT_NONE\x10\x03\x12\x12\n\x0eIMPACT_PARTIAL\x10\x04\x12\x13\n\x0fIMPACT_COMPLETE\x10\x05*S\n\x0b\x43VSSVersion\x12\x1c\n\x18\x43VSS_VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43VSS_VERSION_2\x10\x01\x12\x12\n\x0e\x43VSS_VERSION_3\x10\x02\x42\\\n\rio.grafeas.v1B\tCVSSProtoP\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
116
28
  end
117
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
118
32
  end
119
33
 
120
34
  module Grafeas
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/deployment.proto
3
4
 
@@ -5,27 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("grafeas/v1/deployment.proto", :syntax => :proto3) do
10
- add_message "grafeas.v1.DeploymentNote" do
11
- repeated :resource_uri, :string, 1
12
- end
13
- add_message "grafeas.v1.DeploymentOccurrence" do
14
- optional :user_email, :string, 1
15
- optional :deploy_time, :message, 2, "google.protobuf.Timestamp"
16
- optional :undeploy_time, :message, 3, "google.protobuf.Timestamp"
17
- optional :config, :string, 4
18
- optional :address, :string, 5
19
- repeated :resource_uri, :string, 6
20
- optional :platform, :enum, 7, "grafeas.v1.DeploymentOccurrence.Platform"
21
- end
22
- add_enum "grafeas.v1.DeploymentOccurrence.Platform" do
23
- value :PLATFORM_UNSPECIFIED, 0
24
- value :GKE, 1
25
- value :FLEX, 2
26
- value :CUSTOM, 3
9
+
10
+ descriptor_data = "\n\x1bgrafeas/v1/deployment.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"&\n\x0e\x44\x65ploymentNote\x12\x14\n\x0cresource_uri\x18\x01 \x03(\t\"\xc7\x02\n\x14\x44\x65ploymentOccurrence\x12\x12\n\nuser_email\x18\x01 \x01(\t\x12/\n\x0b\x64\x65ploy_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rundeploy_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x63onfig\x18\x04 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x05 \x01(\t\x12\x14\n\x0cresource_uri\x18\x06 \x03(\t\x12;\n\x08platform\x18\x07 \x01(\x0e\x32).grafeas.v1.DeploymentOccurrence.Platform\"C\n\x08Platform\x12\x18\n\x14PLATFORM_UNSPECIFIED\x10\x00\x12\x07\n\x03GKE\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\x12\n\n\x06\x43USTOM\x10\x03\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
27
31
  end
28
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
29
35
  end
30
36
 
31
37
  module Grafeas
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/discovery.proto
3
4
 
@@ -8,39 +9,33 @@ require 'google/protobuf/timestamp_pb'
8
9
  require 'google/rpc/status_pb'
9
10
  require 'grafeas/v1/common_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("grafeas/v1/discovery.proto", :syntax => :proto3) do
13
- add_message "grafeas.v1.DiscoveryNote" do
14
- optional :analysis_kind, :enum, 1, "grafeas.v1.NoteKind"
15
- end
16
- add_message "grafeas.v1.DiscoveryOccurrence" do
17
- optional :continuous_analysis, :enum, 1, "grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis"
18
- optional :analysis_status, :enum, 2, "grafeas.v1.DiscoveryOccurrence.AnalysisStatus"
19
- optional :analysis_completed, :message, 7, "grafeas.v1.DiscoveryOccurrence.AnalysisCompleted"
20
- repeated :analysis_error, :message, 8, "google.rpc.Status"
21
- optional :analysis_status_error, :message, 3, "google.rpc.Status"
22
- optional :cpe, :string, 4
23
- optional :last_scan_time, :message, 5, "google.protobuf.Timestamp"
24
- optional :archive_time, :message, 6, "google.protobuf.Timestamp"
25
- end
26
- add_message "grafeas.v1.DiscoveryOccurrence.AnalysisCompleted" do
27
- repeated :analysis_type, :string, 1
28
- end
29
- add_enum "grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis" do
30
- value :CONTINUOUS_ANALYSIS_UNSPECIFIED, 0
31
- value :ACTIVE, 1
32
- value :INACTIVE, 2
33
- end
34
- add_enum "grafeas.v1.DiscoveryOccurrence.AnalysisStatus" do
35
- value :ANALYSIS_STATUS_UNSPECIFIED, 0
36
- value :PENDING, 1
37
- value :SCANNING, 2
38
- value :FINISHED_SUCCESS, 3
39
- value :COMPLETE, 3
40
- value :FINISHED_FAILED, 4
41
- value :FINISHED_UNSUPPORTED, 5
12
+
13
+ descriptor_data = "\n\x1agrafeas/v1/discovery.proto\x12\ngrafeas.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17grafeas/v1/common.proto\"<\n\rDiscoveryNote\x12+\n\ranalysis_kind\x18\x01 \x01(\x0e\x32\x14.grafeas.v1.NoteKind\"\xfc\x05\n\x13\x44iscoveryOccurrence\x12O\n\x13\x63ontinuous_analysis\x18\x01 \x01(\x0e\x32\x32.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis\x12G\n\x0f\x61nalysis_status\x18\x02 \x01(\x0e\x32..grafeas.v1.DiscoveryOccurrence.AnalysisStatus\x12M\n\x12\x61nalysis_completed\x18\x07 \x01(\x0b\x32\x31.grafeas.v1.DiscoveryOccurrence.AnalysisCompleted\x12*\n\x0e\x61nalysis_error\x18\x08 \x03(\x0b\x32\x12.google.rpc.Status\x12\x31\n\x15\x61nalysis_status_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x0b\n\x03\x63pe\x18\x04 \x01(\t\x12\x32\n\x0elast_scan_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0c\x61rchive_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a*\n\x11\x41nalysisCompleted\x12\x15\n\ranalysis_type\x18\x01 \x03(\t\"S\n\x12\x43ontinuousAnalysis\x12#\n\x1f\x43ONTINUOUS_ANALYSIS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08INACTIVE\x10\x02\"\xa3\x01\n\x0e\x41nalysisStatus\x12\x1f\n\x1b\x41NALYSIS_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08SCANNING\x10\x02\x12\x14\n\x10\x46INISHED_SUCCESS\x10\x03\x12\x0c\n\x08\x43OMPLETE\x10\x03\x12\x13\n\x0f\x46INISHED_FAILED\x10\x04\x12\x18\n\x14\x46INISHED_UNSUPPORTED\x10\x05\x1a\x02\x10\x01\x42Q\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.rpc.Status", "google/rpc/status.proto"],
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
42
35
  end
43
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
44
39
  end
45
40
 
46
41
  module Grafeas
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/dsse_attestation.proto
3
4
 
@@ -6,21 +7,33 @@ require 'google/protobuf'
6
7
  require 'grafeas/v1/common_pb'
7
8
  require 'grafeas/v1/intoto_statement_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("grafeas/v1/dsse_attestation.proto", :syntax => :proto3) do
11
- add_message "grafeas.v1.DSSEAttestationNote" do
12
- optional :hint, :message, 1, "grafeas.v1.DSSEAttestationNote.DSSEHint"
13
- end
14
- add_message "grafeas.v1.DSSEAttestationNote.DSSEHint" do
15
- optional :human_readable_name, :string, 1
16
- end
17
- add_message "grafeas.v1.DSSEAttestationOccurrence" do
18
- optional :envelope, :message, 1, "grafeas.v1.Envelope"
19
- oneof :decoded_payload do
20
- optional :statement, :message, 2, "grafeas.v1.InTotoStatement"
21
- end
10
+
11
+ descriptor_data = "\n!grafeas/v1/dsse_attestation.proto\x12\ngrafeas.v1\x1a\x17grafeas/v1/common.proto\x1a!grafeas/v1/intoto_statement.proto\"v\n\x13\x44SSEAttestationNote\x12\x36\n\x04hint\x18\x01 \x01(\x0b\x32(.grafeas.v1.DSSEAttestationNote.DSSEHint\x1a\'\n\x08\x44SSEHint\x12\x1b\n\x13human_readable_name\x18\x01 \x01(\t\"\x88\x01\n\x19\x44SSEAttestationOccurrence\x12&\n\x08\x65nvelope\x18\x01 \x01(\x0b\x32\x14.grafeas.v1.Envelope\x12\x30\n\tstatement\x18\x02 \x01(\x0b\x32\x1b.grafeas.v1.InTotoStatementH\x00\x42\x11\n\x0f\x64\x65\x63oded_payloadBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["grafeas.v1.Envelope", "grafeas/v1/common.proto"],
27
+ ["grafeas.v1.InTotoStatement", "grafeas/v1/intoto_statement.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
22
33
  end
23
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
24
37
  end
25
38
 
26
39
  module Grafeas