You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1274 lines
43 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: test_objects.proto
  3. package jsonpb
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. any "github.com/golang/protobuf/ptypes/any"
  8. duration "github.com/golang/protobuf/ptypes/duration"
  9. _struct "github.com/golang/protobuf/ptypes/struct"
  10. timestamp "github.com/golang/protobuf/ptypes/timestamp"
  11. wrappers "github.com/golang/protobuf/ptypes/wrappers"
  12. math "math"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  23. type Widget_Color int32
  24. const (
  25. Widget_RED Widget_Color = 0
  26. Widget_GREEN Widget_Color = 1
  27. Widget_BLUE Widget_Color = 2
  28. )
  29. var Widget_Color_name = map[int32]string{
  30. 0: "RED",
  31. 1: "GREEN",
  32. 2: "BLUE",
  33. }
  34. var Widget_Color_value = map[string]int32{
  35. "RED": 0,
  36. "GREEN": 1,
  37. "BLUE": 2,
  38. }
  39. func (x Widget_Color) Enum() *Widget_Color {
  40. p := new(Widget_Color)
  41. *p = x
  42. return p
  43. }
  44. func (x Widget_Color) String() string {
  45. return proto.EnumName(Widget_Color_name, int32(x))
  46. }
  47. func (x *Widget_Color) UnmarshalJSON(data []byte) error {
  48. value, err := proto.UnmarshalJSONEnum(Widget_Color_value, data, "Widget_Color")
  49. if err != nil {
  50. return err
  51. }
  52. *x = Widget_Color(value)
  53. return nil
  54. }
  55. func (Widget_Color) EnumDescriptor() ([]byte, []int) {
  56. return fileDescriptor_e97c739a0ce14cc6, []int{3, 0}
  57. }
  58. // Test message for holding primitive types.
  59. type Simple struct {
  60. OBool *bool `protobuf:"varint,1,opt,name=o_bool,json=oBool" json:"o_bool,omitempty"`
  61. OInt32 *int32 `protobuf:"varint,2,opt,name=o_int32,json=oInt32" json:"o_int32,omitempty"`
  62. OInt32Str *int32 `protobuf:"varint,3,opt,name=o_int32_str,json=oInt32Str" json:"o_int32_str,omitempty"`
  63. OInt64 *int64 `protobuf:"varint,4,opt,name=o_int64,json=oInt64" json:"o_int64,omitempty"`
  64. OInt64Str *int64 `protobuf:"varint,5,opt,name=o_int64_str,json=oInt64Str" json:"o_int64_str,omitempty"`
  65. OUint32 *uint32 `protobuf:"varint,6,opt,name=o_uint32,json=oUint32" json:"o_uint32,omitempty"`
  66. OUint32Str *uint32 `protobuf:"varint,7,opt,name=o_uint32_str,json=oUint32Str" json:"o_uint32_str,omitempty"`
  67. OUint64 *uint64 `protobuf:"varint,8,opt,name=o_uint64,json=oUint64" json:"o_uint64,omitempty"`
  68. OUint64Str *uint64 `protobuf:"varint,9,opt,name=o_uint64_str,json=oUint64Str" json:"o_uint64_str,omitempty"`
  69. OSint32 *int32 `protobuf:"zigzag32,10,opt,name=o_sint32,json=oSint32" json:"o_sint32,omitempty"`
  70. OSint32Str *int32 `protobuf:"zigzag32,11,opt,name=o_sint32_str,json=oSint32Str" json:"o_sint32_str,omitempty"`
  71. OSint64 *int64 `protobuf:"zigzag64,12,opt,name=o_sint64,json=oSint64" json:"o_sint64,omitempty"`
  72. OSint64Str *int64 `protobuf:"zigzag64,13,opt,name=o_sint64_str,json=oSint64Str" json:"o_sint64_str,omitempty"`
  73. OFloat *float32 `protobuf:"fixed32,14,opt,name=o_float,json=oFloat" json:"o_float,omitempty"`
  74. OFloatStr *float32 `protobuf:"fixed32,15,opt,name=o_float_str,json=oFloatStr" json:"o_float_str,omitempty"`
  75. ODouble *float64 `protobuf:"fixed64,16,opt,name=o_double,json=oDouble" json:"o_double,omitempty"`
  76. ODoubleStr *float64 `protobuf:"fixed64,17,opt,name=o_double_str,json=oDoubleStr" json:"o_double_str,omitempty"`
  77. OString *string `protobuf:"bytes,18,opt,name=o_string,json=oString" json:"o_string,omitempty"`
  78. OBytes []byte `protobuf:"bytes,19,opt,name=o_bytes,json=oBytes" json:"o_bytes,omitempty"`
  79. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  80. XXX_unrecognized []byte `json:"-"`
  81. XXX_sizecache int32 `json:"-"`
  82. }
  83. func (m *Simple) Reset() { *m = Simple{} }
  84. func (m *Simple) String() string { return proto.CompactTextString(m) }
  85. func (*Simple) ProtoMessage() {}
  86. func (*Simple) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_e97c739a0ce14cc6, []int{0}
  88. }
  89. func (m *Simple) XXX_Unmarshal(b []byte) error {
  90. return xxx_messageInfo_Simple.Unmarshal(m, b)
  91. }
  92. func (m *Simple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. return xxx_messageInfo_Simple.Marshal(b, m, deterministic)
  94. }
  95. func (m *Simple) XXX_Merge(src proto.Message) {
  96. xxx_messageInfo_Simple.Merge(m, src)
  97. }
  98. func (m *Simple) XXX_Size() int {
  99. return xxx_messageInfo_Simple.Size(m)
  100. }
  101. func (m *Simple) XXX_DiscardUnknown() {
  102. xxx_messageInfo_Simple.DiscardUnknown(m)
  103. }
  104. var xxx_messageInfo_Simple proto.InternalMessageInfo
  105. func (m *Simple) GetOBool() bool {
  106. if m != nil && m.OBool != nil {
  107. return *m.OBool
  108. }
  109. return false
  110. }
  111. func (m *Simple) GetOInt32() int32 {
  112. if m != nil && m.OInt32 != nil {
  113. return *m.OInt32
  114. }
  115. return 0
  116. }
  117. func (m *Simple) GetOInt32Str() int32 {
  118. if m != nil && m.OInt32Str != nil {
  119. return *m.OInt32Str
  120. }
  121. return 0
  122. }
  123. func (m *Simple) GetOInt64() int64 {
  124. if m != nil && m.OInt64 != nil {
  125. return *m.OInt64
  126. }
  127. return 0
  128. }
  129. func (m *Simple) GetOInt64Str() int64 {
  130. if m != nil && m.OInt64Str != nil {
  131. return *m.OInt64Str
  132. }
  133. return 0
  134. }
  135. func (m *Simple) GetOUint32() uint32 {
  136. if m != nil && m.OUint32 != nil {
  137. return *m.OUint32
  138. }
  139. return 0
  140. }
  141. func (m *Simple) GetOUint32Str() uint32 {
  142. if m != nil && m.OUint32Str != nil {
  143. return *m.OUint32Str
  144. }
  145. return 0
  146. }
  147. func (m *Simple) GetOUint64() uint64 {
  148. if m != nil && m.OUint64 != nil {
  149. return *m.OUint64
  150. }
  151. return 0
  152. }
  153. func (m *Simple) GetOUint64Str() uint64 {
  154. if m != nil && m.OUint64Str != nil {
  155. return *m.OUint64Str
  156. }
  157. return 0
  158. }
  159. func (m *Simple) GetOSint32() int32 {
  160. if m != nil && m.OSint32 != nil {
  161. return *m.OSint32
  162. }
  163. return 0
  164. }
  165. func (m *Simple) GetOSint32Str() int32 {
  166. if m != nil && m.OSint32Str != nil {
  167. return *m.OSint32Str
  168. }
  169. return 0
  170. }
  171. func (m *Simple) GetOSint64() int64 {
  172. if m != nil && m.OSint64 != nil {
  173. return *m.OSint64
  174. }
  175. return 0
  176. }
  177. func (m *Simple) GetOSint64Str() int64 {
  178. if m != nil && m.OSint64Str != nil {
  179. return *m.OSint64Str
  180. }
  181. return 0
  182. }
  183. func (m *Simple) GetOFloat() float32 {
  184. if m != nil && m.OFloat != nil {
  185. return *m.OFloat
  186. }
  187. return 0
  188. }
  189. func (m *Simple) GetOFloatStr() float32 {
  190. if m != nil && m.OFloatStr != nil {
  191. return *m.OFloatStr
  192. }
  193. return 0
  194. }
  195. func (m *Simple) GetODouble() float64 {
  196. if m != nil && m.ODouble != nil {
  197. return *m.ODouble
  198. }
  199. return 0
  200. }
  201. func (m *Simple) GetODoubleStr() float64 {
  202. if m != nil && m.ODoubleStr != nil {
  203. return *m.ODoubleStr
  204. }
  205. return 0
  206. }
  207. func (m *Simple) GetOString() string {
  208. if m != nil && m.OString != nil {
  209. return *m.OString
  210. }
  211. return ""
  212. }
  213. func (m *Simple) GetOBytes() []byte {
  214. if m != nil {
  215. return m.OBytes
  216. }
  217. return nil
  218. }
  219. // Test message for holding special non-finites primitives.
  220. type NonFinites struct {
  221. FNan *float32 `protobuf:"fixed32,1,opt,name=f_nan,json=fNan" json:"f_nan,omitempty"`
  222. FPinf *float32 `protobuf:"fixed32,2,opt,name=f_pinf,json=fPinf" json:"f_pinf,omitempty"`
  223. FNinf *float32 `protobuf:"fixed32,3,opt,name=f_ninf,json=fNinf" json:"f_ninf,omitempty"`
  224. DNan *float64 `protobuf:"fixed64,4,opt,name=d_nan,json=dNan" json:"d_nan,omitempty"`
  225. DPinf *float64 `protobuf:"fixed64,5,opt,name=d_pinf,json=dPinf" json:"d_pinf,omitempty"`
  226. DNinf *float64 `protobuf:"fixed64,6,opt,name=d_ninf,json=dNinf" json:"d_ninf,omitempty"`
  227. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  228. XXX_unrecognized []byte `json:"-"`
  229. XXX_sizecache int32 `json:"-"`
  230. }
  231. func (m *NonFinites) Reset() { *m = NonFinites{} }
  232. func (m *NonFinites) String() string { return proto.CompactTextString(m) }
  233. func (*NonFinites) ProtoMessage() {}
  234. func (*NonFinites) Descriptor() ([]byte, []int) {
  235. return fileDescriptor_e97c739a0ce14cc6, []int{1}
  236. }
  237. func (m *NonFinites) XXX_Unmarshal(b []byte) error {
  238. return xxx_messageInfo_NonFinites.Unmarshal(m, b)
  239. }
  240. func (m *NonFinites) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  241. return xxx_messageInfo_NonFinites.Marshal(b, m, deterministic)
  242. }
  243. func (m *NonFinites) XXX_Merge(src proto.Message) {
  244. xxx_messageInfo_NonFinites.Merge(m, src)
  245. }
  246. func (m *NonFinites) XXX_Size() int {
  247. return xxx_messageInfo_NonFinites.Size(m)
  248. }
  249. func (m *NonFinites) XXX_DiscardUnknown() {
  250. xxx_messageInfo_NonFinites.DiscardUnknown(m)
  251. }
  252. var xxx_messageInfo_NonFinites proto.InternalMessageInfo
  253. func (m *NonFinites) GetFNan() float32 {
  254. if m != nil && m.FNan != nil {
  255. return *m.FNan
  256. }
  257. return 0
  258. }
  259. func (m *NonFinites) GetFPinf() float32 {
  260. if m != nil && m.FPinf != nil {
  261. return *m.FPinf
  262. }
  263. return 0
  264. }
  265. func (m *NonFinites) GetFNinf() float32 {
  266. if m != nil && m.FNinf != nil {
  267. return *m.FNinf
  268. }
  269. return 0
  270. }
  271. func (m *NonFinites) GetDNan() float64 {
  272. if m != nil && m.DNan != nil {
  273. return *m.DNan
  274. }
  275. return 0
  276. }
  277. func (m *NonFinites) GetDPinf() float64 {
  278. if m != nil && m.DPinf != nil {
  279. return *m.DPinf
  280. }
  281. return 0
  282. }
  283. func (m *NonFinites) GetDNinf() float64 {
  284. if m != nil && m.DNinf != nil {
  285. return *m.DNinf
  286. }
  287. return 0
  288. }
  289. // Test message for holding repeated primitives.
  290. type Repeats struct {
  291. RBool []bool `protobuf:"varint,1,rep,name=r_bool,json=rBool" json:"r_bool,omitempty"`
  292. RInt32 []int32 `protobuf:"varint,2,rep,name=r_int32,json=rInt32" json:"r_int32,omitempty"`
  293. RInt64 []int64 `protobuf:"varint,3,rep,name=r_int64,json=rInt64" json:"r_int64,omitempty"`
  294. RUint32 []uint32 `protobuf:"varint,4,rep,name=r_uint32,json=rUint32" json:"r_uint32,omitempty"`
  295. RUint64 []uint64 `protobuf:"varint,5,rep,name=r_uint64,json=rUint64" json:"r_uint64,omitempty"`
  296. RSint32 []int32 `protobuf:"zigzag32,6,rep,name=r_sint32,json=rSint32" json:"r_sint32,omitempty"`
  297. RSint64 []int64 `protobuf:"zigzag64,7,rep,name=r_sint64,json=rSint64" json:"r_sint64,omitempty"`
  298. RFloat []float32 `protobuf:"fixed32,8,rep,name=r_float,json=rFloat" json:"r_float,omitempty"`
  299. RDouble []float64 `protobuf:"fixed64,9,rep,name=r_double,json=rDouble" json:"r_double,omitempty"`
  300. RString []string `protobuf:"bytes,10,rep,name=r_string,json=rString" json:"r_string,omitempty"`
  301. RBytes [][]byte `protobuf:"bytes,11,rep,name=r_bytes,json=rBytes" json:"r_bytes,omitempty"`
  302. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  303. XXX_unrecognized []byte `json:"-"`
  304. XXX_sizecache int32 `json:"-"`
  305. }
  306. func (m *Repeats) Reset() { *m = Repeats{} }
  307. func (m *Repeats) String() string { return proto.CompactTextString(m) }
  308. func (*Repeats) ProtoMessage() {}
  309. func (*Repeats) Descriptor() ([]byte, []int) {
  310. return fileDescriptor_e97c739a0ce14cc6, []int{2}
  311. }
  312. func (m *Repeats) XXX_Unmarshal(b []byte) error {
  313. return xxx_messageInfo_Repeats.Unmarshal(m, b)
  314. }
  315. func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  316. return xxx_messageInfo_Repeats.Marshal(b, m, deterministic)
  317. }
  318. func (m *Repeats) XXX_Merge(src proto.Message) {
  319. xxx_messageInfo_Repeats.Merge(m, src)
  320. }
  321. func (m *Repeats) XXX_Size() int {
  322. return xxx_messageInfo_Repeats.Size(m)
  323. }
  324. func (m *Repeats) XXX_DiscardUnknown() {
  325. xxx_messageInfo_Repeats.DiscardUnknown(m)
  326. }
  327. var xxx_messageInfo_Repeats proto.InternalMessageInfo
  328. func (m *Repeats) GetRBool() []bool {
  329. if m != nil {
  330. return m.RBool
  331. }
  332. return nil
  333. }
  334. func (m *Repeats) GetRInt32() []int32 {
  335. if m != nil {
  336. return m.RInt32
  337. }
  338. return nil
  339. }
  340. func (m *Repeats) GetRInt64() []int64 {
  341. if m != nil {
  342. return m.RInt64
  343. }
  344. return nil
  345. }
  346. func (m *Repeats) GetRUint32() []uint32 {
  347. if m != nil {
  348. return m.RUint32
  349. }
  350. return nil
  351. }
  352. func (m *Repeats) GetRUint64() []uint64 {
  353. if m != nil {
  354. return m.RUint64
  355. }
  356. return nil
  357. }
  358. func (m *Repeats) GetRSint32() []int32 {
  359. if m != nil {
  360. return m.RSint32
  361. }
  362. return nil
  363. }
  364. func (m *Repeats) GetRSint64() []int64 {
  365. if m != nil {
  366. return m.RSint64
  367. }
  368. return nil
  369. }
  370. func (m *Repeats) GetRFloat() []float32 {
  371. if m != nil {
  372. return m.RFloat
  373. }
  374. return nil
  375. }
  376. func (m *Repeats) GetRDouble() []float64 {
  377. if m != nil {
  378. return m.RDouble
  379. }
  380. return nil
  381. }
  382. func (m *Repeats) GetRString() []string {
  383. if m != nil {
  384. return m.RString
  385. }
  386. return nil
  387. }
  388. func (m *Repeats) GetRBytes() [][]byte {
  389. if m != nil {
  390. return m.RBytes
  391. }
  392. return nil
  393. }
  394. // Test message for holding enums and nested messages.
  395. type Widget struct {
  396. Color *Widget_Color `protobuf:"varint,1,opt,name=color,enum=jsonpb.Widget_Color" json:"color,omitempty"`
  397. RColor []Widget_Color `protobuf:"varint,2,rep,name=r_color,json=rColor,enum=jsonpb.Widget_Color" json:"r_color,omitempty"`
  398. Simple *Simple `protobuf:"bytes,10,opt,name=simple" json:"simple,omitempty"`
  399. RSimple []*Simple `protobuf:"bytes,11,rep,name=r_simple,json=rSimple" json:"r_simple,omitempty"`
  400. Repeats *Repeats `protobuf:"bytes,20,opt,name=repeats" json:"repeats,omitempty"`
  401. RRepeats []*Repeats `protobuf:"bytes,21,rep,name=r_repeats,json=rRepeats" json:"r_repeats,omitempty"`
  402. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  403. XXX_unrecognized []byte `json:"-"`
  404. XXX_sizecache int32 `json:"-"`
  405. }
  406. func (m *Widget) Reset() { *m = Widget{} }
  407. func (m *Widget) String() string { return proto.CompactTextString(m) }
  408. func (*Widget) ProtoMessage() {}
  409. func (*Widget) Descriptor() ([]byte, []int) {
  410. return fileDescriptor_e97c739a0ce14cc6, []int{3}
  411. }
  412. func (m *Widget) XXX_Unmarshal(b []byte) error {
  413. return xxx_messageInfo_Widget.Unmarshal(m, b)
  414. }
  415. func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  416. return xxx_messageInfo_Widget.Marshal(b, m, deterministic)
  417. }
  418. func (m *Widget) XXX_Merge(src proto.Message) {
  419. xxx_messageInfo_Widget.Merge(m, src)
  420. }
  421. func (m *Widget) XXX_Size() int {
  422. return xxx_messageInfo_Widget.Size(m)
  423. }
  424. func (m *Widget) XXX_DiscardUnknown() {
  425. xxx_messageInfo_Widget.DiscardUnknown(m)
  426. }
  427. var xxx_messageInfo_Widget proto.InternalMessageInfo
  428. func (m *Widget) GetColor() Widget_Color {
  429. if m != nil && m.Color != nil {
  430. return *m.Color
  431. }
  432. return Widget_RED
  433. }
  434. func (m *Widget) GetRColor() []Widget_Color {
  435. if m != nil {
  436. return m.RColor
  437. }
  438. return nil
  439. }
  440. func (m *Widget) GetSimple() *Simple {
  441. if m != nil {
  442. return m.Simple
  443. }
  444. return nil
  445. }
  446. func (m *Widget) GetRSimple() []*Simple {
  447. if m != nil {
  448. return m.RSimple
  449. }
  450. return nil
  451. }
  452. func (m *Widget) GetRepeats() *Repeats {
  453. if m != nil {
  454. return m.Repeats
  455. }
  456. return nil
  457. }
  458. func (m *Widget) GetRRepeats() []*Repeats {
  459. if m != nil {
  460. return m.RRepeats
  461. }
  462. return nil
  463. }
  464. type Maps struct {
  465. 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"`
  466. 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"`
  467. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  468. XXX_unrecognized []byte `json:"-"`
  469. XXX_sizecache int32 `json:"-"`
  470. }
  471. func (m *Maps) Reset() { *m = Maps{} }
  472. func (m *Maps) String() string { return proto.CompactTextString(m) }
  473. func (*Maps) ProtoMessage() {}
  474. func (*Maps) Descriptor() ([]byte, []int) {
  475. return fileDescriptor_e97c739a0ce14cc6, []int{4}
  476. }
  477. func (m *Maps) XXX_Unmarshal(b []byte) error {
  478. return xxx_messageInfo_Maps.Unmarshal(m, b)
  479. }
  480. func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  481. return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
  482. }
  483. func (m *Maps) XXX_Merge(src proto.Message) {
  484. xxx_messageInfo_Maps.Merge(m, src)
  485. }
  486. func (m *Maps) XXX_Size() int {
  487. return xxx_messageInfo_Maps.Size(m)
  488. }
  489. func (m *Maps) XXX_DiscardUnknown() {
  490. xxx_messageInfo_Maps.DiscardUnknown(m)
  491. }
  492. var xxx_messageInfo_Maps proto.InternalMessageInfo
  493. func (m *Maps) GetMInt64Str() map[int64]string {
  494. if m != nil {
  495. return m.MInt64Str
  496. }
  497. return nil
  498. }
  499. func (m *Maps) GetMBoolSimple() map[bool]*Simple {
  500. if m != nil {
  501. return m.MBoolSimple
  502. }
  503. return nil
  504. }
  505. type MsgWithOneof struct {
  506. // Types that are valid to be assigned to Union:
  507. // *MsgWithOneof_Title
  508. // *MsgWithOneof_Salary
  509. // *MsgWithOneof_Country
  510. // *MsgWithOneof_HomeAddress
  511. // *MsgWithOneof_MsgWithRequired
  512. Union isMsgWithOneof_Union `protobuf_oneof:"union"`
  513. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  514. XXX_unrecognized []byte `json:"-"`
  515. XXX_sizecache int32 `json:"-"`
  516. }
  517. func (m *MsgWithOneof) Reset() { *m = MsgWithOneof{} }
  518. func (m *MsgWithOneof) String() string { return proto.CompactTextString(m) }
  519. func (*MsgWithOneof) ProtoMessage() {}
  520. func (*MsgWithOneof) Descriptor() ([]byte, []int) {
  521. return fileDescriptor_e97c739a0ce14cc6, []int{5}
  522. }
  523. func (m *MsgWithOneof) XXX_Unmarshal(b []byte) error {
  524. return xxx_messageInfo_MsgWithOneof.Unmarshal(m, b)
  525. }
  526. func (m *MsgWithOneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  527. return xxx_messageInfo_MsgWithOneof.Marshal(b, m, deterministic)
  528. }
  529. func (m *MsgWithOneof) XXX_Merge(src proto.Message) {
  530. xxx_messageInfo_MsgWithOneof.Merge(m, src)
  531. }
  532. func (m *MsgWithOneof) XXX_Size() int {
  533. return xxx_messageInfo_MsgWithOneof.Size(m)
  534. }
  535. func (m *MsgWithOneof) XXX_DiscardUnknown() {
  536. xxx_messageInfo_MsgWithOneof.DiscardUnknown(m)
  537. }
  538. var xxx_messageInfo_MsgWithOneof proto.InternalMessageInfo
  539. type isMsgWithOneof_Union interface {
  540. isMsgWithOneof_Union()
  541. }
  542. type MsgWithOneof_Title struct {
  543. Title string `protobuf:"bytes,1,opt,name=title,oneof"`
  544. }
  545. type MsgWithOneof_Salary struct {
  546. Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
  547. }
  548. type MsgWithOneof_Country struct {
  549. Country string `protobuf:"bytes,3,opt,name=Country,oneof"`
  550. }
  551. type MsgWithOneof_HomeAddress struct {
  552. HomeAddress string `protobuf:"bytes,4,opt,name=home_address,json=homeAddress,oneof"`
  553. }
  554. type MsgWithOneof_MsgWithRequired struct {
  555. MsgWithRequired *MsgWithRequired `protobuf:"bytes,5,opt,name=msg_with_required,json=msgWithRequired,oneof"`
  556. }
  557. func (*MsgWithOneof_Title) isMsgWithOneof_Union() {}
  558. func (*MsgWithOneof_Salary) isMsgWithOneof_Union() {}
  559. func (*MsgWithOneof_Country) isMsgWithOneof_Union() {}
  560. func (*MsgWithOneof_HomeAddress) isMsgWithOneof_Union() {}
  561. func (*MsgWithOneof_MsgWithRequired) isMsgWithOneof_Union() {}
  562. func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union {
  563. if m != nil {
  564. return m.Union
  565. }
  566. return nil
  567. }
  568. func (m *MsgWithOneof) GetTitle() string {
  569. if x, ok := m.GetUnion().(*MsgWithOneof_Title); ok {
  570. return x.Title
  571. }
  572. return ""
  573. }
  574. func (m *MsgWithOneof) GetSalary() int64 {
  575. if x, ok := m.GetUnion().(*MsgWithOneof_Salary); ok {
  576. return x.Salary
  577. }
  578. return 0
  579. }
  580. func (m *MsgWithOneof) GetCountry() string {
  581. if x, ok := m.GetUnion().(*MsgWithOneof_Country); ok {
  582. return x.Country
  583. }
  584. return ""
  585. }
  586. func (m *MsgWithOneof) GetHomeAddress() string {
  587. if x, ok := m.GetUnion().(*MsgWithOneof_HomeAddress); ok {
  588. return x.HomeAddress
  589. }
  590. return ""
  591. }
  592. func (m *MsgWithOneof) GetMsgWithRequired() *MsgWithRequired {
  593. if x, ok := m.GetUnion().(*MsgWithOneof_MsgWithRequired); ok {
  594. return x.MsgWithRequired
  595. }
  596. return nil
  597. }
  598. // XXX_OneofWrappers is for the internal use of the proto package.
  599. func (*MsgWithOneof) XXX_OneofWrappers() []interface{} {
  600. return []interface{}{
  601. (*MsgWithOneof_Title)(nil),
  602. (*MsgWithOneof_Salary)(nil),
  603. (*MsgWithOneof_Country)(nil),
  604. (*MsgWithOneof_HomeAddress)(nil),
  605. (*MsgWithOneof_MsgWithRequired)(nil),
  606. }
  607. }
  608. type Real struct {
  609. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  610. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  611. proto.XXX_InternalExtensions `json:"-"`
  612. XXX_unrecognized []byte `json:"-"`
  613. XXX_sizecache int32 `json:"-"`
  614. }
  615. func (m *Real) Reset() { *m = Real{} }
  616. func (m *Real) String() string { return proto.CompactTextString(m) }
  617. func (*Real) ProtoMessage() {}
  618. func (*Real) Descriptor() ([]byte, []int) {
  619. return fileDescriptor_e97c739a0ce14cc6, []int{6}
  620. }
  621. var extRange_Real = []proto.ExtensionRange{
  622. {Start: 100, End: 536870911},
  623. }
  624. func (*Real) ExtensionRangeArray() []proto.ExtensionRange {
  625. return extRange_Real
  626. }
  627. func (m *Real) XXX_Unmarshal(b []byte) error {
  628. return xxx_messageInfo_Real.Unmarshal(m, b)
  629. }
  630. func (m *Real) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  631. return xxx_messageInfo_Real.Marshal(b, m, deterministic)
  632. }
  633. func (m *Real) XXX_Merge(src proto.Message) {
  634. xxx_messageInfo_Real.Merge(m, src)
  635. }
  636. func (m *Real) XXX_Size() int {
  637. return xxx_messageInfo_Real.Size(m)
  638. }
  639. func (m *Real) XXX_DiscardUnknown() {
  640. xxx_messageInfo_Real.DiscardUnknown(m)
  641. }
  642. var xxx_messageInfo_Real proto.InternalMessageInfo
  643. func (m *Real) GetValue() float64 {
  644. if m != nil && m.Value != nil {
  645. return *m.Value
  646. }
  647. return 0
  648. }
  649. type Complex struct {
  650. Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
  651. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  652. proto.XXX_InternalExtensions `json:"-"`
  653. XXX_unrecognized []byte `json:"-"`
  654. XXX_sizecache int32 `json:"-"`
  655. }
  656. func (m *Complex) Reset() { *m = Complex{} }
  657. func (m *Complex) String() string { return proto.CompactTextString(m) }
  658. func (*Complex) ProtoMessage() {}
  659. func (*Complex) Descriptor() ([]byte, []int) {
  660. return fileDescriptor_e97c739a0ce14cc6, []int{7}
  661. }
  662. var extRange_Complex = []proto.ExtensionRange{
  663. {Start: 100, End: 536870911},
  664. }
  665. func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
  666. return extRange_Complex
  667. }
  668. func (m *Complex) XXX_Unmarshal(b []byte) error {
  669. return xxx_messageInfo_Complex.Unmarshal(m, b)
  670. }
  671. func (m *Complex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  672. return xxx_messageInfo_Complex.Marshal(b, m, deterministic)
  673. }
  674. func (m *Complex) XXX_Merge(src proto.Message) {
  675. xxx_messageInfo_Complex.Merge(m, src)
  676. }
  677. func (m *Complex) XXX_Size() int {
  678. return xxx_messageInfo_Complex.Size(m)
  679. }
  680. func (m *Complex) XXX_DiscardUnknown() {
  681. xxx_messageInfo_Complex.DiscardUnknown(m)
  682. }
  683. var xxx_messageInfo_Complex proto.InternalMessageInfo
  684. func (m *Complex) GetImaginary() float64 {
  685. if m != nil && m.Imaginary != nil {
  686. return *m.Imaginary
  687. }
  688. return 0
  689. }
  690. var E_Complex_RealExtension = &proto.ExtensionDesc{
  691. ExtendedType: (*Real)(nil),
  692. ExtensionType: (*Complex)(nil),
  693. Field: 123,
  694. Name: "jsonpb.Complex.real_extension",
  695. Tag: "bytes,123,opt,name=real_extension",
  696. Filename: "test_objects.proto",
  697. }
  698. type KnownTypes struct {
  699. An *any.Any `protobuf:"bytes,14,opt,name=an" json:"an,omitempty"`
  700. Dur *duration.Duration `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
  701. St *_struct.Struct `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
  702. Ts *timestamp.Timestamp `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
  703. Lv *_struct.ListValue `protobuf:"bytes,15,opt,name=lv" json:"lv,omitempty"`
  704. Val *_struct.Value `protobuf:"bytes,16,opt,name=val" json:"val,omitempty"`
  705. Dbl *wrappers.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
  706. Flt *wrappers.FloatValue `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
  707. I64 *wrappers.Int64Value `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
  708. U64 *wrappers.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
  709. I32 *wrappers.Int32Value `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
  710. U32 *wrappers.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
  711. Bool *wrappers.BoolValue `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
  712. Str *wrappers.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
  713. Bytes *wrappers.BytesValue `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
  714. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  715. XXX_unrecognized []byte `json:"-"`
  716. XXX_sizecache int32 `json:"-"`
  717. }
  718. func (m *KnownTypes) Reset() { *m = KnownTypes{} }
  719. func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
  720. func (*KnownTypes) ProtoMessage() {}
  721. func (*KnownTypes) Descriptor() ([]byte, []int) {
  722. return fileDescriptor_e97c739a0ce14cc6, []int{8}
  723. }
  724. func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
  725. return xxx_messageInfo_KnownTypes.Unmarshal(m, b)
  726. }
  727. func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  728. return xxx_messageInfo_KnownTypes.Marshal(b, m, deterministic)
  729. }
  730. func (m *KnownTypes) XXX_Merge(src proto.Message) {
  731. xxx_messageInfo_KnownTypes.Merge(m, src)
  732. }
  733. func (m *KnownTypes) XXX_Size() int {
  734. return xxx_messageInfo_KnownTypes.Size(m)
  735. }
  736. func (m *KnownTypes) XXX_DiscardUnknown() {
  737. xxx_messageInfo_KnownTypes.DiscardUnknown(m)
  738. }
  739. var xxx_messageInfo_KnownTypes proto.InternalMessageInfo
  740. func (m *KnownTypes) GetAn() *any.Any {
  741. if m != nil {
  742. return m.An
  743. }
  744. return nil
  745. }
  746. func (m *KnownTypes) GetDur() *duration.Duration {
  747. if m != nil {
  748. return m.Dur
  749. }
  750. return nil
  751. }
  752. func (m *KnownTypes) GetSt() *_struct.Struct {
  753. if m != nil {
  754. return m.St
  755. }
  756. return nil
  757. }
  758. func (m *KnownTypes) GetTs() *timestamp.Timestamp {
  759. if m != nil {
  760. return m.Ts
  761. }
  762. return nil
  763. }
  764. func (m *KnownTypes) GetLv() *_struct.ListValue {
  765. if m != nil {
  766. return m.Lv
  767. }
  768. return nil
  769. }
  770. func (m *KnownTypes) GetVal() *_struct.Value {
  771. if m != nil {
  772. return m.Val
  773. }
  774. return nil
  775. }
  776. func (m *KnownTypes) GetDbl() *wrappers.DoubleValue {
  777. if m != nil {
  778. return m.Dbl
  779. }
  780. return nil
  781. }
  782. func (m *KnownTypes) GetFlt() *wrappers.FloatValue {
  783. if m != nil {
  784. return m.Flt
  785. }
  786. return nil
  787. }
  788. func (m *KnownTypes) GetI64() *wrappers.Int64Value {
  789. if m != nil {
  790. return m.I64
  791. }
  792. return nil
  793. }
  794. func (m *KnownTypes) GetU64() *wrappers.UInt64Value {
  795. if m != nil {
  796. return m.U64
  797. }
  798. return nil
  799. }
  800. func (m *KnownTypes) GetI32() *wrappers.Int32Value {
  801. if m != nil {
  802. return m.I32
  803. }
  804. return nil
  805. }
  806. func (m *KnownTypes) GetU32() *wrappers.UInt32Value {
  807. if m != nil {
  808. return m.U32
  809. }
  810. return nil
  811. }
  812. func (m *KnownTypes) GetBool() *wrappers.BoolValue {
  813. if m != nil {
  814. return m.Bool
  815. }
  816. return nil
  817. }
  818. func (m *KnownTypes) GetStr() *wrappers.StringValue {
  819. if m != nil {
  820. return m.Str
  821. }
  822. return nil
  823. }
  824. func (m *KnownTypes) GetBytes() *wrappers.BytesValue {
  825. if m != nil {
  826. return m.Bytes
  827. }
  828. return nil
  829. }
  830. // Test messages for marshaling/unmarshaling required fields.
  831. type MsgWithRequired struct {
  832. Str *string `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
  833. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  834. XXX_unrecognized []byte `json:"-"`
  835. XXX_sizecache int32 `json:"-"`
  836. }
  837. func (m *MsgWithRequired) Reset() { *m = MsgWithRequired{} }
  838. func (m *MsgWithRequired) String() string { return proto.CompactTextString(m) }
  839. func (*MsgWithRequired) ProtoMessage() {}
  840. func (*MsgWithRequired) Descriptor() ([]byte, []int) {
  841. return fileDescriptor_e97c739a0ce14cc6, []int{9}
  842. }
  843. func (m *MsgWithRequired) XXX_Unmarshal(b []byte) error {
  844. return xxx_messageInfo_MsgWithRequired.Unmarshal(m, b)
  845. }
  846. func (m *MsgWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  847. return xxx_messageInfo_MsgWithRequired.Marshal(b, m, deterministic)
  848. }
  849. func (m *MsgWithRequired) XXX_Merge(src proto.Message) {
  850. xxx_messageInfo_MsgWithRequired.Merge(m, src)
  851. }
  852. func (m *MsgWithRequired) XXX_Size() int {
  853. return xxx_messageInfo_MsgWithRequired.Size(m)
  854. }
  855. func (m *MsgWithRequired) XXX_DiscardUnknown() {
  856. xxx_messageInfo_MsgWithRequired.DiscardUnknown(m)
  857. }
  858. var xxx_messageInfo_MsgWithRequired proto.InternalMessageInfo
  859. func (m *MsgWithRequired) GetStr() string {
  860. if m != nil && m.Str != nil {
  861. return *m.Str
  862. }
  863. return ""
  864. }
  865. type MsgWithIndirectRequired struct {
  866. Subm *MsgWithRequired `protobuf:"bytes,1,opt,name=subm" json:"subm,omitempty"`
  867. MapField map[string]*MsgWithRequired `protobuf:"bytes,2,rep,name=map_field,json=mapField" json:"map_field,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  868. SliceField []*MsgWithRequired `protobuf:"bytes,3,rep,name=slice_field,json=sliceField" json:"slice_field,omitempty"`
  869. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  870. XXX_unrecognized []byte `json:"-"`
  871. XXX_sizecache int32 `json:"-"`
  872. }
  873. func (m *MsgWithIndirectRequired) Reset() { *m = MsgWithIndirectRequired{} }
  874. func (m *MsgWithIndirectRequired) String() string { return proto.CompactTextString(m) }
  875. func (*MsgWithIndirectRequired) ProtoMessage() {}
  876. func (*MsgWithIndirectRequired) Descriptor() ([]byte, []int) {
  877. return fileDescriptor_e97c739a0ce14cc6, []int{10}
  878. }
  879. func (m *MsgWithIndirectRequired) XXX_Unmarshal(b []byte) error {
  880. return xxx_messageInfo_MsgWithIndirectRequired.Unmarshal(m, b)
  881. }
  882. func (m *MsgWithIndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  883. return xxx_messageInfo_MsgWithIndirectRequired.Marshal(b, m, deterministic)
  884. }
  885. func (m *MsgWithIndirectRequired) XXX_Merge(src proto.Message) {
  886. xxx_messageInfo_MsgWithIndirectRequired.Merge(m, src)
  887. }
  888. func (m *MsgWithIndirectRequired) XXX_Size() int {
  889. return xxx_messageInfo_MsgWithIndirectRequired.Size(m)
  890. }
  891. func (m *MsgWithIndirectRequired) XXX_DiscardUnknown() {
  892. xxx_messageInfo_MsgWithIndirectRequired.DiscardUnknown(m)
  893. }
  894. var xxx_messageInfo_MsgWithIndirectRequired proto.InternalMessageInfo
  895. func (m *MsgWithIndirectRequired) GetSubm() *MsgWithRequired {
  896. if m != nil {
  897. return m.Subm
  898. }
  899. return nil
  900. }
  901. func (m *MsgWithIndirectRequired) GetMapField() map[string]*MsgWithRequired {
  902. if m != nil {
  903. return m.MapField
  904. }
  905. return nil
  906. }
  907. func (m *MsgWithIndirectRequired) GetSliceField() []*MsgWithRequired {
  908. if m != nil {
  909. return m.SliceField
  910. }
  911. return nil
  912. }
  913. type MsgWithRequiredBytes struct {
  914. Byts []byte `protobuf:"bytes,1,req,name=byts" json:"byts,omitempty"`
  915. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  916. XXX_unrecognized []byte `json:"-"`
  917. XXX_sizecache int32 `json:"-"`
  918. }
  919. func (m *MsgWithRequiredBytes) Reset() { *m = MsgWithRequiredBytes{} }
  920. func (m *MsgWithRequiredBytes) String() string { return proto.CompactTextString(m) }
  921. func (*MsgWithRequiredBytes) ProtoMessage() {}
  922. func (*MsgWithRequiredBytes) Descriptor() ([]byte, []int) {
  923. return fileDescriptor_e97c739a0ce14cc6, []int{11}
  924. }
  925. func (m *MsgWithRequiredBytes) XXX_Unmarshal(b []byte) error {
  926. return xxx_messageInfo_MsgWithRequiredBytes.Unmarshal(m, b)
  927. }
  928. func (m *MsgWithRequiredBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  929. return xxx_messageInfo_MsgWithRequiredBytes.Marshal(b, m, deterministic)
  930. }
  931. func (m *MsgWithRequiredBytes) XXX_Merge(src proto.Message) {
  932. xxx_messageInfo_MsgWithRequiredBytes.Merge(m, src)
  933. }
  934. func (m *MsgWithRequiredBytes) XXX_Size() int {
  935. return xxx_messageInfo_MsgWithRequiredBytes.Size(m)
  936. }
  937. func (m *MsgWithRequiredBytes) XXX_DiscardUnknown() {
  938. xxx_messageInfo_MsgWithRequiredBytes.DiscardUnknown(m)
  939. }
  940. var xxx_messageInfo_MsgWithRequiredBytes proto.InternalMessageInfo
  941. func (m *MsgWithRequiredBytes) GetByts() []byte {
  942. if m != nil {
  943. return m.Byts
  944. }
  945. return nil
  946. }
  947. type MsgWithRequiredWKT struct {
  948. Str *wrappers.StringValue `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
  949. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  950. XXX_unrecognized []byte `json:"-"`
  951. XXX_sizecache int32 `json:"-"`
  952. }
  953. func (m *MsgWithRequiredWKT) Reset() { *m = MsgWithRequiredWKT{} }
  954. func (m *MsgWithRequiredWKT) String() string { return proto.CompactTextString(m) }
  955. func (*MsgWithRequiredWKT) ProtoMessage() {}
  956. func (*MsgWithRequiredWKT) Descriptor() ([]byte, []int) {
  957. return fileDescriptor_e97c739a0ce14cc6, []int{12}
  958. }
  959. func (m *MsgWithRequiredWKT) XXX_Unmarshal(b []byte) error {
  960. return xxx_messageInfo_MsgWithRequiredWKT.Unmarshal(m, b)
  961. }
  962. func (m *MsgWithRequiredWKT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  963. return xxx_messageInfo_MsgWithRequiredWKT.Marshal(b, m, deterministic)
  964. }
  965. func (m *MsgWithRequiredWKT) XXX_Merge(src proto.Message) {
  966. xxx_messageInfo_MsgWithRequiredWKT.Merge(m, src)
  967. }
  968. func (m *MsgWithRequiredWKT) XXX_Size() int {
  969. return xxx_messageInfo_MsgWithRequiredWKT.Size(m)
  970. }
  971. func (m *MsgWithRequiredWKT) XXX_DiscardUnknown() {
  972. xxx_messageInfo_MsgWithRequiredWKT.DiscardUnknown(m)
  973. }
  974. var xxx_messageInfo_MsgWithRequiredWKT proto.InternalMessageInfo
  975. func (m *MsgWithRequiredWKT) GetStr() *wrappers.StringValue {
  976. if m != nil {
  977. return m.Str
  978. }
  979. return nil
  980. }
  981. var E_Name = &proto.ExtensionDesc{
  982. ExtendedType: (*Real)(nil),
  983. ExtensionType: (*string)(nil),
  984. Field: 124,
  985. Name: "jsonpb.name",
  986. Tag: "bytes,124,opt,name=name",
  987. Filename: "test_objects.proto",
  988. }
  989. var E_Extm = &proto.ExtensionDesc{
  990. ExtendedType: (*Real)(nil),
  991. ExtensionType: (*MsgWithRequired)(nil),
  992. Field: 125,
  993. Name: "jsonpb.extm",
  994. Tag: "bytes,125,opt,name=extm",
  995. Filename: "test_objects.proto",
  996. }
  997. func init() {
  998. proto.RegisterEnum("jsonpb.Widget_Color", Widget_Color_name, Widget_Color_value)
  999. proto.RegisterType((*Simple)(nil), "jsonpb.Simple")
  1000. proto.RegisterType((*NonFinites)(nil), "jsonpb.NonFinites")
  1001. proto.RegisterType((*Repeats)(nil), "jsonpb.Repeats")
  1002. proto.RegisterType((*Widget)(nil), "jsonpb.Widget")
  1003. proto.RegisterType((*Maps)(nil), "jsonpb.Maps")
  1004. proto.RegisterMapType((map[bool]*Simple)(nil), "jsonpb.Maps.MBoolSimpleEntry")
  1005. proto.RegisterMapType((map[int64]string)(nil), "jsonpb.Maps.MInt64StrEntry")
  1006. proto.RegisterType((*MsgWithOneof)(nil), "jsonpb.MsgWithOneof")
  1007. proto.RegisterType((*Real)(nil), "jsonpb.Real")
  1008. proto.RegisterExtension(E_Complex_RealExtension)
  1009. proto.RegisterType((*Complex)(nil), "jsonpb.Complex")
  1010. proto.RegisterType((*KnownTypes)(nil), "jsonpb.KnownTypes")
  1011. proto.RegisterType((*MsgWithRequired)(nil), "jsonpb.MsgWithRequired")
  1012. proto.RegisterType((*MsgWithIndirectRequired)(nil), "jsonpb.MsgWithIndirectRequired")
  1013. proto.RegisterMapType((map[string]*MsgWithRequired)(nil), "jsonpb.MsgWithIndirectRequired.MapFieldEntry")
  1014. proto.RegisterType((*MsgWithRequiredBytes)(nil), "jsonpb.MsgWithRequiredBytes")
  1015. proto.RegisterType((*MsgWithRequiredWKT)(nil), "jsonpb.MsgWithRequiredWKT")
  1016. proto.RegisterExtension(E_Name)
  1017. proto.RegisterExtension(E_Extm)
  1018. }
  1019. func init() { proto.RegisterFile("test_objects.proto", fileDescriptor_e97c739a0ce14cc6) }
  1020. var fileDescriptor_e97c739a0ce14cc6 = []byte{
  1021. // 1460 bytes of a gzipped FileDescriptorProto
  1022. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0xdd, 0x72, 0xdb, 0x44,
  1023. 0x14, 0x8e, 0x24, 0xcb, 0xb6, 0x8e, 0xf3, 0xd7, 0x6d, 0xda, 0x2a, 0xa1, 0x14, 0x8d, 0x5b, 0x8a,
  1024. 0x69, 0x89, 0x3b, 0x38, 0x1e, 0x4f, 0x29, 0xdc, 0x34, 0x4d, 0x4a, 0x4b, 0xdb, 0xc0, 0x6c, 0x52,
  1025. 0x7a, 0xe9, 0x91, 0x23, 0x39, 0x55, 0x91, 0xb4, 0x66, 0x77, 0x9d, 0xd4, 0x03, 0xcc, 0xe4, 0x19,
  1026. 0x18, 0x9e, 0x80, 0x0b, 0x6e, 0xb9, 0xe3, 0x82, 0xb7, 0xe0, 0x8d, 0x98, 0x3d, 0xbb, 0xf2, 0x5f,
  1027. 0xe2, 0x81, 0x2b, 0x7b, 0xf7, 0xfb, 0xd9, 0xd5, 0x9e, 0x4f, 0x67, 0x05, 0x44, 0xc6, 0x42, 0x76,
  1028. 0x59, 0xef, 0x5d, 0x7c, 0x2c, 0x45, 0x73, 0xc0, 0x99, 0x64, 0xa4, 0xfc, 0x4e, 0xb0, 0x7c, 0xd0,
  1029. 0xdb, 0xda, 0x3c, 0x61, 0xec, 0x24, 0x8d, 0x1f, 0xe0, 0x6c, 0x6f, 0xd8, 0x7f, 0x10, 0xe6, 0x23,
  1030. 0x4d, 0xd9, 0xba, 0x35, 0x0f, 0x45, 0x43, 0x1e, 0xca, 0x84, 0xe5, 0x06, 0xbf, 0x39, 0x8f, 0x0b,
  1031. 0xc9, 0x87, 0xc7, 0xd2, 0xa0, 0x1f, 0xcd, 0xa3, 0x32, 0xc9, 0x62, 0x21, 0xc3, 0x6c, 0xb0, 0xc8,
  1032. 0xfe, 0x8c, 0x87, 0x83, 0x41, 0xcc, 0xcd, 0x0e, 0xeb, 0x7f, 0x96, 0xa0, 0x7c, 0x98, 0x64, 0x83,
  1033. 0x34, 0x26, 0xd7, 0xa0, 0xcc, 0xba, 0x3d, 0xc6, 0x52, 0xdf, 0x0a, 0xac, 0x46, 0x95, 0xba, 0x6c,
  1034. 0x97, 0xb1, 0x94, 0xdc, 0x80, 0x0a, 0xeb, 0x26, 0xb9, 0xdc, 0x69, 0xf9, 0x76, 0x60, 0x35, 0x5c,
  1035. 0x5a, 0x66, 0xcf, 0xd5, 0x88, 0xdc, 0x82, 0x9a, 0x01, 0xba, 0x42, 0x72, 0xdf, 0x41, 0xd0, 0xd3,
  1036. 0xe0, 0xa1, 0xe4, 0x63, 0x61, 0xa7, 0xed, 0x97, 0x02, 0xab, 0xe1, 0x68, 0x61, 0xa7, 0x3d, 0x16,
  1037. 0x76, 0xda, 0x28, 0x74, 0x11, 0xf4, 0x34, 0xa8, 0x84, 0x9b, 0x50, 0x65, 0xdd, 0xa1, 0x5e, 0xb2,
  1038. 0x1c, 0x58, 0x8d, 0x15, 0x5a, 0x61, 0xaf, 0x71, 0x48, 0x02, 0x58, 0x2e, 0x20, 0xd4, 0x56, 0x10,
  1039. 0x06, 0x03, 0xcf, 0x88, 0x3b, 0x6d, 0xbf, 0x1a, 0x58, 0x8d, 0x92, 0x11, 0x77, 0xda, 0x13, 0xb1,
  1040. 0x59, 0xd8, 0x43, 0x18, 0x0c, 0x3c, 0x16, 0x0b, 0xbd, 0x32, 0x04, 0x56, 0xe3, 0x0a, 0xad, 0xb0,
  1041. 0xc3, 0xa9, 0x95, 0xc5, 0x64, 0xe5, 0x1a, 0xc2, 0x60, 0xe0, 0x19, 0x71, 0xa7, 0xed, 0x2f, 0x07,
  1042. 0x56, 0x83, 0x18, 0x71, 0xb1, 0xb2, 0x98, 0xac, 0xbc, 0x82, 0x30, 0x18, 0x78, 0x7c, 0x58, 0xfd,
  1043. 0x94, 0x85, 0xd2, 0x5f, 0x0d, 0xac, 0x86, 0x4d, 0xcb, 0xec, 0xa9, 0x1a, 0xe9, 0xc3, 0x42, 0x00,
  1044. 0x95, 0x6b, 0x08, 0x7a, 0x1a, 0x1c, 0xaf, 0x1a, 0xb1, 0x61, 0x2f, 0x8d, 0xfd, 0xf5, 0xc0, 0x6a,
  1045. 0x58, 0xb4, 0xc2, 0xf6, 0x70, 0xa8, 0x57, 0xd5, 0x10, 0x6a, 0xaf, 0x20, 0x0c, 0x06, 0x9e, 0x6c,
  1046. 0x59, 0xf2, 0x24, 0x3f, 0xf1, 0x49, 0x60, 0x35, 0x3c, 0xb5, 0x65, 0x1c, 0xea, 0x0d, 0xf5, 0x46,
  1047. 0x32, 0x16, 0xfe, 0xd5, 0xc0, 0x6a, 0x2c, 0xd3, 0x32, 0xdb, 0x55, 0xa3, 0xfa, 0xaf, 0x16, 0xc0,
  1048. 0x01, 0xcb, 0x9f, 0x26, 0x79, 0x22, 0x63, 0x41, 0xae, 0x82, 0xdb, 0xef, 0xe6, 0x61, 0x8e, 0xa1,
  1049. 0xb1, 0x69, 0xa9, 0x7f, 0x10, 0xe6, 0x2a, 0x4a, 0xfd, 0xee, 0x20, 0xc9, 0xfb, 0x18, 0x19, 0x9b,
  1050. 0xba, 0xfd, 0xef, 0x92, 0xbc, 0xaf, 0xa7, 0x73, 0x35, 0xed, 0x98, 0xe9, 0x03, 0x35, 0x7d, 0x15,
  1051. 0xdc, 0x08, 0x2d, 0x4a, 0xb8, 0xc1, 0x52, 0x64, 0x2c, 0x22, 0x6d, 0xe1, 0xe2, 0xac, 0x1b, 0x15,
  1052. 0x16, 0x91, 0xb6, 0x28, 0x9b, 0x69, 0x65, 0x51, 0xff, 0xc3, 0x86, 0x0a, 0x8d, 0x07, 0x71, 0x28,
  1053. 0x85, 0xa2, 0xf0, 0x22, 0xc7, 0x8e, 0xca, 0x31, 0x2f, 0x72, 0xcc, 0xc7, 0x39, 0x76, 0x54, 0x8e,
  1054. 0xb9, 0xce, 0x71, 0x01, 0x74, 0xda, 0xbe, 0x13, 0x38, 0x2a, 0xa7, 0x5c, 0xe7, 0x74, 0x13, 0xaa,
  1055. 0xbc, 0xc8, 0x61, 0x29, 0x70, 0x54, 0x0e, 0xb9, 0xc9, 0xe1, 0x18, 0xea, 0xb4, 0x7d, 0x37, 0x70,
  1056. 0x54, 0xca, 0xb8, 0x49, 0x19, 0x42, 0xa2, 0x48, 0xaf, 0xa3, 0x32, 0xc4, 0x0f, 0xa7, 0x54, 0x26,
  1057. 0x21, 0x95, 0xc0, 0x51, 0x09, 0xe1, 0x26, 0x21, 0xb8, 0x09, 0x5d, 0xff, 0x6a, 0xe0, 0xa8, 0xfa,
  1058. 0x73, 0x5d, 0x7f, 0xd4, 0x98, 0xfa, 0x7a, 0x81, 0xa3, 0xea, 0xcb, 0x4d, 0x7d, 0xb5, 0x9d, 0xae,
  1059. 0x1e, 0x04, 0x8e, 0xaa, 0x1e, 0x9f, 0x54, 0x8f, 0x9b, 0xea, 0xd5, 0x02, 0x47, 0x55, 0x8f, 0xeb,
  1060. 0xea, 0xfd, 0x65, 0x43, 0xf9, 0x4d, 0x12, 0x9d, 0xc4, 0x92, 0xdc, 0x03, 0xf7, 0x98, 0xa5, 0x8c,
  1061. 0x63, 0xe5, 0x56, 0x5b, 0x1b, 0x4d, 0xdd, 0xac, 0x9a, 0x1a, 0x6e, 0x3e, 0x51, 0x18, 0xd5, 0x14,
  1062. 0xb2, 0xad, 0xfc, 0x34, 0x5b, 0x1d, 0xde, 0x22, 0x76, 0x99, 0xe3, 0x2f, 0xb9, 0x0b, 0x65, 0x81,
  1063. 0x4d, 0x05, 0xdf, 0xa2, 0x5a, 0x6b, 0xb5, 0x60, 0xeb, 0x56, 0x43, 0x0d, 0x4a, 0x3e, 0xd5, 0x07,
  1064. 0x82, 0x4c, 0xb5, 0xcf, 0x8b, 0x4c, 0x75, 0x40, 0x86, 0x5a, 0xe1, 0xba, 0xc0, 0xfe, 0x06, 0x7a,
  1065. 0xae, 0x15, 0x4c, 0x53, 0x77, 0x5a, 0xe0, 0xe4, 0x33, 0xf0, 0x78, 0xb7, 0x20, 0x5f, 0x43, 0xdb,
  1066. 0x0b, 0xe4, 0x2a, 0x37, 0xff, 0xea, 0x1f, 0x83, 0xab, 0x37, 0x5d, 0x01, 0x87, 0xee, 0xef, 0xad,
  1067. 0x2f, 0x11, 0x0f, 0xdc, 0xaf, 0xe9, 0xfe, 0xfe, 0xc1, 0xba, 0x45, 0xaa, 0x50, 0xda, 0x7d, 0xf9,
  1068. 0x7a, 0x7f, 0xdd, 0xae, 0xff, 0x66, 0x43, 0xe9, 0x55, 0x38, 0x10, 0xe4, 0x4b, 0xa8, 0x65, 0x53,
  1069. 0xdd, 0xcb, 0x42, 0xff, 0x0f, 0x0a, 0x7f, 0x45, 0x69, 0xbe, 0x2a, 0x5a, 0xd9, 0x7e, 0x2e, 0xf9,
  1070. 0x88, 0x7a, 0xd9, 0xb8, 0xb5, 0x3d, 0x86, 0x95, 0x0c, 0xb3, 0x59, 0x3c, 0xb5, 0x8d, 0xf2, 0x0f,
  1071. 0x67, 0xe5, 0x2a, 0xaf, 0xfa, 0xb1, 0xb5, 0x41, 0x2d, 0x9b, 0xcc, 0x6c, 0x7d, 0x05, 0xab, 0xb3,
  1072. 0xfe, 0x64, 0x1d, 0x9c, 0x1f, 0xe2, 0x11, 0x96, 0xd1, 0xa1, 0xea, 0x2f, 0xd9, 0x00, 0xf7, 0x34,
  1073. 0x4c, 0x87, 0x31, 0xbe, 0x7e, 0x1e, 0xd5, 0x83, 0x47, 0xf6, 0x43, 0x6b, 0xeb, 0x00, 0xd6, 0xe7,
  1074. 0xed, 0xa7, 0xf5, 0x55, 0xad, 0xbf, 0x33, 0xad, 0xbf, 0x58, 0x94, 0x89, 0x5f, 0xfd, 0x1f, 0x0b,
  1075. 0x96, 0x5f, 0x89, 0x93, 0x37, 0x89, 0x7c, 0xfb, 0x6d, 0x1e, 0xb3, 0x3e, 0xb9, 0x0e, 0xae, 0x4c,
  1076. 0x64, 0x1a, 0xa3, 0x9d, 0xf7, 0x6c, 0x89, 0xea, 0x21, 0xf1, 0xa1, 0x2c, 0xc2, 0x34, 0xe4, 0x23,
  1077. 0xf4, 0x74, 0x9e, 0x2d, 0x51, 0x33, 0x26, 0x5b, 0x50, 0x79, 0xc2, 0x86, 0x6a, 0x27, 0xd8, 0x16,
  1078. 0x94, 0xa6, 0x98, 0x20, 0xb7, 0x61, 0xf9, 0x2d, 0xcb, 0xe2, 0x6e, 0x18, 0x45, 0x3c, 0x16, 0x02,
  1079. 0x3b, 0x84, 0x22, 0xd4, 0xd4, 0xec, 0x63, 0x3d, 0x49, 0xf6, 0xe1, 0x4a, 0x26, 0x4e, 0xba, 0x67,
  1080. 0x89, 0x7c, 0xdb, 0xe5, 0xf1, 0x8f, 0xc3, 0x84, 0xc7, 0x11, 0x76, 0x8d, 0x5a, 0xeb, 0xc6, 0xf8,
  1081. 0x60, 0xf5, 0x1e, 0xa9, 0x81, 0x9f, 0x2d, 0xd1, 0xb5, 0x6c, 0x76, 0x6a, 0xb7, 0x02, 0xee, 0x30,
  1082. 0x4f, 0x58, 0x5e, 0xbf, 0x0b, 0x25, 0x1a, 0x87, 0xe9, 0xe4, 0x14, 0x2d, 0xdd, 0x6a, 0x70, 0x70,
  1083. 0xaf, 0x5a, 0x8d, 0xd6, 0xcf, 0xcf, 0xcf, 0xcf, 0xed, 0xfa, 0x99, 0xda, 0xb8, 0x3a, 0x90, 0xf7,
  1084. 0xe4, 0x26, 0x78, 0x49, 0x16, 0x9e, 0x24, 0xb9, 0x7a, 0x40, 0x4d, 0x9f, 0x4c, 0x4c, 0x24, 0xad,
  1085. 0x3d, 0x58, 0xe5, 0x71, 0x98, 0x76, 0xe3, 0xf7, 0x32, 0xce, 0x45, 0xc2, 0x72, 0xb2, 0x3c, 0x49,
  1086. 0x66, 0x98, 0xfa, 0x3f, 0xcd, 0x46, 0xdb, 0xd8, 0xd3, 0x15, 0x25, 0xda, 0x2f, 0x34, 0xf5, 0xbf,
  1087. 0x5d, 0x80, 0x17, 0x39, 0x3b, 0xcb, 0x8f, 0x46, 0x83, 0x58, 0x90, 0x3b, 0x60, 0x87, 0x39, 0x5e,
  1088. 0x1b, 0xb5, 0xd6, 0x46, 0x53, 0x5f, 0xf8, 0xcd, 0xe2, 0xc2, 0x6f, 0x3e, 0xce, 0x47, 0xd4, 0x0e,
  1089. 0x73, 0x72, 0x1f, 0x9c, 0x68, 0xa8, 0x5f, 0xf6, 0x5a, 0x6b, 0xf3, 0x02, 0x6d, 0xcf, 0x7c, 0x76,
  1090. 0x50, 0xc5, 0x22, 0x9f, 0x80, 0x2d, 0x24, 0xde, 0x62, 0xea, 0x0c, 0xe7, 0xb9, 0x87, 0xf8, 0x09,
  1091. 0x42, 0x6d, 0xa1, 0x9a, 0x88, 0x2d, 0x85, 0x89, 0xc9, 0xd6, 0x05, 0xe2, 0x51, 0xf1, 0x35, 0x42,
  1092. 0x6d, 0x29, 0x14, 0x37, 0x3d, 0xc5, 0x1b, 0xec, 0x32, 0xee, 0xcb, 0x44, 0xc8, 0xef, 0xd5, 0x09,
  1093. 0x53, 0x3b, 0x3d, 0x25, 0x0d, 0x70, 0x4e, 0xc3, 0x14, 0x6f, 0xb4, 0x5a, 0xeb, 0xfa, 0x05, 0xb2,
  1094. 0x26, 0x2a, 0x0a, 0x69, 0x82, 0x13, 0xf5, 0x52, 0x8c, 0x4e, 0xad, 0x75, 0xf3, 0xe2, 0x73, 0x61,
  1095. 0xaf, 0x34, 0xfc, 0xa8, 0x97, 0x92, 0x6d, 0x70, 0xfa, 0xa9, 0xc4, 0x24, 0xa9, 0xf7, 0x76, 0x9e,
  1096. 0x8f, 0x5d, 0xd7, 0xd0, 0xfb, 0xa9, 0x54, 0xf4, 0x04, 0x9b, 0xfc, 0xe5, 0x74, 0x7c, 0x13, 0x0d,
  1097. 0x3d, 0xe9, 0xb4, 0xd5, 0x6e, 0x86, 0x9d, 0x36, 0x5e, 0x4e, 0x97, 0xed, 0xe6, 0xf5, 0x34, 0x7f,
  1098. 0xd8, 0x69, 0xa3, 0xfd, 0x4e, 0x0b, 0xbf, 0x63, 0x16, 0xd8, 0xef, 0xb4, 0x0a, 0xfb, 0x9d, 0x16,
  1099. 0xda, 0xef, 0xb4, 0xf0, 0xc3, 0x66, 0x91, 0xfd, 0x98, 0x3f, 0x44, 0x7e, 0x09, 0x6f, 0x42, 0x6f,
  1100. 0xc1, 0xa1, 0xab, 0x56, 0xa0, 0xe9, 0xc8, 0x53, 0xfe, 0xaa, 0xa9, 0xc1, 0x02, 0x7f, 0x7d, 0xbb,
  1101. 0x18, 0x7f, 0x21, 0x39, 0xf9, 0x1c, 0xdc, 0xe2, 0x96, 0xb9, 0xfc, 0x01, 0xf0, 0xd6, 0xd1, 0x02,
  1102. 0xcd, 0xac, 0xdf, 0x86, 0xb5, 0xb9, 0x97, 0x51, 0x35, 0x20, 0xdd, 0x4a, 0xed, 0x86, 0x87, 0xbe,
  1103. 0xf5, 0xdf, 0x6d, 0xb8, 0x61, 0x58, 0xcf, 0xf3, 0x28, 0xe1, 0xf1, 0xb1, 0x1c, 0xb3, 0xef, 0x43,
  1104. 0x49, 0x0c, 0x7b, 0x99, 0x49, 0xf2, 0xa2, 0x37, 0x9c, 0x22, 0x89, 0x7c, 0x03, 0x5e, 0x16, 0x0e,
  1105. 0xba, 0xfd, 0x24, 0x4e, 0x23, 0xd3, 0x6c, 0xb7, 0xe7, 0x14, 0xf3, 0x0b, 0xa8, 0x26, 0xfc, 0x54,
  1106. 0xf1, 0x75, 0xf3, 0xad, 0x66, 0x66, 0x48, 0x1e, 0x42, 0x4d, 0xa4, 0xc9, 0x71, 0x6c, 0xdc, 0x1c,
  1107. 0x74, 0x5b, 0xb8, 0x3e, 0x20, 0x17, 0x95, 0x5b, 0x47, 0xb0, 0x32, 0x63, 0x3a, 0xdd, 0x72, 0x3d,
  1108. 0xdd, 0x72, 0xb7, 0x67, 0x5b, 0xee, 0x42, 0xdb, 0xa9, 0xde, 0x7b, 0x0f, 0x36, 0xe6, 0x50, 0x3c,
  1109. 0x6d, 0x42, 0xa0, 0xd4, 0x1b, 0x49, 0x81, 0xe7, 0xb9, 0x4c, 0xf1, 0x7f, 0x7d, 0x0f, 0xc8, 0x1c,
  1110. 0xf7, 0xcd, 0x8b, 0xa3, 0xa2, 0xdc, 0x8a, 0xf8, 0x7f, 0xca, 0xfd, 0x28, 0x80, 0x52, 0x1e, 0x66,
  1111. 0xf1, 0x5c, 0xd3, 0xfa, 0x19, 0x9f, 0x02, 0x91, 0x47, 0x5f, 0x40, 0x29, 0x7e, 0x2f, 0xb3, 0x39,
  1112. 0xc6, 0x2f, 0xff, 0x51, 0x2a, 0x25, 0xf9, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe9, 0xd4, 0xfd, 0x2f,
  1113. 0x41, 0x0d, 0x00, 0x00,
  1114. }