proto3.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. // Code generated by protoc-gen-go.
  2. // source: proto3_proto/proto3.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package proto3_proto is a generated protocol buffer package.
  6. It is generated from these files:
  7. proto3_proto/proto3.proto
  8. It has these top-level messages:
  9. Message
  10. Nested
  11. MessageWithMap
  12. IntMap
  13. IntMaps
  14. */
  15. package proto3_proto
  16. import proto "github.com/golang/protobuf/proto"
  17. import fmt "fmt"
  18. import math "math"
  19. import google_protobuf "github.com/golang/protobuf/ptypes/any"
  20. import testdata "github.com/golang/protobuf/proto/testdata"
  21. // Reference imports to suppress errors if they are not otherwise used.
  22. var _ = proto.Marshal
  23. var _ = fmt.Errorf
  24. var _ = math.Inf
  25. // This is a compile-time assertion to ensure that this generated file
  26. // is compatible with the proto package it is being compiled against.
  27. // A compilation error at this line likely means your copy of the
  28. // proto package needs to be updated.
  29. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  30. type Message_Humour int32
  31. const (
  32. Message_UNKNOWN Message_Humour = 0
  33. Message_PUNS Message_Humour = 1
  34. Message_SLAPSTICK Message_Humour = 2
  35. Message_BILL_BAILEY Message_Humour = 3
  36. )
  37. var Message_Humour_name = map[int32]string{
  38. 0: "UNKNOWN",
  39. 1: "PUNS",
  40. 2: "SLAPSTICK",
  41. 3: "BILL_BAILEY",
  42. }
  43. var Message_Humour_value = map[string]int32{
  44. "UNKNOWN": 0,
  45. "PUNS": 1,
  46. "SLAPSTICK": 2,
  47. "BILL_BAILEY": 3,
  48. }
  49. func (x Message_Humour) String() string {
  50. return proto.EnumName(Message_Humour_name, int32(x))
  51. }
  52. func (Message_Humour) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
  53. type Message struct {
  54. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  55. Hilarity Message_Humour `protobuf:"varint,2,opt,name=hilarity,enum=proto3_proto.Message_Humour" json:"hilarity,omitempty"`
  56. HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm" json:"height_in_cm,omitempty"`
  57. Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
  58. ResultCount int64 `protobuf:"varint,7,opt,name=result_count,json=resultCount" json:"result_count,omitempty"`
  59. TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman" json:"true_scotsman,omitempty"`
  60. Score float32 `protobuf:"fixed32,9,opt,name=score" json:"score,omitempty"`
  61. Key []uint64 `protobuf:"varint,5,rep,packed,name=key" json:"key,omitempty"`
  62. ShortKey []int32 `protobuf:"varint,19,rep,packed,name=short_key,json=shortKey" json:"short_key,omitempty"`
  63. Nested *Nested `protobuf:"bytes,6,opt,name=nested" json:"nested,omitempty"`
  64. RFunny []Message_Humour `protobuf:"varint,16,rep,packed,name=r_funny,json=rFunny,enum=proto3_proto.Message_Humour" json:"r_funny,omitempty"`
  65. Terrain map[string]*Nested `protobuf:"bytes,10,rep,name=terrain" json:"terrain,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  66. Proto2Field *testdata.SubDefaults `protobuf:"bytes,11,opt,name=proto2_field,json=proto2Field" json:"proto2_field,omitempty"`
  67. Proto2Value map[string]*testdata.SubDefaults `protobuf:"bytes,13,rep,name=proto2_value,json=proto2Value" json:"proto2_value,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  68. Anything *google_protobuf.Any `protobuf:"bytes,14,opt,name=anything" json:"anything,omitempty"`
  69. ManyThings []*google_protobuf.Any `protobuf:"bytes,15,rep,name=many_things,json=manyThings" json:"many_things,omitempty"`
  70. Submessage *Message `protobuf:"bytes,17,opt,name=submessage" json:"submessage,omitempty"`
  71. Children []*Message `protobuf:"bytes,18,rep,name=children" json:"children,omitempty"`
  72. }
  73. func (m *Message) Reset() { *m = Message{} }
  74. func (m *Message) String() string { return proto.CompactTextString(m) }
  75. func (*Message) ProtoMessage() {}
  76. func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  77. func (m *Message) GetName() string {
  78. if m != nil {
  79. return m.Name
  80. }
  81. return ""
  82. }
  83. func (m *Message) GetHilarity() Message_Humour {
  84. if m != nil {
  85. return m.Hilarity
  86. }
  87. return Message_UNKNOWN
  88. }
  89. func (m *Message) GetHeightInCm() uint32 {
  90. if m != nil {
  91. return m.HeightInCm
  92. }
  93. return 0
  94. }
  95. func (m *Message) GetData() []byte {
  96. if m != nil {
  97. return m.Data
  98. }
  99. return nil
  100. }
  101. func (m *Message) GetResultCount() int64 {
  102. if m != nil {
  103. return m.ResultCount
  104. }
  105. return 0
  106. }
  107. func (m *Message) GetTrueScotsman() bool {
  108. if m != nil {
  109. return m.TrueScotsman
  110. }
  111. return false
  112. }
  113. func (m *Message) GetScore() float32 {
  114. if m != nil {
  115. return m.Score
  116. }
  117. return 0
  118. }
  119. func (m *Message) GetKey() []uint64 {
  120. if m != nil {
  121. return m.Key
  122. }
  123. return nil
  124. }
  125. func (m *Message) GetShortKey() []int32 {
  126. if m != nil {
  127. return m.ShortKey
  128. }
  129. return nil
  130. }
  131. func (m *Message) GetNested() *Nested {
  132. if m != nil {
  133. return m.Nested
  134. }
  135. return nil
  136. }
  137. func (m *Message) GetRFunny() []Message_Humour {
  138. if m != nil {
  139. return m.RFunny
  140. }
  141. return nil
  142. }
  143. func (m *Message) GetTerrain() map[string]*Nested {
  144. if m != nil {
  145. return m.Terrain
  146. }
  147. return nil
  148. }
  149. func (m *Message) GetProto2Field() *testdata.SubDefaults {
  150. if m != nil {
  151. return m.Proto2Field
  152. }
  153. return nil
  154. }
  155. func (m *Message) GetProto2Value() map[string]*testdata.SubDefaults {
  156. if m != nil {
  157. return m.Proto2Value
  158. }
  159. return nil
  160. }
  161. func (m *Message) GetAnything() *google_protobuf.Any {
  162. if m != nil {
  163. return m.Anything
  164. }
  165. return nil
  166. }
  167. func (m *Message) GetManyThings() []*google_protobuf.Any {
  168. if m != nil {
  169. return m.ManyThings
  170. }
  171. return nil
  172. }
  173. func (m *Message) GetSubmessage() *Message {
  174. if m != nil {
  175. return m.Submessage
  176. }
  177. return nil
  178. }
  179. func (m *Message) GetChildren() []*Message {
  180. if m != nil {
  181. return m.Children
  182. }
  183. return nil
  184. }
  185. type Nested struct {
  186. Bunny string `protobuf:"bytes,1,opt,name=bunny" json:"bunny,omitempty"`
  187. Cute bool `protobuf:"varint,2,opt,name=cute" json:"cute,omitempty"`
  188. }
  189. func (m *Nested) Reset() { *m = Nested{} }
  190. func (m *Nested) String() string { return proto.CompactTextString(m) }
  191. func (*Nested) ProtoMessage() {}
  192. func (*Nested) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  193. func (m *Nested) GetBunny() string {
  194. if m != nil {
  195. return m.Bunny
  196. }
  197. return ""
  198. }
  199. func (m *Nested) GetCute() bool {
  200. if m != nil {
  201. return m.Cute
  202. }
  203. return false
  204. }
  205. type MessageWithMap struct {
  206. ByteMapping map[bool][]byte `protobuf:"bytes,1,rep,name=byte_mapping,json=byteMapping" json:"byte_mapping,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
  207. }
  208. func (m *MessageWithMap) Reset() { *m = MessageWithMap{} }
  209. func (m *MessageWithMap) String() string { return proto.CompactTextString(m) }
  210. func (*MessageWithMap) ProtoMessage() {}
  211. func (*MessageWithMap) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  212. func (m *MessageWithMap) GetByteMapping() map[bool][]byte {
  213. if m != nil {
  214. return m.ByteMapping
  215. }
  216. return nil
  217. }
  218. type IntMap struct {
  219. Rtt map[int32]int32 `protobuf:"bytes,1,rep,name=rtt" json:"rtt,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  220. }
  221. func (m *IntMap) Reset() { *m = IntMap{} }
  222. func (m *IntMap) String() string { return proto.CompactTextString(m) }
  223. func (*IntMap) ProtoMessage() {}
  224. func (*IntMap) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  225. func (m *IntMap) GetRtt() map[int32]int32 {
  226. if m != nil {
  227. return m.Rtt
  228. }
  229. return nil
  230. }
  231. type IntMaps struct {
  232. Maps []*IntMap `protobuf:"bytes,1,rep,name=maps" json:"maps,omitempty"`
  233. }
  234. func (m *IntMaps) Reset() { *m = IntMaps{} }
  235. func (m *IntMaps) String() string { return proto.CompactTextString(m) }
  236. func (*IntMaps) ProtoMessage() {}
  237. func (*IntMaps) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  238. func (m *IntMaps) GetMaps() []*IntMap {
  239. if m != nil {
  240. return m.Maps
  241. }
  242. return nil
  243. }
  244. func init() {
  245. proto.RegisterType((*Message)(nil), "proto3_proto.Message")
  246. proto.RegisterType((*Nested)(nil), "proto3_proto.Nested")
  247. proto.RegisterType((*MessageWithMap)(nil), "proto3_proto.MessageWithMap")
  248. proto.RegisterType((*IntMap)(nil), "proto3_proto.IntMap")
  249. proto.RegisterType((*IntMaps)(nil), "proto3_proto.IntMaps")
  250. proto.RegisterEnum("proto3_proto.Message_Humour", Message_Humour_name, Message_Humour_value)
  251. }
  252. func init() { proto.RegisterFile("proto3_proto/proto3.proto", fileDescriptor0) }
  253. var fileDescriptor0 = []byte{
  254. // 733 bytes of a gzipped FileDescriptorProto
  255. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x53, 0x6d, 0x6f, 0xf3, 0x34,
  256. 0x14, 0x25, 0x4d, 0x5f, 0xd2, 0x9b, 0x74, 0x0b, 0x5e, 0x91, 0xbc, 0x02, 0x52, 0x28, 0x12, 0x8a,
  257. 0x78, 0x49, 0xa1, 0xd3, 0xd0, 0x84, 0x10, 0x68, 0x1b, 0x9b, 0xa8, 0xd6, 0x95, 0xca, 0xdd, 0x98,
  258. 0xf8, 0x14, 0xa5, 0xad, 0xdb, 0x46, 0x34, 0x4e, 0x49, 0x1c, 0xa4, 0xfc, 0x1d, 0xfe, 0x28, 0x8f,
  259. 0x6c, 0xa7, 0x5d, 0x36, 0x65, 0xcf, 0xf3, 0x29, 0xf6, 0xf1, 0xb9, 0xf7, 0x9c, 0x1c, 0x5f, 0xc3,
  260. 0xe9, 0x2e, 0x89, 0x79, 0x7c, 0xe6, 0xcb, 0xcf, 0x40, 0x6d, 0x3c, 0xf9, 0x41, 0x56, 0xf9, 0xa8,
  261. 0x77, 0xba, 0x8e, 0xe3, 0xf5, 0x96, 0x2a, 0xca, 0x3c, 0x5b, 0x0d, 0x02, 0x96, 0x2b, 0x62, 0xef,
  262. 0x84, 0xd3, 0x94, 0x2f, 0x03, 0x1e, 0x0c, 0xc4, 0x42, 0x81, 0xfd, 0xff, 0x5b, 0xd0, 0xba, 0xa7,
  263. 0x69, 0x1a, 0xac, 0x29, 0x42, 0x50, 0x67, 0x41, 0x44, 0xb1, 0xe6, 0x68, 0x6e, 0x9b, 0xc8, 0x35,
  264. 0xba, 0x00, 0x63, 0x13, 0x6e, 0x83, 0x24, 0xe4, 0x39, 0xae, 0x39, 0x9a, 0x7b, 0x34, 0xfc, 0xcc,
  265. 0x2b, 0x0b, 0x7a, 0x45, 0xb1, 0xf7, 0x7b, 0x16, 0xc5, 0x59, 0x42, 0x0e, 0x6c, 0xe4, 0x80, 0xb5,
  266. 0xa1, 0xe1, 0x7a, 0xc3, 0xfd, 0x90, 0xf9, 0x8b, 0x08, 0xeb, 0x8e, 0xe6, 0x76, 0x08, 0x28, 0x6c,
  267. 0xc4, 0xae, 0x23, 0xa1, 0x27, 0xec, 0xe0, 0xba, 0xa3, 0xb9, 0x16, 0x91, 0x6b, 0xf4, 0x05, 0x58,
  268. 0x09, 0x4d, 0xb3, 0x2d, 0xf7, 0x17, 0x71, 0xc6, 0x38, 0x6e, 0x39, 0x9a, 0xab, 0x13, 0x53, 0x61,
  269. 0xd7, 0x02, 0x42, 0x5f, 0x42, 0x87, 0x27, 0x19, 0xf5, 0xd3, 0x45, 0xcc, 0xd3, 0x28, 0x60, 0xd8,
  270. 0x70, 0x34, 0xd7, 0x20, 0x96, 0x00, 0x67, 0x05, 0x86, 0xba, 0xd0, 0x48, 0x17, 0x71, 0x42, 0x71,
  271. 0xdb, 0xd1, 0xdc, 0x1a, 0x51, 0x1b, 0x64, 0x83, 0xfe, 0x37, 0xcd, 0x71, 0xc3, 0xd1, 0xdd, 0x3a,
  272. 0x11, 0x4b, 0xf4, 0x29, 0xb4, 0xd3, 0x4d, 0x9c, 0x70, 0x5f, 0xe0, 0x27, 0x8e, 0xee, 0x36, 0x88,
  273. 0x21, 0x81, 0x3b, 0x9a, 0xa3, 0x6f, 0xa1, 0xc9, 0x68, 0xca, 0xe9, 0x12, 0x37, 0x1d, 0xcd, 0x35,
  274. 0x87, 0xdd, 0x97, 0xbf, 0x3e, 0x91, 0x67, 0xa4, 0xe0, 0xa0, 0x73, 0x68, 0x25, 0xfe, 0x2a, 0x63,
  275. 0x2c, 0xc7, 0xb6, 0xa3, 0x7f, 0x30, 0xa9, 0x66, 0x72, 0x2b, 0xb8, 0xe8, 0x67, 0x68, 0x71, 0x9a,
  276. 0x24, 0x41, 0xc8, 0x30, 0x38, 0xba, 0x6b, 0x0e, 0xfb, 0xd5, 0x65, 0x0f, 0x8a, 0x74, 0xc3, 0x78,
  277. 0x92, 0x93, 0x7d, 0x09, 0xba, 0x00, 0x75, 0xff, 0x43, 0x7f, 0x15, 0xd2, 0xed, 0x12, 0x9b, 0xd2,
  278. 0xe8, 0x27, 0xde, 0xfe, 0xae, 0xbd, 0x59, 0x36, 0xff, 0x8d, 0xae, 0x82, 0x6c, 0xcb, 0x53, 0x62,
  279. 0x2a, 0xea, 0xad, 0x60, 0xa2, 0xd1, 0xa1, 0xf2, 0xdf, 0x60, 0x9b, 0x51, 0xdc, 0x91, 0xe2, 0x5f,
  280. 0x55, 0x8b, 0x4f, 0x25, 0xf3, 0x4f, 0x41, 0x54, 0x06, 0x8a, 0x56, 0x12, 0x41, 0xdf, 0x83, 0x11,
  281. 0xb0, 0x9c, 0x6f, 0x42, 0xb6, 0xc6, 0x47, 0x45, 0x52, 0x6a, 0x0e, 0xbd, 0xfd, 0x1c, 0x7a, 0x97,
  282. 0x2c, 0x27, 0x07, 0x16, 0x3a, 0x07, 0x33, 0x0a, 0x58, 0xee, 0xcb, 0x5d, 0x8a, 0x8f, 0xa5, 0x76,
  283. 0x75, 0x11, 0x08, 0xe2, 0x83, 0xe4, 0xa1, 0x73, 0x80, 0x34, 0x9b, 0x47, 0xca, 0x14, 0xfe, 0xb8,
  284. 0xf8, 0xd7, 0x2a, 0xc7, 0xa4, 0x44, 0x44, 0x3f, 0x80, 0xb1, 0xd8, 0x84, 0xdb, 0x65, 0x42, 0x19,
  285. 0x46, 0x52, 0xea, 0x8d, 0xa2, 0x03, 0xad, 0x37, 0x05, 0xab, 0x1c, 0xf8, 0x7e, 0x72, 0xd4, 0xd3,
  286. 0x90, 0x93, 0xf3, 0x35, 0x34, 0x54, 0x70, 0xb5, 0xf7, 0xcc, 0x86, 0xa2, 0xfc, 0x54, 0xbb, 0xd0,
  287. 0x7a, 0x8f, 0x60, 0xbf, 0x4e, 0xb1, 0xa2, 0xeb, 0x37, 0x2f, 0xbb, 0xbe, 0x71, 0x91, 0xcf, 0x6d,
  288. 0xfb, 0xbf, 0x42, 0x53, 0x0d, 0x14, 0x32, 0xa1, 0xf5, 0x38, 0xb9, 0x9b, 0xfc, 0xf1, 0x34, 0xb1,
  289. 0x3f, 0x42, 0x06, 0xd4, 0xa7, 0x8f, 0x93, 0x99, 0xad, 0xa1, 0x0e, 0xb4, 0x67, 0xe3, 0xcb, 0xe9,
  290. 0xec, 0x61, 0x74, 0x7d, 0x67, 0xd7, 0xd0, 0x31, 0x98, 0x57, 0xa3, 0xf1, 0xd8, 0xbf, 0xba, 0x1c,
  291. 0x8d, 0x6f, 0xfe, 0xb2, 0xf5, 0xfe, 0x10, 0x9a, 0xca, 0xac, 0x78, 0x33, 0x73, 0x39, 0xbe, 0xca,
  292. 0x8f, 0xda, 0x88, 0x57, 0xba, 0xc8, 0xb8, 0x32, 0x64, 0x10, 0xb9, 0xee, 0xff, 0xa7, 0xc1, 0x51,
  293. 0x91, 0xd9, 0x53, 0xc8, 0x37, 0xf7, 0xc1, 0x0e, 0x4d, 0xc1, 0x9a, 0xe7, 0x9c, 0xfa, 0x51, 0xb0,
  294. 0xdb, 0x89, 0x39, 0xd0, 0x64, 0xce, 0xdf, 0x55, 0xe6, 0x5c, 0xd4, 0x78, 0x57, 0x39, 0xa7, 0xf7,
  295. 0x8a, 0x5f, 0x4c, 0xd5, 0xfc, 0x19, 0xe9, 0xfd, 0x02, 0xf6, 0x6b, 0x42, 0x39, 0x30, 0x43, 0x05,
  296. 0xd6, 0x2d, 0x07, 0x66, 0x95, 0x93, 0xf9, 0x07, 0x9a, 0x23, 0xc6, 0x85, 0xb7, 0x01, 0xe8, 0x09,
  297. 0xe7, 0x85, 0xa5, 0xcf, 0x5f, 0x5a, 0x52, 0x14, 0x8f, 0x70, 0xae, 0x2c, 0x08, 0x66, 0xef, 0x47,
  298. 0x30, 0xf6, 0x40, 0x59, 0xb2, 0x51, 0x21, 0xd9, 0x28, 0x4b, 0x9e, 0x41, 0x4b, 0xf5, 0x4b, 0x91,
  299. 0x0b, 0xf5, 0x28, 0xd8, 0xa5, 0x85, 0x68, 0xb7, 0x4a, 0x94, 0x48, 0xc6, 0xbc, 0xa9, 0x8e, 0xde,
  300. 0x05, 0x00, 0x00, 0xff, 0xff, 0x75, 0x38, 0xad, 0x84, 0xe4, 0x05, 0x00, 0x00,
  301. }