googleapis-common-protos-types 1.0.2 → 1.5.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 (60) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +78 -0
  3. data/README.md +19 -0
  4. data/lib/google/api/annotations_pb.rb +4 -0
  5. data/lib/google/api/auth_pb.rb +40 -29
  6. data/lib/google/api/backend_pb.rb +25 -10
  7. data/lib/google/api/billing_pb.rb +10 -10
  8. data/lib/google/api/client_pb.rb +109 -0
  9. data/lib/google/api/config_change_pb.rb +20 -18
  10. data/lib/google/api/consumer_pb.rb +19 -17
  11. data/lib/google/api/context_pb.rb +13 -9
  12. data/lib/google/api/control_pb.rb +5 -3
  13. data/lib/google/api/distribution_pb.rb +46 -37
  14. data/lib/google/api/documentation_pb.rb +22 -19
  15. data/lib/google/api/endpoint_pb.rb +8 -8
  16. data/lib/google/api/error_reason_pb.rb +45 -0
  17. data/lib/google/api/field_behavior_pb.rb +27 -0
  18. data/lib/google/api/http_pb.rb +25 -22
  19. data/lib/google/api/httpbody_pb.rb +8 -5
  20. data/lib/google/api/label_pb.rb +13 -11
  21. data/lib/google/api/launch_stage_pb.rb +25 -0
  22. data/lib/google/api/log_pb.rb +9 -6
  23. data/lib/google/api/logging_pb.rb +11 -10
  24. data/lib/google/api/metric_pb.rb +46 -32
  25. data/lib/google/api/monitored_resource_pb.rb +22 -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 +42 -0
  29. data/lib/google/api/routing_pb.rb +25 -0
  30. data/lib/google/api/service_pb.rb +32 -32
  31. data/lib/google/api/source_info_pb.rb +6 -3
  32. data/lib/google/api/system_parameter_pb.rb +16 -14
  33. data/lib/google/api/usage_pb.rb +13 -12
  34. data/lib/google/api/visibility_pb.rb +25 -0
  35. data/lib/google/logging/type/http_request_pb.rb +30 -18
  36. data/lib/google/logging/type/log_severity_pb.rb +23 -12
  37. data/lib/google/longrunning/operations_pb.rb +48 -32
  38. data/lib/google/rpc/code_pb.rb +21 -19
  39. data/lib/google/rpc/error_details_pb.rb +71 -62
  40. data/lib/google/rpc/http_pb.rb +33 -0
  41. data/lib/google/rpc/status_pb.rb +8 -5
  42. data/lib/google/type/calendar_period_pb.rb +25 -0
  43. data/lib/google/type/color_pb.rb +9 -6
  44. data/lib/google/type/date_pb.rb +7 -5
  45. data/lib/google/type/datetime_pb.rb +35 -0
  46. data/lib/google/type/dayofweek_pb.rb +12 -10
  47. data/lib/google/type/decimal_pb.rb +18 -0
  48. data/lib/google/type/expr_pb.rb +21 -0
  49. data/lib/google/type/fraction_pb.rb +19 -0
  50. data/lib/google/type/interval_pb.rb +21 -0
  51. data/lib/google/type/latlng_pb.rb +6 -4
  52. data/lib/google/type/localized_text_pb.rb +19 -0
  53. data/lib/google/type/money_pb.rb +7 -5
  54. data/lib/google/type/month_pb.rb +30 -0
  55. data/lib/google/type/phone_number_pb.rb +27 -0
  56. data/lib/google/type/postal_address_pb.rb +15 -13
  57. data/lib/google/type/quaternion_pb.rb +21 -0
  58. data/lib/google/type/timeofday_pb.rb +8 -6
  59. data/lib/googleapis/common/protos/types/version.rb +23 -0
  60. metadata +32 -39
@@ -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,45 @@
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
+ value :CREDENTIALS_MISSING, 20
30
+ value :RESOURCE_PROJECT_INVALID, 21
31
+ value :SESSION_COOKIE_INVALID, 23
32
+ value :USER_BLOCKED_BY_ADMIN, 24
33
+ value :RESOURCE_USAGE_RESTRICTION_VIOLATED, 25
34
+ value :SYSTEM_PARAMETER_UNSUPPORTED, 26
35
+ value :ORG_RESTRICTION_VIOLATION, 27
36
+ value :ORG_RESTRICTION_HEADER_INVALID, 28
37
+ end
38
+ end
39
+ end
40
+
41
+ module Google
42
+ module Api
43
+ ErrorReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ErrorReason").enummodule
44
+ end
45
+ end
@@ -0,0 +1,27 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/field_behavior.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/descriptor_pb'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/api/field_behavior.proto", :syntax => :proto3) do
10
+ add_enum "google.api.FieldBehavior" do
11
+ value :FIELD_BEHAVIOR_UNSPECIFIED, 0
12
+ value :OPTIONAL, 1
13
+ value :REQUIRED, 2
14
+ value :OUTPUT_ONLY, 3
15
+ value :INPUT_ONLY, 4
16
+ value :IMMUTABLE, 5
17
+ value :UNORDERED_LIST, 6
18
+ value :NON_EMPTY_DEFAULT, 7
19
+ end
20
+ end
21
+ end
22
+
23
+ module Google
24
+ module Api
25
+ FieldBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldBehavior").enummodule
26
+ end
27
+ end
@@ -4,33 +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
- repeated :additional_bindings, :message, 11, "google.api.HttpRule"
15
- oneof :pattern do
16
- optional :get, :string, 2
17
- optional :put, :string, 3
18
- optional :post, :string, 4
19
- optional :delete, :string, 5
20
- optional :patch, :string, 6
21
- 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
22
29
  end
23
- end
24
- add_message "google.api.CustomHttpPattern" do
25
- optional :kind, :string, 1
26
- optional :path, :string, 2
27
30
  end
28
31
  end
29
32
 
30
33
  module Google
31
34
  module Api
32
- Http = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
33
- HttpRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
34
- 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
35
38
  end
36
39
  end
@@ -4,16 +4,19 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/protobuf/any_pb'
7
+
7
8
  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"
9
+ add_file("google/api/httpbody.proto", :syntax => :proto3) do
10
+ add_message "google.api.HttpBody" do
11
+ optional :content_type, :string, 1
12
+ optional :data, :bytes, 2
13
+ repeated :extensions, :message, 3, "google.protobuf.Any"
14
+ end
12
15
  end
13
16
  end
14
17
 
15
18
  module Google
16
19
  module Api
17
- HttpBody = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpBody").msgclass
20
+ HttpBody = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpBody").msgclass
18
21
  end
19
22
  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
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/api/launch_stage.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
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
18
+ end
19
+ end
20
+
21
+ module Google
22
+ module Api
23
+ LaunchStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LaunchStage").enummodule
24
+ end
25
+ end
@@ -4,17 +4,20 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/label_pb'
7
+
7
8
  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
9
+ add_file("google/api/log.proto", :syntax => :proto3) do
10
+ add_message "google.api.LogDescriptor" do
11
+ optional :name, :string, 1
12
+ repeated :labels, :message, 2, "google.api.LabelDescriptor"
13
+ optional :description, :string, 3
14
+ optional :display_name, :string, 4
15
+ end
13
16
  end
14
17
  end
15
18
 
16
19
  module Google
17
20
  module Api
18
- LogDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LogDescriptor").msgclass
21
+ LogDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.LogDescriptor").msgclass
19
22
  end
20
23
  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
@@ -4,43 +4,57 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/label_pb'
7
+ require 'google/api/launch_stage_pb'
8
+ require 'google/protobuf/duration_pb'
9
+
7
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.api.MetricDescriptor" do
9
- optional :name, :string, 1
10
- optional :type, :string, 8
11
- repeated :labels, :message, 2, "google.api.LabelDescriptor"
12
- optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
13
- optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
14
- optional :unit, :string, 5
15
- optional :description, :string, 6
16
- optional :display_name, :string, 7
17
- end
18
- add_enum "google.api.MetricDescriptor.MetricKind" do
19
- value :METRIC_KIND_UNSPECIFIED, 0
20
- value :GAUGE, 1
21
- value :DELTA, 2
22
- value :CUMULATIVE, 3
23
- end
24
- add_enum "google.api.MetricDescriptor.ValueType" do
25
- value :VALUE_TYPE_UNSPECIFIED, 0
26
- value :BOOL, 1
27
- value :INT64, 2
28
- value :DOUBLE, 3
29
- value :STRING, 4
30
- value :DISTRIBUTION, 5
31
- value :MONEY, 6
32
- end
33
- add_message "google.api.Metric" do
34
- optional :type, :string, 3
35
- map :labels, :string, :string, 2
11
+ add_file("google/api/metric.proto", :syntax => :proto3) do
12
+ add_message "google.api.MetricDescriptor" do
13
+ optional :name, :string, 1
14
+ optional :type, :string, 8
15
+ repeated :labels, :message, 2, "google.api.LabelDescriptor"
16
+ optional :metric_kind, :enum, 3, "google.api.MetricDescriptor.MetricKind"
17
+ optional :value_type, :enum, 4, "google.api.MetricDescriptor.ValueType"
18
+ optional :unit, :string, 5
19
+ optional :description, :string, 6
20
+ optional :display_name, :string, 7
21
+ optional :metadata, :message, 10, "google.api.MetricDescriptor.MetricDescriptorMetadata"
22
+ optional :launch_stage, :enum, 12, "google.api.LaunchStage"
23
+ repeated :monitored_resource_types, :string, 13
24
+ end
25
+ add_message "google.api.MetricDescriptor.MetricDescriptorMetadata" do
26
+ optional :launch_stage, :enum, 1, "google.api.LaunchStage"
27
+ optional :sample_period, :message, 2, "google.protobuf.Duration"
28
+ optional :ingest_delay, :message, 3, "google.protobuf.Duration"
29
+ end
30
+ add_enum "google.api.MetricDescriptor.MetricKind" do
31
+ value :METRIC_KIND_UNSPECIFIED, 0
32
+ value :GAUGE, 1
33
+ value :DELTA, 2
34
+ value :CUMULATIVE, 3
35
+ end
36
+ add_enum "google.api.MetricDescriptor.ValueType" do
37
+ value :VALUE_TYPE_UNSPECIFIED, 0
38
+ value :BOOL, 1
39
+ value :INT64, 2
40
+ value :DOUBLE, 3
41
+ value :STRING, 4
42
+ value :DISTRIBUTION, 5
43
+ value :MONEY, 6
44
+ end
45
+ add_message "google.api.Metric" do
46
+ optional :type, :string, 3
47
+ map :labels, :string, :string, 2
48
+ end
36
49
  end
37
50
  end
38
51
 
39
52
  module Google
40
53
  module Api
41
- MetricDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor").msgclass
42
- MetricDescriptor::MetricKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricKind").enummodule
43
- MetricDescriptor::ValueType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.ValueType").enummodule
44
- Metric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Metric").msgclass
54
+ MetricDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor").msgclass
55
+ MetricDescriptor::MetricDescriptorMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricDescriptorMetadata").msgclass
56
+ MetricDescriptor::MetricKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.MetricKind").enummodule
57
+ MetricDescriptor::ValueType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricDescriptor.ValueType").enummodule
58
+ Metric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Metric").msgclass
45
59
  end
46
60
  end
@@ -4,29 +4,34 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/label_pb'
7
+ require 'google/api/launch_stage_pb'
7
8
  require 'google/protobuf/struct_pb'
9
+
8
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.api.MonitoredResourceDescriptor" do
10
- optional :name, :string, 5
11
- optional :type, :string, 1
12
- optional :display_name, :string, 2
13
- optional :description, :string, 3
14
- repeated :labels, :message, 4, "google.api.LabelDescriptor"
15
- end
16
- add_message "google.api.MonitoredResource" do
17
- optional :type, :string, 1
18
- map :labels, :string, :string, 2
19
- end
20
- add_message "google.api.MonitoredResourceMetadata" do
21
- optional :system_labels, :message, 1, "google.protobuf.Struct"
22
- map :user_labels, :string, :string, 2
11
+ add_file("google/api/monitored_resource.proto", :syntax => :proto3) do
12
+ add_message "google.api.MonitoredResourceDescriptor" do
13
+ optional :name, :string, 5
14
+ optional :type, :string, 1
15
+ optional :display_name, :string, 2
16
+ optional :description, :string, 3
17
+ repeated :labels, :message, 4, "google.api.LabelDescriptor"
18
+ optional :launch_stage, :enum, 7, "google.api.LaunchStage"
19
+ end
20
+ add_message "google.api.MonitoredResource" do
21
+ optional :type, :string, 1
22
+ map :labels, :string, :string, 2
23
+ end
24
+ add_message "google.api.MonitoredResourceMetadata" do
25
+ optional :system_labels, :message, 1, "google.protobuf.Struct"
26
+ map :user_labels, :string, :string, 2
27
+ end
23
28
  end
24
29
  end
25
30
 
26
31
  module Google
27
32
  module Api
28
- MonitoredResourceDescriptor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResourceDescriptor").msgclass
29
- MonitoredResource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResource").msgclass
30
- MonitoredResourceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResourceMetadata").msgclass
33
+ MonitoredResourceDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResourceDescriptor").msgclass
34
+ MonitoredResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResource").msgclass
35
+ MonitoredResourceMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MonitoredResourceMetadata").msgclass
31
36
  end
32
37
  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.Monitoring" do
9
- repeated :producer_destinations, :message, 1, "google.api.Monitoring.MonitoringDestination"
10
- repeated :consumer_destinations, :message, 2, "google.api.Monitoring.MonitoringDestination"
11
- end
12
- add_message "google.api.Monitoring.MonitoringDestination" do
13
- optional :monitored_resource, :string, 1
14
- repeated :metrics, :string, 2
7
+ add_file("google/api/monitoring.proto", :syntax => :proto3) do
8
+ add_message "google.api.Monitoring" do
9
+ repeated :producer_destinations, :message, 1, "google.api.Monitoring.MonitoringDestination"
10
+ repeated :consumer_destinations, :message, 2, "google.api.Monitoring.MonitoringDestination"
11
+ end
12
+ add_message "google.api.Monitoring.MonitoringDestination" 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
- Monitoring = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Monitoring").msgclass
21
- Monitoring::MonitoringDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Monitoring.MonitoringDestination").msgclass
21
+ Monitoring = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Monitoring").msgclass
22
+ Monitoring::MonitoringDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Monitoring.MonitoringDestination").msgclass
22
23
  end
23
24
  end
@@ -3,34 +3,35 @@
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.Quota" do
9
- repeated :limits, :message, 3, "google.api.QuotaLimit"
10
- repeated :metric_rules, :message, 4, "google.api.MetricRule"
11
- end
12
- add_message "google.api.MetricRule" do
13
- optional :selector, :string, 1
14
- map :metric_costs, :string, :int64, 2
15
- end
16
- add_message "google.api.QuotaLimit" do
17
- optional :name, :string, 6
18
- optional :description, :string, 2
19
- optional :default_limit, :int64, 3
20
- optional :max_limit, :int64, 4
21
- optional :free_tier, :int64, 7
22
- optional :duration, :string, 5
23
- optional :metric, :string, 8
24
- optional :unit, :string, 9
25
- map :values, :string, :int64, 10
26
- optional :display_name, :string, 12
7
+ add_file("google/api/quota.proto", :syntax => :proto3) do
8
+ add_message "google.api.Quota" do
9
+ repeated :limits, :message, 3, "google.api.QuotaLimit"
10
+ repeated :metric_rules, :message, 4, "google.api.MetricRule"
11
+ end
12
+ add_message "google.api.MetricRule" do
13
+ optional :selector, :string, 1
14
+ map :metric_costs, :string, :int64, 2
15
+ end
16
+ add_message "google.api.QuotaLimit" do
17
+ optional :name, :string, 6
18
+ optional :description, :string, 2
19
+ optional :default_limit, :int64, 3
20
+ optional :max_limit, :int64, 4
21
+ optional :free_tier, :int64, 7
22
+ optional :duration, :string, 5
23
+ optional :metric, :string, 8
24
+ optional :unit, :string, 9
25
+ map :values, :string, :int64, 10
26
+ optional :display_name, :string, 12
27
+ end
27
28
  end
28
29
  end
29
30
 
30
31
  module Google
31
32
  module Api
32
- Quota = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Quota").msgclass
33
- MetricRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricRule").msgclass
34
- QuotaLimit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.QuotaLimit").msgclass
33
+ Quota = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Quota").msgclass
34
+ MetricRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MetricRule").msgclass
35
+ QuotaLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.QuotaLimit").msgclass
35
36
  end
36
37
  end