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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +38 -2
- data/lib/google/api/annotations_pb.rb +2 -0
- data/lib/google/api/auth_pb.rb +39 -29
- data/lib/google/api/backend_pb.rb +24 -20
- data/lib/google/api/billing_pb.rb +10 -9
- data/lib/google/api/client_pb.rb +2 -0
- data/lib/google/api/config_change_pb.rb +20 -18
- data/lib/google/api/consumer_pb.rb +19 -17
- data/lib/google/api/context_pb.rb +13 -11
- data/lib/google/api/control_pb.rb +5 -3
- data/lib/google/api/distribution_pb.rb +45 -43
- data/lib/google/api/documentation_pb.rb +22 -19
- data/lib/google/api/endpoint_pb.rb +8 -8
- data/lib/google/api/error_reason_pb.rb +37 -0
- data/lib/google/api/field_behavior_pb.rb +12 -8
- data/lib/google/api/http_pb.rb +25 -23
- data/lib/google/api/httpbody_pb.rb +7 -5
- data/lib/google/api/label_pb.rb +13 -11
- data/lib/google/api/launch_stage_pb.rb +12 -8
- data/lib/google/api/log_pb.rb +8 -6
- data/lib/google/api/logging_pb.rb +11 -10
- data/lib/google/api/metric_pb.rb +43 -39
- data/lib/google/api/monitored_resource_pb.rb +21 -17
- data/lib/google/api/monitoring_pb.rb +11 -10
- data/lib/google/api/quota_pb.rb +24 -23
- data/lib/google/api/resource_pb.rb +27 -4
- data/lib/google/api/service_pb.rb +30 -30
- data/lib/google/api/source_info_pb.rb +5 -3
- data/lib/google/api/system_parameter_pb.rb +16 -14
- data/lib/google/api/usage_pb.rb +13 -12
- data/lib/google/api/visibility_pb.rb +23 -0
- data/lib/google/cloud/extended_operations_pb.rb +22 -0
- data/lib/google/logging/type/http_request_pb.rb +30 -18
- data/lib/google/logging/type/log_severity_pb.rb +23 -11
- data/lib/google/longrunning/operations_pb.rb +45 -42
- data/lib/google/rpc/code_pb.rb +21 -19
- data/lib/google/rpc/error_details_pb.rb +70 -62
- data/lib/google/rpc/status_pb.rb +7 -5
- data/lib/google/type/calendar_period_pb.rb +12 -10
- data/lib/google/type/color_pb.rb +8 -6
- data/lib/google/type/date_pb.rb +7 -5
- data/lib/google/type/datetime_pb.rb +34 -0
- data/lib/google/type/dayofweek_pb.rb +12 -10
- data/lib/google/type/decimal_pb.rb +18 -0
- data/lib/google/type/expr_pb.rb +8 -6
- data/lib/google/type/fraction_pb.rb +6 -4
- data/lib/google/type/interval_pb.rb +20 -0
- data/lib/google/type/latlng_pb.rb +6 -4
- data/lib/google/type/localized_text_pb.rb +19 -0
- data/lib/google/type/money_pb.rb +7 -5
- data/lib/google/type/month_pb.rb +30 -0
- data/lib/google/type/phone_number_pb.rb +27 -0
- data/lib/google/type/postal_address_pb.rb +15 -13
- data/lib/google/type/quaternion_pb.rb +8 -6
- data/lib/google/type/timeofday_pb.rb +8 -6
- data/lib/googleapis/common/protos/types/version.rb +23 -0
- metadata +19 -56
- data/.gitignore +0 -10
- data/Gemfile +0 -6
- data/Rakefile +0 -57
- data/googleapis-common-protos-types.gemspec +0 -43
@@ -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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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::
|
36
|
+
LogSeverity = ::Google::Cloud::Logging::Type::LogSeverity
|
25
37
|
end
|
26
38
|
end
|
27
39
|
end
|
@@ -4,58 +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'
|
8
9
|
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/empty_pb'
|
10
11
|
require 'google/rpc/status_pb'
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
19
49
|
end
|
20
|
-
end
|
21
|
-
add_message "google.longrunning.GetOperationRequest" do
|
22
|
-
optional :name, :string, 1
|
23
|
-
end
|
24
|
-
add_message "google.longrunning.ListOperationsRequest" do
|
25
|
-
optional :name, :string, 4
|
26
|
-
optional :filter, :string, 1
|
27
|
-
optional :page_size, :int32, 2
|
28
|
-
optional :page_token, :string, 3
|
29
|
-
end
|
30
|
-
add_message "google.longrunning.ListOperationsResponse" do
|
31
|
-
repeated :operations, :message, 1, "google.longrunning.Operation"
|
32
|
-
optional :next_page_token, :string, 2
|
33
|
-
end
|
34
|
-
add_message "google.longrunning.CancelOperationRequest" do
|
35
|
-
optional :name, :string, 1
|
36
|
-
end
|
37
|
-
add_message "google.longrunning.DeleteOperationRequest" do
|
38
|
-
optional :name, :string, 1
|
39
|
-
end
|
40
|
-
add_message "google.longrunning.WaitOperationRequest" do
|
41
|
-
optional :name, :string, 1
|
42
|
-
optional :timeout, :message, 2, "google.protobuf.Duration"
|
43
|
-
end
|
44
|
-
add_message "google.longrunning.OperationInfo" do
|
45
|
-
optional :response_type, :string, 1
|
46
|
-
optional :metadata_type, :string, 2
|
47
50
|
end
|
48
51
|
end
|
49
52
|
|
50
53
|
module Google
|
51
54
|
module Longrunning
|
52
|
-
Operation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.Operation").msgclass
|
53
|
-
GetOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.GetOperationRequest").msgclass
|
54
|
-
ListOperationsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsRequest").msgclass
|
55
|
-
ListOperationsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.ListOperationsResponse").msgclass
|
56
|
-
CancelOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.CancelOperationRequest").msgclass
|
57
|
-
DeleteOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.DeleteOperationRequest").msgclass
|
58
|
-
WaitOperationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.WaitOperationRequest").msgclass
|
59
|
-
OperationInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.OperationInfo").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
|
60
63
|
end
|
61
64
|
end
|
data/lib/google/rpc/code_pb.rb
CHANGED
@@ -4,29 +4,31 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
|
-
|
67
|
-
PreconditionFailure
|
68
|
-
|
69
|
-
BadRequest
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
Help
|
74
|
-
|
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
|
data/lib/google/rpc/status_pb.rb
CHANGED
@@ -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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
@@ -4,20 +4,22 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
7
|
+
add_file("google/type/calendar_period.proto", :syntax => :proto3) do
|
8
|
+
add_enum "google.type.CalendarPeriod" do
|
9
|
+
value :CALENDAR_PERIOD_UNSPECIFIED, 0
|
10
|
+
value :DAY, 1
|
11
|
+
value :WEEK, 2
|
12
|
+
value :FORTNIGHT, 3
|
13
|
+
value :MONTH, 4
|
14
|
+
value :QUARTER, 5
|
15
|
+
value :HALF, 6
|
16
|
+
value :YEAR, 7
|
17
|
+
end
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
19
21
|
module Google
|
20
22
|
module Type
|
21
|
-
CalendarPeriod = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.CalendarPeriod").enummodule
|
23
|
+
CalendarPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.CalendarPeriod").enummodule
|
22
24
|
end
|
23
25
|
end
|
data/lib/google/type/color_pb.rb
CHANGED
@@ -5,16 +5,18 @@ require 'google/protobuf'
|
|
5
5
|
|
6
6
|
require 'google/protobuf/wrappers_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
add_file("google/type/color.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.type.Color" do
|
10
|
+
optional :red, :float, 1
|
11
|
+
optional :green, :float, 2
|
12
|
+
optional :blue, :float, 3
|
13
|
+
optional :alpha, :message, 4, "google.protobuf.FloatValue"
|
14
|
+
end
|
13
15
|
end
|
14
16
|
end
|
15
17
|
|
16
18
|
module Google
|
17
19
|
module Type
|
18
|
-
Color = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Color").msgclass
|
20
|
+
Color = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Color").msgclass
|
19
21
|
end
|
20
22
|
end
|
data/lib/google/type/date_pb.rb
CHANGED
@@ -4,15 +4,17 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
add_file("google/type/date.proto", :syntax => :proto3) do
|
8
|
+
add_message "google.type.Date" do
|
9
|
+
optional :year, :int32, 1
|
10
|
+
optional :month, :int32, 2
|
11
|
+
optional :day, :int32, 3
|
12
|
+
end
|
11
13
|
end
|
12
14
|
end
|
13
15
|
|
14
16
|
module Google
|
15
17
|
module Type
|
16
|
-
Date = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Date").msgclass
|
18
|
+
Date = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.type.Date").msgclass
|
17
19
|
end
|
18
20
|
end
|