googleapis-common-protos-types 1.0.4 → 1.2.0

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 (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
@@ -4,29 +4,32 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.Documentation" do
8
- optional :summary, :string, 1
9
- repeated :pages, :message, 5, "google.api.Page"
10
- repeated :rules, :message, 3, "google.api.DocumentationRule"
11
- optional :documentation_root_url, :string, 4
12
- optional :overview, :string, 2
13
- end
14
- add_message "google.api.DocumentationRule" do
15
- optional :selector, :string, 1
16
- optional :description, :string, 2
17
- optional :deprecation_description, :string, 3
18
- end
19
- add_message "google.api.Page" do
20
- optional :name, :string, 1
21
- optional :content, :string, 2
22
- repeated :subpages, :message, 3, "google.api.Page"
7
+ add_file("google/api/documentation.proto", :syntax => :proto3) do
8
+ add_message "google.api.Documentation" do
9
+ optional :summary, :string, 1
10
+ repeated :pages, :message, 5, "google.api.Page"
11
+ repeated :rules, :message, 3, "google.api.DocumentationRule"
12
+ optional :documentation_root_url, :string, 4
13
+ optional :service_root_url, :string, 6
14
+ optional :overview, :string, 2
15
+ end
16
+ add_message "google.api.DocumentationRule" do
17
+ optional :selector, :string, 1
18
+ optional :description, :string, 2
19
+ optional :deprecation_description, :string, 3
20
+ end
21
+ add_message "google.api.Page" do
22
+ optional :name, :string, 1
23
+ optional :content, :string, 2
24
+ repeated :subpages, :message, 3, "google.api.Page"
25
+ end
23
26
  end
24
27
  end
25
28
 
26
29
  module Google
27
30
  module Api
28
- Documentation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Documentation").msgclass
29
- DocumentationRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.DocumentationRule").msgclass
30
- Page = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Page").msgclass
31
+ Documentation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Documentation").msgclass
32
+ DocumentationRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.DocumentationRule").msgclass
33
+ Page = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Page").msgclass
31
34
  end
32
35
  end
@@ -3,19 +3,19 @@
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.Endpoint" do
9
- optional :name, :string, 1
10
- repeated :aliases, :string, 2
11
- repeated :features, :string, 4
12
- optional :target, :string, 101
13
- optional :allow_cors, :bool, 5
7
+ add_file("google/api/endpoint.proto", :syntax => :proto3) do
8
+ add_message "google.api.Endpoint" do
9
+ optional :name, :string, 1
10
+ repeated :aliases, :string, 2
11
+ optional :target, :string, 101
12
+ optional :allow_cors, :bool, 5
13
+ end
14
14
  end
15
15
  end
16
16
 
17
17
  module Google
18
18
  module Api
19
- Endpoint = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Endpoint").msgclass
19
+ Endpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Endpoint").msgclass
20
20
  end
21
21
  end
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/error_reason.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/api/error_reason.proto", :syntax => :proto3) do
8
+ add_enum "google.api.ErrorReason" do
9
+ value :ERROR_REASON_UNSPECIFIED, 0
10
+ value :SERVICE_DISABLED, 1
11
+ value :BILLING_DISABLED, 2
12
+ value :API_KEY_INVALID, 3
13
+ value :API_KEY_SERVICE_BLOCKED, 4
14
+ value :API_KEY_HTTP_REFERRER_BLOCKED, 7
15
+ value :API_KEY_IP_ADDRESS_BLOCKED, 8
16
+ value :API_KEY_ANDROID_APP_BLOCKED, 9
17
+ value :API_KEY_IOS_APP_BLOCKED, 13
18
+ value :RATE_LIMIT_EXCEEDED, 5
19
+ value :RESOURCE_QUOTA_EXCEEDED, 6
20
+ value :LOCATION_TAX_POLICY_VIOLATED, 10
21
+ value :USER_PROJECT_DENIED, 11
22
+ value :CONSUMER_SUSPENDED, 12
23
+ value :CONSUMER_INVALID, 14
24
+ value :SECURITY_POLICY_VIOLATED, 15
25
+ value :ACCESS_TOKEN_EXPIRED, 16
26
+ value :ACCESS_TOKEN_SCOPE_INSUFFICIENT, 17
27
+ value :ACCOUNT_STATE_INVALID, 18
28
+ value :ACCESS_TOKEN_TYPE_UNSUPPORTED, 19
29
+ end
30
+ end
31
+ end
32
+
33
+ module Google
34
+ module Api
35
+ ErrorReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ErrorReason").enummodule
36
+ end
37
+ end
@@ -4,18 +4,22 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_enum "google.api.FieldBehavior" do
8
- value :FIELD_BEHAVIOR_UNSPECIFIED, 0
9
- value :OPTIONAL, 1
10
- value :REQUIRED, 2
11
- value :OUTPUT_ONLY, 3
12
- value :INPUT_ONLY, 4
13
- value :IMMUTABLE, 5
7
+ add_file("google/api/field_behavior.proto", :syntax => :proto3) do
8
+ add_enum "google.api.FieldBehavior" do
9
+ value :FIELD_BEHAVIOR_UNSPECIFIED, 0
10
+ value :OPTIONAL, 1
11
+ value :REQUIRED, 2
12
+ value :OUTPUT_ONLY, 3
13
+ value :INPUT_ONLY, 4
14
+ value :IMMUTABLE, 5
15
+ value :UNORDERED_LIST, 6
16
+ value :NON_EMPTY_DEFAULT, 7
17
+ end
14
18
  end
15
19
  end
16
20
 
17
21
  module Google
18
22
  module Api
19
- FieldBehavior = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldBehavior").enummodule
23
+ FieldBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldBehavior").enummodule
20
24
  end
21
25
  end
@@ -4,34 +4,36 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.Http" do
8
- repeated :rules, :message, 1, "google.api.HttpRule"
9
- optional :fully_decode_reserved_expansion, :bool, 2
10
- end
11
- add_message "google.api.HttpRule" do
12
- optional :selector, :string, 1
13
- optional :body, :string, 7
14
- optional :response_body, :string, 12
15
- repeated :additional_bindings, :message, 11, "google.api.HttpRule"
16
- oneof :pattern do
17
- optional :get, :string, 2
18
- optional :put, :string, 3
19
- optional :post, :string, 4
20
- optional :delete, :string, 5
21
- optional :patch, :string, 6
22
- optional :custom, :message, 8, "google.api.CustomHttpPattern"
7
+ add_file("google/api/http.proto", :syntax => :proto3) do
8
+ add_message "google.api.Http" do
9
+ repeated :rules, :message, 1, "google.api.HttpRule"
10
+ optional :fully_decode_reserved_expansion, :bool, 2
11
+ end
12
+ add_message "google.api.HttpRule" do
13
+ optional :selector, :string, 1
14
+ optional :body, :string, 7
15
+ optional :response_body, :string, 12
16
+ repeated :additional_bindings, :message, 11, "google.api.HttpRule"
17
+ oneof :pattern do
18
+ optional :get, :string, 2
19
+ optional :put, :string, 3
20
+ optional :post, :string, 4
21
+ optional :delete, :string, 5
22
+ optional :patch, :string, 6
23
+ optional :custom, :message, 8, "google.api.CustomHttpPattern"
24
+ end
25
+ end
26
+ add_message "google.api.CustomHttpPattern" do
27
+ optional :kind, :string, 1
28
+ optional :path, :string, 2
23
29
  end
24
- end
25
- add_message "google.api.CustomHttpPattern" do
26
- optional :kind, :string, 1
27
- optional :path, :string, 2
28
30
  end
29
31
  end
30
32
 
31
33
  module Google
32
34
  module Api
33
- Http = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
34
- HttpRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
35
- CustomHttpPattern = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CustomHttpPattern").msgclass
35
+ Http = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
36
+ HttpRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
37
+ CustomHttpPattern = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CustomHttpPattern").msgclass
36
38
  end
37
39
  end
@@ -5,15 +5,17 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/protobuf/any_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.api.HttpBody" do
9
- optional :content_type, :string, 1
10
- optional :data, :bytes, 2
11
- repeated :extensions, :message, 3, "google.protobuf.Any"
8
+ add_file("google/api/httpbody.proto", :syntax => :proto3) do
9
+ add_message "google.api.HttpBody" do
10
+ optional :content_type, :string, 1
11
+ optional :data, :bytes, 2
12
+ repeated :extensions, :message, 3, "google.protobuf.Any"
13
+ end
12
14
  end
13
15
  end
14
16
 
15
17
  module Google
16
18
  module Api
17
- HttpBody = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpBody").msgclass
19
+ HttpBody = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpBody").msgclass
18
20
  end
19
21
  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.LabelDescriptor" do
8
- optional :key, :string, 1
9
- optional :value_type, :enum, 2, "google.api.LabelDescriptor.ValueType"
10
- optional :description, :string, 3
11
- end
12
- add_enum "google.api.LabelDescriptor.ValueType" do
13
- value :STRING, 0
14
- value :BOOL, 1
15
- value :INT64, 2
7
+ add_file("google/api/label.proto", :syntax => :proto3) do
8
+ add_message "google.api.LabelDescriptor" do
9
+ optional :key, :string, 1
10
+ optional :value_type, :enum, 2, "google.api.LabelDescriptor.ValueType"
11
+ optional :description, :string, 3
12
+ end
13
+ add_enum "google.api.LabelDescriptor.ValueType" do
14
+ value :STRING, 0
15
+ value :BOOL, 1
16
+ value :INT64, 2
17
+ end
16
18
  end
17
19
  end
18
20
 
19
21
  module Google
20
22
  module Api
21
- LabelDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LabelDescriptor").msgclass
22
- LabelDescriptor::ValueType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LabelDescriptor.ValueType").enummodule
23
+ LabelDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LabelDescriptor").msgclass
24
+ LabelDescriptor::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LabelDescriptor.ValueType").enummodule
23
25
  end
24
26
  end
@@ -4,18 +4,22 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_enum "google.api.LaunchStage" do
8
- value :LAUNCH_STAGE_UNSPECIFIED, 0
9
- value :EARLY_ACCESS, 1
10
- value :ALPHA, 2
11
- value :BETA, 3
12
- value :GA, 4
13
- value :DEPRECATED, 5
7
+ add_file("google/api/launch_stage.proto", :syntax => :proto3) do
8
+ add_enum "google.api.LaunchStage" do
9
+ value :LAUNCH_STAGE_UNSPECIFIED, 0
10
+ value :UNIMPLEMENTED, 6
11
+ value :PRELAUNCH, 7
12
+ value :EARLY_ACCESS, 1
13
+ value :ALPHA, 2
14
+ value :BETA, 3
15
+ value :GA, 4
16
+ value :DEPRECATED, 5
17
+ end
14
18
  end
15
19
  end
16
20
 
17
21
  module Google
18
22
  module Api
19
- LaunchStage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LaunchStage").enummodule
23
+ LaunchStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LaunchStage").enummodule
20
24
  end
21
25
  end
@@ -5,16 +5,18 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/label_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.api.LogDescriptor" do
9
- optional :name, :string, 1
10
- repeated :labels, :message, 2, "google.api.LabelDescriptor"
11
- optional :description, :string, 3
12
- optional :display_name, :string, 4
8
+ add_file("google/api/log.proto", :syntax => :proto3) do
9
+ add_message "google.api.LogDescriptor" do
10
+ optional :name, :string, 1
11
+ repeated :labels, :message, 2, "google.api.LabelDescriptor"
12
+ optional :description, :string, 3
13
+ optional :display_name, :string, 4
14
+ end
13
15
  end
14
16
  end
15
17
 
16
18
  module Google
17
19
  module Api
18
- LogDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LogDescriptor").msgclass
20
+ LogDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LogDescriptor").msgclass
19
21
  end
20
22
  end
@@ -3,21 +3,22 @@
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.Logging" do
9
- repeated :producer_destinations, :message, 1, "google.api.Logging.LoggingDestination"
10
- repeated :consumer_destinations, :message, 2, "google.api.Logging.LoggingDestination"
11
- end
12
- add_message "google.api.Logging.LoggingDestination" do
13
- optional :monitored_resource, :string, 3
14
- repeated :logs, :string, 1
7
+ add_file("google/api/logging.proto", :syntax => :proto3) do
8
+ add_message "google.api.Logging" do
9
+ repeated :producer_destinations, :message, 1, "google.api.Logging.LoggingDestination"
10
+ repeated :consumer_destinations, :message, 2, "google.api.Logging.LoggingDestination"
11
+ end
12
+ add_message "google.api.Logging.LoggingDestination" do
13
+ optional :monitored_resource, :string, 3
14
+ repeated :logs, :string, 1
15
+ end
15
16
  end
16
17
  end
17
18
 
18
19
  module Google
19
20
  module Api
20
- Logging = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Logging").msgclass
21
- Logging::LoggingDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Logging.LoggingDestination").msgclass
21
+ Logging = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Logging").msgclass
22
+ Logging::LoggingDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Logging.LoggingDestination").msgclass
22
23
  end
23
24
  end
@@ -7,49 +7,53 @@ require 'google/api/label_pb'
7
7
  require 'google/api/launch_stage_pb'
8
8
  require 'google/protobuf/duration_pb'
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_message "google.api.MetricDescriptor" do
11
- optional :name, :string, 1
12
- optional :type, :string, 8
13
- repeated :labels, :message, 2, "google.api.LabelDescriptor"
14
- optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
15
- optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
16
- optional :unit, :string, 5
17
- optional :description, :string, 6
18
- optional :display_name, :string, 7
19
- optional :metadata, :message, 10, "google.api.MetricDescriptor.MetricDescriptorMetadata"
20
- end
21
- add_message "google.api.MetricDescriptor.MetricDescriptorMetadata" do
22
- optional :launch_stage, :enum, 1, "google.api.LaunchStage"
23
- optional :sample_period, :message, 2, "google.protobuf.Duration"
24
- optional :ingest_delay, :message, 3, "google.protobuf.Duration"
25
- end
26
- add_enum "google.api.MetricDescriptor.MetricKind" do
27
- value :METRIC_KIND_UNSPECIFIED, 0
28
- value :GAUGE, 1
29
- value :DELTA, 2
30
- value :CUMULATIVE, 3
31
- end
32
- add_enum "google.api.MetricDescriptor.ValueType" do
33
- value :VALUE_TYPE_UNSPECIFIED, 0
34
- value :BOOL, 1
35
- value :INT64, 2
36
- value :DOUBLE, 3
37
- value :STRING, 4
38
- value :DISTRIBUTION, 5
39
- value :MONEY, 6
40
- end
41
- add_message "google.api.Metric" do
42
- optional :type, :string, 3
43
- map :labels, :string, :string, 2
10
+ add_file("google/api/metric.proto", :syntax => :proto3) do
11
+ add_message "google.api.MetricDescriptor" do
12
+ optional :name, :string, 1
13
+ optional :type, :string, 8
14
+ repeated :labels, :message, 2, "google.api.LabelDescriptor"
15
+ optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
16
+ optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
17
+ optional :unit, :string, 5
18
+ optional :description, :string, 6
19
+ optional :display_name, :string, 7
20
+ optional :metadata, :message, 10, "google.api.MetricDescriptor.MetricDescriptorMetadata"
21
+ optional :launch_stage, :enum, 12, "google.api.LaunchStage"
22
+ repeated :monitored_resource_types, :string, 13
23
+ end
24
+ add_message "google.api.MetricDescriptor.MetricDescriptorMetadata" do
25
+ optional :launch_stage, :enum, 1, "google.api.LaunchStage"
26
+ optional :sample_period, :message, 2, "google.protobuf.Duration"
27
+ optional :ingest_delay, :message, 3, "google.protobuf.Duration"
28
+ end
29
+ add_enum "google.api.MetricDescriptor.MetricKind" do
30
+ value :METRIC_KIND_UNSPECIFIED, 0
31
+ value :GAUGE, 1
32
+ value :DELTA, 2
33
+ value :CUMULATIVE, 3
34
+ end
35
+ add_enum "google.api.MetricDescriptor.ValueType" do
36
+ value :VALUE_TYPE_UNSPECIFIED, 0
37
+ value :BOOL, 1
38
+ value :INT64, 2
39
+ value :DOUBLE, 3
40
+ value :STRING, 4
41
+ value :DISTRIBUTION, 5
42
+ value :MONEY, 6
43
+ end
44
+ add_message "google.api.Metric" do
45
+ optional :type, :string, 3
46
+ map :labels, :string, :string, 2
47
+ end
44
48
  end
45
49
  end
46
50
 
47
51
  module Google
48
52
  module Api
49
- MetricDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor").msgclass
50
- MetricDescriptor::MetricDescriptorMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricDescriptorMetadata").msgclass
51
- MetricDescriptor::MetricKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricKind").enummodule
52
- MetricDescriptor::ValueType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.ValueType").enummodule
53
- Metric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Metric").msgclass
53
+ MetricDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor").msgclass
54
+ MetricDescriptor::MetricDescriptorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricDescriptorMetadata").msgclass
55
+ MetricDescriptor::MetricKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricKind").enummodule
56
+ MetricDescriptor::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.ValueType").enummodule
57
+ Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Metric").msgclass
54
58
  end
55
59
  end