test_objects.pb.go 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: jsonpb_test_proto/test_objects.proto
  3. package jsonpb
  4. import (
  5. proto "github.com/golang/protobuf/proto"
  6. protoapi "github.com/golang/protobuf/protoapi"
  7. protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
  8. protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
  9. known "github.com/golang/protobuf/v2/types/known"
  10. reflect "reflect"
  11. )
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  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. func (e Widget_Color) Type() protoreflect.EnumType {
  24. return xxx_File_jsonpb_test_proto_test_objects_proto_enumTypes[0]
  25. }
  26. func (e Widget_Color) Number() protoreflect.EnumNumber {
  27. return protoreflect.EnumNumber(e)
  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 xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []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) ProtoReflect() protoreflect.Message {
  84. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[0].MessageOf(m)
  85. }
  86. func (m *Simple) Reset() { *m = Simple{} }
  87. func (m *Simple) String() string { return proto.CompactTextString(m) }
  88. func (*Simple) ProtoMessage() {}
  89. func (*Simple) Descriptor() ([]byte, []int) {
  90. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{0}
  91. }
  92. func (m *Simple) XXX_Unmarshal(b []byte) error {
  93. return xxx_messageInfo_Simple.Unmarshal(m, b)
  94. }
  95. func (m *Simple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  96. return xxx_messageInfo_Simple.Marshal(b, m, deterministic)
  97. }
  98. func (m *Simple) XXX_Merge(src proto.Message) {
  99. xxx_messageInfo_Simple.Merge(m, src)
  100. }
  101. func (m *Simple) XXX_Size() int {
  102. return xxx_messageInfo_Simple.Size(m)
  103. }
  104. func (m *Simple) XXX_DiscardUnknown() {
  105. xxx_messageInfo_Simple.DiscardUnknown(m)
  106. }
  107. var xxx_messageInfo_Simple proto.InternalMessageInfo
  108. func (m *Simple) GetOBool() bool {
  109. if m != nil && m.OBool != nil {
  110. return *m.OBool
  111. }
  112. return false
  113. }
  114. func (m *Simple) GetOInt32() int32 {
  115. if m != nil && m.OInt32 != nil {
  116. return *m.OInt32
  117. }
  118. return 0
  119. }
  120. func (m *Simple) GetOInt32Str() int32 {
  121. if m != nil && m.OInt32Str != nil {
  122. return *m.OInt32Str
  123. }
  124. return 0
  125. }
  126. func (m *Simple) GetOInt64() int64 {
  127. if m != nil && m.OInt64 != nil {
  128. return *m.OInt64
  129. }
  130. return 0
  131. }
  132. func (m *Simple) GetOInt64Str() int64 {
  133. if m != nil && m.OInt64Str != nil {
  134. return *m.OInt64Str
  135. }
  136. return 0
  137. }
  138. func (m *Simple) GetOUint32() uint32 {
  139. if m != nil && m.OUint32 != nil {
  140. return *m.OUint32
  141. }
  142. return 0
  143. }
  144. func (m *Simple) GetOUint32Str() uint32 {
  145. if m != nil && m.OUint32Str != nil {
  146. return *m.OUint32Str
  147. }
  148. return 0
  149. }
  150. func (m *Simple) GetOUint64() uint64 {
  151. if m != nil && m.OUint64 != nil {
  152. return *m.OUint64
  153. }
  154. return 0
  155. }
  156. func (m *Simple) GetOUint64Str() uint64 {
  157. if m != nil && m.OUint64Str != nil {
  158. return *m.OUint64Str
  159. }
  160. return 0
  161. }
  162. func (m *Simple) GetOSint32() int32 {
  163. if m != nil && m.OSint32 != nil {
  164. return *m.OSint32
  165. }
  166. return 0
  167. }
  168. func (m *Simple) GetOSint32Str() int32 {
  169. if m != nil && m.OSint32Str != nil {
  170. return *m.OSint32Str
  171. }
  172. return 0
  173. }
  174. func (m *Simple) GetOSint64() int64 {
  175. if m != nil && m.OSint64 != nil {
  176. return *m.OSint64
  177. }
  178. return 0
  179. }
  180. func (m *Simple) GetOSint64Str() int64 {
  181. if m != nil && m.OSint64Str != nil {
  182. return *m.OSint64Str
  183. }
  184. return 0
  185. }
  186. func (m *Simple) GetOFloat() float32 {
  187. if m != nil && m.OFloat != nil {
  188. return *m.OFloat
  189. }
  190. return 0
  191. }
  192. func (m *Simple) GetOFloatStr() float32 {
  193. if m != nil && m.OFloatStr != nil {
  194. return *m.OFloatStr
  195. }
  196. return 0
  197. }
  198. func (m *Simple) GetODouble() float64 {
  199. if m != nil && m.ODouble != nil {
  200. return *m.ODouble
  201. }
  202. return 0
  203. }
  204. func (m *Simple) GetODoubleStr() float64 {
  205. if m != nil && m.ODoubleStr != nil {
  206. return *m.ODoubleStr
  207. }
  208. return 0
  209. }
  210. func (m *Simple) GetOString() string {
  211. if m != nil && m.OString != nil {
  212. return *m.OString
  213. }
  214. return ""
  215. }
  216. func (m *Simple) GetOBytes() []byte {
  217. if m != nil {
  218. return m.OBytes
  219. }
  220. return nil
  221. }
  222. // Test message for holding special non-finites primitives.
  223. type NonFinites struct {
  224. FNan *float32 `protobuf:"fixed32,1,opt,name=f_nan,json=fNan" json:"f_nan,omitempty"`
  225. FPinf *float32 `protobuf:"fixed32,2,opt,name=f_pinf,json=fPinf" json:"f_pinf,omitempty"`
  226. FNinf *float32 `protobuf:"fixed32,3,opt,name=f_ninf,json=fNinf" json:"f_ninf,omitempty"`
  227. DNan *float64 `protobuf:"fixed64,4,opt,name=d_nan,json=dNan" json:"d_nan,omitempty"`
  228. DPinf *float64 `protobuf:"fixed64,5,opt,name=d_pinf,json=dPinf" json:"d_pinf,omitempty"`
  229. DNinf *float64 `protobuf:"fixed64,6,opt,name=d_ninf,json=dNinf" json:"d_ninf,omitempty"`
  230. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  231. XXX_unrecognized []byte `json:"-"`
  232. XXX_sizecache int32 `json:"-"`
  233. }
  234. func (m *NonFinites) ProtoReflect() protoreflect.Message {
  235. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[1].MessageOf(m)
  236. }
  237. func (m *NonFinites) Reset() { *m = NonFinites{} }
  238. func (m *NonFinites) String() string { return proto.CompactTextString(m) }
  239. func (*NonFinites) ProtoMessage() {}
  240. func (*NonFinites) Descriptor() ([]byte, []int) {
  241. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{1}
  242. }
  243. func (m *NonFinites) XXX_Unmarshal(b []byte) error {
  244. return xxx_messageInfo_NonFinites.Unmarshal(m, b)
  245. }
  246. func (m *NonFinites) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  247. return xxx_messageInfo_NonFinites.Marshal(b, m, deterministic)
  248. }
  249. func (m *NonFinites) XXX_Merge(src proto.Message) {
  250. xxx_messageInfo_NonFinites.Merge(m, src)
  251. }
  252. func (m *NonFinites) XXX_Size() int {
  253. return xxx_messageInfo_NonFinites.Size(m)
  254. }
  255. func (m *NonFinites) XXX_DiscardUnknown() {
  256. xxx_messageInfo_NonFinites.DiscardUnknown(m)
  257. }
  258. var xxx_messageInfo_NonFinites proto.InternalMessageInfo
  259. func (m *NonFinites) GetFNan() float32 {
  260. if m != nil && m.FNan != nil {
  261. return *m.FNan
  262. }
  263. return 0
  264. }
  265. func (m *NonFinites) GetFPinf() float32 {
  266. if m != nil && m.FPinf != nil {
  267. return *m.FPinf
  268. }
  269. return 0
  270. }
  271. func (m *NonFinites) GetFNinf() float32 {
  272. if m != nil && m.FNinf != nil {
  273. return *m.FNinf
  274. }
  275. return 0
  276. }
  277. func (m *NonFinites) GetDNan() float64 {
  278. if m != nil && m.DNan != nil {
  279. return *m.DNan
  280. }
  281. return 0
  282. }
  283. func (m *NonFinites) GetDPinf() float64 {
  284. if m != nil && m.DPinf != nil {
  285. return *m.DPinf
  286. }
  287. return 0
  288. }
  289. func (m *NonFinites) GetDNinf() float64 {
  290. if m != nil && m.DNinf != nil {
  291. return *m.DNinf
  292. }
  293. return 0
  294. }
  295. // Test message for holding repeated primitives.
  296. type Repeats struct {
  297. RBool []bool `protobuf:"varint,1,rep,name=r_bool,json=rBool" json:"r_bool,omitempty"`
  298. RInt32 []int32 `protobuf:"varint,2,rep,name=r_int32,json=rInt32" json:"r_int32,omitempty"`
  299. RInt64 []int64 `protobuf:"varint,3,rep,name=r_int64,json=rInt64" json:"r_int64,omitempty"`
  300. RUint32 []uint32 `protobuf:"varint,4,rep,name=r_uint32,json=rUint32" json:"r_uint32,omitempty"`
  301. RUint64 []uint64 `protobuf:"varint,5,rep,name=r_uint64,json=rUint64" json:"r_uint64,omitempty"`
  302. RSint32 []int32 `protobuf:"zigzag32,6,rep,name=r_sint32,json=rSint32" json:"r_sint32,omitempty"`
  303. RSint64 []int64 `protobuf:"zigzag64,7,rep,name=r_sint64,json=rSint64" json:"r_sint64,omitempty"`
  304. RFloat []float32 `protobuf:"fixed32,8,rep,name=r_float,json=rFloat" json:"r_float,omitempty"`
  305. RDouble []float64 `protobuf:"fixed64,9,rep,name=r_double,json=rDouble" json:"r_double,omitempty"`
  306. RString []string `protobuf:"bytes,10,rep,name=r_string,json=rString" json:"r_string,omitempty"`
  307. RBytes [][]byte `protobuf:"bytes,11,rep,name=r_bytes,json=rBytes" json:"r_bytes,omitempty"`
  308. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  309. XXX_unrecognized []byte `json:"-"`
  310. XXX_sizecache int32 `json:"-"`
  311. }
  312. func (m *Repeats) ProtoReflect() protoreflect.Message {
  313. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[2].MessageOf(m)
  314. }
  315. func (m *Repeats) Reset() { *m = Repeats{} }
  316. func (m *Repeats) String() string { return proto.CompactTextString(m) }
  317. func (*Repeats) ProtoMessage() {}
  318. func (*Repeats) Descriptor() ([]byte, []int) {
  319. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{2}
  320. }
  321. func (m *Repeats) XXX_Unmarshal(b []byte) error {
  322. return xxx_messageInfo_Repeats.Unmarshal(m, b)
  323. }
  324. func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  325. return xxx_messageInfo_Repeats.Marshal(b, m, deterministic)
  326. }
  327. func (m *Repeats) XXX_Merge(src proto.Message) {
  328. xxx_messageInfo_Repeats.Merge(m, src)
  329. }
  330. func (m *Repeats) XXX_Size() int {
  331. return xxx_messageInfo_Repeats.Size(m)
  332. }
  333. func (m *Repeats) XXX_DiscardUnknown() {
  334. xxx_messageInfo_Repeats.DiscardUnknown(m)
  335. }
  336. var xxx_messageInfo_Repeats proto.InternalMessageInfo
  337. func (m *Repeats) GetRBool() []bool {
  338. if m != nil {
  339. return m.RBool
  340. }
  341. return nil
  342. }
  343. func (m *Repeats) GetRInt32() []int32 {
  344. if m != nil {
  345. return m.RInt32
  346. }
  347. return nil
  348. }
  349. func (m *Repeats) GetRInt64() []int64 {
  350. if m != nil {
  351. return m.RInt64
  352. }
  353. return nil
  354. }
  355. func (m *Repeats) GetRUint32() []uint32 {
  356. if m != nil {
  357. return m.RUint32
  358. }
  359. return nil
  360. }
  361. func (m *Repeats) GetRUint64() []uint64 {
  362. if m != nil {
  363. return m.RUint64
  364. }
  365. return nil
  366. }
  367. func (m *Repeats) GetRSint32() []int32 {
  368. if m != nil {
  369. return m.RSint32
  370. }
  371. return nil
  372. }
  373. func (m *Repeats) GetRSint64() []int64 {
  374. if m != nil {
  375. return m.RSint64
  376. }
  377. return nil
  378. }
  379. func (m *Repeats) GetRFloat() []float32 {
  380. if m != nil {
  381. return m.RFloat
  382. }
  383. return nil
  384. }
  385. func (m *Repeats) GetRDouble() []float64 {
  386. if m != nil {
  387. return m.RDouble
  388. }
  389. return nil
  390. }
  391. func (m *Repeats) GetRString() []string {
  392. if m != nil {
  393. return m.RString
  394. }
  395. return nil
  396. }
  397. func (m *Repeats) GetRBytes() [][]byte {
  398. if m != nil {
  399. return m.RBytes
  400. }
  401. return nil
  402. }
  403. // Test message for holding enums and nested messages.
  404. type Widget struct {
  405. Color *Widget_Color `protobuf:"varint,1,opt,name=color,enum=jsonpb.Widget_Color" json:"color,omitempty"`
  406. RColor []Widget_Color `protobuf:"varint,2,rep,name=r_color,json=rColor,enum=jsonpb.Widget_Color" json:"r_color,omitempty"`
  407. Simple *Simple `protobuf:"bytes,10,opt,name=simple" json:"simple,omitempty"`
  408. RSimple []*Simple `protobuf:"bytes,11,rep,name=r_simple,json=rSimple" json:"r_simple,omitempty"`
  409. Repeats *Repeats `protobuf:"bytes,20,opt,name=repeats" json:"repeats,omitempty"`
  410. RRepeats []*Repeats `protobuf:"bytes,21,rep,name=r_repeats,json=rRepeats" json:"r_repeats,omitempty"`
  411. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  412. XXX_unrecognized []byte `json:"-"`
  413. XXX_sizecache int32 `json:"-"`
  414. }
  415. func (m *Widget) ProtoReflect() protoreflect.Message {
  416. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[3].MessageOf(m)
  417. }
  418. func (m *Widget) Reset() { *m = Widget{} }
  419. func (m *Widget) String() string { return proto.CompactTextString(m) }
  420. func (*Widget) ProtoMessage() {}
  421. func (*Widget) Descriptor() ([]byte, []int) {
  422. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{3}
  423. }
  424. func (m *Widget) XXX_Unmarshal(b []byte) error {
  425. return xxx_messageInfo_Widget.Unmarshal(m, b)
  426. }
  427. func (m *Widget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  428. return xxx_messageInfo_Widget.Marshal(b, m, deterministic)
  429. }
  430. func (m *Widget) XXX_Merge(src proto.Message) {
  431. xxx_messageInfo_Widget.Merge(m, src)
  432. }
  433. func (m *Widget) XXX_Size() int {
  434. return xxx_messageInfo_Widget.Size(m)
  435. }
  436. func (m *Widget) XXX_DiscardUnknown() {
  437. xxx_messageInfo_Widget.DiscardUnknown(m)
  438. }
  439. var xxx_messageInfo_Widget proto.InternalMessageInfo
  440. func (m *Widget) GetColor() Widget_Color {
  441. if m != nil && m.Color != nil {
  442. return *m.Color
  443. }
  444. return Widget_RED
  445. }
  446. func (m *Widget) GetRColor() []Widget_Color {
  447. if m != nil {
  448. return m.RColor
  449. }
  450. return nil
  451. }
  452. func (m *Widget) GetSimple() *Simple {
  453. if m != nil {
  454. return m.Simple
  455. }
  456. return nil
  457. }
  458. func (m *Widget) GetRSimple() []*Simple {
  459. if m != nil {
  460. return m.RSimple
  461. }
  462. return nil
  463. }
  464. func (m *Widget) GetRepeats() *Repeats {
  465. if m != nil {
  466. return m.Repeats
  467. }
  468. return nil
  469. }
  470. func (m *Widget) GetRRepeats() []*Repeats {
  471. if m != nil {
  472. return m.RRepeats
  473. }
  474. return nil
  475. }
  476. type Maps struct {
  477. 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"`
  478. 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"`
  479. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  480. XXX_unrecognized []byte `json:"-"`
  481. XXX_sizecache int32 `json:"-"`
  482. }
  483. func (m *Maps) ProtoReflect() protoreflect.Message {
  484. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[4].MessageOf(m)
  485. }
  486. func (m *Maps) Reset() { *m = Maps{} }
  487. func (m *Maps) String() string { return proto.CompactTextString(m) }
  488. func (*Maps) ProtoMessage() {}
  489. func (*Maps) Descriptor() ([]byte, []int) {
  490. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{4}
  491. }
  492. func (m *Maps) XXX_Unmarshal(b []byte) error {
  493. return xxx_messageInfo_Maps.Unmarshal(m, b)
  494. }
  495. func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  496. return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
  497. }
  498. func (m *Maps) XXX_Merge(src proto.Message) {
  499. xxx_messageInfo_Maps.Merge(m, src)
  500. }
  501. func (m *Maps) XXX_Size() int {
  502. return xxx_messageInfo_Maps.Size(m)
  503. }
  504. func (m *Maps) XXX_DiscardUnknown() {
  505. xxx_messageInfo_Maps.DiscardUnknown(m)
  506. }
  507. var xxx_messageInfo_Maps proto.InternalMessageInfo
  508. func (m *Maps) GetMInt64Str() map[int64]string {
  509. if m != nil {
  510. return m.MInt64Str
  511. }
  512. return nil
  513. }
  514. func (m *Maps) GetMBoolSimple() map[bool]*Simple {
  515. if m != nil {
  516. return m.MBoolSimple
  517. }
  518. return nil
  519. }
  520. type MsgWithOneof struct {
  521. // Types that are valid to be assigned to Union:
  522. // *MsgWithOneof_Title
  523. // *MsgWithOneof_Salary
  524. // *MsgWithOneof_Country
  525. // *MsgWithOneof_HomeAddress
  526. // *MsgWithOneof_MsgWithRequired
  527. Union isMsgWithOneof_Union `protobuf_oneof:"union"`
  528. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  529. XXX_unrecognized []byte `json:"-"`
  530. XXX_sizecache int32 `json:"-"`
  531. }
  532. func (m *MsgWithOneof) ProtoReflect() protoreflect.Message {
  533. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[5].MessageOf(m)
  534. }
  535. func (m *MsgWithOneof) Reset() { *m = MsgWithOneof{} }
  536. func (m *MsgWithOneof) String() string { return proto.CompactTextString(m) }
  537. func (*MsgWithOneof) ProtoMessage() {}
  538. func (*MsgWithOneof) Descriptor() ([]byte, []int) {
  539. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{5}
  540. }
  541. func (m *MsgWithOneof) XXX_Unmarshal(b []byte) error {
  542. return xxx_messageInfo_MsgWithOneof.Unmarshal(m, b)
  543. }
  544. func (m *MsgWithOneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  545. return xxx_messageInfo_MsgWithOneof.Marshal(b, m, deterministic)
  546. }
  547. func (m *MsgWithOneof) XXX_Merge(src proto.Message) {
  548. xxx_messageInfo_MsgWithOneof.Merge(m, src)
  549. }
  550. func (m *MsgWithOneof) XXX_Size() int {
  551. return xxx_messageInfo_MsgWithOneof.Size(m)
  552. }
  553. func (m *MsgWithOneof) XXX_DiscardUnknown() {
  554. xxx_messageInfo_MsgWithOneof.DiscardUnknown(m)
  555. }
  556. var xxx_messageInfo_MsgWithOneof proto.InternalMessageInfo
  557. type isMsgWithOneof_Union interface {
  558. isMsgWithOneof_Union()
  559. }
  560. type MsgWithOneof_Title struct {
  561. Title string `protobuf:"bytes,1,opt,name=title,oneof"`
  562. }
  563. type MsgWithOneof_Salary struct {
  564. Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
  565. }
  566. type MsgWithOneof_Country struct {
  567. Country string `protobuf:"bytes,3,opt,name=Country,oneof"`
  568. }
  569. type MsgWithOneof_HomeAddress struct {
  570. HomeAddress string `protobuf:"bytes,4,opt,name=home_address,json=homeAddress,oneof"`
  571. }
  572. type MsgWithOneof_MsgWithRequired struct {
  573. MsgWithRequired *MsgWithRequired `protobuf:"bytes,5,opt,name=msg_with_required,json=msgWithRequired,oneof"`
  574. }
  575. func (*MsgWithOneof_Title) isMsgWithOneof_Union() {}
  576. func (*MsgWithOneof_Salary) isMsgWithOneof_Union() {}
  577. func (*MsgWithOneof_Country) isMsgWithOneof_Union() {}
  578. func (*MsgWithOneof_HomeAddress) isMsgWithOneof_Union() {}
  579. func (*MsgWithOneof_MsgWithRequired) isMsgWithOneof_Union() {}
  580. func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union {
  581. if m != nil {
  582. return m.Union
  583. }
  584. return nil
  585. }
  586. func (m *MsgWithOneof) GetTitle() string {
  587. if x, ok := m.GetUnion().(*MsgWithOneof_Title); ok {
  588. return x.Title
  589. }
  590. return ""
  591. }
  592. func (m *MsgWithOneof) GetSalary() int64 {
  593. if x, ok := m.GetUnion().(*MsgWithOneof_Salary); ok {
  594. return x.Salary
  595. }
  596. return 0
  597. }
  598. func (m *MsgWithOneof) GetCountry() string {
  599. if x, ok := m.GetUnion().(*MsgWithOneof_Country); ok {
  600. return x.Country
  601. }
  602. return ""
  603. }
  604. func (m *MsgWithOneof) GetHomeAddress() string {
  605. if x, ok := m.GetUnion().(*MsgWithOneof_HomeAddress); ok {
  606. return x.HomeAddress
  607. }
  608. return ""
  609. }
  610. func (m *MsgWithOneof) GetMsgWithRequired() *MsgWithRequired {
  611. if x, ok := m.GetUnion().(*MsgWithOneof_MsgWithRequired); ok {
  612. return x.MsgWithRequired
  613. }
  614. return nil
  615. }
  616. // XXX_OneofWrappers is for the internal use of the proto package.
  617. func (*MsgWithOneof) XXX_OneofWrappers() []interface{} {
  618. return []interface{}{
  619. (*MsgWithOneof_Title)(nil),
  620. (*MsgWithOneof_Salary)(nil),
  621. (*MsgWithOneof_Country)(nil),
  622. (*MsgWithOneof_HomeAddress)(nil),
  623. (*MsgWithOneof_MsgWithRequired)(nil),
  624. }
  625. }
  626. type Real struct {
  627. Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
  628. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  629. proto.XXX_InternalExtensions `json:"-"`
  630. XXX_unrecognized []byte `json:"-"`
  631. XXX_sizecache int32 `json:"-"`
  632. }
  633. func (m *Real) ProtoReflect() protoreflect.Message {
  634. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[6].MessageOf(m)
  635. }
  636. func (m *Real) Reset() { *m = Real{} }
  637. func (m *Real) String() string { return proto.CompactTextString(m) }
  638. func (*Real) ProtoMessage() {}
  639. func (*Real) Descriptor() ([]byte, []int) {
  640. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{6}
  641. }
  642. var extRange_Real = []proto.ExtensionRange{
  643. {Start: 100, End: 536870911},
  644. }
  645. func (*Real) ExtensionRangeArray() []proto.ExtensionRange {
  646. return extRange_Real
  647. }
  648. func (m *Real) XXX_Unmarshal(b []byte) error {
  649. return xxx_messageInfo_Real.Unmarshal(m, b)
  650. }
  651. func (m *Real) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  652. return xxx_messageInfo_Real.Marshal(b, m, deterministic)
  653. }
  654. func (m *Real) XXX_Merge(src proto.Message) {
  655. xxx_messageInfo_Real.Merge(m, src)
  656. }
  657. func (m *Real) XXX_Size() int {
  658. return xxx_messageInfo_Real.Size(m)
  659. }
  660. func (m *Real) XXX_DiscardUnknown() {
  661. xxx_messageInfo_Real.DiscardUnknown(m)
  662. }
  663. var xxx_messageInfo_Real proto.InternalMessageInfo
  664. func (m *Real) GetValue() float64 {
  665. if m != nil && m.Value != nil {
  666. return *m.Value
  667. }
  668. return 0
  669. }
  670. type Complex struct {
  671. Imaginary *float64 `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
  672. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  673. proto.XXX_InternalExtensions `json:"-"`
  674. XXX_unrecognized []byte `json:"-"`
  675. XXX_sizecache int32 `json:"-"`
  676. }
  677. func (m *Complex) ProtoReflect() protoreflect.Message {
  678. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[7].MessageOf(m)
  679. }
  680. func (m *Complex) Reset() { *m = Complex{} }
  681. func (m *Complex) String() string { return proto.CompactTextString(m) }
  682. func (*Complex) ProtoMessage() {}
  683. func (*Complex) Descriptor() ([]byte, []int) {
  684. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{7}
  685. }
  686. var extRange_Complex = []proto.ExtensionRange{
  687. {Start: 100, End: 536870911},
  688. }
  689. func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
  690. return extRange_Complex
  691. }
  692. func (m *Complex) XXX_Unmarshal(b []byte) error {
  693. return xxx_messageInfo_Complex.Unmarshal(m, b)
  694. }
  695. func (m *Complex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  696. return xxx_messageInfo_Complex.Marshal(b, m, deterministic)
  697. }
  698. func (m *Complex) XXX_Merge(src proto.Message) {
  699. xxx_messageInfo_Complex.Merge(m, src)
  700. }
  701. func (m *Complex) XXX_Size() int {
  702. return xxx_messageInfo_Complex.Size(m)
  703. }
  704. func (m *Complex) XXX_DiscardUnknown() {
  705. xxx_messageInfo_Complex.DiscardUnknown(m)
  706. }
  707. var xxx_messageInfo_Complex proto.InternalMessageInfo
  708. func (m *Complex) GetImaginary() float64 {
  709. if m != nil && m.Imaginary != nil {
  710. return *m.Imaginary
  711. }
  712. return 0
  713. }
  714. type KnownTypes struct {
  715. An *known.Any `protobuf:"bytes,14,opt,name=an" json:"an,omitempty"`
  716. Dur *known.Duration `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
  717. St *known.Struct `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
  718. Ts *known.Timestamp `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
  719. Lv *known.ListValue `protobuf:"bytes,15,opt,name=lv" json:"lv,omitempty"`
  720. Val *known.Value `protobuf:"bytes,16,opt,name=val" json:"val,omitempty"`
  721. Dbl *known.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
  722. Flt *known.FloatValue `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
  723. I64 *known.Int64Value `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
  724. U64 *known.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
  725. I32 *known.Int32Value `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
  726. U32 *known.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
  727. Bool *known.BoolValue `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
  728. Str *known.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
  729. Bytes *known.BytesValue `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
  730. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  731. XXX_unrecognized []byte `json:"-"`
  732. XXX_sizecache int32 `json:"-"`
  733. }
  734. func (m *KnownTypes) ProtoReflect() protoreflect.Message {
  735. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[8].MessageOf(m)
  736. }
  737. func (m *KnownTypes) Reset() { *m = KnownTypes{} }
  738. func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
  739. func (*KnownTypes) ProtoMessage() {}
  740. func (*KnownTypes) Descriptor() ([]byte, []int) {
  741. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{8}
  742. }
  743. func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
  744. return xxx_messageInfo_KnownTypes.Unmarshal(m, b)
  745. }
  746. func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  747. return xxx_messageInfo_KnownTypes.Marshal(b, m, deterministic)
  748. }
  749. func (m *KnownTypes) XXX_Merge(src proto.Message) {
  750. xxx_messageInfo_KnownTypes.Merge(m, src)
  751. }
  752. func (m *KnownTypes) XXX_Size() int {
  753. return xxx_messageInfo_KnownTypes.Size(m)
  754. }
  755. func (m *KnownTypes) XXX_DiscardUnknown() {
  756. xxx_messageInfo_KnownTypes.DiscardUnknown(m)
  757. }
  758. var xxx_messageInfo_KnownTypes proto.InternalMessageInfo
  759. func (m *KnownTypes) GetAn() *known.Any {
  760. if m != nil {
  761. return m.An
  762. }
  763. return nil
  764. }
  765. func (m *KnownTypes) GetDur() *known.Duration {
  766. if m != nil {
  767. return m.Dur
  768. }
  769. return nil
  770. }
  771. func (m *KnownTypes) GetSt() *known.Struct {
  772. if m != nil {
  773. return m.St
  774. }
  775. return nil
  776. }
  777. func (m *KnownTypes) GetTs() *known.Timestamp {
  778. if m != nil {
  779. return m.Ts
  780. }
  781. return nil
  782. }
  783. func (m *KnownTypes) GetLv() *known.ListValue {
  784. if m != nil {
  785. return m.Lv
  786. }
  787. return nil
  788. }
  789. func (m *KnownTypes) GetVal() *known.Value {
  790. if m != nil {
  791. return m.Val
  792. }
  793. return nil
  794. }
  795. func (m *KnownTypes) GetDbl() *known.DoubleValue {
  796. if m != nil {
  797. return m.Dbl
  798. }
  799. return nil
  800. }
  801. func (m *KnownTypes) GetFlt() *known.FloatValue {
  802. if m != nil {
  803. return m.Flt
  804. }
  805. return nil
  806. }
  807. func (m *KnownTypes) GetI64() *known.Int64Value {
  808. if m != nil {
  809. return m.I64
  810. }
  811. return nil
  812. }
  813. func (m *KnownTypes) GetU64() *known.UInt64Value {
  814. if m != nil {
  815. return m.U64
  816. }
  817. return nil
  818. }
  819. func (m *KnownTypes) GetI32() *known.Int32Value {
  820. if m != nil {
  821. return m.I32
  822. }
  823. return nil
  824. }
  825. func (m *KnownTypes) GetU32() *known.UInt32Value {
  826. if m != nil {
  827. return m.U32
  828. }
  829. return nil
  830. }
  831. func (m *KnownTypes) GetBool() *known.BoolValue {
  832. if m != nil {
  833. return m.Bool
  834. }
  835. return nil
  836. }
  837. func (m *KnownTypes) GetStr() *known.StringValue {
  838. if m != nil {
  839. return m.Str
  840. }
  841. return nil
  842. }
  843. func (m *KnownTypes) GetBytes() *known.BytesValue {
  844. if m != nil {
  845. return m.Bytes
  846. }
  847. return nil
  848. }
  849. // Test messages for marshaling/unmarshaling required fields.
  850. type MsgWithRequired struct {
  851. Str *string `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
  852. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  853. XXX_unrecognized []byte `json:"-"`
  854. XXX_sizecache int32 `json:"-"`
  855. }
  856. func (m *MsgWithRequired) ProtoReflect() protoreflect.Message {
  857. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[9].MessageOf(m)
  858. }
  859. func (m *MsgWithRequired) Reset() { *m = MsgWithRequired{} }
  860. func (m *MsgWithRequired) String() string { return proto.CompactTextString(m) }
  861. func (*MsgWithRequired) ProtoMessage() {}
  862. func (*MsgWithRequired) Descriptor() ([]byte, []int) {
  863. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{9}
  864. }
  865. func (m *MsgWithRequired) XXX_Unmarshal(b []byte) error {
  866. return xxx_messageInfo_MsgWithRequired.Unmarshal(m, b)
  867. }
  868. func (m *MsgWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  869. return xxx_messageInfo_MsgWithRequired.Marshal(b, m, deterministic)
  870. }
  871. func (m *MsgWithRequired) XXX_Merge(src proto.Message) {
  872. xxx_messageInfo_MsgWithRequired.Merge(m, src)
  873. }
  874. func (m *MsgWithRequired) XXX_Size() int {
  875. return xxx_messageInfo_MsgWithRequired.Size(m)
  876. }
  877. func (m *MsgWithRequired) XXX_DiscardUnknown() {
  878. xxx_messageInfo_MsgWithRequired.DiscardUnknown(m)
  879. }
  880. var xxx_messageInfo_MsgWithRequired proto.InternalMessageInfo
  881. func (m *MsgWithRequired) GetStr() string {
  882. if m != nil && m.Str != nil {
  883. return *m.Str
  884. }
  885. return ""
  886. }
  887. type MsgWithIndirectRequired struct {
  888. Subm *MsgWithRequired `protobuf:"bytes,1,opt,name=subm" json:"subm,omitempty"`
  889. 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"`
  890. SliceField []*MsgWithRequired `protobuf:"bytes,3,rep,name=slice_field,json=sliceField" json:"slice_field,omitempty"`
  891. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  892. XXX_unrecognized []byte `json:"-"`
  893. XXX_sizecache int32 `json:"-"`
  894. }
  895. func (m *MsgWithIndirectRequired) ProtoReflect() protoreflect.Message {
  896. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[10].MessageOf(m)
  897. }
  898. func (m *MsgWithIndirectRequired) Reset() { *m = MsgWithIndirectRequired{} }
  899. func (m *MsgWithIndirectRequired) String() string { return proto.CompactTextString(m) }
  900. func (*MsgWithIndirectRequired) ProtoMessage() {}
  901. func (*MsgWithIndirectRequired) Descriptor() ([]byte, []int) {
  902. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{10}
  903. }
  904. func (m *MsgWithIndirectRequired) XXX_Unmarshal(b []byte) error {
  905. return xxx_messageInfo_MsgWithIndirectRequired.Unmarshal(m, b)
  906. }
  907. func (m *MsgWithIndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  908. return xxx_messageInfo_MsgWithIndirectRequired.Marshal(b, m, deterministic)
  909. }
  910. func (m *MsgWithIndirectRequired) XXX_Merge(src proto.Message) {
  911. xxx_messageInfo_MsgWithIndirectRequired.Merge(m, src)
  912. }
  913. func (m *MsgWithIndirectRequired) XXX_Size() int {
  914. return xxx_messageInfo_MsgWithIndirectRequired.Size(m)
  915. }
  916. func (m *MsgWithIndirectRequired) XXX_DiscardUnknown() {
  917. xxx_messageInfo_MsgWithIndirectRequired.DiscardUnknown(m)
  918. }
  919. var xxx_messageInfo_MsgWithIndirectRequired proto.InternalMessageInfo
  920. func (m *MsgWithIndirectRequired) GetSubm() *MsgWithRequired {
  921. if m != nil {
  922. return m.Subm
  923. }
  924. return nil
  925. }
  926. func (m *MsgWithIndirectRequired) GetMapField() map[string]*MsgWithRequired {
  927. if m != nil {
  928. return m.MapField
  929. }
  930. return nil
  931. }
  932. func (m *MsgWithIndirectRequired) GetSliceField() []*MsgWithRequired {
  933. if m != nil {
  934. return m.SliceField
  935. }
  936. return nil
  937. }
  938. type MsgWithRequiredBytes struct {
  939. Byts []byte `protobuf:"bytes,1,req,name=byts" json:"byts,omitempty"`
  940. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  941. XXX_unrecognized []byte `json:"-"`
  942. XXX_sizecache int32 `json:"-"`
  943. }
  944. func (m *MsgWithRequiredBytes) ProtoReflect() protoreflect.Message {
  945. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[11].MessageOf(m)
  946. }
  947. func (m *MsgWithRequiredBytes) Reset() { *m = MsgWithRequiredBytes{} }
  948. func (m *MsgWithRequiredBytes) String() string { return proto.CompactTextString(m) }
  949. func (*MsgWithRequiredBytes) ProtoMessage() {}
  950. func (*MsgWithRequiredBytes) Descriptor() ([]byte, []int) {
  951. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{11}
  952. }
  953. func (m *MsgWithRequiredBytes) XXX_Unmarshal(b []byte) error {
  954. return xxx_messageInfo_MsgWithRequiredBytes.Unmarshal(m, b)
  955. }
  956. func (m *MsgWithRequiredBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  957. return xxx_messageInfo_MsgWithRequiredBytes.Marshal(b, m, deterministic)
  958. }
  959. func (m *MsgWithRequiredBytes) XXX_Merge(src proto.Message) {
  960. xxx_messageInfo_MsgWithRequiredBytes.Merge(m, src)
  961. }
  962. func (m *MsgWithRequiredBytes) XXX_Size() int {
  963. return xxx_messageInfo_MsgWithRequiredBytes.Size(m)
  964. }
  965. func (m *MsgWithRequiredBytes) XXX_DiscardUnknown() {
  966. xxx_messageInfo_MsgWithRequiredBytes.DiscardUnknown(m)
  967. }
  968. var xxx_messageInfo_MsgWithRequiredBytes proto.InternalMessageInfo
  969. func (m *MsgWithRequiredBytes) GetByts() []byte {
  970. if m != nil {
  971. return m.Byts
  972. }
  973. return nil
  974. }
  975. type MsgWithRequiredWKT struct {
  976. Str *known.StringValue `protobuf:"bytes,1,req,name=str" json:"str,omitempty"`
  977. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  978. XXX_unrecognized []byte `json:"-"`
  979. XXX_sizecache int32 `json:"-"`
  980. }
  981. func (m *MsgWithRequiredWKT) ProtoReflect() protoreflect.Message {
  982. return xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[12].MessageOf(m)
  983. }
  984. func (m *MsgWithRequiredWKT) Reset() { *m = MsgWithRequiredWKT{} }
  985. func (m *MsgWithRequiredWKT) String() string { return proto.CompactTextString(m) }
  986. func (*MsgWithRequiredWKT) ProtoMessage() {}
  987. func (*MsgWithRequiredWKT) Descriptor() ([]byte, []int) {
  988. return xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped, []int{12}
  989. }
  990. func (m *MsgWithRequiredWKT) XXX_Unmarshal(b []byte) error {
  991. return xxx_messageInfo_MsgWithRequiredWKT.Unmarshal(m, b)
  992. }
  993. func (m *MsgWithRequiredWKT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  994. return xxx_messageInfo_MsgWithRequiredWKT.Marshal(b, m, deterministic)
  995. }
  996. func (m *MsgWithRequiredWKT) XXX_Merge(src proto.Message) {
  997. xxx_messageInfo_MsgWithRequiredWKT.Merge(m, src)
  998. }
  999. func (m *MsgWithRequiredWKT) XXX_Size() int {
  1000. return xxx_messageInfo_MsgWithRequiredWKT.Size(m)
  1001. }
  1002. func (m *MsgWithRequiredWKT) XXX_DiscardUnknown() {
  1003. xxx_messageInfo_MsgWithRequiredWKT.DiscardUnknown(m)
  1004. }
  1005. var xxx_messageInfo_MsgWithRequiredWKT proto.InternalMessageInfo
  1006. func (m *MsgWithRequiredWKT) GetStr() *known.StringValue {
  1007. if m != nil {
  1008. return m.Str
  1009. }
  1010. return nil
  1011. }
  1012. var E_Name = &proto.ExtensionDesc{
  1013. ExtendedType: (*Real)(nil),
  1014. ExtensionType: (*string)(nil),
  1015. Field: 124,
  1016. Name: "jsonpb.name",
  1017. Tag: "bytes,124,opt,name=name",
  1018. Filename: "jsonpb_test_proto/test_objects.proto",
  1019. }
  1020. var E_Extm = &proto.ExtensionDesc{
  1021. ExtendedType: (*Real)(nil),
  1022. ExtensionType: (*MsgWithRequired)(nil),
  1023. Field: 125,
  1024. Name: "jsonpb.extm",
  1025. Tag: "bytes,125,opt,name=extm",
  1026. Filename: "jsonpb_test_proto/test_objects.proto",
  1027. }
  1028. var E_Complex_RealExtension = &proto.ExtensionDesc{
  1029. ExtendedType: (*Real)(nil),
  1030. ExtensionType: (*Complex)(nil),
  1031. Field: 123,
  1032. Name: "jsonpb.Complex.real_extension",
  1033. Tag: "bytes,123,opt,name=real_extension",
  1034. Filename: "jsonpb_test_proto/test_objects.proto",
  1035. }
  1036. func init() {
  1037. proto.RegisterFile("jsonpb_test_proto/test_objects.proto", xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped)
  1038. proto.RegisterEnum("jsonpb.Widget_Color", Widget_Color_name, Widget_Color_value)
  1039. proto.RegisterType((*Simple)(nil), "jsonpb.Simple")
  1040. proto.RegisterType((*NonFinites)(nil), "jsonpb.NonFinites")
  1041. proto.RegisterType((*Repeats)(nil), "jsonpb.Repeats")
  1042. proto.RegisterType((*Widget)(nil), "jsonpb.Widget")
  1043. proto.RegisterType((*Maps)(nil), "jsonpb.Maps")
  1044. proto.RegisterMapType((map[bool]*Simple)(nil), "jsonpb.Maps.MBoolSimpleEntry")
  1045. proto.RegisterMapType((map[int64]string)(nil), "jsonpb.Maps.MInt64StrEntry")
  1046. proto.RegisterType((*MsgWithOneof)(nil), "jsonpb.MsgWithOneof")
  1047. proto.RegisterType((*Real)(nil), "jsonpb.Real")
  1048. proto.RegisterType((*Complex)(nil), "jsonpb.Complex")
  1049. proto.RegisterType((*KnownTypes)(nil), "jsonpb.KnownTypes")
  1050. proto.RegisterType((*MsgWithRequired)(nil), "jsonpb.MsgWithRequired")
  1051. proto.RegisterType((*MsgWithIndirectRequired)(nil), "jsonpb.MsgWithIndirectRequired")
  1052. proto.RegisterMapType((map[string]*MsgWithRequired)(nil), "jsonpb.MsgWithIndirectRequired.MapFieldEntry")
  1053. proto.RegisterType((*MsgWithRequiredBytes)(nil), "jsonpb.MsgWithRequiredBytes")
  1054. proto.RegisterType((*MsgWithRequiredWKT)(nil), "jsonpb.MsgWithRequiredWKT")
  1055. proto.RegisterExtension(E_Name)
  1056. proto.RegisterExtension(E_Extm)
  1057. proto.RegisterExtension(E_Complex_RealExtension)
  1058. }
  1059. var xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc = []byte{
  1060. // 3473 bytes of the wire-encoded FileDescriptorProto
  1061. 0x0a, 0x24, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72,
  1062. 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73,
  1063. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x1a, 0x19,
  1064. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
  1065. 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  1066. 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74,
  1067. 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  1068. 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63,
  1069. 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
  1070. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
  1071. 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  1072. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65,
  1073. 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x04, 0x0a, 0x06, 0x53, 0x69, 0x6d,
  1074. 0x70, 0x6c, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20,
  1075. 0x01, 0x28, 0x08, 0x52, 0x05, 0x6f, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x5f,
  1076. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x49, 0x6e,
  1077. 0x74, 0x33, 0x32, 0x12, 0x1e, 0x0a, 0x0b, 0x6f, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x73,
  1078. 0x74, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6f, 0x49, 0x6e, 0x74, 0x33, 0x32,
  1079. 0x53, 0x74, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x04,
  1080. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1e, 0x0a, 0x0b,
  1081. 0x6f, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
  1082. 0x03, 0x52, 0x09, 0x6f, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x53, 0x74, 0x72, 0x12, 0x19, 0x0a, 0x08,
  1083. 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07,
  1084. 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x20, 0x0a, 0x0c, 0x6f, 0x5f, 0x75, 0x69, 0x6e,
  1085. 0x74, 0x33, 0x32, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6f,
  1086. 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x53, 0x74, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x5f, 0x75,
  1087. 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x6f, 0x55, 0x69,
  1088. 0x6e, 0x74, 0x36, 0x34, 0x12, 0x20, 0x0a, 0x0c, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34,
  1089. 0x5f, 0x73, 0x74, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6f, 0x55, 0x69, 0x6e,
  1090. 0x74, 0x36, 0x34, 0x53, 0x74, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x5f, 0x73, 0x69, 0x6e, 0x74,
  1091. 0x33, 0x32, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x11, 0x52, 0x07, 0x6f, 0x53, 0x69, 0x6e, 0x74, 0x33,
  1092. 0x32, 0x12, 0x20, 0x0a, 0x0c, 0x6f, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x73, 0x74,
  1093. 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x11, 0x52, 0x0a, 0x6f, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32,
  1094. 0x53, 0x74, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18,
  1095. 0x0c, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x6f, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x20,
  1096. 0x0a, 0x0c, 0x6f, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x0d,
  1097. 0x20, 0x01, 0x28, 0x12, 0x52, 0x0a, 0x6f, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x53, 0x74, 0x72,
  1098. 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28,
  1099. 0x02, 0x52, 0x06, 0x6f, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x6f, 0x5f, 0x66,
  1100. 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09,
  1101. 0x6f, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x53, 0x74, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x5f, 0x64,
  1102. 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x6f, 0x44, 0x6f,
  1103. 0x75, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6f, 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65,
  1104. 0x5f, 0x73, 0x74, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x6f, 0x44, 0x6f, 0x75,
  1105. 0x62, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x69,
  1106. 0x6e, 0x67, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x53, 0x74, 0x72, 0x69, 0x6e,
  1107. 0x67, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x13, 0x20, 0x01,
  1108. 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x92, 0x01, 0x0a, 0x0a, 0x4e,
  1109. 0x6f, 0x6e, 0x46, 0x69, 0x6e, 0x69, 0x74, 0x65, 0x73, 0x12, 0x13, 0x0a, 0x05, 0x66, 0x5f, 0x6e,
  1110. 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x04, 0x66, 0x4e, 0x61, 0x6e, 0x12, 0x15,
  1111. 0x0a, 0x06, 0x66, 0x5f, 0x70, 0x69, 0x6e, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05,
  1112. 0x66, 0x50, 0x69, 0x6e, 0x66, 0x12, 0x15, 0x0a, 0x06, 0x66, 0x5f, 0x6e, 0x69, 0x6e, 0x66, 0x18,
  1113. 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x66, 0x4e, 0x69, 0x6e, 0x66, 0x12, 0x13, 0x0a, 0x05,
  1114. 0x64, 0x5f, 0x6e, 0x61, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x64, 0x4e, 0x61,
  1115. 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x64, 0x5f, 0x70, 0x69, 0x6e, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28,
  1116. 0x01, 0x52, 0x05, 0x64, 0x50, 0x69, 0x6e, 0x66, 0x12, 0x15, 0x0a, 0x06, 0x64, 0x5f, 0x6e, 0x69,
  1117. 0x6e, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x64, 0x4e, 0x69, 0x6e, 0x66, 0x22,
  1118. 0xa6, 0x02, 0x0a, 0x07, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x72,
  1119. 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x08, 0x52, 0x05, 0x72, 0x42, 0x6f,
  1120. 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20,
  1121. 0x03, 0x28, 0x05, 0x52, 0x06, 0x72, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x17, 0x0a, 0x07, 0x72,
  1122. 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x06, 0x72, 0x49,
  1123. 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32,
  1124. 0x18, 0x04, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
  1125. 0x19, 0x0a, 0x08, 0x72, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x05, 0x20, 0x03, 0x28,
  1126. 0x04, 0x52, 0x07, 0x72, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x5f,
  1127. 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x03, 0x28, 0x11, 0x52, 0x07, 0x72, 0x53,
  1128. 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36,
  1129. 0x34, 0x18, 0x07, 0x20, 0x03, 0x28, 0x12, 0x52, 0x07, 0x72, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34,
  1130. 0x12, 0x17, 0x0a, 0x07, 0x72, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28,
  1131. 0x02, 0x52, 0x06, 0x72, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x5f, 0x64,
  1132. 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x01, 0x52, 0x07, 0x72, 0x44, 0x6f,
  1133. 0x75, 0x62, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
  1134. 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12,
  1135. 0x17, 0x0a, 0x07, 0x72, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0c,
  1136. 0x52, 0x06, 0x72, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xb6, 0x02, 0x0a, 0x06, 0x57, 0x69, 0x64,
  1137. 0x67, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01,
  1138. 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x57, 0x69, 0x64, 0x67,
  1139. 0x65, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12,
  1140. 0x2d, 0x0a, 0x07, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e,
  1141. 0x32, 0x14, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x57, 0x69, 0x64, 0x67, 0x65, 0x74,
  1142. 0x2e, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x06, 0x72, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x26,
  1143. 0x0a, 0x06, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
  1144. 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x06,
  1145. 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x29, 0x0a, 0x08, 0x72, 0x5f, 0x73, 0x69, 0x6d, 0x70,
  1146. 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70,
  1147. 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x07, 0x72, 0x53, 0x69, 0x6d, 0x70, 0x6c,
  1148. 0x65, 0x12, 0x29, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x73, 0x18, 0x14, 0x20, 0x01,
  1149. 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x70, 0x65,
  1150. 0x61, 0x74, 0x73, 0x52, 0x07, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x73, 0x12, 0x2c, 0x0a, 0x09,
  1151. 0x72, 0x5f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1152. 0x0f, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x73,
  1153. 0x52, 0x08, 0x72, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x73, 0x22, 0x25, 0x0a, 0x05, 0x43, 0x6f,
  1154. 0x6c, 0x6f, 0x72, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
  1155. 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4c, 0x55, 0x45, 0x10,
  1156. 0x02, 0x22, 0x94, 0x02, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x6d, 0x5f,
  1157. 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1158. 0x1b, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x49,
  1159. 0x6e, 0x74, 0x36, 0x34, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6d, 0x49,
  1160. 0x6e, 0x74, 0x36, 0x34, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x5f, 0x62, 0x6f, 0x6f,
  1161. 0x6c, 0x5f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d,
  1162. 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x4d, 0x42, 0x6f,
  1163. 0x6f, 0x6c, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x6d,
  1164. 0x42, 0x6f, 0x6f, 0x6c, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x1a, 0x3c, 0x0a, 0x0e, 0x4d, 0x49,
  1165. 0x6e, 0x74, 0x36, 0x34, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
  1166. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
  1167. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
  1168. 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4e, 0x0a, 0x10, 0x4d, 0x42, 0x6f, 0x6f,
  1169. 0x6c, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
  1170. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x24,
  1171. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
  1172. 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x05, 0x76,
  1173. 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xd1, 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67,
  1174. 0x57, 0x69, 0x74, 0x68, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x12, 0x16, 0x0a, 0x05, 0x74, 0x69, 0x74,
  1175. 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
  1176. 0x65, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x61, 0x6c, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
  1177. 0x03, 0x48, 0x00, 0x52, 0x06, 0x73, 0x61, 0x6c, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x07, 0x43,
  1178. 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07,
  1179. 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0c, 0x68, 0x6f, 0x6d, 0x65, 0x5f,
  1180. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
  1181. 0x0b, 0x68, 0x6f, 0x6d, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x11,
  1182. 0x6d, 0x73, 0x67, 0x5f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
  1183. 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62,
  1184. 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64,
  1185. 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x69,
  1186. 0x72, 0x65, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0x26, 0x0a, 0x04,
  1187. 0x52, 0x65, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20,
  1188. 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0x08, 0x08, 0x64, 0x10, 0x80,
  1189. 0x80, 0x80, 0x80, 0x02, 0x22, 0x77, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x12,
  1190. 0x1c, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01,
  1191. 0x28, 0x01, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x2a, 0x08, 0x08,
  1192. 0x64, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x32, 0x44, 0x0a, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x5f,
  1193. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0c, 0x2e, 0x6a, 0x73, 0x6f, 0x6e,
  1194. 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x18, 0x7b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
  1195. 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x52, 0x0d,
  1196. 0x72, 0x65, 0x61, 0x6c, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xba, 0x05,
  1197. 0x0a, 0x0a, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x02,
  1198. 0x61, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  1199. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x02,
  1200. 0x61, 0x6e, 0x12, 0x2b, 0x0a, 0x03, 0x64, 0x75, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  1201. 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  1202. 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x64, 0x75, 0x72, 0x12,
  1203. 0x27, 0x0a, 0x02, 0x73, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f,
  1204. 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74,
  1205. 0x72, 0x75, 0x63, 0x74, 0x52, 0x02, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x02,
  1206. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  1207. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
  1208. 0x52, 0x02, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b,
  1209. 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  1210. 0x75, 0x66, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x6c, 0x76,
  1211. 0x12, 0x28, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e,
  1212. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  1213. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x03, 0x64, 0x62,
  1214. 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  1215. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65,
  1216. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x64, 0x62, 0x6c, 0x12, 0x2d, 0x0a, 0x03, 0x66, 0x6c,
  1217. 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  1218. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56,
  1219. 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x66, 0x6c, 0x74, 0x12, 0x2d, 0x0a, 0x03, 0x69, 0x36, 0x34,
  1220. 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  1221. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61,
  1222. 0x6c, 0x75, 0x65, 0x52, 0x03, 0x69, 0x36, 0x34, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x36, 0x34, 0x18,
  1223. 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  1224. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61,
  1225. 0x6c, 0x75, 0x65, 0x52, 0x03, 0x75, 0x36, 0x34, 0x12, 0x2d, 0x0a, 0x03, 0x69, 0x33, 0x32, 0x18,
  1226. 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  1227. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c,
  1228. 0x75, 0x65, 0x52, 0x03, 0x69, 0x33, 0x32, 0x12, 0x2e, 0x0a, 0x03, 0x75, 0x33, 0x32, 0x18, 0x08,
  1229. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  1230. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c,
  1231. 0x75, 0x65, 0x52, 0x03, 0x75, 0x33, 0x32, 0x12, 0x2e, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18,
  1232. 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  1233. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75,
  1234. 0x65, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x12, 0x2e, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x0a,
  1235. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  1236. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c,
  1237. 0x75, 0x65, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x31, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73,
  1238. 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
  1239. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61,
  1240. 0x6c, 0x75, 0x65, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0x23, 0x0a, 0x0f, 0x4d, 0x73,
  1241. 0x67, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x10, 0x0a,
  1242. 0x03, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, 0x02, 0x28, 0x09, 0x52, 0x03, 0x73, 0x74, 0x72, 0x22,
  1243. 0xa2, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x64, 0x69, 0x72,
  1244. 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x04, 0x73,
  1245. 0x75, 0x62, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x73, 0x6f, 0x6e,
  1246. 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72,
  1247. 0x65, 0x64, 0x52, 0x04, 0x73, 0x75, 0x62, 0x6d, 0x12, 0x4a, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f,
  1248. 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6a, 0x73,
  1249. 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x64, 0x69,
  1250. 0x72, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x2e, 0x4d, 0x61, 0x70,
  1251. 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x46,
  1252. 0x69, 0x65, 0x6c, 0x64, 0x12, 0x38, 0x0a, 0x0b, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x5f, 0x66, 0x69,
  1253. 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x73, 0x6f, 0x6e,
  1254. 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72,
  1255. 0x65, 0x64, 0x52, 0x0a, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x54,
  1256. 0x0a, 0x0d, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  1257. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  1258. 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  1259. 0x32, 0x17, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74,
  1260. 0x68, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  1261. 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2a, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x52,
  1262. 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04,
  1263. 0x62, 0x79, 0x74, 0x73, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x79, 0x74, 0x73,
  1264. 0x22, 0x44, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x69,
  1265. 0x72, 0x65, 0x64, 0x57, 0x4b, 0x54, 0x12, 0x2e, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x01, 0x20,
  1266. 0x02, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  1267. 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75,
  1268. 0x65, 0x52, 0x03, 0x73, 0x74, 0x72, 0x3a, 0x20, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0c,
  1269. 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x18, 0x7c, 0x20, 0x01,
  1270. 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x39, 0x0a, 0x04, 0x65, 0x78, 0x74, 0x6d,
  1271. 0x12, 0x0c, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x18, 0x7d,
  1272. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2e, 0x4d, 0x73,
  1273. 0x67, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x52, 0x04, 0x65,
  1274. 0x78, 0x74, 0x6d, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
  1275. 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  1276. 0x66, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x70, 0x62, 0x5f,
  1277. 0x74, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x6a, 0x73, 0x6f, 0x6e, 0x70,
  1278. 0x62,
  1279. }
  1280. var xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc_gzipped = protoapi.CompressGZIP(xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc)
  1281. const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
  1282. var File_jsonpb_test_proto_test_objects_proto protoreflect.FileDescriptor
  1283. var xxx_File_jsonpb_test_proto_test_objects_proto_enumTypes = make([]protoreflect.EnumType, 1)
  1284. var xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes = make([]protoimpl.MessageType, 16)
  1285. var xxx_File_jsonpb_test_proto_test_objects_proto_goTypes = []interface{}{
  1286. (Widget_Color)(0), // 0: jsonpb.Widget.Color
  1287. (*Simple)(nil), // 1: jsonpb.Simple
  1288. (*NonFinites)(nil), // 2: jsonpb.NonFinites
  1289. (*Repeats)(nil), // 3: jsonpb.Repeats
  1290. (*Widget)(nil), // 4: jsonpb.Widget
  1291. (*Maps)(nil), // 5: jsonpb.Maps
  1292. (*MsgWithOneof)(nil), // 6: jsonpb.MsgWithOneof
  1293. (*Real)(nil), // 7: jsonpb.Real
  1294. (*Complex)(nil), // 8: jsonpb.Complex
  1295. (*KnownTypes)(nil), // 9: jsonpb.KnownTypes
  1296. (*MsgWithRequired)(nil), // 10: jsonpb.MsgWithRequired
  1297. (*MsgWithIndirectRequired)(nil), // 11: jsonpb.MsgWithIndirectRequired
  1298. (*MsgWithRequiredBytes)(nil), // 12: jsonpb.MsgWithRequiredBytes
  1299. (*MsgWithRequiredWKT)(nil), // 13: jsonpb.MsgWithRequiredWKT
  1300. nil, // 14: jsonpb.Maps.MInt64StrEntry
  1301. nil, // 15: jsonpb.Maps.MBoolSimpleEntry
  1302. nil, // 16: jsonpb.MsgWithIndirectRequired.MapFieldEntry
  1303. (*known.Any)(nil), // 17: google.protobuf.Any
  1304. (*known.Duration)(nil), // 18: google.protobuf.Duration
  1305. (*known.Struct)(nil), // 19: google.protobuf.Struct
  1306. (*known.Timestamp)(nil), // 20: google.protobuf.Timestamp
  1307. (*known.ListValue)(nil), // 21: google.protobuf.ListValue
  1308. (*known.Value)(nil), // 22: google.protobuf.Value
  1309. (*known.DoubleValue)(nil), // 23: google.protobuf.DoubleValue
  1310. (*known.FloatValue)(nil), // 24: google.protobuf.FloatValue
  1311. (*known.Int64Value)(nil), // 25: google.protobuf.Int64Value
  1312. (*known.UInt64Value)(nil), // 26: google.protobuf.UInt64Value
  1313. (*known.Int32Value)(nil), // 27: google.protobuf.Int32Value
  1314. (*known.UInt32Value)(nil), // 28: google.protobuf.UInt32Value
  1315. (*known.BoolValue)(nil), // 29: google.protobuf.BoolValue
  1316. (*known.StringValue)(nil), // 30: google.protobuf.StringValue
  1317. (*known.BytesValue)(nil), // 31: google.protobuf.BytesValue
  1318. }
  1319. var xxx_File_jsonpb_test_proto_test_objects_proto_depIdxs = []int32{
  1320. 7, // jsonpb.name:extendee -> jsonpb.Real
  1321. 7, // jsonpb.extm:extendee -> jsonpb.Real
  1322. 7, // jsonpb.Complex.real_extension:extendee -> jsonpb.Real
  1323. 0, // jsonpb.Widget.color:type_name -> jsonpb.Widget.Color
  1324. 0, // jsonpb.Widget.r_color:type_name -> jsonpb.Widget.Color
  1325. 1, // jsonpb.Widget.simple:type_name -> jsonpb.Simple
  1326. 1, // jsonpb.Widget.r_simple:type_name -> jsonpb.Simple
  1327. 3, // jsonpb.Widget.repeats:type_name -> jsonpb.Repeats
  1328. 3, // jsonpb.Widget.r_repeats:type_name -> jsonpb.Repeats
  1329. 14, // jsonpb.Maps.m_int64_str:type_name -> jsonpb.Maps.MInt64StrEntry
  1330. 15, // jsonpb.Maps.m_bool_simple:type_name -> jsonpb.Maps.MBoolSimpleEntry
  1331. 10, // jsonpb.MsgWithOneof.msg_with_required:type_name -> jsonpb.MsgWithRequired
  1332. 17, // jsonpb.KnownTypes.an:type_name -> google.protobuf.Any
  1333. 18, // jsonpb.KnownTypes.dur:type_name -> google.protobuf.Duration
  1334. 19, // jsonpb.KnownTypes.st:type_name -> google.protobuf.Struct
  1335. 20, // jsonpb.KnownTypes.ts:type_name -> google.protobuf.Timestamp
  1336. 21, // jsonpb.KnownTypes.lv:type_name -> google.protobuf.ListValue
  1337. 22, // jsonpb.KnownTypes.val:type_name -> google.protobuf.Value
  1338. 23, // jsonpb.KnownTypes.dbl:type_name -> google.protobuf.DoubleValue
  1339. 24, // jsonpb.KnownTypes.flt:type_name -> google.protobuf.FloatValue
  1340. 25, // jsonpb.KnownTypes.i64:type_name -> google.protobuf.Int64Value
  1341. 26, // jsonpb.KnownTypes.u64:type_name -> google.protobuf.UInt64Value
  1342. 27, // jsonpb.KnownTypes.i32:type_name -> google.protobuf.Int32Value
  1343. 28, // jsonpb.KnownTypes.u32:type_name -> google.protobuf.UInt32Value
  1344. 29, // jsonpb.KnownTypes.bool:type_name -> google.protobuf.BoolValue
  1345. 30, // jsonpb.KnownTypes.str:type_name -> google.protobuf.StringValue
  1346. 31, // jsonpb.KnownTypes.bytes:type_name -> google.protobuf.BytesValue
  1347. 10, // jsonpb.MsgWithIndirectRequired.subm:type_name -> jsonpb.MsgWithRequired
  1348. 16, // jsonpb.MsgWithIndirectRequired.map_field:type_name -> jsonpb.MsgWithIndirectRequired.MapFieldEntry
  1349. 10, // jsonpb.MsgWithIndirectRequired.slice_field:type_name -> jsonpb.MsgWithRequired
  1350. 30, // jsonpb.MsgWithRequiredWKT.str:type_name -> google.protobuf.StringValue
  1351. 1, // jsonpb.Maps.MBoolSimpleEntry.value:type_name -> jsonpb.Simple
  1352. 10, // jsonpb.MsgWithIndirectRequired.MapFieldEntry.value:type_name -> jsonpb.MsgWithRequired
  1353. 10, // jsonpb.extm:type_name -> jsonpb.MsgWithRequired
  1354. 8, // jsonpb.Complex.real_extension:type_name -> jsonpb.Complex
  1355. }
  1356. func init() { xxx_File_jsonpb_test_proto_test_objects_proto_init() }
  1357. func xxx_File_jsonpb_test_proto_test_objects_proto_init() {
  1358. if File_jsonpb_test_proto_test_objects_proto != nil {
  1359. return
  1360. }
  1361. messageTypes := make([]protoreflect.MessageType, 16)
  1362. extensionTypes := make([]protoreflect.ExtensionType, 3)
  1363. File_jsonpb_test_proto_test_objects_proto = protoimpl.FileBuilder{
  1364. RawDescriptor: xxx_File_jsonpb_test_proto_test_objects_proto_rawdesc,
  1365. GoTypes: xxx_File_jsonpb_test_proto_test_objects_proto_goTypes,
  1366. DependencyIndexes: xxx_File_jsonpb_test_proto_test_objects_proto_depIdxs,
  1367. EnumOutputTypes: xxx_File_jsonpb_test_proto_test_objects_proto_enumTypes,
  1368. MessageOutputTypes: messageTypes,
  1369. ExtensionOutputTypes: extensionTypes,
  1370. }.Init()
  1371. messageGoTypes := xxx_File_jsonpb_test_proto_test_objects_proto_goTypes[1:][:16]
  1372. for i, mt := range messageTypes {
  1373. xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
  1374. xxx_File_jsonpb_test_proto_test_objects_proto_messageTypes[i].PBType = mt
  1375. }
  1376. E_Name.Type = extensionTypes[0]
  1377. E_Extm.Type = extensionTypes[1]
  1378. E_Complex_RealExtension.Type = extensionTypes[2]
  1379. xxx_File_jsonpb_test_proto_test_objects_proto_goTypes = nil
  1380. xxx_File_jsonpb_test_proto_test_objects_proto_depIdxs = nil
  1381. }