test_objects.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751
  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. Union isMsgWithOneof_Union `protobuf_oneof:"union"`
  297. XXX_unrecognized []byte `json:"-"`
  298. }
  299. func (m *MsgWithOneof) Reset() { *m = MsgWithOneof{} }
  300. func (m *MsgWithOneof) String() string { return proto.CompactTextString(m) }
  301. func (*MsgWithOneof) ProtoMessage() {}
  302. func (*MsgWithOneof) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
  303. type isMsgWithOneof_Union interface {
  304. isMsgWithOneof_Union()
  305. }
  306. type MsgWithOneof_Title struct {
  307. Title string `protobuf:"bytes,1,opt,name=title,oneof"`
  308. }
  309. type MsgWithOneof_Salary struct {
  310. Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
  311. }
  312. type MsgWithOneof_Country struct {
  313. Country string `protobuf:"bytes,3,opt,name=Country,json=country,oneof"`
  314. }
  315. func (*MsgWithOneof_Title) isMsgWithOneof_Union() {}
  316. func (*MsgWithOneof_Salary) isMsgWithOneof_Union() {}
  317. func (*MsgWithOneof_Country) isMsgWithOneof_Union() {}
  318. func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union {
  319. if m != nil {
  320. return m.Union
  321. }
  322. return nil
  323. }
  324. func (m *MsgWithOneof) GetTitle() string {
  325. if x, ok := m.GetUnion().(*MsgWithOneof_Title); ok {
  326. return x.Title
  327. }
  328. return ""
  329. }
  330. func (m *MsgWithOneof) GetSalary() int64 {
  331. if x, ok := m.GetUnion().(*MsgWithOneof_Salary); ok {
  332. return x.Salary
  333. }
  334. return 0
  335. }
  336. func (m *MsgWithOneof) GetCountry() string {
  337. if x, ok := m.GetUnion().(*MsgWithOneof_Country); ok {
  338. return x.Country
  339. }
  340. return ""
  341. }
  342. // XXX_OneofFuncs is for the internal use of the proto package.
  343. 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{}) {
  344. return _MsgWithOneof_OneofMarshaler, _MsgWithOneof_OneofUnmarshaler, _MsgWithOneof_OneofSizer, []interface{}{
  345. (*MsgWithOneof_Title)(nil),
  346. (*MsgWithOneof_Salary)(nil),
  347. (*MsgWithOneof_Country)(nil),
  348. }
  349. }
  350. func _MsgWithOneof_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  351. m := msg.(*MsgWithOneof)
  352. // union
  353. switch x := m.Union.(type) {
  354. case *MsgWithOneof_Title:
  355. b.EncodeVarint(1<<3 | proto.WireBytes)
  356. b.EncodeStringBytes(x.Title)
  357. case *MsgWithOneof_Salary:
  358. b.EncodeVarint(2<<3 | proto.WireVarint)
  359. b.EncodeVarint(uint64(x.Salary))
  360. case *MsgWithOneof_Country:
  361. b.EncodeVarint(3<<3 | proto.WireBytes)
  362. b.EncodeStringBytes(x.Country)
  363. case nil:
  364. default:
  365. return fmt.Errorf("MsgWithOneof.Union has unexpected type %T", x)
  366. }
  367. return nil
  368. }
  369. func _MsgWithOneof_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  370. m := msg.(*MsgWithOneof)
  371. switch tag {
  372. case 1: // union.title
  373. if wire != proto.WireBytes {
  374. return true, proto.ErrInternalBadWireType
  375. }
  376. x, err := b.DecodeStringBytes()
  377. m.Union = &MsgWithOneof_Title{x}
  378. return true, err
  379. case 2: // union.salary
  380. if wire != proto.WireVarint {
  381. return true, proto.ErrInternalBadWireType
  382. }
  383. x, err := b.DecodeVarint()
  384. m.Union = &MsgWithOneof_Salary{int64(x)}
  385. return true, err
  386. case 3: // union.Country
  387. if wire != proto.WireBytes {
  388. return true, proto.ErrInternalBadWireType
  389. }
  390. x, err := b.DecodeStringBytes()
  391. m.Union = &MsgWithOneof_Country{x}
  392. return true, err
  393. default:
  394. return false, nil
  395. }
  396. }
  397. func _MsgWithOneof_OneofSizer(msg proto.Message) (n int) {
  398. m := msg.(*MsgWithOneof)
  399. // union
  400. switch x := m.Union.(type) {
  401. case *MsgWithOneof_Title:
  402. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  403. n += proto.SizeVarint(uint64(len(x.Title)))
  404. n += len(x.Title)
  405. case *MsgWithOneof_Salary:
  406. n += proto.SizeVarint(2<<3 | proto.WireVarint)
  407. n += proto.SizeVarint(uint64(x.Salary))
  408. case *MsgWithOneof_Country:
  409. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  410. n += proto.SizeVarint(uint64(len(x.Country)))
  411. n += len(x.Country)
  412. case nil:
  413. default:
  414. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  415. }
  416. return n
  417. }
  418. type Real struct {
  419. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  420. XXX_extensions map[int32]proto.Extension `json:"-"`
  421. XXX_unrecognized []byte `json:"-"`
  422. }
  423. func (m *Real) Reset() { *m = Real{} }
  424. func (m *Real) String() string { return proto.CompactTextString(m) }
  425. func (*Real) ProtoMessage() {}
  426. func (*Real) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
  427. var extRange_Real = []proto.ExtensionRange{
  428. {100, 536870911},
  429. }
  430. func (*Real) ExtensionRangeArray() []proto.ExtensionRange {
  431. return extRange_Real
  432. }
  433. func (m *Real) ExtensionMap() map[int32]proto.Extension {
  434. if m.XXX_extensions == nil {
  435. m.XXX_extensions = make(map[int32]proto.Extension)
  436. }
  437. return m.XXX_extensions
  438. }
  439. func (m *Real) GetValue() float64 {
  440. if m != nil && m.Value != nil {
  441. return *m.Value
  442. }
  443. return 0
  444. }
  445. type Complex struct {
  446. Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
  447. XXX_extensions map[int32]proto.Extension `json:"-"`
  448. XXX_unrecognized []byte `json:"-"`
  449. }
  450. func (m *Complex) Reset() { *m = Complex{} }
  451. func (m *Complex) String() string { return proto.CompactTextString(m) }
  452. func (*Complex) ProtoMessage() {}
  453. func (*Complex) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
  454. var extRange_Complex = []proto.ExtensionRange{
  455. {100, 536870911},
  456. }
  457. func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
  458. return extRange_Complex
  459. }
  460. func (m *Complex) ExtensionMap() map[int32]proto.Extension {
  461. if m.XXX_extensions == nil {
  462. m.XXX_extensions = make(map[int32]proto.Extension)
  463. }
  464. return m.XXX_extensions
  465. }
  466. func (m *Complex) GetImaginary() float64 {
  467. if m != nil && m.Imaginary != nil {
  468. return *m.Imaginary
  469. }
  470. return 0
  471. }
  472. var E_Complex_RealExtension = &proto.ExtensionDesc{
  473. ExtendedType: (*Real)(nil),
  474. ExtensionType: (*Complex)(nil),
  475. Field: 123,
  476. Name: "jsonpb.Complex.real_extension",
  477. Tag: "bytes,123,opt,name=real_extension,json=realExtension",
  478. }
  479. type KnownTypes struct {
  480. An *google_protobuf.Any `protobuf:"bytes,14,opt,name=an" json:"an,omitempty"`
  481. Dur *google_protobuf1.Duration `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
  482. St *google_protobuf2.Struct `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
  483. Ts *google_protobuf3.Timestamp `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
  484. Dbl *google_protobuf4.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
  485. Flt *google_protobuf4.FloatValue `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
  486. I64 *google_protobuf4.Int64Value `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
  487. U64 *google_protobuf4.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
  488. I32 *google_protobuf4.Int32Value `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
  489. U32 *google_protobuf4.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
  490. Bool *google_protobuf4.BoolValue `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
  491. Str *google_protobuf4.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
  492. Bytes *google_protobuf4.BytesValue `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
  493. XXX_unrecognized []byte `json:"-"`
  494. }
  495. func (m *KnownTypes) Reset() { *m = KnownTypes{} }
  496. func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
  497. func (*KnownTypes) ProtoMessage() {}
  498. func (*KnownTypes) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
  499. func (m *KnownTypes) GetAn() *google_protobuf.Any {
  500. if m != nil {
  501. return m.An
  502. }
  503. return nil
  504. }
  505. func (m *KnownTypes) GetDur() *google_protobuf1.Duration {
  506. if m != nil {
  507. return m.Dur
  508. }
  509. return nil
  510. }
  511. func (m *KnownTypes) GetSt() *google_protobuf2.Struct {
  512. if m != nil {
  513. return m.St
  514. }
  515. return nil
  516. }
  517. func (m *KnownTypes) GetTs() *google_protobuf3.Timestamp {
  518. if m != nil {
  519. return m.Ts
  520. }
  521. return nil
  522. }
  523. func (m *KnownTypes) GetDbl() *google_protobuf4.DoubleValue {
  524. if m != nil {
  525. return m.Dbl
  526. }
  527. return nil
  528. }
  529. func (m *KnownTypes) GetFlt() *google_protobuf4.FloatValue {
  530. if m != nil {
  531. return m.Flt
  532. }
  533. return nil
  534. }
  535. func (m *KnownTypes) GetI64() *google_protobuf4.Int64Value {
  536. if m != nil {
  537. return m.I64
  538. }
  539. return nil
  540. }
  541. func (m *KnownTypes) GetU64() *google_protobuf4.UInt64Value {
  542. if m != nil {
  543. return m.U64
  544. }
  545. return nil
  546. }
  547. func (m *KnownTypes) GetI32() *google_protobuf4.Int32Value {
  548. if m != nil {
  549. return m.I32
  550. }
  551. return nil
  552. }
  553. func (m *KnownTypes) GetU32() *google_protobuf4.UInt32Value {
  554. if m != nil {
  555. return m.U32
  556. }
  557. return nil
  558. }
  559. func (m *KnownTypes) GetBool() *google_protobuf4.BoolValue {
  560. if m != nil {
  561. return m.Bool
  562. }
  563. return nil
  564. }
  565. func (m *KnownTypes) GetStr() *google_protobuf4.StringValue {
  566. if m != nil {
  567. return m.Str
  568. }
  569. return nil
  570. }
  571. func (m *KnownTypes) GetBytes() *google_protobuf4.BytesValue {
  572. if m != nil {
  573. return m.Bytes
  574. }
  575. return nil
  576. }
  577. var E_Name = &proto.ExtensionDesc{
  578. ExtendedType: (*Real)(nil),
  579. ExtensionType: (*string)(nil),
  580. Field: 124,
  581. Name: "jsonpb.name",
  582. Tag: "bytes,124,opt,name=name",
  583. }
  584. func init() {
  585. proto.RegisterType((*Simple)(nil), "jsonpb.Simple")
  586. proto.RegisterType((*Repeats)(nil), "jsonpb.Repeats")
  587. proto.RegisterType((*Widget)(nil), "jsonpb.Widget")
  588. proto.RegisterType((*Maps)(nil), "jsonpb.Maps")
  589. proto.RegisterType((*MsgWithOneof)(nil), "jsonpb.MsgWithOneof")
  590. proto.RegisterType((*Real)(nil), "jsonpb.Real")
  591. proto.RegisterType((*Complex)(nil), "jsonpb.Complex")
  592. proto.RegisterType((*KnownTypes)(nil), "jsonpb.KnownTypes")
  593. proto.RegisterEnum("jsonpb.Widget_Color", Widget_Color_name, Widget_Color_value)
  594. proto.RegisterExtension(E_Complex_RealExtension)
  595. proto.RegisterExtension(E_Name)
  596. }
  597. var fileDescriptor1 = []byte{
  598. // 1031 bytes of a gzipped FileDescriptorProto
  599. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x95, 0xdf, 0x72, 0xdb, 0x44,
  600. 0x14, 0xc6, 0x2b, 0xc9, 0x96, 0xec, 0x75, 0x12, 0xcc, 0x4e, 0x4a, 0x15, 0x13, 0x40, 0xe3, 0x29,
  601. 0x45, 0x14, 0xea, 0x0e, 0x8a, 0xc7, 0xc3, 0x14, 0x6e, 0x9a, 0xc6, 0x50, 0x06, 0x52, 0x66, 0x36,
  602. 0x0d, 0xbd, 0xf4, 0xc8, 0xf1, 0xc6, 0xa8, 0xc8, 0x5a, 0xcf, 0xee, 0x8a, 0xd4, 0x03, 0x17, 0x79,
  603. 0x08, 0x5e, 0x01, 0x1e, 0x81, 0x27, 0xe2, 0x41, 0x98, 0x73, 0x56, 0x7f, 0x12, 0x3b, 0xbe, 0x8a,
  604. 0x8f, 0xce, 0x77, 0xbe, 0xac, 0x7e, 0x7b, 0x74, 0x0e, 0xa1, 0x9a, 0x2b, 0x3d, 0x11, 0xd3, 0xb7,
  605. 0xfc, 0x42, 0xab, 0xc1, 0x52, 0x0a, 0x2d, 0xa8, 0xfb, 0x56, 0x89, 0x6c, 0x39, 0xed, 0x1d, 0xcc,
  606. 0x85, 0x98, 0xa7, 0xfc, 0x29, 0x3e, 0x9d, 0xe6, 0x97, 0x4f, 0xe3, 0x6c, 0x65, 0x24, 0xbd, 0x8f,
  607. 0xd7, 0x53, 0xb3, 0x5c, 0xc6, 0x3a, 0x11, 0x59, 0x91, 0x3f, 0x5c, 0xcf, 0x2b, 0x2d, 0xf3, 0x0b,
  608. 0x5d, 0x64, 0x3f, 0x59, 0xcf, 0xea, 0x64, 0xc1, 0x95, 0x8e, 0x17, 0xcb, 0x6d, 0xf6, 0x57, 0x32,
  609. 0x5e, 0x2e, 0xb9, 0x2c, 0x4e, 0xd8, 0xff, 0xdb, 0x26, 0xee, 0x59, 0xb2, 0x58, 0xa6, 0x9c, 0xde,
  610. 0x27, 0xae, 0x98, 0x4c, 0x85, 0x48, 0x7d, 0x2b, 0xb0, 0xc2, 0x16, 0x6b, 0x8a, 0x63, 0x21, 0x52,
  611. 0xfa, 0x80, 0x78, 0x62, 0x92, 0x64, 0xfa, 0x28, 0xf2, 0xed, 0xc0, 0x0a, 0x9b, 0xcc, 0x15, 0x3f,
  612. 0x40, 0x54, 0x25, 0x46, 0x43, 0xdf, 0x09, 0xac, 0xd0, 0x31, 0x89, 0xd1, 0x90, 0x1e, 0x90, 0x96,
  613. 0x98, 0xe4, 0xa6, 0xa4, 0x11, 0x58, 0xe1, 0x2e, 0xf3, 0xc4, 0x39, 0x86, 0x75, 0x6a, 0x34, 0xf4,
  614. 0x9b, 0x81, 0x15, 0x36, 0x8a, 0x54, 0x59, 0xa5, 0x4c, 0x95, 0x1b, 0x58, 0xe1, 0xfb, 0xcc, 0x13,
  615. 0x67, 0x37, 0xaa, 0x94, 0xa9, 0xf2, 0x02, 0x2b, 0xa4, 0x45, 0x6a, 0x34, 0x34, 0x87, 0xb8, 0x4c,
  616. 0x45, 0xac, 0xfd, 0x56, 0x60, 0x85, 0x36, 0x73, 0xc5, 0x77, 0x10, 0x99, 0x9a, 0x99, 0xc8, 0xa7,
  617. 0x29, 0xf7, 0xdb, 0x81, 0x15, 0x5a, 0xcc, 0x13, 0x27, 0x18, 0x16, 0x76, 0x5a, 0x26, 0xd9, 0xdc,
  618. 0x27, 0x81, 0x15, 0xb6, 0xc1, 0x0e, 0x43, 0x63, 0x37, 0x5d, 0x69, 0xae, 0xfc, 0x4e, 0x60, 0x85,
  619. 0x3b, 0xcc, 0x15, 0xc7, 0x10, 0xf5, 0xff, 0xb1, 0x89, 0xc7, 0xf8, 0x92, 0xc7, 0x5a, 0x01, 0x28,
  620. 0x59, 0x82, 0x72, 0x00, 0x94, 0x2c, 0x41, 0xc9, 0x0a, 0x94, 0x03, 0xa0, 0x64, 0x05, 0x4a, 0x56,
  621. 0xa0, 0x1c, 0x00, 0x25, 0x2b, 0x50, 0xb2, 0x06, 0xe5, 0x00, 0x28, 0x59, 0x83, 0x92, 0x35, 0x28,
  622. 0x07, 0x40, 0xc9, 0x1a, 0x94, 0xac, 0x41, 0x39, 0x00, 0x4a, 0x9e, 0xdd, 0xa8, 0xaa, 0x40, 0x39,
  623. 0x00, 0x4a, 0xd6, 0xa0, 0x64, 0x05, 0xca, 0x01, 0x50, 0xb2, 0x02, 0x25, 0x6b, 0x50, 0x0e, 0x80,
  624. 0x92, 0x35, 0x28, 0x59, 0x83, 0x72, 0x00, 0x94, 0xac, 0x41, 0xc9, 0x0a, 0x94, 0x03, 0xa0, 0xa4,
  625. 0x01, 0xf5, 0xaf, 0x4d, 0xdc, 0x37, 0xc9, 0x6c, 0xce, 0x35, 0x7d, 0x4c, 0x9a, 0x17, 0x22, 0x15,
  626. 0x12, 0xfb, 0x69, 0x2f, 0xda, 0x1f, 0x98, 0xaf, 0x61, 0x60, 0xd2, 0x83, 0x17, 0x90, 0x63, 0x46,
  627. 0x42, 0x9f, 0x80, 0x9f, 0x51, 0x03, 0xbc, 0x6d, 0x6a, 0x57, 0xe2, 0x5f, 0xfa, 0x88, 0xb8, 0x0a,
  628. 0xbb, 0x16, 0x2f, 0xb0, 0x13, 0xed, 0x95, 0x6a, 0xd3, 0xcb, 0xac, 0xc8, 0xd2, 0xcf, 0x0d, 0x10,
  629. 0x54, 0xc2, 0x39, 0x37, 0x95, 0x00, 0xa8, 0x90, 0x7a, 0xd2, 0x5c, 0xb0, 0xbf, 0x8f, 0x9e, 0xef,
  630. 0x95, 0xca, 0xe2, 0xde, 0x59, 0x99, 0xa7, 0x5f, 0x92, 0xb6, 0x9c, 0x94, 0xe2, 0xfb, 0x68, 0xbb,
  631. 0x21, 0x6e, 0xc9, 0xe2, 0x57, 0xff, 0x53, 0xd2, 0x34, 0x87, 0xf6, 0x88, 0xc3, 0xc6, 0x27, 0xdd,
  632. 0x7b, 0xb4, 0x4d, 0x9a, 0xdf, 0xb3, 0xf1, 0xf8, 0x55, 0xd7, 0xa2, 0x2d, 0xd2, 0x38, 0xfe, 0xe9,
  633. 0x7c, 0xdc, 0xb5, 0xfb, 0x7f, 0xd9, 0xa4, 0x71, 0x1a, 0x2f, 0x15, 0xfd, 0x86, 0x74, 0x16, 0xa6,
  634. 0x5d, 0x80, 0x3d, 0xf6, 0x58, 0x27, 0xfa, 0xb0, 0xf4, 0x07, 0xc9, 0xe0, 0x14, 0xfb, 0xe7, 0x4c,
  635. 0xcb, 0x71, 0xa6, 0xe5, 0x8a, 0xb5, 0x17, 0x65, 0x4c, 0x9f, 0x93, 0xdd, 0x05, 0xf6, 0x66, 0xf9,
  636. 0xd6, 0x36, 0x96, 0x7f, 0x74, 0xbb, 0x1c, 0xfa, 0xd5, 0xbc, 0xb6, 0x31, 0xe8, 0x2c, 0xea, 0x27,
  637. 0xbd, 0x6f, 0xc9, 0xde, 0x6d, 0x7f, 0xda, 0x25, 0xce, 0x6f, 0x7c, 0x85, 0xd7, 0xe8, 0x30, 0xf8,
  638. 0x49, 0xf7, 0x49, 0xf3, 0xf7, 0x38, 0xcd, 0x39, 0x8e, 0x84, 0x36, 0x33, 0xc1, 0x33, 0xfb, 0x6b,
  639. 0xab, 0xf7, 0x8a, 0x74, 0xd7, 0xed, 0x6f, 0xd6, 0xb7, 0x4c, 0xfd, 0xc3, 0x9b, 0xf5, 0x9b, 0x97,
  640. 0x52, 0xfb, 0xf5, 0x39, 0xd9, 0x39, 0x55, 0xf3, 0x37, 0x89, 0xfe, 0xf5, 0xe7, 0x8c, 0x8b, 0x4b,
  641. 0xfa, 0x01, 0x69, 0xea, 0x44, 0xa7, 0x1c, 0xdd, 0xda, 0x2f, 0xef, 0x31, 0x13, 0x52, 0x9f, 0xb8,
  642. 0x2a, 0x4e, 0x63, 0xb9, 0x42, 0x4b, 0xe7, 0xe5, 0x3d, 0x56, 0xc4, 0xb4, 0x47, 0xbc, 0x17, 0x22,
  643. 0x87, 0x83, 0xe0, 0x9c, 0x82, 0x1a, 0xef, 0xc2, 0x3c, 0x38, 0xf6, 0x48, 0x33, 0xcf, 0x12, 0x91,
  644. 0xf5, 0x1f, 0x91, 0x06, 0xe3, 0x71, 0x5a, 0xbf, 0x98, 0x85, 0x33, 0xc3, 0x04, 0x8f, 0x5b, 0xad,
  645. 0x59, 0xf7, 0xfa, 0xfa, 0xfa, 0xda, 0xee, 0x5f, 0x81, 0x19, 0x9c, 0xf1, 0x1d, 0x3d, 0x24, 0xed,
  646. 0x64, 0x11, 0xcf, 0x93, 0x0c, 0xfe, 0xa9, 0x91, 0xd7, 0x0f, 0xea, 0x92, 0xe8, 0x84, 0xec, 0x49,
  647. 0x1e, 0xa7, 0x13, 0xfe, 0x4e, 0xf3, 0x4c, 0x25, 0x22, 0xa3, 0x3b, 0x75, 0xb3, 0xc4, 0xa9, 0xff,
  648. 0xc7, 0xed, 0x6e, 0x2b, 0xec, 0xd9, 0x2e, 0x14, 0x8d, 0xcb, 0x9a, 0xfe, 0x7f, 0x0d, 0x42, 0x7e,
  649. 0xcc, 0xc4, 0x55, 0xf6, 0x7a, 0xb5, 0xe4, 0x8a, 0x3e, 0x24, 0x76, 0x9c, 0xf9, 0x7b, 0x58, 0xba,
  650. 0x3f, 0x30, 0x43, 0x7e, 0x50, 0x0e, 0xf9, 0xc1, 0xf3, 0x6c, 0xc5, 0xec, 0x38, 0xa3, 0x5f, 0x10,
  651. 0x67, 0x96, 0x9b, 0xef, 0xaf, 0x13, 0x1d, 0x6c, 0xc8, 0x4e, 0x8a, 0x55, 0xc3, 0x40, 0x45, 0x3f,
  652. 0x23, 0xb6, 0xd2, 0xfe, 0x0e, 0x6a, 0x1f, 0x6c, 0x68, 0xcf, 0x70, 0xed, 0x30, 0x5b, 0xc1, 0x77,
  653. 0x6d, 0x6b, 0x55, 0xdc, 0x5c, 0x6f, 0x43, 0xf8, 0xba, 0xdc, 0x40, 0xcc, 0xd6, 0x8a, 0x0e, 0x88,
  654. 0x33, 0x9b, 0xa6, 0x08, 0xbe, 0x13, 0x1d, 0x6e, 0x9e, 0x00, 0x07, 0xcd, 0x2f, 0x00, 0x99, 0x81,
  655. 0x90, 0x3e, 0x21, 0xce, 0x65, 0xaa, 0x71, 0x6d, 0x40, 0xd3, 0xaf, 0xeb, 0x71, 0x64, 0x15, 0xf2,
  656. 0xcb, 0x54, 0x83, 0x3c, 0x29, 0x56, 0xc9, 0x5d, 0x72, 0x6c, 0xe3, 0x42, 0x9e, 0x8c, 0x86, 0x70,
  657. 0x9a, 0x7c, 0x34, 0xc4, 0xf5, 0x72, 0xd7, 0x69, 0xce, 0x6f, 0xea, 0xf3, 0xd1, 0x10, 0xed, 0x8f,
  658. 0x22, 0xdc, 0x39, 0x5b, 0xec, 0x8f, 0xa2, 0xd2, 0xfe, 0x28, 0x42, 0xfb, 0xa3, 0x08, 0x17, 0xd1,
  659. 0x36, 0xfb, 0x4a, 0x9f, 0xa3, 0xbe, 0x81, 0x6b, 0xa4, 0xbd, 0x05, 0x25, 0x7c, 0x47, 0x46, 0x8e,
  660. 0x3a, 0xf0, 0x87, 0x89, 0x40, 0xb6, 0xf8, 0x9b, 0xd1, 0x5c, 0xf8, 0x2b, 0x2d, 0xe9, 0x57, 0xa4,
  661. 0x59, 0xef, 0xb2, 0xbb, 0x5e, 0x00, 0x47, 0xb6, 0x29, 0x30, 0xca, 0x67, 0x01, 0x69, 0x64, 0xf1,
  662. 0x82, 0xaf, 0xb5, 0xe8, 0x9f, 0xf8, 0x95, 0x63, 0xe6, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xca,
  663. 0xa2, 0x76, 0x34, 0xe8, 0x08, 0x00, 0x00,
  664. }