grafeas-v1 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,19 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: grafeas/v1/severity.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("grafeas/v1/severity.proto", :syntax => :proto3) do
8
- add_enum "grafeas.v1.Severity" do
9
- value :SEVERITY_UNSPECIFIED, 0
10
- value :MINIMAL, 1
11
- value :LOW, 2
12
- value :MEDIUM, 3
13
- value :HIGH, 4
14
- value :CRITICAL, 5
7
+
8
+ descriptor_data = "\n\x19grafeas/v1/severity.proto\x12\ngrafeas.v1*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\x12\x0c\n\x08\x43RITICAL\x10\x05\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}"
15
28
  end
16
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."
17
32
  end
18
33
 
19
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/slsa_provenance.proto
3
4
 
@@ -6,41 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/any_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("grafeas/v1/slsa_provenance.proto", :syntax => :proto3) do
11
- add_message "grafeas.v1.SlsaProvenance" do
12
- optional :builder, :message, 1, "grafeas.v1.SlsaProvenance.SlsaBuilder"
13
- optional :recipe, :message, 2, "grafeas.v1.SlsaProvenance.SlsaRecipe"
14
- optional :metadata, :message, 3, "grafeas.v1.SlsaProvenance.SlsaMetadata"
15
- repeated :materials, :message, 4, "grafeas.v1.SlsaProvenance.Material"
16
- end
17
- add_message "grafeas.v1.SlsaProvenance.SlsaRecipe" do
18
- optional :type, :string, 1
19
- optional :defined_in_material, :int64, 2
20
- optional :entry_point, :string, 3
21
- optional :arguments, :message, 4, "google.protobuf.Any"
22
- optional :environment, :message, 5, "google.protobuf.Any"
23
- end
24
- add_message "grafeas.v1.SlsaProvenance.SlsaCompleteness" do
25
- optional :arguments, :bool, 1
26
- optional :environment, :bool, 2
27
- optional :materials, :bool, 3
28
- end
29
- add_message "grafeas.v1.SlsaProvenance.SlsaMetadata" do
30
- optional :build_invocation_id, :string, 1
31
- optional :build_started_on, :message, 2, "google.protobuf.Timestamp"
32
- optional :build_finished_on, :message, 3, "google.protobuf.Timestamp"
33
- optional :completeness, :message, 4, "grafeas.v1.SlsaProvenance.SlsaCompleteness"
34
- optional :reproducible, :bool, 5
35
- end
36
- add_message "grafeas.v1.SlsaProvenance.SlsaBuilder" do
37
- optional :id, :string, 1
38
- end
39
- add_message "grafeas.v1.SlsaProvenance.Material" do
40
- optional :uri, :string, 1
41
- map :digest, :string, :string, 2
10
+
11
+ descriptor_data = "\n grafeas/v1/slsa_provenance.proto\x12\ngrafeas.v1\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x06\n\x0eSlsaProvenance\x12\x37\n\x07\x62uilder\x18\x01 \x01(\x0b\x32&.grafeas.v1.SlsaProvenance.SlsaBuilder\x12\x35\n\x06recipe\x18\x02 \x01(\x0b\x32%.grafeas.v1.SlsaProvenance.SlsaRecipe\x12\x39\n\x08metadata\x18\x03 \x01(\x0b\x32\'.grafeas.v1.SlsaProvenance.SlsaMetadata\x12\x36\n\tmaterials\x18\x04 \x03(\x0b\x32#.grafeas.v1.SlsaProvenance.Material\x1a\xa0\x01\n\nSlsaRecipe\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x1b\n\x13\x64\x65\x66ined_in_material\x18\x02 \x01(\x03\x12\x13\n\x0b\x65ntry_point\x18\x03 \x01(\t\x12\'\n\targuments\x18\x04 \x01(\x0b\x32\x14.google.protobuf.Any\x12)\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32\x14.google.protobuf.Any\x1aM\n\x10SlsaCompleteness\x12\x11\n\targuments\x18\x01 \x01(\x08\x12\x13\n\x0b\x65nvironment\x18\x02 \x01(\x08\x12\x11\n\tmaterials\x18\x03 \x01(\x08\x1a\xf1\x01\n\x0cSlsaMetadata\x12\x1b\n\x13\x62uild_invocation_id\x18\x01 \x01(\t\x12\x34\n\x10\x62uild_started_on\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11\x62uild_finished_on\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0c\x63ompleteness\x18\x04 \x01(\x0b\x32+.grafeas.v1.SlsaProvenance.SlsaCompleteness\x12\x14\n\x0creproducible\x18\x05 \x01(\x08\x1a\x19\n\x0bSlsaBuilder\x12\n\n\x02id\x18\x01 \x01(\t\x1a\x87\x01\n\x08Material\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12?\n\x06\x64igest\x18\x02 \x03(\x0b\x32/.grafeas.v1.SlsaProvenance.Material.DigestEntry\x1a-\n\x0b\x44igestEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x66\n\rio.grafeas.v1B\x13SlsaProvenanceProtoP\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
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
42
33
  end
43
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."
44
37
  end
45
38
 
46
39
  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/slsa_provenance_zero_two.proto
3
4
 
@@ -6,46 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/struct_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("grafeas/v1/slsa_provenance_zero_two.proto", :syntax => :proto3) do
11
- add_message "grafeas.v1.SlsaProvenanceZeroTwo" do
12
- optional :builder, :message, 1, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder"
13
- optional :build_type, :string, 2
14
- optional :invocation, :message, 3, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation"
15
- optional :build_config, :message, 4, "google.protobuf.Struct"
16
- optional :metadata, :message, 5, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata"
17
- repeated :materials, :message, 6, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial"
18
- end
19
- add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder" do
20
- optional :id, :string, 1
21
- end
22
- add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial" do
23
- optional :uri, :string, 1
24
- map :digest, :string, :string, 2
25
- end
26
- add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation" do
27
- optional :config_source, :message, 1, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource"
28
- optional :parameters, :message, 2, "google.protobuf.Struct"
29
- optional :environment, :message, 3, "google.protobuf.Struct"
30
- end
31
- add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource" do
32
- optional :uri, :string, 1
33
- map :digest, :string, :string, 2
34
- optional :entry_point, :string, 3
35
- end
36
- add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata" do
37
- optional :build_invocation_id, :string, 1
38
- optional :build_started_on, :message, 2, "google.protobuf.Timestamp"
39
- optional :build_finished_on, :message, 3, "google.protobuf.Timestamp"
40
- optional :completeness, :message, 4, "grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness"
41
- optional :reproducible, :bool, 5
42
- end
43
- add_message "grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness" do
44
- optional :parameters, :bool, 1
45
- optional :environment, :bool, 2
46
- optional :materials, :bool, 3
10
+
11
+ descriptor_data = "\n)grafeas/v1/slsa_provenance_zero_two.proto\x12\ngrafeas.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd3\t\n\x15SlsaProvenanceZeroTwo\x12>\n\x07\x62uilder\x18\x01 \x01(\x0b\x32-.grafeas.v1.SlsaProvenanceZeroTwo.SlsaBuilder\x12\x12\n\nbuild_type\x18\x02 \x01(\t\x12\x44\n\ninvocation\x18\x03 \x01(\x0b\x32\x30.grafeas.v1.SlsaProvenanceZeroTwo.SlsaInvocation\x12-\n\x0c\x62uild_config\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12@\n\x08metadata\x18\x05 \x01(\x0b\x32..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMetadata\x12\x41\n\tmaterials\x18\x06 \x03(\x0b\x32..grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial\x1a\x19\n\x0bSlsaBuilder\x12\n\n\x02id\x18\x01 \x01(\t\x1a\x96\x01\n\x0cSlsaMaterial\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12J\n\x06\x64igest\x18\x02 \x03(\x0b\x32:.grafeas.v1.SlsaProvenanceZeroTwo.SlsaMaterial.DigestEntry\x1a-\n\x0b\x44igestEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xb6\x01\n\x0eSlsaInvocation\x12I\n\rconfig_source\x18\x01 \x01(\x0b\x32\x32.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12,\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\xb3\x01\n\x10SlsaConfigSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12N\n\x06\x64igest\x18\x02 \x03(\x0b\x32>.grafeas.v1.SlsaProvenanceZeroTwo.SlsaConfigSource.DigestEntry\x12\x13\n\x0b\x65ntry_point\x18\x03 \x01(\t\x1a-\n\x0b\x44igestEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xf8\x01\n\x0cSlsaMetadata\x12\x1b\n\x13\x62uild_invocation_id\x18\x01 \x01(\t\x12\x34\n\x10\x62uild_started_on\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11\x62uild_finished_on\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x0c\x63ompleteness\x18\x04 \x01(\x0b\x32\x32.grafeas.v1.SlsaProvenanceZeroTwo.SlsaCompleteness\x12\x14\n\x0creproducible\x18\x05 \x01(\x08\x1aN\n\x10SlsaCompleteness\x12\x12\n\nparameters\x18\x01 \x01(\x08\x12\x13\n\x0b\x65nvironment\x18\x02 \x01(\x08\x12\x11\n\tmaterials\x18\x03 \x01(\x08\x42m\n\rio.grafeas.v1B\x1aSlsaProvenanceZeroTwoProtoP\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
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
47
33
  end
48
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."
49
37
  end
50
38
 
51
39
  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/upgrade.proto
3
4
 
@@ -6,44 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/timestamp_pb'
7
8
  require 'grafeas/v1/package_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("grafeas/v1/upgrade.proto", :syntax => :proto3) do
11
- add_message "grafeas.v1.UpgradeNote" do
12
- optional :package, :string, 1
13
- optional :version, :message, 2, "grafeas.v1.Version"
14
- repeated :distributions, :message, 3, "grafeas.v1.UpgradeDistribution"
15
- optional :windows_update, :message, 4, "grafeas.v1.WindowsUpdate"
16
- end
17
- add_message "grafeas.v1.UpgradeDistribution" do
18
- optional :cpe_uri, :string, 1
19
- optional :classification, :string, 2
20
- optional :severity, :string, 3
21
- repeated :cve, :string, 4
22
- end
23
- add_message "grafeas.v1.WindowsUpdate" do
24
- optional :identity, :message, 1, "grafeas.v1.WindowsUpdate.Identity"
25
- optional :title, :string, 2
26
- optional :description, :string, 3
27
- repeated :categories, :message, 4, "grafeas.v1.WindowsUpdate.Category"
28
- repeated :kb_article_ids, :string, 5
29
- optional :support_url, :string, 6
30
- optional :last_published_timestamp, :message, 7, "google.protobuf.Timestamp"
31
- end
32
- add_message "grafeas.v1.WindowsUpdate.Identity" do
33
- optional :update_id, :string, 1
34
- optional :revision, :int32, 2
35
- end
36
- add_message "grafeas.v1.WindowsUpdate.Category" do
37
- optional :category_id, :string, 1
38
- optional :name, :string, 2
39
- end
40
- add_message "grafeas.v1.UpgradeOccurrence" do
41
- optional :package, :string, 1
42
- optional :parsed_version, :message, 3, "grafeas.v1.Version"
43
- optional :distribution, :message, 4, "grafeas.v1.UpgradeDistribution"
44
- optional :windows_update, :message, 5, "grafeas.v1.WindowsUpdate"
10
+
11
+ descriptor_data = "\n\x18grafeas/v1/upgrade.proto\x12\ngrafeas.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18grafeas/v1/package.proto\"\xaf\x01\n\x0bUpgradeNote\x12\x0f\n\x07package\x18\x01 \x01(\t\x12$\n\x07version\x18\x02 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x36\n\rdistributions\x18\x03 \x03(\x0b\x32\x1f.grafeas.v1.UpgradeDistribution\x12\x31\n\x0ewindows_update\x18\x04 \x01(\x0b\x32\x19.grafeas.v1.WindowsUpdate\"]\n\x13UpgradeDistribution\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12\x16\n\x0e\x63lassification\x18\x02 \x01(\t\x12\x10\n\x08severity\x18\x03 \x01(\t\x12\x0b\n\x03\x63ve\x18\x04 \x03(\t\"\xec\x02\n\rWindowsUpdate\x12\x34\n\x08identity\x18\x01 \x01(\x0b\x32\".grafeas.v1.WindowsUpdate.Identity\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x36\n\ncategories\x18\x04 \x03(\x0b\x32\".grafeas.v1.WindowsUpdate.Category\x12\x16\n\x0ekb_article_ids\x18\x05 \x03(\t\x12\x13\n\x0bsupport_url\x18\x06 \x01(\t\x12<\n\x18last_published_timestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a/\n\x08Identity\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x12\x10\n\x08revision\x18\x02 \x01(\x05\x1a-\n\x08\x43\x61tegory\x12\x13\n\x0b\x63\x61tegory_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xbb\x01\n\x11UpgradeOccurrence\x12\x0f\n\x07package\x18\x01 \x01(\t\x12+\n\x0eparsed_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x35\n\x0c\x64istribution\x18\x04 \x01(\x0b\x32\x1f.grafeas.v1.UpgradeDistribution\x12\x31\n\x0ewindows_update\x18\x05 \x01(\x0b\x32\x19.grafeas.v1.WindowsUpdateBQ\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.Version", "grafeas/v1/package.proto"],
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.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}"
45
33
  end
46
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."
47
37
  end
48
38
 
49
39
  module Grafeas
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Grafeas
21
21
  module V1
22
- VERSION = "0.11.0"
22
+ VERSION = "0.12.0"
23
23
  end
24
24
  end
@@ -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/vex.proto
3
4
 
@@ -5,72 +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/vex.proto", :syntax => :proto3) do
10
- add_message "grafeas.v1.VulnerabilityAssessmentNote" do
11
- optional :title, :string, 1
12
- optional :short_description, :string, 2
13
- optional :long_description, :string, 3
14
- optional :language_code, :string, 4
15
- optional :publisher, :message, 5, "grafeas.v1.VulnerabilityAssessmentNote.Publisher"
16
- optional :product, :message, 6, "grafeas.v1.VulnerabilityAssessmentNote.Product"
17
- optional :assessment, :message, 7, "grafeas.v1.VulnerabilityAssessmentNote.Assessment"
18
- end
19
- add_message "grafeas.v1.VulnerabilityAssessmentNote.Publisher" do
20
- optional :name, :string, 1
21
- optional :issuing_authority, :string, 2
22
- optional :publisher_namespace, :string, 3
23
- end
24
- add_message "grafeas.v1.VulnerabilityAssessmentNote.Product" do
25
- optional :name, :string, 1
26
- optional :id, :string, 2
27
- oneof :identifier do
28
- optional :generic_uri, :string, 3
29
- end
30
- end
31
- add_message "grafeas.v1.VulnerabilityAssessmentNote.Assessment" do
32
- optional :cve, :string, 1
33
- optional :short_description, :string, 2
34
- optional :long_description, :string, 3
35
- repeated :related_uris, :message, 4, "grafeas.v1.RelatedUrl"
36
- optional :state, :enum, 5, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.State"
37
- repeated :impacts, :string, 6
38
- optional :justification, :message, 7, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification"
39
- repeated :remediations, :message, 8, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation"
40
- end
41
- add_message "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification" do
42
- optional :justification_type, :enum, 1, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType"
43
- optional :details, :string, 2
44
- end
45
- add_enum "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType" do
46
- value :JUSTIFICATION_TYPE_UNSPECIFIED, 0
47
- value :COMPONENT_NOT_PRESENT, 1
48
- value :VULNERABLE_CODE_NOT_PRESENT, 2
49
- value :VULNERABLE_CODE_NOT_IN_EXECUTE_PATH, 3
50
- value :VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY, 4
51
- value :INLINE_MITIGATIONS_ALREADY_EXIST, 5
52
- end
53
- add_message "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation" do
54
- optional :remediation_type, :enum, 1, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType"
55
- optional :details, :string, 2
56
- optional :remediation_uri, :message, 3, "grafeas.v1.RelatedUrl"
57
- end
58
- add_enum "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType" do
59
- value :REMEDIATION_TYPE_UNSPECIFIED, 0
60
- value :MITIGATION, 1
61
- value :NO_FIX_PLANNED, 2
62
- value :NONE_AVAILABLE, 3
63
- value :VENDOR_FIX, 4
64
- value :WORKAROUND, 5
65
- end
66
- add_enum "grafeas.v1.VulnerabilityAssessmentNote.Assessment.State" do
67
- value :STATE_UNSPECIFIED, 0
68
- value :AFFECTED, 1
69
- value :NOT_AFFECTED, 2
70
- value :FIXED, 3
71
- value :UNDER_INVESTIGATION, 4
9
+
10
+ descriptor_data = "\n\x14grafeas/v1/vex.proto\x12\ngrafeas.v1\x1a\x17grafeas/v1/common.proto\"\xaa\r\n\x1bVulnerabilityAssessmentNote\x12\r\n\x05title\x18\x01 \x01(\t\x12\x19\n\x11short_description\x18\x02 \x01(\t\x12\x18\n\x10long_description\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\x12\x44\n\tpublisher\x18\x05 \x01(\x0b\x32\x31.grafeas.v1.VulnerabilityAssessmentNote.Publisher\x12@\n\x07product\x18\x06 \x01(\x0b\x32/.grafeas.v1.VulnerabilityAssessmentNote.Product\x12\x46\n\nassessment\x18\x07 \x01(\x0b\x32\x32.grafeas.v1.VulnerabilityAssessmentNote.Assessment\x1aQ\n\tPublisher\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11issuing_authority\x18\x02 \x01(\t\x12\x1b\n\x13publisher_namespace\x18\x03 \x01(\t\x1aH\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x15\n\x0bgeneric_uri\x18\x03 \x01(\tH\x00\x42\x0c\n\nidentifier\x1a\xc2\t\n\nAssessment\x12\x0b\n\x03\x63ve\x18\x01 \x01(\t\x12\x19\n\x11short_description\x18\x02 \x01(\t\x12\x18\n\x10long_description\x18\x03 \x01(\t\x12,\n\x0crelated_uris\x18\x04 \x03(\x0b\x32\x16.grafeas.v1.RelatedUrl\x12G\n\x05state\x18\x05 \x01(\x0e\x32\x38.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0f\n\x07impacts\x18\x06 \x03(\t\x12W\n\rjustification\x18\x07 \x01(\x0b\x32@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification\x12T\n\x0cremediations\x18\x08 \x03(\x0b\x32>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x1a\x8c\x03\n\rJustification\x12n\n\x12justification_type\x18\x01 \x01(\x0e\x32R.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification.JustificationType\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\"\xf9\x01\n\x11JustificationType\x12\"\n\x1eJUSTIFICATION_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x43OMPONENT_NOT_PRESENT\x10\x01\x12\x1f\n\x1bVULNERABLE_CODE_NOT_PRESENT\x10\x02\x12\'\n#VULNERABLE_CODE_NOT_IN_EXECUTE_PATH\x10\x03\x12\x35\n1VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY\x10\x04\x12$\n INLINE_MITIGATIONS_ALREADY_EXIST\x10\x05\x1a\xc7\x02\n\x0bRemediation\x12h\n\x10remediation_type\x18\x01 \x01(\x0e\x32N.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation.RemediationType\x12\x0f\n\x07\x64\x65tails\x18\x02 \x01(\t\x12/\n\x0fremediation_uri\x18\x03 \x01(\x0b\x32\x16.grafeas.v1.RelatedUrl\"\x8b\x01\n\x0fRemediationType\x12 \n\x1cREMEDIATION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nMITIGATION\x10\x01\x12\x12\n\x0eNO_FIX_PLANNED\x10\x02\x12\x12\n\x0eNONE_AVAILABLE\x10\x03\x12\x0e\n\nVENDOR_FIX\x10\x04\x12\x0e\n\nWORKAROUND\x10\x05\"b\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41\x46\x46\x45\x43TED\x10\x01\x12\x10\n\x0cNOT_AFFECTED\x10\x02\x12\t\n\x05\x46IXED\x10\x03\x12\x17\n\x13UNDER_INVESTIGATION\x10\x04\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
+ ["grafeas.v1.RelatedUrl", "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}"
72
31
  end
73
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."
74
35
  end
75
36
 
76
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/vulnerability.proto
3
4
 
@@ -11,81 +12,36 @@ require 'grafeas/v1/package_pb'
11
12
  require 'grafeas/v1/severity_pb'
12
13
  require 'grafeas/v1/vex_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("grafeas/v1/vulnerability.proto", :syntax => :proto3) do
16
- add_message "grafeas.v1.VulnerabilityNote" do
17
- optional :cvss_score, :float, 1
18
- optional :severity, :enum, 2, "grafeas.v1.Severity"
19
- repeated :details, :message, 3, "grafeas.v1.VulnerabilityNote.Detail"
20
- optional :cvss_v3, :message, 4, "grafeas.v1.CVSSv3"
21
- repeated :windows_details, :message, 5, "grafeas.v1.VulnerabilityNote.WindowsDetail"
22
- optional :source_update_time, :message, 6, "google.protobuf.Timestamp"
23
- optional :cvss_version, :enum, 7, "grafeas.v1.CVSSVersion"
24
- optional :cvss_v2, :message, 8, "grafeas.v1.CVSS"
25
- end
26
- add_message "grafeas.v1.VulnerabilityNote.Detail" do
27
- optional :severity_name, :string, 1
28
- optional :description, :string, 2
29
- optional :package_type, :string, 3
30
- optional :affected_cpe_uri, :string, 4
31
- optional :affected_package, :string, 5
32
- optional :affected_version_start, :message, 6, "grafeas.v1.Version"
33
- optional :affected_version_end, :message, 7, "grafeas.v1.Version"
34
- optional :fixed_cpe_uri, :string, 8
35
- optional :fixed_package, :string, 9
36
- optional :fixed_version, :message, 10, "grafeas.v1.Version"
37
- optional :is_obsolete, :bool, 11
38
- optional :source_update_time, :message, 12, "google.protobuf.Timestamp"
39
- optional :source, :string, 13
40
- optional :vendor, :string, 14
41
- end
42
- add_message "grafeas.v1.VulnerabilityNote.WindowsDetail" do
43
- optional :cpe_uri, :string, 1
44
- optional :name, :string, 2
45
- optional :description, :string, 3
46
- repeated :fixing_kbs, :message, 4, "grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase"
47
- end
48
- add_message "grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase" do
49
- optional :name, :string, 1
50
- optional :url, :string, 2
51
- end
52
- add_message "grafeas.v1.VulnerabilityOccurrence" do
53
- optional :type, :string, 1
54
- optional :severity, :enum, 2, "grafeas.v1.Severity"
55
- optional :cvss_score, :float, 3
56
- optional :cvssv3, :message, 10, "grafeas.v1.CVSS"
57
- repeated :package_issue, :message, 4, "grafeas.v1.VulnerabilityOccurrence.PackageIssue"
58
- optional :short_description, :string, 5
59
- optional :long_description, :string, 6
60
- repeated :related_urls, :message, 7, "grafeas.v1.RelatedUrl"
61
- optional :effective_severity, :enum, 8, "grafeas.v1.Severity"
62
- optional :fix_available, :bool, 9
63
- optional :cvss_version, :enum, 11, "grafeas.v1.CVSSVersion"
64
- optional :cvss_v2, :message, 12, "grafeas.v1.CVSS"
65
- optional :vex_assessment, :message, 13, "grafeas.v1.VulnerabilityOccurrence.VexAssessment"
66
- end
67
- add_message "grafeas.v1.VulnerabilityOccurrence.PackageIssue" do
68
- optional :affected_cpe_uri, :string, 1
69
- optional :affected_package, :string, 2
70
- optional :affected_version, :message, 3, "grafeas.v1.Version"
71
- optional :fixed_cpe_uri, :string, 4
72
- optional :fixed_package, :string, 5
73
- optional :fixed_version, :message, 6, "grafeas.v1.Version"
74
- optional :fix_available, :bool, 7
75
- optional :package_type, :string, 8
76
- optional :effective_severity, :enum, 9, "grafeas.v1.Severity"
77
- repeated :file_location, :message, 10, "grafeas.v1.FileLocation"
78
- end
79
- add_message "grafeas.v1.VulnerabilityOccurrence.VexAssessment" do
80
- optional :cve, :string, 1
81
- repeated :related_uris, :message, 2, "grafeas.v1.RelatedUrl"
82
- optional :note_name, :string, 3
83
- optional :state, :enum, 4, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.State"
84
- repeated :impacts, :string, 5
85
- repeated :remediations, :message, 6, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation"
86
- optional :justification, :message, 7, "grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification"
15
+
16
+ descriptor_data = "\n\x1egrafeas/v1/vulnerability.proto\x12\ngrafeas.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17grafeas/v1/common.proto\x1a\x15grafeas/v1/cvss.proto\x1a\x18grafeas/v1/package.proto\x1a\x19grafeas/v1/severity.proto\x1a\x14grafeas/v1/vex.proto\"\xec\x07\n\x11VulnerabilityNote\x12\x12\n\ncvss_score\x18\x01 \x01(\x02\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x35\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32$.grafeas.v1.VulnerabilityNote.Detail\x12#\n\x07\x63vss_v3\x18\x04 \x01(\x0b\x32\x12.grafeas.v1.CVSSv3\x12\x44\n\x0fwindows_details\x18\x05 \x03(\x0b\x32+.grafeas.v1.VulnerabilityNote.WindowsDetail\x12\x36\n\x12source_update_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x0c\x63vss_version\x18\x07 \x01(\x0e\x32\x17.grafeas.v1.CVSSVersion\x12!\n\x07\x63vss_v2\x18\x08 \x01(\x0b\x32\x10.grafeas.v1.CVSS\x1a\xad\x03\n\x06\x44\x65tail\x12\x15\n\rseverity_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0cpackage_type\x18\x03 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_cpe_uri\x18\x04 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_package\x18\x05 \x01(\t\x12\x33\n\x16\x61\x66\x66\x65\x63ted_version_start\x18\x06 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x31\n\x14\x61\x66\x66\x65\x63ted_version_end\x18\x07 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfixed_cpe_uri\x18\x08 \x01(\t\x12\x15\n\rfixed_package\x18\t \x01(\t\x12*\n\rfixed_version\x18\n \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x13\n\x0bis_obsolete\x18\x0b \x01(\x08\x12\x36\n\x12source_update_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06source\x18\r \x01(\t\x12\x0e\n\x06vendor\x18\x0e \x01(\t\x1a\xbe\x01\n\rWindowsDetail\x12\x0f\n\x07\x63pe_uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12M\n\nfixing_kbs\x18\x04 \x03(\x0b\x32\x39.grafeas.v1.VulnerabilityNote.WindowsDetail.KnowledgeBase\x1a*\n\rKnowledgeBase\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\xe3\t\n\x17VulnerabilityOccurrence\x12\x0c\n\x04type\x18\x01 \x01(\t\x12&\n\x08severity\x18\x02 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x12\n\ncvss_score\x18\x03 \x01(\x02\x12 \n\x06\x63vssv3\x18\n \x01(\x0b\x32\x10.grafeas.v1.CVSS\x12G\n\rpackage_issue\x18\x04 \x03(\x0b\x32\x30.grafeas.v1.VulnerabilityOccurrence.PackageIssue\x12\x19\n\x11short_description\x18\x05 \x01(\t\x12\x18\n\x10long_description\x18\x06 \x01(\t\x12,\n\x0crelated_urls\x18\x07 \x03(\x0b\x32\x16.grafeas.v1.RelatedUrl\x12\x30\n\x12\x65\x66\x66\x65\x63tive_severity\x18\x08 \x01(\x0e\x32\x14.grafeas.v1.Severity\x12\x15\n\rfix_available\x18\t \x01(\x08\x12-\n\x0c\x63vss_version\x18\x0b \x01(\x0e\x32\x17.grafeas.v1.CVSSVersion\x12!\n\x07\x63vss_v2\x18\x0c \x01(\x0b\x32\x10.grafeas.v1.CVSS\x12I\n\x0evex_assessment\x18\r \x01(\x0b\x32\x31.grafeas.v1.VulnerabilityOccurrence.VexAssessment\x1a\xe0\x02\n\x0cPackageIssue\x12\x18\n\x10\x61\x66\x66\x65\x63ted_cpe_uri\x18\x01 \x01(\t\x12\x18\n\x10\x61\x66\x66\x65\x63ted_package\x18\x02 \x01(\t\x12-\n\x10\x61\x66\x66\x65\x63ted_version\x18\x03 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfixed_cpe_uri\x18\x04 \x01(\t\x12\x15\n\rfixed_package\x18\x05 \x01(\t\x12*\n\rfixed_version\x18\x06 \x01(\x0b\x32\x13.grafeas.v1.Version\x12\x15\n\rfix_available\x18\x07 \x01(\x08\x12\x14\n\x0cpackage_type\x18\x08 \x01(\t\x12\x35\n\x12\x65\x66\x66\x65\x63tive_severity\x18\t \x01(\x0e\x32\x14.grafeas.v1.SeverityB\x03\xe0\x41\x03\x12/\n\rfile_location\x18\n \x03(\x0b\x32\x18.grafeas.v1.FileLocation\x1a\xe6\x02\n\rVexAssessment\x12\x0b\n\x03\x63ve\x18\x01 \x01(\t\x12,\n\x0crelated_uris\x18\x02 \x03(\x0b\x32\x16.grafeas.v1.RelatedUrl\x12\x11\n\tnote_name\x18\x03 \x01(\t\x12G\n\x05state\x18\x04 \x01(\x0e\x32\x38.grafeas.v1.VulnerabilityAssessmentNote.Assessment.State\x12\x0f\n\x07impacts\x18\x05 \x03(\t\x12T\n\x0cremediations\x18\x06 \x03(\x0b\x32>.grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation\x12W\n\rjustification\x18\x07 \x01(\x0b\x32@.grafeas.v1.VulnerabilityAssessmentNote.Assessment.JustificationBQ\n\rio.grafeas.v1P\x01Z8google.golang.org/genproto/googleapis/grafeas/v1;grafeas\xa2\x02\x03GRAb\x06proto3"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["grafeas.v1.CVSSv3", "grafeas/v1/cvss.proto"],
32
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
33
+ ["grafeas.v1.Version", "grafeas/v1/package.proto"],
34
+ ["grafeas.v1.RelatedUrl", "grafeas/v1/common.proto"],
35
+ ["grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation", "grafeas/v1/vex.proto"],
36
+ ]
37
+ imports.each do |type_name, expected_filename|
38
+ import_file = pool.lookup(type_name).file_descriptor
39
+ if import_file.name != expected_filename
40
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
87
41
  end
88
42
  end
43
+ warn "Each proto file must use a consistent fully-qualified name."
44
+ warn "This will become an error in the next major version."
89
45
  end
90
46
 
91
47
  module Grafeas
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -87,7 +87,7 @@ module Google
87
87
  # `NullValue` is a singleton enumeration to represent the null value for the
88
88
  # `Value` type union.
89
89
  #
90
- # The JSON representation for `NullValue` is JSON `null`.
90
+ # The JSON representation for `NullValue` is JSON `null`.
91
91
  module NullValue
92
92
  # Null value.
93
93
  NULL_VALUE = 0
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grafeas-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a