test_objects.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. // Code generated by protoc-gen-go.
  2. // source: test_objects.proto
  3. // DO NOT EDIT!
  4. package jsonpb
  5. import proto "github.com/golang/protobuf/proto"
  6. import fmt "fmt"
  7. import math "math"
  8. import google_protobuf "github.com/golang/protobuf/ptypes/duration"
  9. import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
  10. import google_protobuf2 "github.com/golang/protobuf/ptypes/wrappers"
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. type Widget_Color int32
  16. const (
  17. Widget_RED Widget_Color = 0
  18. Widget_GREEN Widget_Color = 1
  19. Widget_BLUE Widget_Color = 2
  20. )
  21. var Widget_Color_name = map[int32]string{
  22. 0: "RED",
  23. 1: "GREEN",
  24. 2: "BLUE",
  25. }
  26. var Widget_Color_value = map[string]int32{
  27. "RED": 0,
  28. "GREEN": 1,
  29. "BLUE": 2,
  30. }
  31. func (x Widget_Color) Enum() *Widget_Color {
  32. p := new(Widget_Color)
  33. *p = x
  34. return p
  35. }
  36. func (x Widget_Color) String() string {
  37. return proto.EnumName(Widget_Color_name, int32(x))
  38. }
  39. func (x *Widget_Color) UnmarshalJSON(data []byte) error {
  40. value, err := proto.UnmarshalJSONEnum(Widget_Color_value, data, "Widget_Color")
  41. if err != nil {
  42. return err
  43. }
  44. *x = Widget_Color(value)
  45. return nil
  46. }
  47. func (Widget_Color) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{2, 0} }
  48. // Test message for holding primitive types.
  49. type Simple struct {
  50. OBool *bool `protobuf:"varint,1,opt,name=o_bool,json=oBool" json:"o_bool,omitempty"`
  51. OInt32 *int32 `protobuf:"varint,2,opt,name=o_int32,json=oInt32" json:"o_int32,omitempty"`
  52. OInt64 *int64 `protobuf:"varint,3,opt,name=o_int64,json=oInt64" json:"o_int64,omitempty"`
  53. OUint32 *uint32 `protobuf:"varint,4,opt,name=o_uint32,json=oUint32" json:"o_uint32,omitempty"`
  54. OUint64 *uint64 `protobuf:"varint,5,opt,name=o_uint64,json=oUint64" json:"o_uint64,omitempty"`
  55. OSint32 *int32 `protobuf:"zigzag32,6,opt,name=o_sint32,json=oSint32" json:"o_sint32,omitempty"`
  56. OSint64 *int64 `protobuf:"zigzag64,7,opt,name=o_sint64,json=oSint64" json:"o_sint64,omitempty"`
  57. OFloat *float32 `protobuf:"fixed32,8,opt,name=o_float,json=oFloat" json:"o_float,omitempty"`
  58. ODouble *float64 `protobuf:"fixed64,9,opt,name=o_double,json=oDouble" json:"o_double,omitempty"`
  59. OString *string `protobuf:"bytes,10,opt,name=o_string,json=oString" json:"o_string,omitempty"`
  60. OBytes []byte `protobuf:"bytes,11,opt,name=o_bytes,json=oBytes" json:"o_bytes,omitempty"`
  61. XXX_unrecognized []byte `json:"-"`
  62. }
  63. func (m *Simple) Reset() { *m = Simple{} }
  64. func (m *Simple) String() string { return proto.CompactTextString(m) }
  65. func (*Simple) ProtoMessage() {}
  66. func (*Simple) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  67. func (m *Simple) GetOBool() bool {
  68. if m != nil && m.OBool != nil {
  69. return *m.OBool
  70. }
  71. return false
  72. }
  73. func (m *Simple) GetOInt32() int32 {
  74. if m != nil && m.OInt32 != nil {
  75. return *m.OInt32
  76. }
  77. return 0
  78. }
  79. func (m *Simple) GetOInt64() int64 {
  80. if m != nil && m.OInt64 != nil {
  81. return *m.OInt64
  82. }
  83. return 0
  84. }
  85. func (m *Simple) GetOUint32() uint32 {
  86. if m != nil && m.OUint32 != nil {
  87. return *m.OUint32
  88. }
  89. return 0
  90. }
  91. func (m *Simple) GetOUint64() uint64 {
  92. if m != nil && m.OUint64 != nil {
  93. return *m.OUint64
  94. }
  95. return 0
  96. }
  97. func (m *Simple) GetOSint32() int32 {
  98. if m != nil && m.OSint32 != nil {
  99. return *m.OSint32
  100. }
  101. return 0
  102. }
  103. func (m *Simple) GetOSint64() int64 {
  104. if m != nil && m.OSint64 != nil {
  105. return *m.OSint64
  106. }
  107. return 0
  108. }
  109. func (m *Simple) GetOFloat() float32 {
  110. if m != nil && m.OFloat != nil {
  111. return *m.OFloat
  112. }
  113. return 0
  114. }
  115. func (m *Simple) GetODouble() float64 {
  116. if m != nil && m.ODouble != nil {
  117. return *m.ODouble
  118. }
  119. return 0
  120. }
  121. func (m *Simple) GetOString() string {
  122. if m != nil && m.OString != nil {
  123. return *m.OString
  124. }
  125. return ""
  126. }
  127. func (m *Simple) GetOBytes() []byte {
  128. if m != nil {
  129. return m.OBytes
  130. }
  131. return nil
  132. }
  133. // Test message for holding repeated primitives.
  134. type Repeats struct {
  135. RBool []bool `protobuf:"varint,1,rep,name=r_bool,json=rBool" json:"r_bool,omitempty"`
  136. RInt32 []int32 `protobuf:"varint,2,rep,name=r_int32,json=rInt32" json:"r_int32,omitempty"`
  137. RInt64 []int64 `protobuf:"varint,3,rep,name=r_int64,json=rInt64" json:"r_int64,omitempty"`
  138. RUint32 []uint32 `protobuf:"varint,4,rep,name=r_uint32,json=rUint32" json:"r_uint32,omitempty"`
  139. RUint64 []uint64 `protobuf:"varint,5,rep,name=r_uint64,json=rUint64" json:"r_uint64,omitempty"`
  140. RSint32 []int32 `protobuf:"zigzag32,6,rep,name=r_sint32,json=rSint32" json:"r_sint32,omitempty"`
  141. RSint64 []int64 `protobuf:"zigzag64,7,rep,name=r_sint64,json=rSint64" json:"r_sint64,omitempty"`
  142. RFloat []float32 `protobuf:"fixed32,8,rep,name=r_float,json=rFloat" json:"r_float,omitempty"`
  143. RDouble []float64 `protobuf:"fixed64,9,rep,name=r_double,json=rDouble" json:"r_double,omitempty"`
  144. RString []string `protobuf:"bytes,10,rep,name=r_string,json=rString" json:"r_string,omitempty"`
  145. RBytes [][]byte `protobuf:"bytes,11,rep,name=r_bytes,json=rBytes" json:"r_bytes,omitempty"`
  146. XXX_unrecognized []byte `json:"-"`
  147. }
  148. func (m *Repeats) Reset() { *m = Repeats{} }
  149. func (m *Repeats) String() string { return proto.CompactTextString(m) }
  150. func (*Repeats) ProtoMessage() {}
  151. func (*Repeats) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
  152. func (m *Repeats) GetRBool() []bool {
  153. if m != nil {
  154. return m.RBool
  155. }
  156. return nil
  157. }
  158. func (m *Repeats) GetRInt32() []int32 {
  159. if m != nil {
  160. return m.RInt32
  161. }
  162. return nil
  163. }
  164. func (m *Repeats) GetRInt64() []int64 {
  165. if m != nil {
  166. return m.RInt64
  167. }
  168. return nil
  169. }
  170. func (m *Repeats) GetRUint32() []uint32 {
  171. if m != nil {
  172. return m.RUint32
  173. }
  174. return nil
  175. }
  176. func (m *Repeats) GetRUint64() []uint64 {
  177. if m != nil {
  178. return m.RUint64
  179. }
  180. return nil
  181. }
  182. func (m *Repeats) GetRSint32() []int32 {
  183. if m != nil {
  184. return m.RSint32
  185. }
  186. return nil
  187. }
  188. func (m *Repeats) GetRSint64() []int64 {
  189. if m != nil {
  190. return m.RSint64
  191. }
  192. return nil
  193. }
  194. func (m *Repeats) GetRFloat() []float32 {
  195. if m != nil {
  196. return m.RFloat
  197. }
  198. return nil
  199. }
  200. func (m *Repeats) GetRDouble() []float64 {
  201. if m != nil {
  202. return m.RDouble
  203. }
  204. return nil
  205. }
  206. func (m *Repeats) GetRString() []string {
  207. if m != nil {
  208. return m.RString
  209. }
  210. return nil
  211. }
  212. func (m *Repeats) GetRBytes() [][]byte {
  213. if m != nil {
  214. return m.RBytes
  215. }
  216. return nil
  217. }
  218. // Test message for holding enums and nested messages.
  219. type Widget struct {
  220. Color *Widget_Color `protobuf:"varint,1,opt,name=color,enum=jsonpb.Widget_Color" json:"color,omitempty"`
  221. RColor []Widget_Color `protobuf:"varint,2,rep,name=r_color,json=rColor,enum=jsonpb.Widget_Color" json:"r_color,omitempty"`
  222. Simple *Simple `protobuf:"bytes,10,opt,name=simple" json:"simple,omitempty"`
  223. RSimple []*Simple `protobuf:"bytes,11,rep,name=r_simple,json=rSimple" json:"r_simple,omitempty"`
  224. Repeats *Repeats `protobuf:"bytes,20,opt,name=repeats" json:"repeats,omitempty"`
  225. RRepeats []*Repeats `protobuf:"bytes,21,rep,name=r_repeats,json=rRepeats" json:"r_repeats,omitempty"`
  226. XXX_unrecognized []byte `json:"-"`
  227. }
  228. func (m *Widget) Reset() { *m = Widget{} }
  229. func (m *Widget) String() string { return proto.CompactTextString(m) }
  230. func (*Widget) ProtoMessage() {}
  231. func (*Widget) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
  232. func (m *Widget) GetColor() Widget_Color {
  233. if m != nil && m.Color != nil {
  234. return *m.Color
  235. }
  236. return Widget_RED
  237. }
  238. func (m *Widget) GetRColor() []Widget_Color {
  239. if m != nil {
  240. return m.RColor
  241. }
  242. return nil
  243. }
  244. func (m *Widget) GetSimple() *Simple {
  245. if m != nil {
  246. return m.Simple
  247. }
  248. return nil
  249. }
  250. func (m *Widget) GetRSimple() []*Simple {
  251. if m != nil {
  252. return m.RSimple
  253. }
  254. return nil
  255. }
  256. func (m *Widget) GetRepeats() *Repeats {
  257. if m != nil {
  258. return m.Repeats
  259. }
  260. return nil
  261. }
  262. func (m *Widget) GetRRepeats() []*Repeats {
  263. if m != nil {
  264. return m.RRepeats
  265. }
  266. return nil
  267. }
  268. type Maps struct {
  269. MInt64Str map[int64]string `protobuf:"bytes,1,rep,name=m_int64_str,json=mInt64Str" json:"m_int64_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  270. MBoolSimple map[bool]*Simple `protobuf:"bytes,2,rep,name=m_bool_simple,json=mBoolSimple" json:"m_bool_simple,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  271. XXX_unrecognized []byte `json:"-"`
  272. }
  273. func (m *Maps) Reset() { *m = Maps{} }
  274. func (m *Maps) String() string { return proto.CompactTextString(m) }
  275. func (*Maps) ProtoMessage() {}
  276. func (*Maps) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
  277. func (m *Maps) GetMInt64Str() map[int64]string {
  278. if m != nil {
  279. return m.MInt64Str
  280. }
  281. return nil
  282. }
  283. func (m *Maps) GetMBoolSimple() map[bool]*Simple {
  284. if m != nil {
  285. return m.MBoolSimple
  286. }
  287. return nil
  288. }
  289. type MsgWithOneof struct {
  290. // Types that are valid to be assigned to Union:
  291. // *MsgWithOneof_Title
  292. // *MsgWithOneof_Salary
  293. Union isMsgWithOneof_Union `protobuf_oneof:"union"`
  294. XXX_unrecognized []byte `json:"-"`
  295. }
  296. func (m *MsgWithOneof) Reset() { *m = MsgWithOneof{} }
  297. func (m *MsgWithOneof) String() string { return proto.CompactTextString(m) }
  298. func (*MsgWithOneof) ProtoMessage() {}
  299. func (*MsgWithOneof) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
  300. type isMsgWithOneof_Union interface {
  301. isMsgWithOneof_Union()
  302. }
  303. type MsgWithOneof_Title struct {
  304. Title string `protobuf:"bytes,1,opt,name=title,oneof"`
  305. }
  306. type MsgWithOneof_Salary struct {
  307. Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
  308. }
  309. func (*MsgWithOneof_Title) isMsgWithOneof_Union() {}
  310. func (*MsgWithOneof_Salary) isMsgWithOneof_Union() {}
  311. func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union {
  312. if m != nil {
  313. return m.Union
  314. }
  315. return nil
  316. }
  317. func (m *MsgWithOneof) GetTitle() string {
  318. if x, ok := m.GetUnion().(*MsgWithOneof_Title); ok {
  319. return x.Title
  320. }
  321. return ""
  322. }
  323. func (m *MsgWithOneof) GetSalary() int64 {
  324. if x, ok := m.GetUnion().(*MsgWithOneof_Salary); ok {
  325. return x.Salary
  326. }
  327. return 0
  328. }
  329. // XXX_OneofFuncs is for the internal use of the proto package.
  330. func (*MsgWithOneof) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  331. return _MsgWithOneof_OneofMarshaler, _MsgWithOneof_OneofUnmarshaler, _MsgWithOneof_OneofSizer, []interface{}{
  332. (*MsgWithOneof_Title)(nil),
  333. (*MsgWithOneof_Salary)(nil),
  334. }
  335. }
  336. func _MsgWithOneof_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  337. m := msg.(*MsgWithOneof)
  338. // union
  339. switch x := m.Union.(type) {
  340. case *MsgWithOneof_Title:
  341. b.EncodeVarint(1<<3 | proto.WireBytes)
  342. b.EncodeStringBytes(x.Title)
  343. case *MsgWithOneof_Salary:
  344. b.EncodeVarint(2<<3 | proto.WireVarint)
  345. b.EncodeVarint(uint64(x.Salary))
  346. case nil:
  347. default:
  348. return fmt.Errorf("MsgWithOneof.Union has unexpected type %T", x)
  349. }
  350. return nil
  351. }
  352. func _MsgWithOneof_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  353. m := msg.(*MsgWithOneof)
  354. switch tag {
  355. case 1: // union.title
  356. if wire != proto.WireBytes {
  357. return true, proto.ErrInternalBadWireType
  358. }
  359. x, err := b.DecodeStringBytes()
  360. m.Union = &MsgWithOneof_Title{x}
  361. return true, err
  362. case 2: // union.salary
  363. if wire != proto.WireVarint {
  364. return true, proto.ErrInternalBadWireType
  365. }
  366. x, err := b.DecodeVarint()
  367. m.Union = &MsgWithOneof_Salary{int64(x)}
  368. return true, err
  369. default:
  370. return false, nil
  371. }
  372. }
  373. func _MsgWithOneof_OneofSizer(msg proto.Message) (n int) {
  374. m := msg.(*MsgWithOneof)
  375. // union
  376. switch x := m.Union.(type) {
  377. case *MsgWithOneof_Title:
  378. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  379. n += proto.SizeVarint(uint64(len(x.Title)))
  380. n += len(x.Title)
  381. case *MsgWithOneof_Salary:
  382. n += proto.SizeVarint(2<<3 | proto.WireVarint)
  383. n += proto.SizeVarint(uint64(x.Salary))
  384. case nil:
  385. default:
  386. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  387. }
  388. return n
  389. }
  390. type Real struct {
  391. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  392. XXX_extensions map[int32]proto.Extension `json:"-"`
  393. XXX_unrecognized []byte `json:"-"`
  394. }
  395. func (m *Real) Reset() { *m = Real{} }
  396. func (m *Real) String() string { return proto.CompactTextString(m) }
  397. func (*Real) ProtoMessage() {}
  398. func (*Real) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
  399. var extRange_Real = []proto.ExtensionRange{
  400. {100, 536870911},
  401. }
  402. func (*Real) ExtensionRangeArray() []proto.ExtensionRange {
  403. return extRange_Real
  404. }
  405. func (m *Real) ExtensionMap() map[int32]proto.Extension {
  406. if m.XXX_extensions == nil {
  407. m.XXX_extensions = make(map[int32]proto.Extension)
  408. }
  409. return m.XXX_extensions
  410. }
  411. func (m *Real) GetValue() float64 {
  412. if m != nil && m.Value != nil {
  413. return *m.Value
  414. }
  415. return 0
  416. }
  417. type Complex struct {
  418. Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
  419. XXX_extensions map[int32]proto.Extension `json:"-"`
  420. XXX_unrecognized []byte `json:"-"`
  421. }
  422. func (m *Complex) Reset() { *m = Complex{} }
  423. func (m *Complex) String() string { return proto.CompactTextString(m) }
  424. func (*Complex) ProtoMessage() {}
  425. func (*Complex) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
  426. var extRange_Complex = []proto.ExtensionRange{
  427. {100, 536870911},
  428. }
  429. func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
  430. return extRange_Complex
  431. }
  432. func (m *Complex) ExtensionMap() map[int32]proto.Extension {
  433. if m.XXX_extensions == nil {
  434. m.XXX_extensions = make(map[int32]proto.Extension)
  435. }
  436. return m.XXX_extensions
  437. }
  438. func (m *Complex) GetImaginary() float64 {
  439. if m != nil && m.Imaginary != nil {
  440. return *m.Imaginary
  441. }
  442. return 0
  443. }
  444. var E_Complex_RealExtension = &proto.ExtensionDesc{
  445. ExtendedType: (*Real)(nil),
  446. ExtensionType: (*Complex)(nil),
  447. Field: 123,
  448. Name: "jsonpb.Complex.real_extension",
  449. Tag: "bytes,123,opt,name=real_extension,json=realExtension",
  450. }
  451. type KnownTypes struct {
  452. Dur *google_protobuf.Duration `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
  453. Ts *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
  454. Dbl *google_protobuf2.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
  455. Flt *google_protobuf2.FloatValue `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
  456. I64 *google_protobuf2.Int64Value `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
  457. U64 *google_protobuf2.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
  458. I32 *google_protobuf2.Int32Value `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
  459. U32 *google_protobuf2.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
  460. Bool *google_protobuf2.BoolValue `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
  461. Str *google_protobuf2.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
  462. Bytes *google_protobuf2.BytesValue `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
  463. XXX_unrecognized []byte `json:"-"`
  464. }
  465. func (m *KnownTypes) Reset() { *m = KnownTypes{} }
  466. func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
  467. func (*KnownTypes) ProtoMessage() {}
  468. func (*KnownTypes) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
  469. func (m *KnownTypes) GetDur() *google_protobuf.Duration {
  470. if m != nil {
  471. return m.Dur
  472. }
  473. return nil
  474. }
  475. func (m *KnownTypes) GetTs() *google_protobuf1.Timestamp {
  476. if m != nil {
  477. return m.Ts
  478. }
  479. return nil
  480. }
  481. func (m *KnownTypes) GetDbl() *google_protobuf2.DoubleValue {
  482. if m != nil {
  483. return m.Dbl
  484. }
  485. return nil
  486. }
  487. func (m *KnownTypes) GetFlt() *google_protobuf2.FloatValue {
  488. if m != nil {
  489. return m.Flt
  490. }
  491. return nil
  492. }
  493. func (m *KnownTypes) GetI64() *google_protobuf2.Int64Value {
  494. if m != nil {
  495. return m.I64
  496. }
  497. return nil
  498. }
  499. func (m *KnownTypes) GetU64() *google_protobuf2.UInt64Value {
  500. if m != nil {
  501. return m.U64
  502. }
  503. return nil
  504. }
  505. func (m *KnownTypes) GetI32() *google_protobuf2.Int32Value {
  506. if m != nil {
  507. return m.I32
  508. }
  509. return nil
  510. }
  511. func (m *KnownTypes) GetU32() *google_protobuf2.UInt32Value {
  512. if m != nil {
  513. return m.U32
  514. }
  515. return nil
  516. }
  517. func (m *KnownTypes) GetBool() *google_protobuf2.BoolValue {
  518. if m != nil {
  519. return m.Bool
  520. }
  521. return nil
  522. }
  523. func (m *KnownTypes) GetStr() *google_protobuf2.StringValue {
  524. if m != nil {
  525. return m.Str
  526. }
  527. return nil
  528. }
  529. func (m *KnownTypes) GetBytes() *google_protobuf2.BytesValue {
  530. if m != nil {
  531. return m.Bytes
  532. }
  533. return nil
  534. }
  535. var E_Name = &proto.ExtensionDesc{
  536. ExtendedType: (*Real)(nil),
  537. ExtensionType: (*string)(nil),
  538. Field: 124,
  539. Name: "jsonpb.name",
  540. Tag: "bytes,124,opt,name=name",
  541. }
  542. func init() {
  543. proto.RegisterType((*Simple)(nil), "jsonpb.Simple")
  544. proto.RegisterType((*Repeats)(nil), "jsonpb.Repeats")
  545. proto.RegisterType((*Widget)(nil), "jsonpb.Widget")
  546. proto.RegisterType((*Maps)(nil), "jsonpb.Maps")
  547. proto.RegisterType((*MsgWithOneof)(nil), "jsonpb.MsgWithOneof")
  548. proto.RegisterType((*Real)(nil), "jsonpb.Real")
  549. proto.RegisterType((*Complex)(nil), "jsonpb.Complex")
  550. proto.RegisterType((*KnownTypes)(nil), "jsonpb.KnownTypes")
  551. proto.RegisterEnum("jsonpb.Widget_Color", Widget_Color_name, Widget_Color_value)
  552. proto.RegisterExtension(E_Complex_RealExtension)
  553. proto.RegisterExtension(E_Name)
  554. }
  555. var fileDescriptor1 = []byte{
  556. // 947 bytes of a gzipped FileDescriptorProto
  557. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x95, 0xd1, 0x72, 0xdb, 0x44,
  558. 0x14, 0x86, 0x6b, 0xad, 0x65, 0x49, 0xeb, 0x26, 0x98, 0x9d, 0x14, 0x54, 0x53, 0xa0, 0xe3, 0x81,
  559. 0x0e, 0x14, 0x50, 0x07, 0xb7, 0xd3, 0x61, 0x0a, 0x37, 0xa4, 0x31, 0xd0, 0x81, 0x94, 0x99, 0x4d,
  560. 0x43, 0x2f, 0x3d, 0x72, 0xa3, 0x18, 0x15, 0x49, 0xab, 0x39, 0x92, 0x49, 0x3d, 0x70, 0xc1, 0x43,
  561. 0xc0, 0x23, 0xc0, 0x23, 0xf0, 0x7c, 0x9c, 0xb3, 0x2b, 0x69, 0x9d, 0xb8, 0x26, 0x37, 0xf1, 0xea,
  562. 0xff, 0xcf, 0xaf, 0xd5, 0xb7, 0x47, 0x47, 0x5c, 0xd4, 0x49, 0x55, 0xcf, 0xd5, 0xe2, 0x65, 0xf2,
  563. 0xa2, 0xae, 0xa2, 0x12, 0x54, 0xad, 0xc4, 0xe0, 0x65, 0xa5, 0x8a, 0x72, 0x31, 0x7e, 0x6f, 0xa9,
  564. 0xd4, 0x32, 0x4b, 0xee, 0xe9, 0xab, 0x8b, 0xd5, 0xf9, 0xbd, 0xb3, 0x15, 0xc4, 0x75, 0xaa, 0x0a,
  565. 0xe3, 0x1b, 0xbf, 0x7f, 0x55, 0xaf, 0xd3, 0x1c, 0xd3, 0xe2, 0xbc, 0x6c, 0x0c, 0x5b, 0x01, 0x17,
  566. 0x10, 0x97, 0x65, 0x02, 0xcd, 0x8d, 0x26, 0x7f, 0x3b, 0x7c, 0x70, 0x92, 0xe6, 0x65, 0x96, 0x88,
  567. 0x1b, 0x7c, 0xa0, 0xe6, 0x0b, 0xa5, 0xb2, 0xb0, 0x77, 0xbb, 0xf7, 0x91, 0x2f, 0x5d, 0x75, 0x88,
  568. 0x0b, 0xf1, 0x36, 0xf7, 0xd4, 0x3c, 0x2d, 0xea, 0xfb, 0xd3, 0xd0, 0xc1, 0xeb, 0xae, 0x1c, 0xa8,
  569. 0x27, 0xb4, 0xea, 0x84, 0x87, 0x0f, 0x42, 0x86, 0x02, 0x33, 0xc2, 0xc3, 0x07, 0xe2, 0x26, 0xf7,
  570. 0xd5, 0x7c, 0x65, 0x4a, 0xfa, 0xa8, 0xec, 0x49, 0x4f, 0x9d, 0xea, 0xa5, 0x95, 0xb0, 0xc8, 0x45,
  571. 0xa9, 0xdf, 0x48, 0x6d, 0x55, 0x65, 0xaa, 0x06, 0x28, 0xbd, 0x89, 0xd2, 0xc9, 0x46, 0x55, 0x65,
  572. 0xaa, 0x3c, 0x94, 0x44, 0x23, 0x61, 0x95, 0xde, 0xc4, 0x79, 0xa6, 0xe2, 0x3a, 0xf4, 0x51, 0x71,
  573. 0x70, 0x13, 0xdf, 0xd0, 0xca, 0xd4, 0x9c, 0xa9, 0xd5, 0x22, 0x4b, 0xc2, 0x00, 0x95, 0x1e, 0xd6,
  574. 0x1c, 0xe9, 0x65, 0x13, 0x57, 0x43, 0x5a, 0x2c, 0x43, 0x8e, 0x52, 0x40, 0x71, 0x7a, 0x69, 0xe2,
  575. 0x16, 0x6b, 0x3c, 0x91, 0x70, 0x88, 0xca, 0x75, 0x8c, 0x3b, 0xa4, 0xd5, 0xe4, 0x1f, 0x87, 0x7b,
  576. 0x32, 0x29, 0x93, 0xb8, 0xae, 0x08, 0x14, 0xb4, 0xa0, 0x18, 0x81, 0x82, 0x16, 0x14, 0x74, 0xa0,
  577. 0x18, 0x81, 0x82, 0x0e, 0x14, 0x74, 0xa0, 0x18, 0x81, 0x82, 0x0e, 0x14, 0x58, 0x50, 0x8c, 0x40,
  578. 0x81, 0x05, 0x05, 0x16, 0x14, 0x23, 0x50, 0x60, 0x41, 0x81, 0x05, 0xc5, 0x08, 0x14, 0x9c, 0x6c,
  579. 0x54, 0x75, 0xa0, 0x18, 0x81, 0x02, 0x0b, 0x0a, 0x3a, 0x50, 0x8c, 0x40, 0x41, 0x07, 0x0a, 0x2c,
  580. 0x28, 0x46, 0xa0, 0xc0, 0x82, 0x02, 0x0b, 0x8a, 0x11, 0x28, 0xb0, 0xa0, 0xa0, 0x03, 0xc5, 0x08,
  581. 0x14, 0x18, 0x50, 0xff, 0x62, 0x43, 0x3d, 0x4f, 0xcf, 0x96, 0x49, 0x2d, 0xee, 0x72, 0xf7, 0x85,
  582. 0xca, 0x14, 0xe8, 0x7e, 0xda, 0x9f, 0x1e, 0x44, 0xa6, 0xa9, 0x23, 0x23, 0x47, 0x8f, 0x49, 0x93,
  583. 0xc6, 0x22, 0x3e, 0xa3, 0x3c, 0xe3, 0x26, 0x78, 0xbb, 0xdc, 0x03, 0xd0, 0xff, 0xc5, 0x1d, 0x3e,
  584. 0xa8, 0x74, 0xd7, 0xea, 0x03, 0x1c, 0x4e, 0xf7, 0x5b, 0xb7, 0xe9, 0x65, 0xd9, 0xa8, 0xe2, 0x63,
  585. 0x03, 0x44, 0x3b, 0x69, 0x9f, 0xdb, 0x4e, 0x02, 0xd4, 0x58, 0x3d, 0x30, 0x07, 0x1c, 0x1e, 0xe8,
  586. 0xcc, 0x37, 0x5a, 0x67, 0x73, 0xee, 0xb2, 0xd5, 0xc5, 0xa7, 0x3c, 0x80, 0x79, 0x6b, 0xbe, 0xa1,
  587. 0x63, 0xb7, 0xcc, 0x3e, 0x34, 0xbf, 0x26, 0x1f, 0x72, 0xd7, 0x6c, 0xda, 0xe3, 0x4c, 0xce, 0x8e,
  588. 0x46, 0xd7, 0x44, 0xc0, 0xdd, 0x6f, 0xe5, 0x6c, 0xf6, 0x74, 0xd4, 0x13, 0x3e, 0xef, 0x1f, 0xfe,
  589. 0x70, 0x3a, 0x1b, 0x39, 0x93, 0x3f, 0x1d, 0xde, 0x3f, 0x8e, 0xcb, 0x4a, 0x7c, 0xc9, 0x87, 0xb9,
  590. 0x69, 0x17, 0x62, 0xaf, 0x7b, 0x6c, 0x38, 0x7d, 0xa7, 0xcd, 0x27, 0x4b, 0x74, 0xac, 0xfb, 0x07,
  591. 0x8f, 0x62, 0x56, 0xd4, 0xb0, 0x96, 0x41, 0xde, 0xae, 0xc5, 0xd7, 0x7c, 0x2f, 0xd7, 0xbd, 0xd9,
  592. 0x3e, 0xb5, 0xa3, 0xcb, 0xdf, 0xbd, 0x5c, 0x4e, 0xfd, 0x6a, 0x1e, 0xdb, 0x04, 0x0c, 0x73, 0x7b,
  593. 0x65, 0xfc, 0x15, 0xdf, 0xbf, 0x9c, 0x2f, 0x46, 0x9c, 0xfd, 0x92, 0xac, 0xf5, 0x31, 0x32, 0x49,
  594. 0x3f, 0xc5, 0x01, 0x77, 0x7f, 0x8d, 0xb3, 0x55, 0xa2, 0x47, 0x42, 0x20, 0xcd, 0xe2, 0x91, 0xf3,
  595. 0x45, 0x6f, 0xfc, 0x94, 0x8f, 0xae, 0xc6, 0x6f, 0xd6, 0xfb, 0xa6, 0xfe, 0x83, 0xcd, 0xfa, 0xed,
  596. 0x43, 0xb1, 0x79, 0x93, 0x27, 0xfc, 0xfa, 0x71, 0xb5, 0x7c, 0x9e, 0xd6, 0x3f, 0xff, 0x58, 0x24,
  597. 0xea, 0x5c, 0xbc, 0xc5, 0xdd, 0x3a, 0xad, 0xf1, 0xc1, 0x28, 0x2d, 0xf8, 0xee, 0x9a, 0x34, 0x4b,
  598. 0x11, 0x62, 0x47, 0xc4, 0x59, 0x0c, 0x6b, 0x1d, 0xc9, 0x50, 0x68, 0xd6, 0x87, 0x1e, 0x77, 0x57,
  599. 0x05, 0x8e, 0xcc, 0xc9, 0x1d, 0xde, 0x97, 0x49, 0x9c, 0xd9, 0xcd, 0xf7, 0xf4, 0x5c, 0x30, 0x8b,
  600. 0xbb, 0xbe, 0x7f, 0x36, 0xfa, 0x03, 0xff, 0x9c, 0xc9, 0x05, 0xf7, 0x1e, 0x2b, 0xda, 0xc7, 0x2b,
  601. 0x71, 0x8b, 0x07, 0x69, 0x1e, 0x2f, 0xd3, 0x82, 0x82, 0x8d, 0xdd, 0x5e, 0xb0, 0x25, 0xd3, 0x23,
  602. 0xbe, 0x0f, 0x18, 0x3d, 0x4f, 0x5e, 0xd5, 0x49, 0x51, 0xe1, 0xcd, 0xc4, 0x75, 0xdb, 0x10, 0x71,
  603. 0x16, 0xfe, 0x76, 0xb9, 0xa3, 0x9a, 0x78, 0xb9, 0x47, 0x45, 0xb3, 0xb6, 0x66, 0xf2, 0x57, 0x9f,
  604. 0xf3, 0xef, 0x0b, 0x75, 0x51, 0x3c, 0x5b, 0x97, 0x49, 0x25, 0x3e, 0xe1, 0x0c, 0xc7, 0xbd, 0xbe,
  605. 0xed, 0x70, 0x7a, 0x33, 0x32, 0x93, 0x3c, 0x6a, 0x27, 0x79, 0x74, 0xd4, 0x7c, 0x0a, 0x24, 0xb9,
  606. 0xf0, 0x65, 0x73, 0xb0, 0x19, 0x0d, 0xce, 0xf1, 0x96, 0xf7, 0x59, 0xfb, 0x59, 0x90, 0xe8, 0x12,
  607. 0x11, 0x06, 0x2f, 0x32, 0x3d, 0xb5, 0x87, 0xd3, 0x5b, 0xdb, 0xc1, 0xfa, 0xed, 0xff, 0x89, 0xa8,
  608. 0x48, 0x32, 0xe2, 0xcb, 0xc9, 0xce, 0xb3, 0x5a, 0xcf, 0x72, 0xea, 0xc4, 0xab, 0x7e, 0x3d, 0x47,
  609. 0x1a, 0x3b, 0xfa, 0xc8, 0x9e, 0x36, 0xf3, 0xfd, 0x75, 0x76, 0xdd, 0x5b, 0x8d, 0x1d, 0x7d, 0xb4,
  610. 0x9b, 0x15, 0xda, 0x07, 0x3b, 0x76, 0x73, 0xba, 0xe9, 0x47, 0xa3, 0x8e, 0xc7, 0xd1, 0xe7, 0xed,
  611. 0x8e, 0xbf, 0x3f, 0x6d, 0xe3, 0x71, 0x26, 0x52, 0x3c, 0xda, 0xfd, 0xff, 0x89, 0xef, 0xfc, 0x2b,
  612. 0xed, 0xef, 0xeb, 0xd9, 0x1e, 0xec, 0x40, 0x49, 0xcd, 0x6d, 0xec, 0xda, 0x47, 0xf9, 0xf4, 0x9a,
  613. 0xf2, 0x1d, 0xf9, 0x66, 0x5e, 0x36, 0xf9, 0x68, 0x14, 0x9f, 0x73, 0xd7, 0x7e, 0x60, 0x5e, 0xf7,
  614. 0x00, 0x7a, 0x8e, 0x9a, 0x02, 0xe3, 0x7c, 0x74, 0x9b, 0xf7, 0x8b, 0x38, 0x4f, 0xae, 0xf4, 0xd4,
  615. 0xef, 0xfa, 0xd5, 0xd3, 0xca, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa1, 0xac, 0xb6, 0x4e, 0x44,
  616. 0x08, 0x00, 0x00,
  617. }