googleapis-common-protos-types 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/Gemfile +0 -1
  4. data/googleapis-common-protos-types.gemspec +6 -6
  5. data/lib/google/api/annotations_pb.rb +2 -0
  6. data/lib/google/api/auth_pb.rb +39 -29
  7. data/lib/google/api/backend_pb.rb +24 -20
  8. data/lib/google/api/billing_pb.rb +10 -9
  9. data/lib/google/api/client_pb.rb +2 -0
  10. data/lib/google/api/config_change_pb.rb +20 -18
  11. data/lib/google/api/consumer_pb.rb +19 -17
  12. data/lib/google/api/context_pb.rb +13 -11
  13. data/lib/google/api/control_pb.rb +5 -3
  14. data/lib/google/api/distribution_pb.rb +45 -43
  15. data/lib/google/api/documentation_pb.rb +21 -19
  16. data/lib/google/api/endpoint_pb.rb +9 -8
  17. data/lib/google/api/field_behavior_pb.rb +10 -8
  18. data/lib/google/api/http_pb.rb +25 -23
  19. data/lib/google/api/httpbody_pb.rb +7 -5
  20. data/lib/google/api/label_pb.rb +13 -11
  21. data/lib/google/api/launch_stage_pb.rb +10 -8
  22. data/lib/google/api/log_pb.rb +8 -6
  23. data/lib/google/api/logging_pb.rb +11 -10
  24. data/lib/google/api/metric_pb.rb +42 -39
  25. data/lib/google/api/monitored_resource_pb.rb +21 -17
  26. data/lib/google/api/monitoring_pb.rb +11 -10
  27. data/lib/google/api/quota_pb.rb +24 -23
  28. data/lib/google/api/resource_pb.rb +21 -4
  29. data/lib/google/api/service_pb.rb +30 -30
  30. data/lib/google/api/source_info_pb.rb +5 -3
  31. data/lib/google/api/system_parameter_pb.rb +16 -14
  32. data/lib/google/api/usage_pb.rb +13 -12
  33. data/lib/google/logging/type/http_request_pb.rb +20 -18
  34. data/lib/google/logging/type/log_severity_pb.rb +13 -11
  35. data/lib/google/longrunning/operations_pb.rb +45 -42
  36. data/lib/google/rpc/code_pb.rb +21 -19
  37. data/lib/google/rpc/error_details_pb.rb +70 -62
  38. data/lib/google/rpc/status_pb.rb +7 -5
  39. data/lib/google/type/calendar_period_pb.rb +12 -10
  40. data/lib/google/type/color_pb.rb +8 -6
  41. data/lib/google/type/date_pb.rb +7 -5
  42. data/lib/google/type/datetime_pb.rb +34 -0
  43. data/lib/google/type/dayofweek_pb.rb +12 -10
  44. data/lib/google/type/expr_pb.rb +8 -6
  45. data/lib/google/type/fraction_pb.rb +6 -4
  46. data/lib/google/type/latlng_pb.rb +6 -4
  47. data/lib/google/type/money_pb.rb +7 -5
  48. data/lib/google/type/month_pb.rb +30 -0
  49. data/lib/google/type/postal_address_pb.rb +15 -13
  50. data/lib/google/type/quaternion_pb.rb +8 -6
  51. data/lib/google/type/timeofday_pb.rb +8 -6
  52. metadata +14 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28d7f3a58df6bfa15565833493133ae25383506d10e56683938290fccf291975
4
- data.tar.gz: 1d2409f45e9a9eaa1a6fabeb417f11f40a3c69a4df1980bcd2b53471f5d9bde0
3
+ metadata.gz: ff8c59863e591dca48886c42d95f3a3b7c13a5f61245c4c788c168d074a1be66
4
+ data.tar.gz: 0c150821002e7394e41673e4dd79059b50b5be1b5170443e006bd224f3cca9af
5
5
  SHA512:
6
- metadata.gz: d0a3344b1c7158b6015b0b154db0bf25bc933cc85f19be83e9d02141abbbedcd05ab10b2317c588d5a3f5ef7edbb48837070f0f2efdeec2c481dd7689b26ffdf
7
- data.tar.gz: 04046740f45acb772383bd60c02fa8fbbddc749e87f53dc25e39166cc2ddad85db2a38645085f50e3c23125c3a605f2fa51832034283baa05a951757d6c0dd8e
6
+ metadata.gz: 947891bf3c0079156ec94db1ceab082b95981659220b261dd47723d021d28c952fd107faf1b384761f873d744c37515eb8e9db7361c877a7f302c729c9836c74
7
+ data.tar.gz: bd601cab4e64bdf52a1e7fc4292f23e023dec018a84ff4bc965472f9e26f8a08bd629f9bff4d1c8f81b53a65093ffbd4325322a0366999fd8f32a0091b55a6d3
@@ -1,5 +1,16 @@
1
1
  # Release History
2
2
 
3
+ ### 1.0.5 / 2020-04-08
4
+
5
+ * Add JWT location support in Google::Api::AuthProvider.
6
+ * Add "protocol" field and a "disable_auth" option to Google::Api::BackendRule.
7
+ * Add "launch_stage" field to Google::Api::MetricDescriptor and Google::Api::MonitoredResourceDescriptor.
8
+ * Add Google::Api::ResourceDescriptor and Google::Api::ResourceReference types and remove obsolete Google::Api::Resource type.
9
+ * Remove obsolete "experimental" field from Google::Api::Service type.
10
+ * Add Google::Rpc::ErrorInfo type.
11
+ * Add Google::Type::DateTime, Google::Type::Month, and Google::Type::TimeZone types.
12
+ * Require protobuf 3.11 and grpc 1.27.
13
+
3
14
  ### 1.0.4 / 2019-04-03
4
15
 
5
16
  * Add WaitOperation RPC to operations_pb.rb and update documentation.
data/Gemfile CHANGED
@@ -2,5 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
- # Specify your gem's dependencies in api-common-protos-ruby.gemspec
6
5
  gemspec
@@ -16,14 +16,14 @@
16
16
 
17
17
  Gem::Specification.new do |spec|
18
18
  spec.name = "googleapis-common-protos-types"
19
- spec.version = "1.0.4"
19
+ spec.version = "1.0.5"
20
20
  spec.authors = ["Google Inc"]
21
21
  spec.email = ["googleapis-packages@google.com"]
22
22
  spec.licenses = ["Apache-2.0"]
23
23
 
24
24
  spec.description = "Common protocol buffer types used by Google APIs"
25
25
  spec.summary = "Common protobuf types used in Google APIs"
26
- spec.homepage = "https://github.com/googleapis/googleapis"
26
+ spec.homepage = "https://github.com/googleapis/common-protos-ruby"
27
27
 
28
28
  # Specify which files should be added to the gem when it is released. The `git
29
29
  # ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
35
35
  spec.files += Dir.glob "lib/**/*_pb.rb"
36
36
  spec.require_paths = ["lib"]
37
37
 
38
- spec.add_dependency "google-protobuf", "~> 3.0"
38
+ spec.add_dependency "google-protobuf", "~> 3.11"
39
39
 
40
- spec.add_development_dependency "bundler", "~> 1.15"
41
- spec.add_development_dependency "grpc-tools", "~> 1.18"
42
- spec.add_development_dependency "rake", "~> 10.0"
40
+ spec.add_development_dependency "bundler", "~> 2.1"
41
+ spec.add_development_dependency "grpc-tools", "~> 1.27"
42
+ spec.add_development_dependency "rake", "~> 13.0"
43
43
  end
@@ -5,6 +5,8 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/http_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/api/annotations.proto", :syntax => :proto3) do
9
+ end
8
10
  end
9
11
 
10
12
  module Google
@@ -3,40 +3,50 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.api.Authentication" do
9
- repeated :rules, :message, 3, "google.api.AuthenticationRule"
10
- repeated :providers, :message, 4, "google.api.AuthProvider"
11
- end
12
- add_message "google.api.AuthenticationRule" do
13
- optional :selector, :string, 1
14
- optional :oauth, :message, 2, "google.api.OAuthRequirements"
15
- optional :allow_without_credential, :bool, 5
16
- repeated :requirements, :message, 7, "google.api.AuthRequirement"
17
- end
18
- add_message "google.api.AuthProvider" do
19
- optional :id, :string, 1
20
- optional :issuer, :string, 2
21
- optional :jwks_uri, :string, 3
22
- optional :audiences, :string, 4
23
- optional :authorization_url, :string, 5
24
- end
25
- add_message "google.api.OAuthRequirements" do
26
- optional :canonical_scopes, :string, 1
27
- end
28
- add_message "google.api.AuthRequirement" do
29
- optional :provider_id, :string, 1
30
- optional :audiences, :string, 2
7
+ add_file("google/api/auth.proto", :syntax => :proto3) do
8
+ add_message "google.api.Authentication" do
9
+ repeated :rules, :message, 3, "google.api.AuthenticationRule"
10
+ repeated :providers, :message, 4, "google.api.AuthProvider"
11
+ end
12
+ add_message "google.api.AuthenticationRule" do
13
+ optional :selector, :string, 1
14
+ optional :oauth, :message, 2, "google.api.OAuthRequirements"
15
+ optional :allow_without_credential, :bool, 5
16
+ repeated :requirements, :message, 7, "google.api.AuthRequirement"
17
+ end
18
+ add_message "google.api.JwtLocation" do
19
+ optional :value_prefix, :string, 3
20
+ oneof :in do
21
+ optional :header, :string, 1
22
+ optional :query, :string, 2
23
+ end
24
+ end
25
+ add_message "google.api.AuthProvider" do
26
+ optional :id, :string, 1
27
+ optional :issuer, :string, 2
28
+ optional :jwks_uri, :string, 3
29
+ optional :audiences, :string, 4
30
+ optional :authorization_url, :string, 5
31
+ repeated :jwt_locations, :message, 6, "google.api.JwtLocation"
32
+ end
33
+ add_message "google.api.OAuthRequirements" do
34
+ optional :canonical_scopes, :string, 1
35
+ end
36
+ add_message "google.api.AuthRequirement" do
37
+ optional :provider_id, :string, 1
38
+ optional :audiences, :string, 2
39
+ end
31
40
  end
32
41
  end
33
42
 
34
43
  module Google
35
44
  module Api
36
- Authentication = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Authentication").msgclass
37
- AuthenticationRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.AuthenticationRule").msgclass
38
- AuthProvider = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.AuthProvider").msgclass
39
- OAuthRequirements = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.OAuthRequirements").msgclass
40
- AuthRequirement = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.AuthRequirement").msgclass
45
+ Authentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Authentication").msgclass
46
+ AuthenticationRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.AuthenticationRule").msgclass
47
+ JwtLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.JwtLocation").msgclass
48
+ AuthProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.AuthProvider").msgclass
49
+ OAuthRequirements = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.OAuthRequirements").msgclass
50
+ AuthRequirement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.AuthRequirement").msgclass
41
51
  end
42
52
  end
@@ -4,31 +4,35 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.Backend" do
8
- repeated :rules, :message, 1, "google.api.BackendRule"
9
- end
10
- add_message "google.api.BackendRule" do
11
- optional :selector, :string, 1
12
- optional :address, :string, 2
13
- optional :deadline, :double, 3
14
- optional :min_deadline, :double, 4
15
- optional :operation_deadline, :double, 5
16
- optional :path_translation, :enum, 6, "google.api.BackendRule.PathTranslation"
17
- oneof :authentication do
18
- optional :jwt_audience, :string, 7
7
+ add_file("google/api/backend.proto", :syntax => :proto3) do
8
+ add_message "google.api.Backend" do
9
+ repeated :rules, :message, 1, "google.api.BackendRule"
10
+ end
11
+ add_message "google.api.BackendRule" do
12
+ optional :selector, :string, 1
13
+ optional :address, :string, 2
14
+ optional :deadline, :double, 3
15
+ optional :min_deadline, :double, 4
16
+ optional :operation_deadline, :double, 5
17
+ optional :path_translation, :enum, 6, "google.api.BackendRule.PathTranslation"
18
+ optional :protocol, :string, 9
19
+ oneof :authentication do
20
+ optional :jwt_audience, :string, 7
21
+ optional :disable_auth, :bool, 8
22
+ end
23
+ end
24
+ add_enum "google.api.BackendRule.PathTranslation" do
25
+ value :PATH_TRANSLATION_UNSPECIFIED, 0
26
+ value :CONSTANT_ADDRESS, 1
27
+ value :APPEND_PATH_TO_ADDRESS, 2
19
28
  end
20
- end
21
- add_enum "google.api.BackendRule.PathTranslation" do
22
- value :PATH_TRANSLATION_UNSPECIFIED, 0
23
- value :CONSTANT_ADDRESS, 1
24
- value :APPEND_PATH_TO_ADDRESS, 2
25
29
  end
26
30
  end
27
31
 
28
32
  module Google
29
33
  module Api
30
- Backend = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Backend").msgclass
31
- BackendRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule").msgclass
32
- BackendRule::PathTranslation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule.PathTranslation").enummodule
34
+ Backend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Backend").msgclass
35
+ BackendRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule").msgclass
36
+ BackendRule::PathTranslation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule.PathTranslation").enummodule
33
37
  end
34
38
  end
@@ -3,21 +3,22 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/api/metric_pb'
8
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.api.Billing" do
10
- repeated :consumer_destinations, :message, 8, "google.api.Billing.BillingDestination"
11
- end
12
- add_message "google.api.Billing.BillingDestination" do
13
- optional :monitored_resource, :string, 1
14
- repeated :metrics, :string, 2
8
+ add_file("google/api/billing.proto", :syntax => :proto3) do
9
+ add_message "google.api.Billing" do
10
+ repeated :consumer_destinations, :message, 8, "google.api.Billing.BillingDestination"
11
+ end
12
+ add_message "google.api.Billing.BillingDestination" do
13
+ optional :monitored_resource, :string, 1
14
+ repeated :metrics, :string, 2
15
+ end
15
16
  end
16
17
  end
17
18
 
18
19
  module Google
19
20
  module Api
20
- Billing = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Billing").msgclass
21
- Billing::BillingDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Billing.BillingDestination").msgclass
21
+ Billing = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Billing").msgclass
22
+ Billing::BillingDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Billing.BillingDestination").msgclass
22
23
  end
23
24
  end
@@ -4,6 +4,8 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/api/client.proto", :syntax => :proto3) do
8
+ end
7
9
  end
8
10
 
9
11
  module Google
@@ -4,28 +4,30 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.ConfigChange" do
8
- optional :element, :string, 1
9
- optional :old_value, :string, 2
10
- optional :new_value, :string, 3
11
- optional :change_type, :enum, 4, "google.api.ChangeType"
12
- repeated :advices, :message, 5, "google.api.Advice"
13
- end
14
- add_message "google.api.Advice" do
15
- optional :description, :string, 2
16
- end
17
- add_enum "google.api.ChangeType" do
18
- value :CHANGE_TYPE_UNSPECIFIED, 0
19
- value :ADDED, 1
20
- value :REMOVED, 2
21
- value :MODIFIED, 3
7
+ add_file("google/api/config_change.proto", :syntax => :proto3) do
8
+ add_message "google.api.ConfigChange" do
9
+ optional :element, :string, 1
10
+ optional :old_value, :string, 2
11
+ optional :new_value, :string, 3
12
+ optional :change_type, :enum, 4, "google.api.ChangeType"
13
+ repeated :advices, :message, 5, "google.api.Advice"
14
+ end
15
+ add_message "google.api.Advice" do
16
+ optional :description, :string, 2
17
+ end
18
+ add_enum "google.api.ChangeType" do
19
+ value :CHANGE_TYPE_UNSPECIFIED, 0
20
+ value :ADDED, 1
21
+ value :REMOVED, 2
22
+ value :MODIFIED, 3
23
+ end
22
24
  end
23
25
  end
24
26
 
25
27
  module Google
26
28
  module Api
27
- ConfigChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ConfigChange").msgclass
28
- Advice = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Advice").msgclass
29
- ChangeType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ChangeType").enummodule
29
+ ConfigChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ConfigChange").msgclass
30
+ Advice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Advice").msgclass
31
+ ChangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ChangeType").enummodule
30
32
  end
31
33
  end
@@ -4,27 +4,29 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.ProjectProperties" do
8
- repeated :properties, :message, 1, "google.api.Property"
9
- end
10
- add_message "google.api.Property" do
11
- optional :name, :string, 1
12
- optional :type, :enum, 2, "google.api.Property.PropertyType"
13
- optional :description, :string, 3
14
- end
15
- add_enum "google.api.Property.PropertyType" do
16
- value :UNSPECIFIED, 0
17
- value :INT64, 1
18
- value :BOOL, 2
19
- value :STRING, 3
20
- value :DOUBLE, 4
7
+ add_file("google/api/consumer.proto", :syntax => :proto3) do
8
+ add_message "google.api.ProjectProperties" do
9
+ repeated :properties, :message, 1, "google.api.Property"
10
+ end
11
+ add_message "google.api.Property" do
12
+ optional :name, :string, 1
13
+ optional :type, :enum, 2, "google.api.Property.PropertyType"
14
+ optional :description, :string, 3
15
+ end
16
+ add_enum "google.api.Property.PropertyType" do
17
+ value :UNSPECIFIED, 0
18
+ value :INT64, 1
19
+ value :BOOL, 2
20
+ value :STRING, 3
21
+ value :DOUBLE, 4
22
+ end
21
23
  end
22
24
  end
23
25
 
24
26
  module Google
25
27
  module Api
26
- ProjectProperties = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ProjectProperties").msgclass
27
- Property = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Property").msgclass
28
- Property::PropertyType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Property.PropertyType").enummodule
28
+ ProjectProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ProjectProperties").msgclass
29
+ Property = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Property").msgclass
30
+ Property::PropertyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Property.PropertyType").enummodule
29
31
  end
30
32
  end
@@ -4,21 +4,23 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.Context" do
8
- repeated :rules, :message, 1, "google.api.ContextRule"
9
- end
10
- add_message "google.api.ContextRule" do
11
- optional :selector, :string, 1
12
- repeated :requested, :string, 2
13
- repeated :provided, :string, 3
14
- repeated :allowed_request_extensions, :string, 4
15
- repeated :allowed_response_extensions, :string, 5
7
+ add_file("google/api/context.proto", :syntax => :proto3) do
8
+ add_message "google.api.Context" do
9
+ repeated :rules, :message, 1, "google.api.ContextRule"
10
+ end
11
+ add_message "google.api.ContextRule" do
12
+ optional :selector, :string, 1
13
+ repeated :requested, :string, 2
14
+ repeated :provided, :string, 3
15
+ repeated :allowed_request_extensions, :string, 4
16
+ repeated :allowed_response_extensions, :string, 5
17
+ end
16
18
  end
17
19
  end
18
20
 
19
21
  module Google
20
22
  module Api
21
- Context = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Context").msgclass
22
- ContextRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ContextRule").msgclass
23
+ Context = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Context").msgclass
24
+ ContextRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ContextRule").msgclass
23
25
  end
24
26
  end
@@ -4,13 +4,15 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.Control" do
8
- optional :environment, :string, 1
7
+ add_file("google/api/control.proto", :syntax => :proto3) do
8
+ add_message "google.api.Control" do
9
+ optional :environment, :string, 1
10
+ end
9
11
  end
10
12
  end
11
13
 
12
14
  module Google
13
15
  module Api
14
- Control = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Control").msgclass
16
+ Control = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Control").msgclass
15
17
  end
16
18
  end
@@ -6,54 +6,56 @@ require 'google/protobuf'
6
6
  require 'google/protobuf/any_pb'
7
7
  require 'google/protobuf/timestamp_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.api.Distribution" do
10
- optional :count, :int64, 1
11
- optional :mean, :double, 2
12
- optional :sum_of_squared_deviation, :double, 3
13
- optional :range, :message, 4, "google.api.Distribution.Range"
14
- optional :bucket_options, :message, 6, "google.api.Distribution.BucketOptions"
15
- repeated :bucket_counts, :int64, 7
16
- repeated :exemplars, :message, 10, "google.api.Distribution.Exemplar"
17
- end
18
- add_message "google.api.Distribution.Range" do
19
- optional :min, :double, 1
20
- optional :max, :double, 2
21
- end
22
- add_message "google.api.Distribution.BucketOptions" do
23
- oneof :options do
24
- optional :linear_buckets, :message, 1, "google.api.Distribution.BucketOptions.Linear"
25
- optional :exponential_buckets, :message, 2, "google.api.Distribution.BucketOptions.Exponential"
26
- optional :explicit_buckets, :message, 3, "google.api.Distribution.BucketOptions.Explicit"
9
+ add_file("google/api/distribution.proto", :syntax => :proto3) do
10
+ add_message "google.api.Distribution" do
11
+ optional :count, :int64, 1
12
+ optional :mean, :double, 2
13
+ optional :sum_of_squared_deviation, :double, 3
14
+ optional :range, :message, 4, "google.api.Distribution.Range"
15
+ optional :bucket_options, :message, 6, "google.api.Distribution.BucketOptions"
16
+ repeated :bucket_counts, :int64, 7
17
+ repeated :exemplars, :message, 10, "google.api.Distribution.Exemplar"
18
+ end
19
+ add_message "google.api.Distribution.Range" do
20
+ optional :min, :double, 1
21
+ optional :max, :double, 2
22
+ end
23
+ add_message "google.api.Distribution.BucketOptions" do
24
+ oneof :options do
25
+ optional :linear_buckets, :message, 1, "google.api.Distribution.BucketOptions.Linear"
26
+ optional :exponential_buckets, :message, 2, "google.api.Distribution.BucketOptions.Exponential"
27
+ optional :explicit_buckets, :message, 3, "google.api.Distribution.BucketOptions.Explicit"
28
+ end
29
+ end
30
+ add_message "google.api.Distribution.BucketOptions.Linear" do
31
+ optional :num_finite_buckets, :int32, 1
32
+ optional :width, :double, 2
33
+ optional :offset, :double, 3
34
+ end
35
+ add_message "google.api.Distribution.BucketOptions.Exponential" do
36
+ optional :num_finite_buckets, :int32, 1
37
+ optional :growth_factor, :double, 2
38
+ optional :scale, :double, 3
39
+ end
40
+ add_message "google.api.Distribution.BucketOptions.Explicit" do
41
+ repeated :bounds, :double, 1
42
+ end
43
+ add_message "google.api.Distribution.Exemplar" do
44
+ optional :value, :double, 1
45
+ optional :timestamp, :message, 2, "google.protobuf.Timestamp"
46
+ repeated :attachments, :message, 3, "google.protobuf.Any"
27
47
  end
28
- end
29
- add_message "google.api.Distribution.BucketOptions.Linear" do
30
- optional :num_finite_buckets, :int32, 1
31
- optional :width, :double, 2
32
- optional :offset, :double, 3
33
- end
34
- add_message "google.api.Distribution.BucketOptions.Exponential" do
35
- optional :num_finite_buckets, :int32, 1
36
- optional :growth_factor, :double, 2
37
- optional :scale, :double, 3
38
- end
39
- add_message "google.api.Distribution.BucketOptions.Explicit" do
40
- repeated :bounds, :double, 1
41
- end
42
- add_message "google.api.Distribution.Exemplar" do
43
- optional :value, :double, 1
44
- optional :timestamp, :message, 2, "google.protobuf.Timestamp"
45
- repeated :attachments, :message, 3, "google.protobuf.Any"
46
48
  end
47
49
  end
48
50
 
49
51
  module Google
50
52
  module Api
51
- Distribution = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution").msgclass
52
- Distribution::Range = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.Range").msgclass
53
- Distribution::BucketOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions").msgclass
54
- Distribution::BucketOptions::Linear = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Linear").msgclass
55
- Distribution::BucketOptions::Exponential = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Exponential").msgclass
56
- Distribution::BucketOptions::Explicit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Explicit").msgclass
57
- Distribution::Exemplar = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.Exemplar").msgclass
53
+ Distribution = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution").msgclass
54
+ Distribution::Range = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.Range").msgclass
55
+ Distribution::BucketOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions").msgclass
56
+ Distribution::BucketOptions::Linear = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Linear").msgclass
57
+ Distribution::BucketOptions::Exponential = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Exponential").msgclass
58
+ Distribution::BucketOptions::Explicit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.BucketOptions.Explicit").msgclass
59
+ Distribution::Exemplar = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.Exemplar").msgclass
58
60
  end
59
61
  end