• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Generated by the protocol buffer compiler.  DO NOT EDIT!
2# source: ruby_generated_code_proto2.proto
3
4require 'google/protobuf'
5
6Google::Protobuf::DescriptorPool.generated_pool.build do
7  add_file("ruby_generated_code_proto2.proto", :syntax => :proto2) do
8    add_message "A.B.C.TestMessage" do
9      optional :optional_int32, :int32, 1, default: 1
10      optional :optional_int64, :int64, 2, default: 2
11      optional :optional_uint32, :uint32, 3, default: 3
12      optional :optional_uint64, :uint64, 4, default: 4
13      optional :optional_bool, :bool, 5, default: true
14      optional :optional_double, :double, 6, default: 6
15      optional :optional_float, :float, 7, default: 7
16      optional :optional_string, :string, 8, default: "default str"
17      optional :optional_bytes, :bytes, 9, default: "\x00\x01\x02\x40\x66\x75\x62\x61\x72".force_encoding("ASCII-8BIT")
18      optional :optional_enum, :enum, 10, "A.B.C.TestEnum", default: 1
19      optional :optional_msg, :message, 11, "A.B.C.TestMessage"
20      repeated :repeated_int32, :int32, 21
21      repeated :repeated_int64, :int64, 22
22      repeated :repeated_uint32, :uint32, 23
23      repeated :repeated_uint64, :uint64, 24
24      repeated :repeated_bool, :bool, 25
25      repeated :repeated_double, :double, 26
26      repeated :repeated_float, :float, 27
27      repeated :repeated_string, :string, 28
28      repeated :repeated_bytes, :bytes, 29
29      repeated :repeated_enum, :enum, 30, "A.B.C.TestEnum"
30      repeated :repeated_msg, :message, 31, "A.B.C.TestMessage"
31      required :required_int32, :int32, 41
32      required :required_int64, :int64, 42
33      required :required_uint32, :uint32, 43
34      required :required_uint64, :uint64, 44
35      required :required_bool, :bool, 45
36      required :required_double, :double, 46
37      required :required_float, :float, 47
38      required :required_string, :string, 48
39      required :required_bytes, :bytes, 49
40      required :required_enum, :enum, 50, "A.B.C.TestEnum"
41      required :required_msg, :message, 51, "A.B.C.TestMessage"
42      optional :nested_message, :message, 80, "A.B.C.TestMessage.NestedMessage"
43      oneof :my_oneof do
44        optional :oneof_int32, :int32, 61
45        optional :oneof_int64, :int64, 62
46        optional :oneof_uint32, :uint32, 63
47        optional :oneof_uint64, :uint64, 64
48        optional :oneof_bool, :bool, 65
49        optional :oneof_double, :double, 66
50        optional :oneof_float, :float, 67
51        optional :oneof_string, :string, 68
52        optional :oneof_bytes, :bytes, 69
53        optional :oneof_enum, :enum, 70, "A.B.C.TestEnum"
54        optional :oneof_msg, :message, 71, "A.B.C.TestMessage"
55      end
56    end
57    add_message "A.B.C.TestMessage.NestedMessage" do
58      optional :foo, :int32, 1
59    end
60    add_enum "A.B.C.TestEnum" do
61      value :Default, 0
62      value :A, 1
63      value :B, 2
64      value :C, 3
65    end
66  end
67end
68
69module A
70  module B
71    module C
72      TestMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.B.C.TestMessage").msgclass
73      TestMessage::NestedMessage = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.B.C.TestMessage.NestedMessage").msgclass
74      TestEnum = Google::Protobuf::DescriptorPool.generated_pool.lookup("A.B.C.TestEnum").enummodule
75    end
76  end
77end
78