googleapis-common-protos-types 1.0.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -2
  3. data/lib/google/api/annotations_pb.rb +2 -0
  4. data/lib/google/api/auth_pb.rb +39 -29
  5. data/lib/google/api/backend_pb.rb +24 -20
  6. data/lib/google/api/billing_pb.rb +10 -9
  7. data/lib/google/api/client_pb.rb +2 -0
  8. data/lib/google/api/config_change_pb.rb +20 -18
  9. data/lib/google/api/consumer_pb.rb +19 -17
  10. data/lib/google/api/context_pb.rb +13 -11
  11. data/lib/google/api/control_pb.rb +5 -3
  12. data/lib/google/api/distribution_pb.rb +45 -43
  13. data/lib/google/api/documentation_pb.rb +22 -19
  14. data/lib/google/api/endpoint_pb.rb +8 -8
  15. data/lib/google/api/error_reason_pb.rb +37 -0
  16. data/lib/google/api/field_behavior_pb.rb +12 -8
  17. data/lib/google/api/http_pb.rb +25 -23
  18. data/lib/google/api/httpbody_pb.rb +7 -5
  19. data/lib/google/api/label_pb.rb +13 -11
  20. data/lib/google/api/launch_stage_pb.rb +12 -8
  21. data/lib/google/api/log_pb.rb +8 -6
  22. data/lib/google/api/logging_pb.rb +11 -10
  23. data/lib/google/api/metric_pb.rb +43 -39
  24. data/lib/google/api/monitored_resource_pb.rb +21 -17
  25. data/lib/google/api/monitoring_pb.rb +11 -10
  26. data/lib/google/api/quota_pb.rb +24 -23
  27. data/lib/google/api/resource_pb.rb +27 -4
  28. data/lib/google/api/service_pb.rb +30 -30
  29. data/lib/google/api/source_info_pb.rb +5 -3
  30. data/lib/google/api/system_parameter_pb.rb +16 -14
  31. data/lib/google/api/usage_pb.rb +13 -12
  32. data/lib/google/api/visibility_pb.rb +23 -0
  33. data/lib/google/cloud/extended_operations_pb.rb +22 -0
  34. data/lib/google/logging/type/http_request_pb.rb +30 -18
  35. data/lib/google/logging/type/log_severity_pb.rb +23 -11
  36. data/lib/google/longrunning/operations_pb.rb +45 -42
  37. data/lib/google/rpc/code_pb.rb +21 -19
  38. data/lib/google/rpc/error_details_pb.rb +70 -62
  39. data/lib/google/rpc/status_pb.rb +7 -5
  40. data/lib/google/type/calendar_period_pb.rb +12 -10
  41. data/lib/google/type/color_pb.rb +8 -6
  42. data/lib/google/type/date_pb.rb +7 -5
  43. data/lib/google/type/datetime_pb.rb +34 -0
  44. data/lib/google/type/dayofweek_pb.rb +12 -10
  45. data/lib/google/type/decimal_pb.rb +18 -0
  46. data/lib/google/type/expr_pb.rb +8 -6
  47. data/lib/google/type/fraction_pb.rb +6 -4
  48. data/lib/google/type/interval_pb.rb +20 -0
  49. data/lib/google/type/latlng_pb.rb +6 -4
  50. data/lib/google/type/localized_text_pb.rb +19 -0
  51. data/lib/google/type/money_pb.rb +7 -5
  52. data/lib/google/type/month_pb.rb +30 -0
  53. data/lib/google/type/phone_number_pb.rb +27 -0
  54. data/lib/google/type/postal_address_pb.rb +15 -13
  55. data/lib/google/type/quaternion_pb.rb +8 -6
  56. data/lib/google/type/timeofday_pb.rb +8 -6
  57. data/lib/googleapis/common/protos/types/version.rb +23 -0
  58. metadata +19 -56
  59. data/.gitignore +0 -10
  60. data/Gemfile +0 -6
  61. data/Rakefile +0 -57
  62. data/googleapis-common-protos-types.gemspec +0 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28d7f3a58df6bfa15565833493133ae25383506d10e56683938290fccf291975
4
- data.tar.gz: 1d2409f45e9a9eaa1a6fabeb417f11f40a3c69a4df1980bcd2b53471f5d9bde0
3
+ metadata.gz: 13e79b7972d8b03b9c2eb527c4c37fb6c987f93b4698ae4fcdf49ff7c90d48d3
4
+ data.tar.gz: 85d4a34500cd7cd402c0636f8294152405e2c62dce58483f5b4192308d977c49
5
5
  SHA512:
6
- metadata.gz: d0a3344b1c7158b6015b0b154db0bf25bc933cc85f19be83e9d02141abbbedcd05ab10b2317c588d5a3f5ef7edbb48837070f0f2efdeec2c481dd7689b26ffdf
7
- data.tar.gz: 04046740f45acb772383bd60c02fa8fbbddc749e87f53dc25e39166cc2ddad85db2a38645085f50e3c23125c3a605f2fa51832034283baa05a951757d6c0dd8e
6
+ metadata.gz: 16605eb07436672e9f6e544278cbe26337a676ad8fc638562adb341ce161bc82f20d836c4827956436f93dc64a2f2450664b265cb3948b7118537f4cb2329cc8
7
+ data.tar.gz: c027d70989eadf417a9f04cf1174e11203c9812692a9c69ddf73f2546695fb9df1447bb60dbfc9bd844efcceeb6f96bb185200f3457cece9666be71a1b1cb94f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,43 @@
1
1
  # Release History
2
2
 
3
- ### 1.0.4 / 2019-04-03
3
+ ## 1.2.0 (2021-09-03)
4
+
5
+ * Add Google::Cloud::OperationResponseMapping and the extended_operations_pb file
6
+ * Removed unnecessary files from the gem package
7
+
8
+ ## 1.1.0 / 2021-07-07
9
+
10
+ * Add Google::Api::ErrorReason
11
+ * Add Google::Api::Visibility and Google::Api::VisibilityRule
12
+ * Add Google::Type::Decimal
13
+ * Add NON_EMPTY_DEFAULT value to Google::Api::FieldBehavior.
14
+
15
+ ## 1.0.6 / 2021-02-01
16
+
17
+ * Add Google::Type::Interval type.
18
+ * Add Google::Type::LocalizedText type.
19
+ * Add Google::Type::PhoneNumber and Google::Type::PhoneNumber::ShortCode types.
20
+ * Add "service_root_url" field to Google::Api::Documentation.
21
+ * Add UNORDERED_LIST value to Google::Api::FieldBehavior.
22
+ * Add UNIMPLEMENTED and PRELAUNCH values to Google::Api::LaunchStage.
23
+ * Add "monitored_resource_types" field to Google::Api::MetricDescriptor.
24
+ * Add Google::Api::ResourceDescriptor::Style type and add "style" field to Google::Api::ResourceDescriptor.
25
+ * Moved HttpRequest and LogSeverity types from Google::Logging::Type to Google::Cloud::Logging::Type, and created aliases for backward compatibility.
26
+ * Remove internal "features" field from Google::Api::Endpoint.
27
+ * Require protobuf 3.14.
28
+
29
+ ## 1.0.5 / 2020-04-08
30
+
31
+ * Add JWT location support in Google::Api::AuthProvider.
32
+ * Add "protocol" field and a "disable_auth" option to Google::Api::BackendRule.
33
+ * Add "launch_stage" field to Google::Api::MetricDescriptor and Google::Api::MonitoredResourceDescriptor.
34
+ * Add Google::Api::ResourceDescriptor and Google::Api::ResourceReference types and remove obsolete Google::Api::Resource type.
35
+ * Remove obsolete "experimental" field from Google::Api::Service type.
36
+ * Add Google::Rpc::ErrorInfo type.
37
+ * Add Google::Type::DateTime, Google::Type::Month, and Google::Type::TimeZone types.
38
+ * Require protobuf 3.11.
39
+
40
+ ## 1.0.4 / 2019-04-03
4
41
 
5
42
  * Add WaitOperation RPC to operations_pb.rb and update documentation.
6
43
  * Add new common types for:
@@ -9,4 +46,3 @@
9
46
  + google/type/expr.proto
10
47
  + google/type/fraction.proto
11
48
  + google/type/quaternion.proto
12
-
@@ -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