googleapis-common-protos-types 1.0.1 → 1.0.6

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 (59) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +10 -0
  3. data/CHANGELOG.md +37 -0
  4. data/Gemfile +5 -0
  5. data/README.md +19 -0
  6. data/Rakefile +80 -0
  7. data/googleapis-common-protos-types.gemspec +43 -0
  8. data/lib/google/api/annotations_pb.rb +2 -0
  9. data/lib/google/api/auth_pb.rb +39 -29
  10. data/lib/google/api/backend_pb.rb +25 -9
  11. data/lib/google/api/billing_pb.rb +10 -10
  12. data/lib/google/api/client_pb.rb +14 -0
  13. data/lib/google/api/config_change_pb.rb +20 -18
  14. data/lib/google/api/consumer_pb.rb +19 -17
  15. data/lib/google/api/context_pb.rb +13 -9
  16. data/lib/google/api/control_pb.rb +5 -3
  17. data/lib/google/api/distribution_pb.rb +45 -37
  18. data/lib/google/api/documentation_pb.rb +22 -19
  19. data/lib/google/api/endpoint_pb.rb +8 -9
  20. data/lib/google/api/field_behavior_pb.rb +24 -0
  21. data/lib/google/api/http_pb.rb +25 -21
  22. data/lib/google/api/httpbody_pb.rb +8 -4
  23. data/lib/google/api/label_pb.rb +13 -11
  24. data/lib/google/api/launch_stage_pb.rb +25 -0
  25. data/lib/google/api/log_pb.rb +8 -6
  26. data/lib/google/api/logging_pb.rb +11 -10
  27. data/lib/google/api/metric_pb.rb +45 -32
  28. data/lib/google/api/monitored_resource_pb.rb +22 -12
  29. data/lib/google/api/monitoring_pb.rb +11 -10
  30. data/lib/google/api/quota_pb.rb +24 -23
  31. data/lib/google/api/resource_pb.rb +40 -0
  32. data/lib/google/api/service_pb.rb +31 -29
  33. data/lib/google/api/source_info_pb.rb +5 -3
  34. data/lib/google/api/system_parameter_pb.rb +16 -14
  35. data/lib/google/api/usage_pb.rb +13 -12
  36. data/lib/google/logging/type/http_request_pb.rb +30 -18
  37. data/lib/google/logging/type/log_severity_pb.rb +23 -11
  38. data/lib/google/longrunning/operations_pb.rb +46 -32
  39. data/lib/google/rpc/code_pb.rb +21 -19
  40. data/lib/google/rpc/error_details_pb.rb +70 -62
  41. data/lib/google/rpc/status_pb.rb +7 -5
  42. data/lib/google/type/calendar_period_pb.rb +25 -0
  43. data/lib/google/type/color_pb.rb +8 -6
  44. data/lib/google/type/date_pb.rb +7 -5
  45. data/lib/google/type/datetime_pb.rb +34 -0
  46. data/lib/google/type/dayofweek_pb.rb +12 -10
  47. data/lib/google/type/expr_pb.rb +21 -0
  48. data/lib/google/type/fraction_pb.rb +19 -0
  49. data/lib/google/type/interval_pb.rb +20 -0
  50. data/lib/google/type/latlng_pb.rb +6 -4
  51. data/lib/google/type/localized_text_pb.rb +19 -0
  52. data/lib/google/type/money_pb.rb +7 -5
  53. data/lib/google/type/month_pb.rb +30 -0
  54. data/lib/google/type/phone_number_pb.rb +27 -0
  55. data/lib/google/type/postal_address_pb.rb +15 -13
  56. data/lib/google/type/quaternion_pb.rb +21 -0
  57. data/lib/google/type/timeofday_pb.rb +8 -6
  58. metadata +46 -14
  59. data/lib/google/longrunning/operations_services_pb.rb +0 -73
@@ -3,23 +3,24 @@
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.Usage" do
9
- repeated :requirements, :string, 1
10
- repeated :rules, :message, 6, "google.api.UsageRule"
11
- optional :producer_notification_channel, :string, 7
12
- end
13
- add_message "google.api.UsageRule" do
14
- optional :selector, :string, 1
15
- optional :allow_unregistered_calls, :bool, 2
16
- optional :skip_service_control, :bool, 3
7
+ add_file("google/api/usage.proto", :syntax => :proto3) do
8
+ add_message "google.api.Usage" do
9
+ repeated :requirements, :string, 1
10
+ repeated :rules, :message, 6, "google.api.UsageRule"
11
+ optional :producer_notification_channel, :string, 7
12
+ end
13
+ add_message "google.api.UsageRule" do
14
+ optional :selector, :string, 1
15
+ optional :allow_unregistered_calls, :bool, 2
16
+ optional :skip_service_control, :bool, 3
17
+ end
17
18
  end
18
19
  end
19
20
 
20
21
  module Google
21
22
  module Api
22
- Usage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Usage").msgclass
23
- UsageRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.UsageRule").msgclass
23
+ Usage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Usage").msgclass
24
+ UsageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.UsageRule").msgclass
24
25
  end
25
26
  end
@@ -3,32 +3,44 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/api/annotations_pb'
7
6
  require 'google/protobuf/duration_pb'
7
+ require 'google/api/annotations_pb'
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.logging.type.HttpRequest" do
10
- optional :request_method, :string, 1
11
- optional :request_url, :string, 2
12
- optional :request_size, :int64, 3
13
- optional :status, :int32, 4
14
- optional :response_size, :int64, 5
15
- optional :user_agent, :string, 6
16
- optional :remote_ip, :string, 7
17
- optional :server_ip, :string, 13
18
- optional :referer, :string, 8
19
- optional :latency, :message, 14, "google.protobuf.Duration"
20
- optional :cache_lookup, :bool, 11
21
- optional :cache_hit, :bool, 9
22
- optional :cache_validated_with_origin_server, :bool, 10
23
- optional :cache_fill_bytes, :int64, 12
24
- optional :protocol, :string, 15
9
+ add_file("google/logging/type/http_request.proto", :syntax => :proto3) do
10
+ add_message "google.logging.type.HttpRequest" do
11
+ optional :request_method, :string, 1
12
+ optional :request_url, :string, 2
13
+ optional :request_size, :int64, 3
14
+ optional :status, :int32, 4
15
+ optional :response_size, :int64, 5
16
+ optional :user_agent, :string, 6
17
+ optional :remote_ip, :string, 7
18
+ optional :server_ip, :string, 13
19
+ optional :referer, :string, 8
20
+ optional :latency, :message, 14, "google.protobuf.Duration"
21
+ optional :cache_lookup, :bool, 11
22
+ optional :cache_hit, :bool, 9
23
+ optional :cache_validated_with_origin_server, :bool, 10
24
+ optional :cache_fill_bytes, :int64, 12
25
+ optional :protocol, :string, 15
26
+ end
27
+ end
28
+ end
29
+
30
+ module Google
31
+ module Cloud
32
+ module Logging
33
+ module Type
34
+ HttpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.HttpRequest").msgclass
35
+ end
36
+ end
25
37
  end
26
38
  end
27
39
 
28
40
  module Google
29
41
  module Logging
30
42
  module Type
31
- HttpRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.HttpRequest").msgclass
43
+ HttpRequest = ::Google::Cloud::Logging::Type::HttpRequest
32
44
  end
33
45
  end
34
46
  end
@@ -5,23 +5,35 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_enum "google.logging.type.LogSeverity" do
9
- value :DEFAULT, 0
10
- value :DEBUG, 100
11
- value :INFO, 200
12
- value :NOTICE, 300
13
- value :WARNING, 400
14
- value :ERROR, 500
15
- value :CRITICAL, 600
16
- value :ALERT, 700
17
- value :EMERGENCY, 800
8
+ add_file("google/logging/type/log_severity.proto", :syntax => :proto3) do
9
+ add_enum "google.logging.type.LogSeverity" do
10
+ value :DEFAULT, 0
11
+ value :DEBUG, 100
12
+ value :INFO, 200
13
+ value :NOTICE, 300
14
+ value :WARNING, 400
15
+ value :ERROR, 500
16
+ value :CRITICAL, 600
17
+ value :ALERT, 700
18
+ value :EMERGENCY, 800
19
+ end
20
+ end
21
+ end
22
+
23
+ module Google
24
+ module Cloud
25
+ module Logging
26
+ module Type
27
+ LogSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.LogSeverity").enummodule
28
+ end
29
+ end
18
30
  end
19
31
  end
20
32
 
21
33
  module Google
22
34
  module Logging
23
35
  module Type
24
- LogSeverity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.type.LogSeverity").enummodule
36
+ LogSeverity = ::Google::Cloud::Logging::Type::LogSeverity
25
37
  end
26
38
  end
27
39
  end
@@ -4,47 +4,61 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
7
8
  require 'google/protobuf/any_pb'
9
+ require 'google/protobuf/duration_pb'
8
10
  require 'google/protobuf/empty_pb'
9
11
  require 'google/rpc/status_pb'
10
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_message "google.longrunning.Operation" do
12
- optional :name, :string, 1
13
- optional :metadata, :message, 2, "google.protobuf.Any"
14
- optional :done, :bool, 3
15
- oneof :result do
16
- optional :error, :message, 4, "google.rpc.Status"
17
- optional :response, :message, 5, "google.protobuf.Any"
13
+ add_file("google/longrunning/operations.proto", :syntax => :proto3) do
14
+ add_message "google.longrunning.Operation" do
15
+ optional :name, :string, 1
16
+ optional :metadata, :message, 2, "google.protobuf.Any"
17
+ optional :done, :bool, 3
18
+ oneof :result do
19
+ optional :error, :message, 4, "google.rpc.Status"
20
+ optional :response, :message, 5, "google.protobuf.Any"
21
+ end
22
+ end
23
+ add_message "google.longrunning.GetOperationRequest" do
24
+ optional :name, :string, 1
25
+ end
26
+ add_message "google.longrunning.ListOperationsRequest" do
27
+ optional :name, :string, 4
28
+ optional :filter, :string, 1
29
+ optional :page_size, :int32, 2
30
+ optional :page_token, :string, 3
31
+ end
32
+ add_message "google.longrunning.ListOperationsResponse" do
33
+ repeated :operations, :message, 1, "google.longrunning.Operation"
34
+ optional :next_page_token, :string, 2
35
+ end
36
+ add_message "google.longrunning.CancelOperationRequest" do
37
+ optional :name, :string, 1
38
+ end
39
+ add_message "google.longrunning.DeleteOperationRequest" do
40
+ optional :name, :string, 1
41
+ end
42
+ add_message "google.longrunning.WaitOperationRequest" do
43
+ optional :name, :string, 1
44
+ optional :timeout, :message, 2, "google.protobuf.Duration"
45
+ end
46
+ add_message "google.longrunning.OperationInfo" do
47
+ optional :response_type, :string, 1
48
+ optional :metadata_type, :string, 2
18
49
  end
19
- end
20
- add_message "google.longrunning.GetOperationRequest" do
21
- optional :name, :string, 1
22
- end
23
- add_message "google.longrunning.ListOperationsRequest" do
24
- optional :name, :string, 4
25
- optional :filter, :string, 1
26
- optional :page_size, :int32, 2
27
- optional :page_token, :string, 3
28
- end
29
- add_message "google.longrunning.ListOperationsResponse" do
30
- repeated :operations, :message, 1, "google.longrunning.Operation"
31
- optional :next_page_token, :string, 2
32
- end
33
- add_message "google.longrunning.CancelOperationRequest" do
34
- optional :name, :string, 1
35
- end
36
- add_message "google.longrunning.DeleteOperationRequest" do
37
- optional :name, :string, 1
38
50
  end
39
51
  end
40
52
 
41
53
  module Google
42
54
  module Longrunning
43
- Operation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.Operation").msgclass
44
- GetOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.GetOperationRequest").msgclass
45
- ListOperationsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsRequest").msgclass
46
- ListOperationsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsResponse").msgclass
47
- CancelOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.CancelOperationRequest").msgclass
48
- DeleteOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.DeleteOperationRequest").msgclass
55
+ Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.Operation").msgclass
56
+ GetOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.GetOperationRequest").msgclass
57
+ ListOperationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsRequest").msgclass
58
+ ListOperationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsResponse").msgclass
59
+ CancelOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.CancelOperationRequest").msgclass
60
+ DeleteOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.DeleteOperationRequest").msgclass
61
+ WaitOperationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.WaitOperationRequest").msgclass
62
+ OperationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.OperationInfo").msgclass
49
63
  end
50
64
  end
@@ -4,29 +4,31 @@
4
4
  require 'google/protobuf'
5
5
 
6
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_enum "google.rpc.Code" do
8
- value :OK, 0
9
- value :CANCELLED, 1
10
- value :UNKNOWN, 2
11
- value :INVALID_ARGUMENT, 3
12
- value :DEADLINE_EXCEEDED, 4
13
- value :NOT_FOUND, 5
14
- value :ALREADY_EXISTS, 6
15
- value :PERMISSION_DENIED, 7
16
- value :UNAUTHENTICATED, 16
17
- value :RESOURCE_EXHAUSTED, 8
18
- value :FAILED_PRECONDITION, 9
19
- value :ABORTED, 10
20
- value :OUT_OF_RANGE, 11
21
- value :UNIMPLEMENTED, 12
22
- value :INTERNAL, 13
23
- value :UNAVAILABLE, 14
24
- value :DATA_LOSS, 15
7
+ add_file("google/rpc/code.proto", :syntax => :proto3) do
8
+ add_enum "google.rpc.Code" do
9
+ value :OK, 0
10
+ value :CANCELLED, 1
11
+ value :UNKNOWN, 2
12
+ value :INVALID_ARGUMENT, 3
13
+ value :DEADLINE_EXCEEDED, 4
14
+ value :NOT_FOUND, 5
15
+ value :ALREADY_EXISTS, 6
16
+ value :PERMISSION_DENIED, 7
17
+ value :UNAUTHENTICATED, 16
18
+ value :RESOURCE_EXHAUSTED, 8
19
+ value :FAILED_PRECONDITION, 9
20
+ value :ABORTED, 10
21
+ value :OUT_OF_RANGE, 11
22
+ value :UNIMPLEMENTED, 12
23
+ value :INTERNAL, 13
24
+ value :UNAVAILABLE, 14
25
+ value :DATA_LOSS, 15
26
+ end
25
27
  end
26
28
  end
27
29
 
28
30
  module Google
29
31
  module Rpc
30
- Code = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Code").enummodule
32
+ Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Code").enummodule
31
33
  end
32
34
  end
@@ -5,72 +5,80 @@ require 'google/protobuf'
5
5
 
6
6
  require 'google/protobuf/duration_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.rpc.RetryInfo" do
9
- optional :retry_delay, :message, 1, "google.protobuf.Duration"
10
- end
11
- add_message "google.rpc.DebugInfo" do
12
- repeated :stack_entries, :string, 1
13
- optional :detail, :string, 2
14
- end
15
- add_message "google.rpc.QuotaFailure" do
16
- repeated :violations, :message, 1, "google.rpc.QuotaFailure.Violation"
17
- end
18
- add_message "google.rpc.QuotaFailure.Violation" do
19
- optional :subject, :string, 1
20
- optional :description, :string, 2
21
- end
22
- add_message "google.rpc.PreconditionFailure" do
23
- repeated :violations, :message, 1, "google.rpc.PreconditionFailure.Violation"
24
- end
25
- add_message "google.rpc.PreconditionFailure.Violation" do
26
- optional :type, :string, 1
27
- optional :subject, :string, 2
28
- optional :description, :string, 3
29
- end
30
- add_message "google.rpc.BadRequest" do
31
- repeated :field_violations, :message, 1, "google.rpc.BadRequest.FieldViolation"
32
- end
33
- add_message "google.rpc.BadRequest.FieldViolation" do
34
- optional :field, :string, 1
35
- optional :description, :string, 2
36
- end
37
- add_message "google.rpc.RequestInfo" do
38
- optional :request_id, :string, 1
39
- optional :serving_data, :string, 2
40
- end
41
- add_message "google.rpc.ResourceInfo" do
42
- optional :resource_type, :string, 1
43
- optional :resource_name, :string, 2
44
- optional :owner, :string, 3
45
- optional :description, :string, 4
46
- end
47
- add_message "google.rpc.Help" do
48
- repeated :links, :message, 1, "google.rpc.Help.Link"
49
- end
50
- add_message "google.rpc.Help.Link" do
51
- optional :description, :string, 1
52
- optional :url, :string, 2
53
- end
54
- add_message "google.rpc.LocalizedMessage" do
55
- optional :locale, :string, 1
56
- optional :message, :string, 2
8
+ add_file("google/rpc/error_details.proto", :syntax => :proto3) do
9
+ add_message "google.rpc.RetryInfo" do
10
+ optional :retry_delay, :message, 1, "google.protobuf.Duration"
11
+ end
12
+ add_message "google.rpc.DebugInfo" do
13
+ repeated :stack_entries, :string, 1
14
+ optional :detail, :string, 2
15
+ end
16
+ add_message "google.rpc.QuotaFailure" do
17
+ repeated :violations, :message, 1, "google.rpc.QuotaFailure.Violation"
18
+ end
19
+ add_message "google.rpc.QuotaFailure.Violation" do
20
+ optional :subject, :string, 1
21
+ optional :description, :string, 2
22
+ end
23
+ add_message "google.rpc.ErrorInfo" do
24
+ optional :reason, :string, 1
25
+ optional :domain, :string, 2
26
+ map :metadata, :string, :string, 3
27
+ end
28
+ add_message "google.rpc.PreconditionFailure" do
29
+ repeated :violations, :message, 1, "google.rpc.PreconditionFailure.Violation"
30
+ end
31
+ add_message "google.rpc.PreconditionFailure.Violation" do
32
+ optional :type, :string, 1
33
+ optional :subject, :string, 2
34
+ optional :description, :string, 3
35
+ end
36
+ add_message "google.rpc.BadRequest" do
37
+ repeated :field_violations, :message, 1, "google.rpc.BadRequest.FieldViolation"
38
+ end
39
+ add_message "google.rpc.BadRequest.FieldViolation" do
40
+ optional :field, :string, 1
41
+ optional :description, :string, 2
42
+ end
43
+ add_message "google.rpc.RequestInfo" do
44
+ optional :request_id, :string, 1
45
+ optional :serving_data, :string, 2
46
+ end
47
+ add_message "google.rpc.ResourceInfo" do
48
+ optional :resource_type, :string, 1
49
+ optional :resource_name, :string, 2
50
+ optional :owner, :string, 3
51
+ optional :description, :string, 4
52
+ end
53
+ add_message "google.rpc.Help" do
54
+ repeated :links, :message, 1, "google.rpc.Help.Link"
55
+ end
56
+ add_message "google.rpc.Help.Link" do
57
+ optional :description, :string, 1
58
+ optional :url, :string, 2
59
+ end
60
+ add_message "google.rpc.LocalizedMessage" do
61
+ optional :locale, :string, 1
62
+ optional :message, :string, 2
63
+ end
57
64
  end
58
65
  end
59
66
 
60
67
  module Google
61
68
  module Rpc
62
- RetryInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.RetryInfo").msgclass
63
- DebugInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.DebugInfo").msgclass
64
- QuotaFailure = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.QuotaFailure").msgclass
65
- QuotaFailure::Violation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.QuotaFailure.Violation").msgclass
66
- PreconditionFailure = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.PreconditionFailure").msgclass
67
- PreconditionFailure::Violation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.PreconditionFailure.Violation").msgclass
68
- BadRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.BadRequest").msgclass
69
- BadRequest::FieldViolation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.BadRequest.FieldViolation").msgclass
70
- RequestInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.RequestInfo").msgclass
71
- ResourceInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.ResourceInfo").msgclass
72
- Help = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Help").msgclass
73
- Help::Link = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Help.Link").msgclass
74
- LocalizedMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.LocalizedMessage").msgclass
69
+ RetryInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.RetryInfo").msgclass
70
+ DebugInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.DebugInfo").msgclass
71
+ QuotaFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.QuotaFailure").msgclass
72
+ QuotaFailure::Violation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.QuotaFailure.Violation").msgclass
73
+ ErrorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.ErrorInfo").msgclass
74
+ PreconditionFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.PreconditionFailure").msgclass
75
+ PreconditionFailure::Violation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.PreconditionFailure.Violation").msgclass
76
+ BadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.BadRequest").msgclass
77
+ BadRequest::FieldViolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.BadRequest.FieldViolation").msgclass
78
+ RequestInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.RequestInfo").msgclass
79
+ ResourceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.ResourceInfo").msgclass
80
+ Help = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Help").msgclass
81
+ Help::Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Help.Link").msgclass
82
+ LocalizedMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.LocalizedMessage").msgclass
75
83
  end
76
84
  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.rpc.Status" do
9
- optional :code, :int32, 1
10
- optional :message, :string, 2
11
- repeated :details, :message, 3, "google.protobuf.Any"
8
+ add_file("google/rpc/status.proto", :syntax => :proto3) do
9
+ add_message "google.rpc.Status" do
10
+ optional :code, :int32, 1
11
+ optional :message, :string, 2
12
+ repeated :details, :message, 3, "google.protobuf.Any"
13
+ end
12
14
  end
13
15
  end
14
16
 
15
17
  module Google
16
18
  module Rpc
17
- Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Status").msgclass
19
+ Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Status").msgclass
18
20
  end
19
21
  end