test_objects.pb.go 26 KB

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