conformance.pb.go 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: conformance.proto
  3. package conformance
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import any "github.com/golang/protobuf/ptypes/any"
  8. import duration "github.com/golang/protobuf/ptypes/duration"
  9. import _struct "github.com/golang/protobuf/ptypes/struct"
  10. import timestamp "github.com/golang/protobuf/ptypes/timestamp"
  11. import wrappers "github.com/golang/protobuf/ptypes/wrappers"
  12. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  22. type WireFormat int32
  23. const (
  24. WireFormat_UNSPECIFIED WireFormat = 0
  25. WireFormat_PROTOBUF WireFormat = 1
  26. WireFormat_JSON WireFormat = 2
  27. )
  28. var WireFormat_name = map[int32]string{
  29. 0: "UNSPECIFIED",
  30. 1: "PROTOBUF",
  31. 2: "JSON",
  32. }
  33. var WireFormat_value = map[string]int32{
  34. "UNSPECIFIED": 0,
  35. "PROTOBUF": 1,
  36. "JSON": 2,
  37. }
  38. func (x WireFormat) String() string {
  39. return proto.EnumName(WireFormat_name, int32(x))
  40. }
  41. func (WireFormat) EnumDescriptor() ([]byte, []int) {
  42. return fileDescriptor_conformance_48ac832451f5d6c3, []int{0}
  43. }
  44. type ForeignEnum int32
  45. const (
  46. ForeignEnum_FOREIGN_FOO ForeignEnum = 0
  47. ForeignEnum_FOREIGN_BAR ForeignEnum = 1
  48. ForeignEnum_FOREIGN_BAZ ForeignEnum = 2
  49. )
  50. var ForeignEnum_name = map[int32]string{
  51. 0: "FOREIGN_FOO",
  52. 1: "FOREIGN_BAR",
  53. 2: "FOREIGN_BAZ",
  54. }
  55. var ForeignEnum_value = map[string]int32{
  56. "FOREIGN_FOO": 0,
  57. "FOREIGN_BAR": 1,
  58. "FOREIGN_BAZ": 2,
  59. }
  60. func (x ForeignEnum) String() string {
  61. return proto.EnumName(ForeignEnum_name, int32(x))
  62. }
  63. func (ForeignEnum) EnumDescriptor() ([]byte, []int) {
  64. return fileDescriptor_conformance_48ac832451f5d6c3, []int{1}
  65. }
  66. type TestAllTypes_NestedEnum int32
  67. const (
  68. TestAllTypes_FOO TestAllTypes_NestedEnum = 0
  69. TestAllTypes_BAR TestAllTypes_NestedEnum = 1
  70. TestAllTypes_BAZ TestAllTypes_NestedEnum = 2
  71. TestAllTypes_NEG TestAllTypes_NestedEnum = -1
  72. )
  73. var TestAllTypes_NestedEnum_name = map[int32]string{
  74. 0: "FOO",
  75. 1: "BAR",
  76. 2: "BAZ",
  77. -1: "NEG",
  78. }
  79. var TestAllTypes_NestedEnum_value = map[string]int32{
  80. "FOO": 0,
  81. "BAR": 1,
  82. "BAZ": 2,
  83. "NEG": -1,
  84. }
  85. func (x TestAllTypes_NestedEnum) String() string {
  86. return proto.EnumName(TestAllTypes_NestedEnum_name, int32(x))
  87. }
  88. func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int) {
  89. return fileDescriptor_conformance_48ac832451f5d6c3, []int{2, 0}
  90. }
  91. // Represents a single test case's input. The testee should:
  92. //
  93. // 1. parse this proto (which should always succeed)
  94. // 2. parse the protobuf or JSON payload in "payload" (which may fail)
  95. // 3. if the parse succeeded, serialize the message in the requested format.
  96. type ConformanceRequest struct {
  97. // The payload (whether protobuf of JSON) is always for a TestAllTypes proto
  98. // (see below).
  99. //
  100. // Types that are valid to be assigned to Payload:
  101. // *ConformanceRequest_ProtobufPayload
  102. // *ConformanceRequest_JsonPayload
  103. Payload isConformanceRequest_Payload `protobuf_oneof:"payload"`
  104. // Which format should the testee serialize its message to?
  105. RequestedOutputFormat WireFormat `protobuf:"varint,3,opt,name=requested_output_format,json=requestedOutputFormat,enum=conformance.WireFormat" json:"requested_output_format,omitempty"`
  106. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  107. XXX_unrecognized []byte `json:"-"`
  108. XXX_sizecache int32 `json:"-"`
  109. }
  110. func (m *ConformanceRequest) Reset() { *m = ConformanceRequest{} }
  111. func (m *ConformanceRequest) String() string { return proto.CompactTextString(m) }
  112. func (*ConformanceRequest) ProtoMessage() {}
  113. func (*ConformanceRequest) Descriptor() ([]byte, []int) {
  114. return fileDescriptor_conformance_48ac832451f5d6c3, []int{0}
  115. }
  116. func (m *ConformanceRequest) XXX_Unmarshal(b []byte) error {
  117. return xxx_messageInfo_ConformanceRequest.Unmarshal(m, b)
  118. }
  119. func (m *ConformanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  120. return xxx_messageInfo_ConformanceRequest.Marshal(b, m, deterministic)
  121. }
  122. func (dst *ConformanceRequest) XXX_Merge(src proto.Message) {
  123. xxx_messageInfo_ConformanceRequest.Merge(dst, src)
  124. }
  125. func (m *ConformanceRequest) XXX_Size() int {
  126. return xxx_messageInfo_ConformanceRequest.Size(m)
  127. }
  128. func (m *ConformanceRequest) XXX_DiscardUnknown() {
  129. xxx_messageInfo_ConformanceRequest.DiscardUnknown(m)
  130. }
  131. var xxx_messageInfo_ConformanceRequest proto.InternalMessageInfo
  132. type isConformanceRequest_Payload interface {
  133. isConformanceRequest_Payload()
  134. }
  135. type ConformanceRequest_ProtobufPayload struct {
  136. ProtobufPayload []byte `protobuf:"bytes,1,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
  137. }
  138. type ConformanceRequest_JsonPayload struct {
  139. JsonPayload string `protobuf:"bytes,2,opt,name=json_payload,json=jsonPayload,oneof"`
  140. }
  141. func (*ConformanceRequest_ProtobufPayload) isConformanceRequest_Payload() {}
  142. func (*ConformanceRequest_JsonPayload) isConformanceRequest_Payload() {}
  143. func (m *ConformanceRequest) GetPayload() isConformanceRequest_Payload {
  144. if m != nil {
  145. return m.Payload
  146. }
  147. return nil
  148. }
  149. func (m *ConformanceRequest) GetProtobufPayload() []byte {
  150. if x, ok := m.GetPayload().(*ConformanceRequest_ProtobufPayload); ok {
  151. return x.ProtobufPayload
  152. }
  153. return nil
  154. }
  155. func (m *ConformanceRequest) GetJsonPayload() string {
  156. if x, ok := m.GetPayload().(*ConformanceRequest_JsonPayload); ok {
  157. return x.JsonPayload
  158. }
  159. return ""
  160. }
  161. func (m *ConformanceRequest) GetRequestedOutputFormat() WireFormat {
  162. if m != nil {
  163. return m.RequestedOutputFormat
  164. }
  165. return WireFormat_UNSPECIFIED
  166. }
  167. // XXX_OneofFuncs is for the internal use of the proto package.
  168. func (*ConformanceRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  169. return _ConformanceRequest_OneofMarshaler, _ConformanceRequest_OneofUnmarshaler, _ConformanceRequest_OneofSizer, []interface{}{
  170. (*ConformanceRequest_ProtobufPayload)(nil),
  171. (*ConformanceRequest_JsonPayload)(nil),
  172. }
  173. }
  174. func _ConformanceRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  175. m := msg.(*ConformanceRequest)
  176. // payload
  177. switch x := m.Payload.(type) {
  178. case *ConformanceRequest_ProtobufPayload:
  179. b.EncodeVarint(1<<3 | proto.WireBytes)
  180. b.EncodeRawBytes(x.ProtobufPayload)
  181. case *ConformanceRequest_JsonPayload:
  182. b.EncodeVarint(2<<3 | proto.WireBytes)
  183. b.EncodeStringBytes(x.JsonPayload)
  184. case nil:
  185. default:
  186. return fmt.Errorf("ConformanceRequest.Payload has unexpected type %T", x)
  187. }
  188. return nil
  189. }
  190. func _ConformanceRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  191. m := msg.(*ConformanceRequest)
  192. switch tag {
  193. case 1: // payload.protobuf_payload
  194. if wire != proto.WireBytes {
  195. return true, proto.ErrInternalBadWireType
  196. }
  197. x, err := b.DecodeRawBytes(true)
  198. m.Payload = &ConformanceRequest_ProtobufPayload{x}
  199. return true, err
  200. case 2: // payload.json_payload
  201. if wire != proto.WireBytes {
  202. return true, proto.ErrInternalBadWireType
  203. }
  204. x, err := b.DecodeStringBytes()
  205. m.Payload = &ConformanceRequest_JsonPayload{x}
  206. return true, err
  207. default:
  208. return false, nil
  209. }
  210. }
  211. func _ConformanceRequest_OneofSizer(msg proto.Message) (n int) {
  212. m := msg.(*ConformanceRequest)
  213. // payload
  214. switch x := m.Payload.(type) {
  215. case *ConformanceRequest_ProtobufPayload:
  216. n += 1 // tag and wire
  217. n += proto.SizeVarint(uint64(len(x.ProtobufPayload)))
  218. n += len(x.ProtobufPayload)
  219. case *ConformanceRequest_JsonPayload:
  220. n += 1 // tag and wire
  221. n += proto.SizeVarint(uint64(len(x.JsonPayload)))
  222. n += len(x.JsonPayload)
  223. case nil:
  224. default:
  225. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  226. }
  227. return n
  228. }
  229. // Represents a single test case's output.
  230. type ConformanceResponse struct {
  231. // Types that are valid to be assigned to Result:
  232. // *ConformanceResponse_ParseError
  233. // *ConformanceResponse_SerializeError
  234. // *ConformanceResponse_RuntimeError
  235. // *ConformanceResponse_ProtobufPayload
  236. // *ConformanceResponse_JsonPayload
  237. // *ConformanceResponse_Skipped
  238. Result isConformanceResponse_Result `protobuf_oneof:"result"`
  239. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  240. XXX_unrecognized []byte `json:"-"`
  241. XXX_sizecache int32 `json:"-"`
  242. }
  243. func (m *ConformanceResponse) Reset() { *m = ConformanceResponse{} }
  244. func (m *ConformanceResponse) String() string { return proto.CompactTextString(m) }
  245. func (*ConformanceResponse) ProtoMessage() {}
  246. func (*ConformanceResponse) Descriptor() ([]byte, []int) {
  247. return fileDescriptor_conformance_48ac832451f5d6c3, []int{1}
  248. }
  249. func (m *ConformanceResponse) XXX_Unmarshal(b []byte) error {
  250. return xxx_messageInfo_ConformanceResponse.Unmarshal(m, b)
  251. }
  252. func (m *ConformanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  253. return xxx_messageInfo_ConformanceResponse.Marshal(b, m, deterministic)
  254. }
  255. func (dst *ConformanceResponse) XXX_Merge(src proto.Message) {
  256. xxx_messageInfo_ConformanceResponse.Merge(dst, src)
  257. }
  258. func (m *ConformanceResponse) XXX_Size() int {
  259. return xxx_messageInfo_ConformanceResponse.Size(m)
  260. }
  261. func (m *ConformanceResponse) XXX_DiscardUnknown() {
  262. xxx_messageInfo_ConformanceResponse.DiscardUnknown(m)
  263. }
  264. var xxx_messageInfo_ConformanceResponse proto.InternalMessageInfo
  265. type isConformanceResponse_Result interface {
  266. isConformanceResponse_Result()
  267. }
  268. type ConformanceResponse_ParseError struct {
  269. ParseError string `protobuf:"bytes,1,opt,name=parse_error,json=parseError,oneof"`
  270. }
  271. type ConformanceResponse_SerializeError struct {
  272. SerializeError string `protobuf:"bytes,6,opt,name=serialize_error,json=serializeError,oneof"`
  273. }
  274. type ConformanceResponse_RuntimeError struct {
  275. RuntimeError string `protobuf:"bytes,2,opt,name=runtime_error,json=runtimeError,oneof"`
  276. }
  277. type ConformanceResponse_ProtobufPayload struct {
  278. ProtobufPayload []byte `protobuf:"bytes,3,opt,name=protobuf_payload,json=protobufPayload,proto3,oneof"`
  279. }
  280. type ConformanceResponse_JsonPayload struct {
  281. JsonPayload string `protobuf:"bytes,4,opt,name=json_payload,json=jsonPayload,oneof"`
  282. }
  283. type ConformanceResponse_Skipped struct {
  284. Skipped string `protobuf:"bytes,5,opt,name=skipped,oneof"`
  285. }
  286. func (*ConformanceResponse_ParseError) isConformanceResponse_Result() {}
  287. func (*ConformanceResponse_SerializeError) isConformanceResponse_Result() {}
  288. func (*ConformanceResponse_RuntimeError) isConformanceResponse_Result() {}
  289. func (*ConformanceResponse_ProtobufPayload) isConformanceResponse_Result() {}
  290. func (*ConformanceResponse_JsonPayload) isConformanceResponse_Result() {}
  291. func (*ConformanceResponse_Skipped) isConformanceResponse_Result() {}
  292. func (m *ConformanceResponse) GetResult() isConformanceResponse_Result {
  293. if m != nil {
  294. return m.Result
  295. }
  296. return nil
  297. }
  298. func (m *ConformanceResponse) GetParseError() string {
  299. if x, ok := m.GetResult().(*ConformanceResponse_ParseError); ok {
  300. return x.ParseError
  301. }
  302. return ""
  303. }
  304. func (m *ConformanceResponse) GetSerializeError() string {
  305. if x, ok := m.GetResult().(*ConformanceResponse_SerializeError); ok {
  306. return x.SerializeError
  307. }
  308. return ""
  309. }
  310. func (m *ConformanceResponse) GetRuntimeError() string {
  311. if x, ok := m.GetResult().(*ConformanceResponse_RuntimeError); ok {
  312. return x.RuntimeError
  313. }
  314. return ""
  315. }
  316. func (m *ConformanceResponse) GetProtobufPayload() []byte {
  317. if x, ok := m.GetResult().(*ConformanceResponse_ProtobufPayload); ok {
  318. return x.ProtobufPayload
  319. }
  320. return nil
  321. }
  322. func (m *ConformanceResponse) GetJsonPayload() string {
  323. if x, ok := m.GetResult().(*ConformanceResponse_JsonPayload); ok {
  324. return x.JsonPayload
  325. }
  326. return ""
  327. }
  328. func (m *ConformanceResponse) GetSkipped() string {
  329. if x, ok := m.GetResult().(*ConformanceResponse_Skipped); ok {
  330. return x.Skipped
  331. }
  332. return ""
  333. }
  334. // XXX_OneofFuncs is for the internal use of the proto package.
  335. func (*ConformanceResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  336. return _ConformanceResponse_OneofMarshaler, _ConformanceResponse_OneofUnmarshaler, _ConformanceResponse_OneofSizer, []interface{}{
  337. (*ConformanceResponse_ParseError)(nil),
  338. (*ConformanceResponse_SerializeError)(nil),
  339. (*ConformanceResponse_RuntimeError)(nil),
  340. (*ConformanceResponse_ProtobufPayload)(nil),
  341. (*ConformanceResponse_JsonPayload)(nil),
  342. (*ConformanceResponse_Skipped)(nil),
  343. }
  344. }
  345. func _ConformanceResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  346. m := msg.(*ConformanceResponse)
  347. // result
  348. switch x := m.Result.(type) {
  349. case *ConformanceResponse_ParseError:
  350. b.EncodeVarint(1<<3 | proto.WireBytes)
  351. b.EncodeStringBytes(x.ParseError)
  352. case *ConformanceResponse_SerializeError:
  353. b.EncodeVarint(6<<3 | proto.WireBytes)
  354. b.EncodeStringBytes(x.SerializeError)
  355. case *ConformanceResponse_RuntimeError:
  356. b.EncodeVarint(2<<3 | proto.WireBytes)
  357. b.EncodeStringBytes(x.RuntimeError)
  358. case *ConformanceResponse_ProtobufPayload:
  359. b.EncodeVarint(3<<3 | proto.WireBytes)
  360. b.EncodeRawBytes(x.ProtobufPayload)
  361. case *ConformanceResponse_JsonPayload:
  362. b.EncodeVarint(4<<3 | proto.WireBytes)
  363. b.EncodeStringBytes(x.JsonPayload)
  364. case *ConformanceResponse_Skipped:
  365. b.EncodeVarint(5<<3 | proto.WireBytes)
  366. b.EncodeStringBytes(x.Skipped)
  367. case nil:
  368. default:
  369. return fmt.Errorf("ConformanceResponse.Result has unexpected type %T", x)
  370. }
  371. return nil
  372. }
  373. func _ConformanceResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  374. m := msg.(*ConformanceResponse)
  375. switch tag {
  376. case 1: // result.parse_error
  377. if wire != proto.WireBytes {
  378. return true, proto.ErrInternalBadWireType
  379. }
  380. x, err := b.DecodeStringBytes()
  381. m.Result = &ConformanceResponse_ParseError{x}
  382. return true, err
  383. case 6: // result.serialize_error
  384. if wire != proto.WireBytes {
  385. return true, proto.ErrInternalBadWireType
  386. }
  387. x, err := b.DecodeStringBytes()
  388. m.Result = &ConformanceResponse_SerializeError{x}
  389. return true, err
  390. case 2: // result.runtime_error
  391. if wire != proto.WireBytes {
  392. return true, proto.ErrInternalBadWireType
  393. }
  394. x, err := b.DecodeStringBytes()
  395. m.Result = &ConformanceResponse_RuntimeError{x}
  396. return true, err
  397. case 3: // result.protobuf_payload
  398. if wire != proto.WireBytes {
  399. return true, proto.ErrInternalBadWireType
  400. }
  401. x, err := b.DecodeRawBytes(true)
  402. m.Result = &ConformanceResponse_ProtobufPayload{x}
  403. return true, err
  404. case 4: // result.json_payload
  405. if wire != proto.WireBytes {
  406. return true, proto.ErrInternalBadWireType
  407. }
  408. x, err := b.DecodeStringBytes()
  409. m.Result = &ConformanceResponse_JsonPayload{x}
  410. return true, err
  411. case 5: // result.skipped
  412. if wire != proto.WireBytes {
  413. return true, proto.ErrInternalBadWireType
  414. }
  415. x, err := b.DecodeStringBytes()
  416. m.Result = &ConformanceResponse_Skipped{x}
  417. return true, err
  418. default:
  419. return false, nil
  420. }
  421. }
  422. func _ConformanceResponse_OneofSizer(msg proto.Message) (n int) {
  423. m := msg.(*ConformanceResponse)
  424. // result
  425. switch x := m.Result.(type) {
  426. case *ConformanceResponse_ParseError:
  427. n += 1 // tag and wire
  428. n += proto.SizeVarint(uint64(len(x.ParseError)))
  429. n += len(x.ParseError)
  430. case *ConformanceResponse_SerializeError:
  431. n += 1 // tag and wire
  432. n += proto.SizeVarint(uint64(len(x.SerializeError)))
  433. n += len(x.SerializeError)
  434. case *ConformanceResponse_RuntimeError:
  435. n += 1 // tag and wire
  436. n += proto.SizeVarint(uint64(len(x.RuntimeError)))
  437. n += len(x.RuntimeError)
  438. case *ConformanceResponse_ProtobufPayload:
  439. n += 1 // tag and wire
  440. n += proto.SizeVarint(uint64(len(x.ProtobufPayload)))
  441. n += len(x.ProtobufPayload)
  442. case *ConformanceResponse_JsonPayload:
  443. n += 1 // tag and wire
  444. n += proto.SizeVarint(uint64(len(x.JsonPayload)))
  445. n += len(x.JsonPayload)
  446. case *ConformanceResponse_Skipped:
  447. n += 1 // tag and wire
  448. n += proto.SizeVarint(uint64(len(x.Skipped)))
  449. n += len(x.Skipped)
  450. case nil:
  451. default:
  452. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  453. }
  454. return n
  455. }
  456. // This proto includes every type of field in both singular and repeated
  457. // forms.
  458. type TestAllTypes struct {
  459. // Singular
  460. OptionalInt32 int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
  461. OptionalInt64 int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
  462. OptionalUint32 uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
  463. OptionalUint64 uint64 `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty"`
  464. OptionalSint32 int32 `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty"`
  465. OptionalSint64 int64 `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty"`
  466. OptionalFixed32 uint32 `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty"`
  467. OptionalFixed64 uint64 `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty"`
  468. OptionalSfixed32 int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty"`
  469. OptionalSfixed64 int64 `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty"`
  470. OptionalFloat float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty"`
  471. OptionalDouble float64 `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty"`
  472. OptionalBool bool `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
  473. OptionalString string `protobuf:"bytes,14,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
  474. OptionalBytes []byte `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
  475. OptionalNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=optional_nested_message,json=optionalNestedMessage" json:"optional_nested_message,omitempty"`
  476. OptionalForeignMessage *ForeignMessage `protobuf:"bytes,19,opt,name=optional_foreign_message,json=optionalForeignMessage" json:"optional_foreign_message,omitempty"`
  477. OptionalNestedEnum TestAllTypes_NestedEnum `protobuf:"varint,21,opt,name=optional_nested_enum,json=optionalNestedEnum,enum=conformance.TestAllTypes_NestedEnum" json:"optional_nested_enum,omitempty"`
  478. OptionalForeignEnum ForeignEnum `protobuf:"varint,22,opt,name=optional_foreign_enum,json=optionalForeignEnum,enum=conformance.ForeignEnum" json:"optional_foreign_enum,omitempty"`
  479. OptionalStringPiece string `protobuf:"bytes,24,opt,name=optional_string_piece,json=optionalStringPiece" json:"optional_string_piece,omitempty"`
  480. OptionalCord string `protobuf:"bytes,25,opt,name=optional_cord,json=optionalCord" json:"optional_cord,omitempty"`
  481. RecursiveMessage *TestAllTypes `protobuf:"bytes,27,opt,name=recursive_message,json=recursiveMessage" json:"recursive_message,omitempty"`
  482. // Repeated
  483. RepeatedInt32 []int32 `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
  484. RepeatedInt64 []int64 `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`
  485. RepeatedUint32 []uint32 `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`
  486. RepeatedUint64 []uint64 `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`
  487. RepeatedSint32 []int32 `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`
  488. RepeatedSint64 []int64 `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`
  489. RepeatedFixed32 []uint32 `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`
  490. RepeatedFixed64 []uint64 `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`
  491. RepeatedSfixed32 []int32 `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`
  492. RepeatedSfixed64 []int64 `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`
  493. RepeatedFloat []float32 `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`
  494. RepeatedDouble []float64 `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`
  495. RepeatedBool []bool `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`
  496. RepeatedString []string `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`
  497. RepeatedBytes [][]byte `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
  498. RepeatedNestedMessage []*TestAllTypes_NestedMessage `protobuf:"bytes,48,rep,name=repeated_nested_message,json=repeatedNestedMessage" json:"repeated_nested_message,omitempty"`
  499. RepeatedForeignMessage []*ForeignMessage `protobuf:"bytes,49,rep,name=repeated_foreign_message,json=repeatedForeignMessage" json:"repeated_foreign_message,omitempty"`
  500. RepeatedNestedEnum []TestAllTypes_NestedEnum `protobuf:"varint,51,rep,packed,name=repeated_nested_enum,json=repeatedNestedEnum,enum=conformance.TestAllTypes_NestedEnum" json:"repeated_nested_enum,omitempty"`
  501. RepeatedForeignEnum []ForeignEnum `protobuf:"varint,52,rep,packed,name=repeated_foreign_enum,json=repeatedForeignEnum,enum=conformance.ForeignEnum" json:"repeated_foreign_enum,omitempty"`
  502. RepeatedStringPiece []string `protobuf:"bytes,54,rep,name=repeated_string_piece,json=repeatedStringPiece" json:"repeated_string_piece,omitempty"`
  503. RepeatedCord []string `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord" json:"repeated_cord,omitempty"`
  504. // Map
  505. MapInt32Int32 map[int32]int32 `protobuf:"bytes,56,rep,name=map_int32_int32,json=mapInt32Int32" json:"map_int32_int32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  506. MapInt64Int64 map[int64]int64 `protobuf:"bytes,57,rep,name=map_int64_int64,json=mapInt64Int64" json:"map_int64_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  507. MapUint32Uint32 map[uint32]uint32 `protobuf:"bytes,58,rep,name=map_uint32_uint32,json=mapUint32Uint32" json:"map_uint32_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  508. MapUint64Uint64 map[uint64]uint64 `protobuf:"bytes,59,rep,name=map_uint64_uint64,json=mapUint64Uint64" json:"map_uint64_uint64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  509. MapSint32Sint32 map[int32]int32 `protobuf:"bytes,60,rep,name=map_sint32_sint32,json=mapSint32Sint32" json:"map_sint32_sint32,omitempty" protobuf_key:"zigzag32,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value"`
  510. MapSint64Sint64 map[int64]int64 `protobuf:"bytes,61,rep,name=map_sint64_sint64,json=mapSint64Sint64" json:"map_sint64_sint64,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value"`
  511. MapFixed32Fixed32 map[uint32]uint32 `protobuf:"bytes,62,rep,name=map_fixed32_fixed32,json=mapFixed32Fixed32" json:"map_fixed32_fixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
  512. MapFixed64Fixed64 map[uint64]uint64 `protobuf:"bytes,63,rep,name=map_fixed64_fixed64,json=mapFixed64Fixed64" json:"map_fixed64_fixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
  513. MapSfixed32Sfixed32 map[int32]int32 `protobuf:"bytes,64,rep,name=map_sfixed32_sfixed32,json=mapSfixed32Sfixed32" json:"map_sfixed32_sfixed32,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
  514. MapSfixed64Sfixed64 map[int64]int64 `protobuf:"bytes,65,rep,name=map_sfixed64_sfixed64,json=mapSfixed64Sfixed64" json:"map_sfixed64_sfixed64,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
  515. MapInt32Float map[int32]float32 `protobuf:"bytes,66,rep,name=map_int32_float,json=mapInt32Float" json:"map_int32_float,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
  516. MapInt32Double map[int32]float64 `protobuf:"bytes,67,rep,name=map_int32_double,json=mapInt32Double" json:"map_int32_double,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
  517. MapBoolBool map[bool]bool `protobuf:"bytes,68,rep,name=map_bool_bool,json=mapBoolBool" json:"map_bool_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
  518. MapStringString map[string]string `protobuf:"bytes,69,rep,name=map_string_string,json=mapStringString" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  519. MapStringBytes map[string][]byte `protobuf:"bytes,70,rep,name=map_string_bytes,json=mapStringBytes" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
  520. MapStringNestedMessage map[string]*TestAllTypes_NestedMessage `protobuf:"bytes,71,rep,name=map_string_nested_message,json=mapStringNestedMessage" json:"map_string_nested_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  521. MapStringForeignMessage map[string]*ForeignMessage `protobuf:"bytes,72,rep,name=map_string_foreign_message,json=mapStringForeignMessage" json:"map_string_foreign_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  522. MapStringNestedEnum map[string]TestAllTypes_NestedEnum `protobuf:"bytes,73,rep,name=map_string_nested_enum,json=mapStringNestedEnum" json:"map_string_nested_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=conformance.TestAllTypes_NestedEnum"`
  523. MapStringForeignEnum map[string]ForeignEnum `protobuf:"bytes,74,rep,name=map_string_foreign_enum,json=mapStringForeignEnum" json:"map_string_foreign_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=conformance.ForeignEnum"`
  524. // Types that are valid to be assigned to OneofField:
  525. // *TestAllTypes_OneofUint32
  526. // *TestAllTypes_OneofNestedMessage
  527. // *TestAllTypes_OneofString
  528. // *TestAllTypes_OneofBytes
  529. OneofField isTestAllTypes_OneofField `protobuf_oneof:"oneof_field"`
  530. // Well-known types
  531. OptionalBoolWrapper *wrappers.BoolValue `protobuf:"bytes,201,opt,name=optional_bool_wrapper,json=optionalBoolWrapper" json:"optional_bool_wrapper,omitempty"`
  532. OptionalInt32Wrapper *wrappers.Int32Value `protobuf:"bytes,202,opt,name=optional_int32_wrapper,json=optionalInt32Wrapper" json:"optional_int32_wrapper,omitempty"`
  533. OptionalInt64Wrapper *wrappers.Int64Value `protobuf:"bytes,203,opt,name=optional_int64_wrapper,json=optionalInt64Wrapper" json:"optional_int64_wrapper,omitempty"`
  534. OptionalUint32Wrapper *wrappers.UInt32Value `protobuf:"bytes,204,opt,name=optional_uint32_wrapper,json=optionalUint32Wrapper" json:"optional_uint32_wrapper,omitempty"`
  535. OptionalUint64Wrapper *wrappers.UInt64Value `protobuf:"bytes,205,opt,name=optional_uint64_wrapper,json=optionalUint64Wrapper" json:"optional_uint64_wrapper,omitempty"`
  536. OptionalFloatWrapper *wrappers.FloatValue `protobuf:"bytes,206,opt,name=optional_float_wrapper,json=optionalFloatWrapper" json:"optional_float_wrapper,omitempty"`
  537. OptionalDoubleWrapper *wrappers.DoubleValue `protobuf:"bytes,207,opt,name=optional_double_wrapper,json=optionalDoubleWrapper" json:"optional_double_wrapper,omitempty"`
  538. OptionalStringWrapper *wrappers.StringValue `protobuf:"bytes,208,opt,name=optional_string_wrapper,json=optionalStringWrapper" json:"optional_string_wrapper,omitempty"`
  539. OptionalBytesWrapper *wrappers.BytesValue `protobuf:"bytes,209,opt,name=optional_bytes_wrapper,json=optionalBytesWrapper" json:"optional_bytes_wrapper,omitempty"`
  540. RepeatedBoolWrapper []*wrappers.BoolValue `protobuf:"bytes,211,rep,name=repeated_bool_wrapper,json=repeatedBoolWrapper" json:"repeated_bool_wrapper,omitempty"`
  541. RepeatedInt32Wrapper []*wrappers.Int32Value `protobuf:"bytes,212,rep,name=repeated_int32_wrapper,json=repeatedInt32Wrapper" json:"repeated_int32_wrapper,omitempty"`
  542. RepeatedInt64Wrapper []*wrappers.Int64Value `protobuf:"bytes,213,rep,name=repeated_int64_wrapper,json=repeatedInt64Wrapper" json:"repeated_int64_wrapper,omitempty"`
  543. RepeatedUint32Wrapper []*wrappers.UInt32Value `protobuf:"bytes,214,rep,name=repeated_uint32_wrapper,json=repeatedUint32Wrapper" json:"repeated_uint32_wrapper,omitempty"`
  544. RepeatedUint64Wrapper []*wrappers.UInt64Value `protobuf:"bytes,215,rep,name=repeated_uint64_wrapper,json=repeatedUint64Wrapper" json:"repeated_uint64_wrapper,omitempty"`
  545. RepeatedFloatWrapper []*wrappers.FloatValue `protobuf:"bytes,216,rep,name=repeated_float_wrapper,json=repeatedFloatWrapper" json:"repeated_float_wrapper,omitempty"`
  546. RepeatedDoubleWrapper []*wrappers.DoubleValue `protobuf:"bytes,217,rep,name=repeated_double_wrapper,json=repeatedDoubleWrapper" json:"repeated_double_wrapper,omitempty"`
  547. RepeatedStringWrapper []*wrappers.StringValue `protobuf:"bytes,218,rep,name=repeated_string_wrapper,json=repeatedStringWrapper" json:"repeated_string_wrapper,omitempty"`
  548. RepeatedBytesWrapper []*wrappers.BytesValue `protobuf:"bytes,219,rep,name=repeated_bytes_wrapper,json=repeatedBytesWrapper" json:"repeated_bytes_wrapper,omitempty"`
  549. OptionalDuration *duration.Duration `protobuf:"bytes,301,opt,name=optional_duration,json=optionalDuration" json:"optional_duration,omitempty"`
  550. OptionalTimestamp *timestamp.Timestamp `protobuf:"bytes,302,opt,name=optional_timestamp,json=optionalTimestamp" json:"optional_timestamp,omitempty"`
  551. OptionalFieldMask *field_mask.FieldMask `protobuf:"bytes,303,opt,name=optional_field_mask,json=optionalFieldMask" json:"optional_field_mask,omitempty"`
  552. OptionalStruct *_struct.Struct `protobuf:"bytes,304,opt,name=optional_struct,json=optionalStruct" json:"optional_struct,omitempty"`
  553. OptionalAny *any.Any `protobuf:"bytes,305,opt,name=optional_any,json=optionalAny" json:"optional_any,omitempty"`
  554. OptionalValue *_struct.Value `protobuf:"bytes,306,opt,name=optional_value,json=optionalValue" json:"optional_value,omitempty"`
  555. RepeatedDuration []*duration.Duration `protobuf:"bytes,311,rep,name=repeated_duration,json=repeatedDuration" json:"repeated_duration,omitempty"`
  556. RepeatedTimestamp []*timestamp.Timestamp `protobuf:"bytes,312,rep,name=repeated_timestamp,json=repeatedTimestamp" json:"repeated_timestamp,omitempty"`
  557. RepeatedFieldmask []*field_mask.FieldMask `protobuf:"bytes,313,rep,name=repeated_fieldmask,json=repeatedFieldmask" json:"repeated_fieldmask,omitempty"`
  558. RepeatedStruct []*_struct.Struct `protobuf:"bytes,324,rep,name=repeated_struct,json=repeatedStruct" json:"repeated_struct,omitempty"`
  559. RepeatedAny []*any.Any `protobuf:"bytes,315,rep,name=repeated_any,json=repeatedAny" json:"repeated_any,omitempty"`
  560. RepeatedValue []*_struct.Value `protobuf:"bytes,316,rep,name=repeated_value,json=repeatedValue" json:"repeated_value,omitempty"`
  561. // Test field-name-to-JSON-name convention.
  562. Fieldname1 int32 `protobuf:"varint,401,opt,name=fieldname1" json:"fieldname1,omitempty"`
  563. FieldName2 int32 `protobuf:"varint,402,opt,name=field_name2,json=fieldName2" json:"field_name2,omitempty"`
  564. XFieldName3 int32 `protobuf:"varint,403,opt,name=_field_name3,json=FieldName3" json:"_field_name3,omitempty"`
  565. Field_Name4_ int32 `protobuf:"varint,404,opt,name=field__name4_,json=fieldName4" json:"field__name4_,omitempty"`
  566. Field0Name5 int32 `protobuf:"varint,405,opt,name=field0name5" json:"field0name5,omitempty"`
  567. Field_0Name6 int32 `protobuf:"varint,406,opt,name=field_0_name6,json=field0Name6" json:"field_0_name6,omitempty"`
  568. FieldName7 int32 `protobuf:"varint,407,opt,name=fieldName7" json:"fieldName7,omitempty"`
  569. FieldName8 int32 `protobuf:"varint,408,opt,name=FieldName8" json:"FieldName8,omitempty"`
  570. Field_Name9 int32 `protobuf:"varint,409,opt,name=field_Name9,json=fieldName9" json:"field_Name9,omitempty"`
  571. Field_Name10 int32 `protobuf:"varint,410,opt,name=Field_Name10,json=FieldName10" json:"Field_Name10,omitempty"`
  572. FIELD_NAME11 int32 `protobuf:"varint,411,opt,name=FIELD_NAME11,json=FIELDNAME11" json:"FIELD_NAME11,omitempty"`
  573. FIELDName12 int32 `protobuf:"varint,412,opt,name=FIELD_name12,json=FIELDName12" json:"FIELD_name12,omitempty"`
  574. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  575. XXX_unrecognized []byte `json:"-"`
  576. XXX_sizecache int32 `json:"-"`
  577. }
  578. func (m *TestAllTypes) Reset() { *m = TestAllTypes{} }
  579. func (m *TestAllTypes) String() string { return proto.CompactTextString(m) }
  580. func (*TestAllTypes) ProtoMessage() {}
  581. func (*TestAllTypes) Descriptor() ([]byte, []int) {
  582. return fileDescriptor_conformance_48ac832451f5d6c3, []int{2}
  583. }
  584. func (m *TestAllTypes) XXX_Unmarshal(b []byte) error {
  585. return xxx_messageInfo_TestAllTypes.Unmarshal(m, b)
  586. }
  587. func (m *TestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  588. return xxx_messageInfo_TestAllTypes.Marshal(b, m, deterministic)
  589. }
  590. func (dst *TestAllTypes) XXX_Merge(src proto.Message) {
  591. xxx_messageInfo_TestAllTypes.Merge(dst, src)
  592. }
  593. func (m *TestAllTypes) XXX_Size() int {
  594. return xxx_messageInfo_TestAllTypes.Size(m)
  595. }
  596. func (m *TestAllTypes) XXX_DiscardUnknown() {
  597. xxx_messageInfo_TestAllTypes.DiscardUnknown(m)
  598. }
  599. var xxx_messageInfo_TestAllTypes proto.InternalMessageInfo
  600. type isTestAllTypes_OneofField interface {
  601. isTestAllTypes_OneofField()
  602. }
  603. type TestAllTypes_OneofUint32 struct {
  604. OneofUint32 uint32 `protobuf:"varint,111,opt,name=oneof_uint32,json=oneofUint32,oneof"`
  605. }
  606. type TestAllTypes_OneofNestedMessage struct {
  607. OneofNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,112,opt,name=oneof_nested_message,json=oneofNestedMessage,oneof"`
  608. }
  609. type TestAllTypes_OneofString struct {
  610. OneofString string `protobuf:"bytes,113,opt,name=oneof_string,json=oneofString,oneof"`
  611. }
  612. type TestAllTypes_OneofBytes struct {
  613. OneofBytes []byte `protobuf:"bytes,114,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"`
  614. }
  615. func (*TestAllTypes_OneofUint32) isTestAllTypes_OneofField() {}
  616. func (*TestAllTypes_OneofNestedMessage) isTestAllTypes_OneofField() {}
  617. func (*TestAllTypes_OneofString) isTestAllTypes_OneofField() {}
  618. func (*TestAllTypes_OneofBytes) isTestAllTypes_OneofField() {}
  619. func (m *TestAllTypes) GetOneofField() isTestAllTypes_OneofField {
  620. if m != nil {
  621. return m.OneofField
  622. }
  623. return nil
  624. }
  625. func (m *TestAllTypes) GetOptionalInt32() int32 {
  626. if m != nil {
  627. return m.OptionalInt32
  628. }
  629. return 0
  630. }
  631. func (m *TestAllTypes) GetOptionalInt64() int64 {
  632. if m != nil {
  633. return m.OptionalInt64
  634. }
  635. return 0
  636. }
  637. func (m *TestAllTypes) GetOptionalUint32() uint32 {
  638. if m != nil {
  639. return m.OptionalUint32
  640. }
  641. return 0
  642. }
  643. func (m *TestAllTypes) GetOptionalUint64() uint64 {
  644. if m != nil {
  645. return m.OptionalUint64
  646. }
  647. return 0
  648. }
  649. func (m *TestAllTypes) GetOptionalSint32() int32 {
  650. if m != nil {
  651. return m.OptionalSint32
  652. }
  653. return 0
  654. }
  655. func (m *TestAllTypes) GetOptionalSint64() int64 {
  656. if m != nil {
  657. return m.OptionalSint64
  658. }
  659. return 0
  660. }
  661. func (m *TestAllTypes) GetOptionalFixed32() uint32 {
  662. if m != nil {
  663. return m.OptionalFixed32
  664. }
  665. return 0
  666. }
  667. func (m *TestAllTypes) GetOptionalFixed64() uint64 {
  668. if m != nil {
  669. return m.OptionalFixed64
  670. }
  671. return 0
  672. }
  673. func (m *TestAllTypes) GetOptionalSfixed32() int32 {
  674. if m != nil {
  675. return m.OptionalSfixed32
  676. }
  677. return 0
  678. }
  679. func (m *TestAllTypes) GetOptionalSfixed64() int64 {
  680. if m != nil {
  681. return m.OptionalSfixed64
  682. }
  683. return 0
  684. }
  685. func (m *TestAllTypes) GetOptionalFloat() float32 {
  686. if m != nil {
  687. return m.OptionalFloat
  688. }
  689. return 0
  690. }
  691. func (m *TestAllTypes) GetOptionalDouble() float64 {
  692. if m != nil {
  693. return m.OptionalDouble
  694. }
  695. return 0
  696. }
  697. func (m *TestAllTypes) GetOptionalBool() bool {
  698. if m != nil {
  699. return m.OptionalBool
  700. }
  701. return false
  702. }
  703. func (m *TestAllTypes) GetOptionalString() string {
  704. if m != nil {
  705. return m.OptionalString
  706. }
  707. return ""
  708. }
  709. func (m *TestAllTypes) GetOptionalBytes() []byte {
  710. if m != nil {
  711. return m.OptionalBytes
  712. }
  713. return nil
  714. }
  715. func (m *TestAllTypes) GetOptionalNestedMessage() *TestAllTypes_NestedMessage {
  716. if m != nil {
  717. return m.OptionalNestedMessage
  718. }
  719. return nil
  720. }
  721. func (m *TestAllTypes) GetOptionalForeignMessage() *ForeignMessage {
  722. if m != nil {
  723. return m.OptionalForeignMessage
  724. }
  725. return nil
  726. }
  727. func (m *TestAllTypes) GetOptionalNestedEnum() TestAllTypes_NestedEnum {
  728. if m != nil {
  729. return m.OptionalNestedEnum
  730. }
  731. return TestAllTypes_FOO
  732. }
  733. func (m *TestAllTypes) GetOptionalForeignEnum() ForeignEnum {
  734. if m != nil {
  735. return m.OptionalForeignEnum
  736. }
  737. return ForeignEnum_FOREIGN_FOO
  738. }
  739. func (m *TestAllTypes) GetOptionalStringPiece() string {
  740. if m != nil {
  741. return m.OptionalStringPiece
  742. }
  743. return ""
  744. }
  745. func (m *TestAllTypes) GetOptionalCord() string {
  746. if m != nil {
  747. return m.OptionalCord
  748. }
  749. return ""
  750. }
  751. func (m *TestAllTypes) GetRecursiveMessage() *TestAllTypes {
  752. if m != nil {
  753. return m.RecursiveMessage
  754. }
  755. return nil
  756. }
  757. func (m *TestAllTypes) GetRepeatedInt32() []int32 {
  758. if m != nil {
  759. return m.RepeatedInt32
  760. }
  761. return nil
  762. }
  763. func (m *TestAllTypes) GetRepeatedInt64() []int64 {
  764. if m != nil {
  765. return m.RepeatedInt64
  766. }
  767. return nil
  768. }
  769. func (m *TestAllTypes) GetRepeatedUint32() []uint32 {
  770. if m != nil {
  771. return m.RepeatedUint32
  772. }
  773. return nil
  774. }
  775. func (m *TestAllTypes) GetRepeatedUint64() []uint64 {
  776. if m != nil {
  777. return m.RepeatedUint64
  778. }
  779. return nil
  780. }
  781. func (m *TestAllTypes) GetRepeatedSint32() []int32 {
  782. if m != nil {
  783. return m.RepeatedSint32
  784. }
  785. return nil
  786. }
  787. func (m *TestAllTypes) GetRepeatedSint64() []int64 {
  788. if m != nil {
  789. return m.RepeatedSint64
  790. }
  791. return nil
  792. }
  793. func (m *TestAllTypes) GetRepeatedFixed32() []uint32 {
  794. if m != nil {
  795. return m.RepeatedFixed32
  796. }
  797. return nil
  798. }
  799. func (m *TestAllTypes) GetRepeatedFixed64() []uint64 {
  800. if m != nil {
  801. return m.RepeatedFixed64
  802. }
  803. return nil
  804. }
  805. func (m *TestAllTypes) GetRepeatedSfixed32() []int32 {
  806. if m != nil {
  807. return m.RepeatedSfixed32
  808. }
  809. return nil
  810. }
  811. func (m *TestAllTypes) GetRepeatedSfixed64() []int64 {
  812. if m != nil {
  813. return m.RepeatedSfixed64
  814. }
  815. return nil
  816. }
  817. func (m *TestAllTypes) GetRepeatedFloat() []float32 {
  818. if m != nil {
  819. return m.RepeatedFloat
  820. }
  821. return nil
  822. }
  823. func (m *TestAllTypes) GetRepeatedDouble() []float64 {
  824. if m != nil {
  825. return m.RepeatedDouble
  826. }
  827. return nil
  828. }
  829. func (m *TestAllTypes) GetRepeatedBool() []bool {
  830. if m != nil {
  831. return m.RepeatedBool
  832. }
  833. return nil
  834. }
  835. func (m *TestAllTypes) GetRepeatedString() []string {
  836. if m != nil {
  837. return m.RepeatedString
  838. }
  839. return nil
  840. }
  841. func (m *TestAllTypes) GetRepeatedBytes() [][]byte {
  842. if m != nil {
  843. return m.RepeatedBytes
  844. }
  845. return nil
  846. }
  847. func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage {
  848. if m != nil {
  849. return m.RepeatedNestedMessage
  850. }
  851. return nil
  852. }
  853. func (m *TestAllTypes) GetRepeatedForeignMessage() []*ForeignMessage {
  854. if m != nil {
  855. return m.RepeatedForeignMessage
  856. }
  857. return nil
  858. }
  859. func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum {
  860. if m != nil {
  861. return m.RepeatedNestedEnum
  862. }
  863. return nil
  864. }
  865. func (m *TestAllTypes) GetRepeatedForeignEnum() []ForeignEnum {
  866. if m != nil {
  867. return m.RepeatedForeignEnum
  868. }
  869. return nil
  870. }
  871. func (m *TestAllTypes) GetRepeatedStringPiece() []string {
  872. if m != nil {
  873. return m.RepeatedStringPiece
  874. }
  875. return nil
  876. }
  877. func (m *TestAllTypes) GetRepeatedCord() []string {
  878. if m != nil {
  879. return m.RepeatedCord
  880. }
  881. return nil
  882. }
  883. func (m *TestAllTypes) GetMapInt32Int32() map[int32]int32 {
  884. if m != nil {
  885. return m.MapInt32Int32
  886. }
  887. return nil
  888. }
  889. func (m *TestAllTypes) GetMapInt64Int64() map[int64]int64 {
  890. if m != nil {
  891. return m.MapInt64Int64
  892. }
  893. return nil
  894. }
  895. func (m *TestAllTypes) GetMapUint32Uint32() map[uint32]uint32 {
  896. if m != nil {
  897. return m.MapUint32Uint32
  898. }
  899. return nil
  900. }
  901. func (m *TestAllTypes) GetMapUint64Uint64() map[uint64]uint64 {
  902. if m != nil {
  903. return m.MapUint64Uint64
  904. }
  905. return nil
  906. }
  907. func (m *TestAllTypes) GetMapSint32Sint32() map[int32]int32 {
  908. if m != nil {
  909. return m.MapSint32Sint32
  910. }
  911. return nil
  912. }
  913. func (m *TestAllTypes) GetMapSint64Sint64() map[int64]int64 {
  914. if m != nil {
  915. return m.MapSint64Sint64
  916. }
  917. return nil
  918. }
  919. func (m *TestAllTypes) GetMapFixed32Fixed32() map[uint32]uint32 {
  920. if m != nil {
  921. return m.MapFixed32Fixed32
  922. }
  923. return nil
  924. }
  925. func (m *TestAllTypes) GetMapFixed64Fixed64() map[uint64]uint64 {
  926. if m != nil {
  927. return m.MapFixed64Fixed64
  928. }
  929. return nil
  930. }
  931. func (m *TestAllTypes) GetMapSfixed32Sfixed32() map[int32]int32 {
  932. if m != nil {
  933. return m.MapSfixed32Sfixed32
  934. }
  935. return nil
  936. }
  937. func (m *TestAllTypes) GetMapSfixed64Sfixed64() map[int64]int64 {
  938. if m != nil {
  939. return m.MapSfixed64Sfixed64
  940. }
  941. return nil
  942. }
  943. func (m *TestAllTypes) GetMapInt32Float() map[int32]float32 {
  944. if m != nil {
  945. return m.MapInt32Float
  946. }
  947. return nil
  948. }
  949. func (m *TestAllTypes) GetMapInt32Double() map[int32]float64 {
  950. if m != nil {
  951. return m.MapInt32Double
  952. }
  953. return nil
  954. }
  955. func (m *TestAllTypes) GetMapBoolBool() map[bool]bool {
  956. if m != nil {
  957. return m.MapBoolBool
  958. }
  959. return nil
  960. }
  961. func (m *TestAllTypes) GetMapStringString() map[string]string {
  962. if m != nil {
  963. return m.MapStringString
  964. }
  965. return nil
  966. }
  967. func (m *TestAllTypes) GetMapStringBytes() map[string][]byte {
  968. if m != nil {
  969. return m.MapStringBytes
  970. }
  971. return nil
  972. }
  973. func (m *TestAllTypes) GetMapStringNestedMessage() map[string]*TestAllTypes_NestedMessage {
  974. if m != nil {
  975. return m.MapStringNestedMessage
  976. }
  977. return nil
  978. }
  979. func (m *TestAllTypes) GetMapStringForeignMessage() map[string]*ForeignMessage {
  980. if m != nil {
  981. return m.MapStringForeignMessage
  982. }
  983. return nil
  984. }
  985. func (m *TestAllTypes) GetMapStringNestedEnum() map[string]TestAllTypes_NestedEnum {
  986. if m != nil {
  987. return m.MapStringNestedEnum
  988. }
  989. return nil
  990. }
  991. func (m *TestAllTypes) GetMapStringForeignEnum() map[string]ForeignEnum {
  992. if m != nil {
  993. return m.MapStringForeignEnum
  994. }
  995. return nil
  996. }
  997. func (m *TestAllTypes) GetOneofUint32() uint32 {
  998. if x, ok := m.GetOneofField().(*TestAllTypes_OneofUint32); ok {
  999. return x.OneofUint32
  1000. }
  1001. return 0
  1002. }
  1003. func (m *TestAllTypes) GetOneofNestedMessage() *TestAllTypes_NestedMessage {
  1004. if x, ok := m.GetOneofField().(*TestAllTypes_OneofNestedMessage); ok {
  1005. return x.OneofNestedMessage
  1006. }
  1007. return nil
  1008. }
  1009. func (m *TestAllTypes) GetOneofString() string {
  1010. if x, ok := m.GetOneofField().(*TestAllTypes_OneofString); ok {
  1011. return x.OneofString
  1012. }
  1013. return ""
  1014. }
  1015. func (m *TestAllTypes) GetOneofBytes() []byte {
  1016. if x, ok := m.GetOneofField().(*TestAllTypes_OneofBytes); ok {
  1017. return x.OneofBytes
  1018. }
  1019. return nil
  1020. }
  1021. func (m *TestAllTypes) GetOptionalBoolWrapper() *wrappers.BoolValue {
  1022. if m != nil {
  1023. return m.OptionalBoolWrapper
  1024. }
  1025. return nil
  1026. }
  1027. func (m *TestAllTypes) GetOptionalInt32Wrapper() *wrappers.Int32Value {
  1028. if m != nil {
  1029. return m.OptionalInt32Wrapper
  1030. }
  1031. return nil
  1032. }
  1033. func (m *TestAllTypes) GetOptionalInt64Wrapper() *wrappers.Int64Value {
  1034. if m != nil {
  1035. return m.OptionalInt64Wrapper
  1036. }
  1037. return nil
  1038. }
  1039. func (m *TestAllTypes) GetOptionalUint32Wrapper() *wrappers.UInt32Value {
  1040. if m != nil {
  1041. return m.OptionalUint32Wrapper
  1042. }
  1043. return nil
  1044. }
  1045. func (m *TestAllTypes) GetOptionalUint64Wrapper() *wrappers.UInt64Value {
  1046. if m != nil {
  1047. return m.OptionalUint64Wrapper
  1048. }
  1049. return nil
  1050. }
  1051. func (m *TestAllTypes) GetOptionalFloatWrapper() *wrappers.FloatValue {
  1052. if m != nil {
  1053. return m.OptionalFloatWrapper
  1054. }
  1055. return nil
  1056. }
  1057. func (m *TestAllTypes) GetOptionalDoubleWrapper() *wrappers.DoubleValue {
  1058. if m != nil {
  1059. return m.OptionalDoubleWrapper
  1060. }
  1061. return nil
  1062. }
  1063. func (m *TestAllTypes) GetOptionalStringWrapper() *wrappers.StringValue {
  1064. if m != nil {
  1065. return m.OptionalStringWrapper
  1066. }
  1067. return nil
  1068. }
  1069. func (m *TestAllTypes) GetOptionalBytesWrapper() *wrappers.BytesValue {
  1070. if m != nil {
  1071. return m.OptionalBytesWrapper
  1072. }
  1073. return nil
  1074. }
  1075. func (m *TestAllTypes) GetRepeatedBoolWrapper() []*wrappers.BoolValue {
  1076. if m != nil {
  1077. return m.RepeatedBoolWrapper
  1078. }
  1079. return nil
  1080. }
  1081. func (m *TestAllTypes) GetRepeatedInt32Wrapper() []*wrappers.Int32Value {
  1082. if m != nil {
  1083. return m.RepeatedInt32Wrapper
  1084. }
  1085. return nil
  1086. }
  1087. func (m *TestAllTypes) GetRepeatedInt64Wrapper() []*wrappers.Int64Value {
  1088. if m != nil {
  1089. return m.RepeatedInt64Wrapper
  1090. }
  1091. return nil
  1092. }
  1093. func (m *TestAllTypes) GetRepeatedUint32Wrapper() []*wrappers.UInt32Value {
  1094. if m != nil {
  1095. return m.RepeatedUint32Wrapper
  1096. }
  1097. return nil
  1098. }
  1099. func (m *TestAllTypes) GetRepeatedUint64Wrapper() []*wrappers.UInt64Value {
  1100. if m != nil {
  1101. return m.RepeatedUint64Wrapper
  1102. }
  1103. return nil
  1104. }
  1105. func (m *TestAllTypes) GetRepeatedFloatWrapper() []*wrappers.FloatValue {
  1106. if m != nil {
  1107. return m.RepeatedFloatWrapper
  1108. }
  1109. return nil
  1110. }
  1111. func (m *TestAllTypes) GetRepeatedDoubleWrapper() []*wrappers.DoubleValue {
  1112. if m != nil {
  1113. return m.RepeatedDoubleWrapper
  1114. }
  1115. return nil
  1116. }
  1117. func (m *TestAllTypes) GetRepeatedStringWrapper() []*wrappers.StringValue {
  1118. if m != nil {
  1119. return m.RepeatedStringWrapper
  1120. }
  1121. return nil
  1122. }
  1123. func (m *TestAllTypes) GetRepeatedBytesWrapper() []*wrappers.BytesValue {
  1124. if m != nil {
  1125. return m.RepeatedBytesWrapper
  1126. }
  1127. return nil
  1128. }
  1129. func (m *TestAllTypes) GetOptionalDuration() *duration.Duration {
  1130. if m != nil {
  1131. return m.OptionalDuration
  1132. }
  1133. return nil
  1134. }
  1135. func (m *TestAllTypes) GetOptionalTimestamp() *timestamp.Timestamp {
  1136. if m != nil {
  1137. return m.OptionalTimestamp
  1138. }
  1139. return nil
  1140. }
  1141. func (m *TestAllTypes) GetOptionalFieldMask() *field_mask.FieldMask {
  1142. if m != nil {
  1143. return m.OptionalFieldMask
  1144. }
  1145. return nil
  1146. }
  1147. func (m *TestAllTypes) GetOptionalStruct() *_struct.Struct {
  1148. if m != nil {
  1149. return m.OptionalStruct
  1150. }
  1151. return nil
  1152. }
  1153. func (m *TestAllTypes) GetOptionalAny() *any.Any {
  1154. if m != nil {
  1155. return m.OptionalAny
  1156. }
  1157. return nil
  1158. }
  1159. func (m *TestAllTypes) GetOptionalValue() *_struct.Value {
  1160. if m != nil {
  1161. return m.OptionalValue
  1162. }
  1163. return nil
  1164. }
  1165. func (m *TestAllTypes) GetRepeatedDuration() []*duration.Duration {
  1166. if m != nil {
  1167. return m.RepeatedDuration
  1168. }
  1169. return nil
  1170. }
  1171. func (m *TestAllTypes) GetRepeatedTimestamp() []*timestamp.Timestamp {
  1172. if m != nil {
  1173. return m.RepeatedTimestamp
  1174. }
  1175. return nil
  1176. }
  1177. func (m *TestAllTypes) GetRepeatedFieldmask() []*field_mask.FieldMask {
  1178. if m != nil {
  1179. return m.RepeatedFieldmask
  1180. }
  1181. return nil
  1182. }
  1183. func (m *TestAllTypes) GetRepeatedStruct() []*_struct.Struct {
  1184. if m != nil {
  1185. return m.RepeatedStruct
  1186. }
  1187. return nil
  1188. }
  1189. func (m *TestAllTypes) GetRepeatedAny() []*any.Any {
  1190. if m != nil {
  1191. return m.RepeatedAny
  1192. }
  1193. return nil
  1194. }
  1195. func (m *TestAllTypes) GetRepeatedValue() []*_struct.Value {
  1196. if m != nil {
  1197. return m.RepeatedValue
  1198. }
  1199. return nil
  1200. }
  1201. func (m *TestAllTypes) GetFieldname1() int32 {
  1202. if m != nil {
  1203. return m.Fieldname1
  1204. }
  1205. return 0
  1206. }
  1207. func (m *TestAllTypes) GetFieldName2() int32 {
  1208. if m != nil {
  1209. return m.FieldName2
  1210. }
  1211. return 0
  1212. }
  1213. func (m *TestAllTypes) GetXFieldName3() int32 {
  1214. if m != nil {
  1215. return m.XFieldName3
  1216. }
  1217. return 0
  1218. }
  1219. func (m *TestAllTypes) GetField_Name4_() int32 {
  1220. if m != nil {
  1221. return m.Field_Name4_
  1222. }
  1223. return 0
  1224. }
  1225. func (m *TestAllTypes) GetField0Name5() int32 {
  1226. if m != nil {
  1227. return m.Field0Name5
  1228. }
  1229. return 0
  1230. }
  1231. func (m *TestAllTypes) GetField_0Name6() int32 {
  1232. if m != nil {
  1233. return m.Field_0Name6
  1234. }
  1235. return 0
  1236. }
  1237. func (m *TestAllTypes) GetFieldName7() int32 {
  1238. if m != nil {
  1239. return m.FieldName7
  1240. }
  1241. return 0
  1242. }
  1243. func (m *TestAllTypes) GetFieldName8() int32 {
  1244. if m != nil {
  1245. return m.FieldName8
  1246. }
  1247. return 0
  1248. }
  1249. func (m *TestAllTypes) GetField_Name9() int32 {
  1250. if m != nil {
  1251. return m.Field_Name9
  1252. }
  1253. return 0
  1254. }
  1255. func (m *TestAllTypes) GetField_Name10() int32 {
  1256. if m != nil {
  1257. return m.Field_Name10
  1258. }
  1259. return 0
  1260. }
  1261. func (m *TestAllTypes) GetFIELD_NAME11() int32 {
  1262. if m != nil {
  1263. return m.FIELD_NAME11
  1264. }
  1265. return 0
  1266. }
  1267. func (m *TestAllTypes) GetFIELDName12() int32 {
  1268. if m != nil {
  1269. return m.FIELDName12
  1270. }
  1271. return 0
  1272. }
  1273. // XXX_OneofFuncs is for the internal use of the proto package.
  1274. func (*TestAllTypes) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  1275. return _TestAllTypes_OneofMarshaler, _TestAllTypes_OneofUnmarshaler, _TestAllTypes_OneofSizer, []interface{}{
  1276. (*TestAllTypes_OneofUint32)(nil),
  1277. (*TestAllTypes_OneofNestedMessage)(nil),
  1278. (*TestAllTypes_OneofString)(nil),
  1279. (*TestAllTypes_OneofBytes)(nil),
  1280. }
  1281. }
  1282. func _TestAllTypes_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1283. m := msg.(*TestAllTypes)
  1284. // oneof_field
  1285. switch x := m.OneofField.(type) {
  1286. case *TestAllTypes_OneofUint32:
  1287. b.EncodeVarint(111<<3 | proto.WireVarint)
  1288. b.EncodeVarint(uint64(x.OneofUint32))
  1289. case *TestAllTypes_OneofNestedMessage:
  1290. b.EncodeVarint(112<<3 | proto.WireBytes)
  1291. if err := b.EncodeMessage(x.OneofNestedMessage); err != nil {
  1292. return err
  1293. }
  1294. case *TestAllTypes_OneofString:
  1295. b.EncodeVarint(113<<3 | proto.WireBytes)
  1296. b.EncodeStringBytes(x.OneofString)
  1297. case *TestAllTypes_OneofBytes:
  1298. b.EncodeVarint(114<<3 | proto.WireBytes)
  1299. b.EncodeRawBytes(x.OneofBytes)
  1300. case nil:
  1301. default:
  1302. return fmt.Errorf("TestAllTypes.OneofField has unexpected type %T", x)
  1303. }
  1304. return nil
  1305. }
  1306. func _TestAllTypes_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1307. m := msg.(*TestAllTypes)
  1308. switch tag {
  1309. case 111: // oneof_field.oneof_uint32
  1310. if wire != proto.WireVarint {
  1311. return true, proto.ErrInternalBadWireType
  1312. }
  1313. x, err := b.DecodeVarint()
  1314. m.OneofField = &TestAllTypes_OneofUint32{uint32(x)}
  1315. return true, err
  1316. case 112: // oneof_field.oneof_nested_message
  1317. if wire != proto.WireBytes {
  1318. return true, proto.ErrInternalBadWireType
  1319. }
  1320. msg := new(TestAllTypes_NestedMessage)
  1321. err := b.DecodeMessage(msg)
  1322. m.OneofField = &TestAllTypes_OneofNestedMessage{msg}
  1323. return true, err
  1324. case 113: // oneof_field.oneof_string
  1325. if wire != proto.WireBytes {
  1326. return true, proto.ErrInternalBadWireType
  1327. }
  1328. x, err := b.DecodeStringBytes()
  1329. m.OneofField = &TestAllTypes_OneofString{x}
  1330. return true, err
  1331. case 114: // oneof_field.oneof_bytes
  1332. if wire != proto.WireBytes {
  1333. return true, proto.ErrInternalBadWireType
  1334. }
  1335. x, err := b.DecodeRawBytes(true)
  1336. m.OneofField = &TestAllTypes_OneofBytes{x}
  1337. return true, err
  1338. default:
  1339. return false, nil
  1340. }
  1341. }
  1342. func _TestAllTypes_OneofSizer(msg proto.Message) (n int) {
  1343. m := msg.(*TestAllTypes)
  1344. // oneof_field
  1345. switch x := m.OneofField.(type) {
  1346. case *TestAllTypes_OneofUint32:
  1347. n += 2 // tag and wire
  1348. n += proto.SizeVarint(uint64(x.OneofUint32))
  1349. case *TestAllTypes_OneofNestedMessage:
  1350. s := proto.Size(x.OneofNestedMessage)
  1351. n += 2 // tag and wire
  1352. n += proto.SizeVarint(uint64(s))
  1353. n += s
  1354. case *TestAllTypes_OneofString:
  1355. n += 2 // tag and wire
  1356. n += proto.SizeVarint(uint64(len(x.OneofString)))
  1357. n += len(x.OneofString)
  1358. case *TestAllTypes_OneofBytes:
  1359. n += 2 // tag and wire
  1360. n += proto.SizeVarint(uint64(len(x.OneofBytes)))
  1361. n += len(x.OneofBytes)
  1362. case nil:
  1363. default:
  1364. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1365. }
  1366. return n
  1367. }
  1368. type TestAllTypes_NestedMessage struct {
  1369. A int32 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
  1370. Corecursive *TestAllTypes `protobuf:"bytes,2,opt,name=corecursive" json:"corecursive,omitempty"`
  1371. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1372. XXX_unrecognized []byte `json:"-"`
  1373. XXX_sizecache int32 `json:"-"`
  1374. }
  1375. func (m *TestAllTypes_NestedMessage) Reset() { *m = TestAllTypes_NestedMessage{} }
  1376. func (m *TestAllTypes_NestedMessage) String() string { return proto.CompactTextString(m) }
  1377. func (*TestAllTypes_NestedMessage) ProtoMessage() {}
  1378. func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int) {
  1379. return fileDescriptor_conformance_48ac832451f5d6c3, []int{2, 0}
  1380. }
  1381. func (m *TestAllTypes_NestedMessage) XXX_Unmarshal(b []byte) error {
  1382. return xxx_messageInfo_TestAllTypes_NestedMessage.Unmarshal(m, b)
  1383. }
  1384. func (m *TestAllTypes_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1385. return xxx_messageInfo_TestAllTypes_NestedMessage.Marshal(b, m, deterministic)
  1386. }
  1387. func (dst *TestAllTypes_NestedMessage) XXX_Merge(src proto.Message) {
  1388. xxx_messageInfo_TestAllTypes_NestedMessage.Merge(dst, src)
  1389. }
  1390. func (m *TestAllTypes_NestedMessage) XXX_Size() int {
  1391. return xxx_messageInfo_TestAllTypes_NestedMessage.Size(m)
  1392. }
  1393. func (m *TestAllTypes_NestedMessage) XXX_DiscardUnknown() {
  1394. xxx_messageInfo_TestAllTypes_NestedMessage.DiscardUnknown(m)
  1395. }
  1396. var xxx_messageInfo_TestAllTypes_NestedMessage proto.InternalMessageInfo
  1397. func (m *TestAllTypes_NestedMessage) GetA() int32 {
  1398. if m != nil {
  1399. return m.A
  1400. }
  1401. return 0
  1402. }
  1403. func (m *TestAllTypes_NestedMessage) GetCorecursive() *TestAllTypes {
  1404. if m != nil {
  1405. return m.Corecursive
  1406. }
  1407. return nil
  1408. }
  1409. type ForeignMessage struct {
  1410. C int32 `protobuf:"varint,1,opt,name=c" json:"c,omitempty"`
  1411. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1412. XXX_unrecognized []byte `json:"-"`
  1413. XXX_sizecache int32 `json:"-"`
  1414. }
  1415. func (m *ForeignMessage) Reset() { *m = ForeignMessage{} }
  1416. func (m *ForeignMessage) String() string { return proto.CompactTextString(m) }
  1417. func (*ForeignMessage) ProtoMessage() {}
  1418. func (*ForeignMessage) Descriptor() ([]byte, []int) {
  1419. return fileDescriptor_conformance_48ac832451f5d6c3, []int{3}
  1420. }
  1421. func (m *ForeignMessage) XXX_Unmarshal(b []byte) error {
  1422. return xxx_messageInfo_ForeignMessage.Unmarshal(m, b)
  1423. }
  1424. func (m *ForeignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1425. return xxx_messageInfo_ForeignMessage.Marshal(b, m, deterministic)
  1426. }
  1427. func (dst *ForeignMessage) XXX_Merge(src proto.Message) {
  1428. xxx_messageInfo_ForeignMessage.Merge(dst, src)
  1429. }
  1430. func (m *ForeignMessage) XXX_Size() int {
  1431. return xxx_messageInfo_ForeignMessage.Size(m)
  1432. }
  1433. func (m *ForeignMessage) XXX_DiscardUnknown() {
  1434. xxx_messageInfo_ForeignMessage.DiscardUnknown(m)
  1435. }
  1436. var xxx_messageInfo_ForeignMessage proto.InternalMessageInfo
  1437. func (m *ForeignMessage) GetC() int32 {
  1438. if m != nil {
  1439. return m.C
  1440. }
  1441. return 0
  1442. }
  1443. func init() {
  1444. proto.RegisterType((*ConformanceRequest)(nil), "conformance.ConformanceRequest")
  1445. proto.RegisterType((*ConformanceResponse)(nil), "conformance.ConformanceResponse")
  1446. proto.RegisterType((*TestAllTypes)(nil), "conformance.TestAllTypes")
  1447. proto.RegisterMapType((map[bool]bool)(nil), "conformance.TestAllTypes.MapBoolBoolEntry")
  1448. proto.RegisterMapType((map[uint32]uint32)(nil), "conformance.TestAllTypes.MapFixed32Fixed32Entry")
  1449. proto.RegisterMapType((map[uint64]uint64)(nil), "conformance.TestAllTypes.MapFixed64Fixed64Entry")
  1450. proto.RegisterMapType((map[int32]float64)(nil), "conformance.TestAllTypes.MapInt32DoubleEntry")
  1451. proto.RegisterMapType((map[int32]float32)(nil), "conformance.TestAllTypes.MapInt32FloatEntry")
  1452. proto.RegisterMapType((map[int32]int32)(nil), "conformance.TestAllTypes.MapInt32Int32Entry")
  1453. proto.RegisterMapType((map[int64]int64)(nil), "conformance.TestAllTypes.MapInt64Int64Entry")
  1454. proto.RegisterMapType((map[int32]int32)(nil), "conformance.TestAllTypes.MapSfixed32Sfixed32Entry")
  1455. proto.RegisterMapType((map[int64]int64)(nil), "conformance.TestAllTypes.MapSfixed64Sfixed64Entry")
  1456. proto.RegisterMapType((map[int32]int32)(nil), "conformance.TestAllTypes.MapSint32Sint32Entry")
  1457. proto.RegisterMapType((map[int64]int64)(nil), "conformance.TestAllTypes.MapSint64Sint64Entry")
  1458. proto.RegisterMapType((map[string][]byte)(nil), "conformance.TestAllTypes.MapStringBytesEntry")
  1459. proto.RegisterMapType((map[string]ForeignEnum)(nil), "conformance.TestAllTypes.MapStringForeignEnumEntry")
  1460. proto.RegisterMapType((map[string]*ForeignMessage)(nil), "conformance.TestAllTypes.MapStringForeignMessageEntry")
  1461. proto.RegisterMapType((map[string]TestAllTypes_NestedEnum)(nil), "conformance.TestAllTypes.MapStringNestedEnumEntry")
  1462. proto.RegisterMapType((map[string]*TestAllTypes_NestedMessage)(nil), "conformance.TestAllTypes.MapStringNestedMessageEntry")
  1463. proto.RegisterMapType((map[string]string)(nil), "conformance.TestAllTypes.MapStringStringEntry")
  1464. proto.RegisterMapType((map[uint32]uint32)(nil), "conformance.TestAllTypes.MapUint32Uint32Entry")
  1465. proto.RegisterMapType((map[uint64]uint64)(nil), "conformance.TestAllTypes.MapUint64Uint64Entry")
  1466. proto.RegisterType((*TestAllTypes_NestedMessage)(nil), "conformance.TestAllTypes.NestedMessage")
  1467. proto.RegisterType((*ForeignMessage)(nil), "conformance.ForeignMessage")
  1468. proto.RegisterEnum("conformance.WireFormat", WireFormat_name, WireFormat_value)
  1469. proto.RegisterEnum("conformance.ForeignEnum", ForeignEnum_name, ForeignEnum_value)
  1470. proto.RegisterEnum("conformance.TestAllTypes_NestedEnum", TestAllTypes_NestedEnum_name, TestAllTypes_NestedEnum_value)
  1471. }
  1472. func init() { proto.RegisterFile("conformance.proto", fileDescriptor_conformance_48ac832451f5d6c3) }
  1473. var fileDescriptor_conformance_48ac832451f5d6c3 = []byte{
  1474. // 2600 bytes of a gzipped FileDescriptorProto
  1475. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x5a, 0x5b, 0x73, 0x13, 0xc9,
  1476. 0x15, 0xf6, 0x68, 0xc0, 0x36, 0x2d, 0xd9, 0x96, 0xdb, 0xb7, 0xc6, 0x50, 0xcb, 0x60, 0x96, 0x20,
  1477. 0x60, 0xd7, 0xeb, 0xcb, 0x30, 0x5c, 0x36, 0x4b, 0xb0, 0xc0, 0x02, 0x93, 0xc5, 0xa2, 0xc6, 0x78,
  1478. 0xa9, 0x22, 0x0f, 0xca, 0x20, 0x8f, 0x5d, 0x5a, 0x24, 0x8d, 0x76, 0x66, 0xb4, 0x89, 0xf3, 0x98,
  1479. 0x7f, 0x90, 0xfb, 0xf5, 0x2f, 0xe4, 0x5a, 0x95, 0x4a, 0x52, 0xc9, 0x53, 0x2a, 0x2f, 0xb9, 0x27,
  1480. 0x95, 0x7b, 0xf2, 0x63, 0x92, 0xea, 0xeb, 0x74, 0xb7, 0x7a, 0x64, 0xb1, 0x55, 0x2b, 0x5b, 0xa7,
  1481. 0xbf, 0xfe, 0xce, 0xe9, 0xd3, 0x67, 0xbe, 0x76, 0x9f, 0x01, 0xcc, 0x36, 0xa3, 0xee, 0x61, 0x14,
  1482. 0x77, 0x82, 0x6e, 0x33, 0x5c, 0xed, 0xc5, 0x51, 0x1a, 0xc1, 0xa2, 0x64, 0x5a, 0x3e, 0x7b, 0x14,
  1483. 0x45, 0x47, 0xed, 0xf0, 0x1d, 0x32, 0xf4, 0xb2, 0x7f, 0xf8, 0x4e, 0xd0, 0x3d, 0xa6, 0xb8, 0xe5,
  1484. 0x37, 0xf4, 0xa1, 0x83, 0x7e, 0x1c, 0xa4, 0xad, 0xa8, 0xcb, 0xc6, 0x1d, 0x7d, 0xfc, 0xb0, 0x15,
  1485. 0xb6, 0x0f, 0x1a, 0x9d, 0x20, 0x79, 0xc5, 0x10, 0xe7, 0x75, 0x44, 0x92, 0xc6, 0xfd, 0x66, 0xca,
  1486. 0x46, 0x2f, 0xe8, 0xa3, 0x69, 0xab, 0x13, 0x26, 0x69, 0xd0, 0xe9, 0xe5, 0x05, 0xf0, 0xb9, 0x38,
  1487. 0xe8, 0xf5, 0xc2, 0x38, 0xa1, 0xe3, 0x2b, 0xbf, 0xb2, 0x00, 0xbc, 0x9f, 0xad, 0xc5, 0x0f, 0x3f,
  1488. 0xea, 0x87, 0x49, 0x0a, 0xaf, 0x83, 0x32, 0x9f, 0xd1, 0xe8, 0x05, 0xc7, 0xed, 0x28, 0x38, 0x40,
  1489. 0x96, 0x63, 0x55, 0x4a, 0x8f, 0xc6, 0xfc, 0x19, 0x3e, 0xf2, 0x94, 0x0e, 0xc0, 0x4b, 0xa0, 0xf4,
  1490. 0x61, 0x12, 0x75, 0x05, 0xb0, 0xe0, 0x58, 0x95, 0x33, 0x8f, 0xc6, 0xfc, 0x22, 0xb6, 0x72, 0x50,
  1491. 0x1d, 0x2c, 0xc5, 0x94, 0x3c, 0x3c, 0x68, 0x44, 0xfd, 0xb4, 0xd7, 0x4f, 0x1b, 0xc4, 0x6b, 0x8a,
  1492. 0x6c, 0xc7, 0xaa, 0x4c, 0x6f, 0x2c, 0xad, 0xca, 0x69, 0x7e, 0xde, 0x8a, 0xc3, 0x1a, 0x19, 0xf6,
  1493. 0x17, 0xc4, 0xbc, 0x3a, 0x99, 0x46, 0xcd, 0xd5, 0x33, 0x60, 0x82, 0x39, 0x5c, 0xf9, 0x62, 0x01,
  1494. 0xcc, 0x29, 0x8b, 0x48, 0x7a, 0x51, 0x37, 0x09, 0xe1, 0x45, 0x50, 0xec, 0x05, 0x71, 0x12, 0x36,
  1495. 0xc2, 0x38, 0x8e, 0x62, 0xb2, 0x00, 0x1c, 0x17, 0x20, 0xc6, 0x6d, 0x6c, 0x83, 0x57, 0xc1, 0x4c,
  1496. 0x12, 0xc6, 0xad, 0xa0, 0xdd, 0xfa, 0x02, 0x87, 0x8d, 0x33, 0xd8, 0xb4, 0x18, 0xa0, 0xd0, 0xcb,
  1497. 0x60, 0x2a, 0xee, 0x77, 0x71, 0x82, 0x19, 0x90, 0xaf, 0xb3, 0xc4, 0xcc, 0x14, 0x66, 0x4a, 0x9d,
  1498. 0x3d, 0x6a, 0xea, 0x4e, 0x99, 0x52, 0xb7, 0x0c, 0x26, 0x92, 0x57, 0xad, 0x5e, 0x2f, 0x3c, 0x40,
  1499. 0xa7, 0xd9, 0x38, 0x37, 0x54, 0x27, 0xc1, 0x78, 0x1c, 0x26, 0xfd, 0x76, 0xba, 0xf2, 0x93, 0xfb,
  1500. 0xa0, 0xf4, 0x2c, 0x4c, 0xd2, 0xad, 0x76, 0xfb, 0xd9, 0x71, 0x2f, 0x4c, 0xe0, 0x65, 0x30, 0x1d,
  1501. 0xf5, 0x70, 0xad, 0x05, 0xed, 0x46, 0xab, 0x9b, 0x6e, 0x6e, 0x90, 0x04, 0x9c, 0xf6, 0xa7, 0xb8,
  1502. 0x75, 0x07, 0x1b, 0x75, 0x98, 0xe7, 0x92, 0x75, 0xd9, 0x0a, 0xcc, 0x73, 0xe1, 0x15, 0x30, 0x23,
  1503. 0x60, 0x7d, 0x4a, 0x87, 0x57, 0x35, 0xe5, 0x8b, 0xd9, 0xfb, 0xc4, 0x3a, 0x00, 0xf4, 0x5c, 0xb2,
  1504. 0xaa, 0x53, 0x2a, 0x50, 0x63, 0x4c, 0x28, 0x23, 0x5e, 0xde, 0x6c, 0x06, 0xdc, 0x1b, 0x64, 0x4c,
  1505. 0x28, 0x23, 0xde, 0x23, 0xa8, 0x02, 0x3d, 0x17, 0x5e, 0x05, 0x65, 0x01, 0x3c, 0x6c, 0x7d, 0x3e,
  1506. 0x3c, 0xd8, 0xdc, 0x40, 0x13, 0x8e, 0x55, 0x99, 0xf0, 0x05, 0x41, 0x8d, 0x9a, 0x07, 0xa1, 0x9e,
  1507. 0x8b, 0x26, 0x1d, 0xab, 0x32, 0xae, 0x41, 0x3d, 0x17, 0x5e, 0x07, 0xb3, 0x99, 0x7b, 0x4e, 0x7b,
  1508. 0xc6, 0xb1, 0x2a, 0x33, 0xbe, 0xe0, 0xd8, 0x63, 0x76, 0x03, 0xd8, 0x73, 0x11, 0x70, 0xac, 0x4a,
  1509. 0x59, 0x07, 0x7b, 0xae, 0x92, 0xfa, 0xc3, 0x76, 0x14, 0xa4, 0xa8, 0xe8, 0x58, 0x95, 0x42, 0x96,
  1510. 0xfa, 0x1a, 0x36, 0x2a, 0xeb, 0x3f, 0x88, 0xfa, 0x2f, 0xdb, 0x21, 0x2a, 0x39, 0x56, 0xc5, 0xca,
  1511. 0xd6, 0xff, 0x80, 0x58, 0xe1, 0x25, 0x20, 0x66, 0x36, 0x5e, 0x46, 0x51, 0x1b, 0x4d, 0x39, 0x56,
  1512. 0x65, 0xd2, 0x2f, 0x71, 0x63, 0x35, 0x8a, 0xda, 0x6a, 0x36, 0xd3, 0xb8, 0xd5, 0x3d, 0x42, 0xd3,
  1513. 0xb8, 0xaa, 0xa4, 0x6c, 0x12, 0xab, 0x12, 0xdd, 0xcb, 0xe3, 0x34, 0x4c, 0xd0, 0x0c, 0x2e, 0xe3,
  1514. 0x2c, 0xba, 0x2a, 0x36, 0xc2, 0x06, 0x58, 0x12, 0xb0, 0x2e, 0x7d, 0xbc, 0x3b, 0x61, 0x92, 0x04,
  1515. 0x47, 0x21, 0x82, 0x8e, 0x55, 0x29, 0x6e, 0x5c, 0x51, 0x1e, 0x6c, 0xb9, 0x44, 0x57, 0x77, 0x09,
  1516. 0xfe, 0x09, 0x85, 0xfb, 0x0b, 0x9c, 0x47, 0x31, 0xc3, 0x7d, 0x80, 0xb2, 0x2c, 0x45, 0x71, 0xd8,
  1517. 0x3a, 0xea, 0x0a, 0x0f, 0x73, 0xc4, 0xc3, 0x39, 0xc5, 0x43, 0x8d, 0x62, 0x38, 0xeb, 0xa2, 0x48,
  1518. 0xa6, 0x62, 0x87, 0x1f, 0x80, 0x79, 0x3d, 0xee, 0xb0, 0xdb, 0xef, 0xa0, 0x05, 0xa2, 0x46, 0x6f,
  1519. 0x9e, 0x14, 0xf4, 0x76, 0xb7, 0xdf, 0xf1, 0xa1, 0x1a, 0x31, 0xb6, 0xc1, 0xf7, 0xc1, 0xc2, 0x40,
  1520. 0xb8, 0x84, 0x78, 0x91, 0x10, 0x23, 0x53, 0xac, 0x84, 0x6c, 0x4e, 0x0b, 0x94, 0xb0, 0x79, 0x12,
  1521. 0x1b, 0xdd, 0xad, 0x46, 0xaf, 0x15, 0x36, 0x43, 0x84, 0xf0, 0x9e, 0x55, 0x0b, 0x93, 0x85, 0x6c,
  1522. 0x1e, 0xdd, 0xb7, 0xa7, 0x78, 0x18, 0x5e, 0x91, 0x4a, 0xa1, 0x19, 0xc5, 0x07, 0xe8, 0x2c, 0xc3,
  1523. 0x5b, 0x59, 0x39, 0xdc, 0x8f, 0xe2, 0x03, 0x58, 0x03, 0xb3, 0x71, 0xd8, 0xec, 0xc7, 0x49, 0xeb,
  1524. 0xe3, 0x50, 0xa4, 0xf5, 0x1c, 0x49, 0xeb, 0xd9, 0xdc, 0x1c, 0xf8, 0x65, 0x31, 0x87, 0xa7, 0xf3,
  1525. 0x32, 0x98, 0x8e, 0xc3, 0x5e, 0x18, 0xe0, 0x3c, 0xd2, 0x87, 0xf9, 0x82, 0x63, 0x63, 0xb5, 0xe1,
  1526. 0x56, 0xa1, 0x36, 0x32, 0xcc, 0x73, 0x91, 0xe3, 0xd8, 0x58, 0x6d, 0x24, 0x18, 0xd5, 0x06, 0x01,
  1527. 0x63, 0x6a, 0x73, 0xd1, 0xb1, 0xb1, 0xda, 0x70, 0x73, 0xa6, 0x36, 0x0a, 0xd0, 0x73, 0xd1, 0x8a,
  1528. 0x63, 0x63, 0xb5, 0x91, 0x81, 0x1a, 0x23, 0x53, 0x9b, 0x4b, 0x8e, 0x8d, 0xd5, 0x86, 0x9b, 0xf7,
  1529. 0x06, 0x19, 0x99, 0xda, 0xbc, 0xe9, 0xd8, 0x58, 0x6d, 0x64, 0x20, 0x55, 0x1b, 0x01, 0xe4, 0xb2,
  1530. 0x70, 0xd9, 0xb1, 0xb1, 0xda, 0x70, 0xbb, 0xa4, 0x36, 0x2a, 0xd4, 0x73, 0xd1, 0x27, 0x1c, 0x1b,
  1531. 0xab, 0x8d, 0x02, 0xa5, 0x6a, 0x93, 0xb9, 0xe7, 0xb4, 0x57, 0x1c, 0x1b, 0xab, 0x8d, 0x08, 0x40,
  1532. 0x52, 0x1b, 0x0d, 0xec, 0xb9, 0xa8, 0xe2, 0xd8, 0x58, 0x6d, 0x54, 0x30, 0x55, 0x9b, 0x2c, 0x08,
  1533. 0xa2, 0x36, 0x57, 0x1d, 0x1b, 0xab, 0x8d, 0x08, 0x81, 0xab, 0x8d, 0x80, 0x31, 0xb5, 0xb9, 0xe6,
  1534. 0xd8, 0x58, 0x6d, 0xb8, 0x39, 0x53, 0x1b, 0x01, 0x24, 0x6a, 0x73, 0xdd, 0xb1, 0xb1, 0xda, 0x70,
  1535. 0x23, 0x57, 0x9b, 0x2c, 0x42, 0xaa, 0x36, 0x6f, 0x39, 0x36, 0x56, 0x1b, 0x11, 0x9f, 0x50, 0x9b,
  1536. 0x8c, 0x8d, 0xa8, 0xcd, 0xdb, 0x8e, 0x8d, 0xd5, 0x46, 0xd0, 0x71, 0xb5, 0x11, 0x30, 0x4d, 0x6d,
  1537. 0xd6, 0x1c, 0xfb, 0xb5, 0xd4, 0x86, 0xf3, 0x0c, 0xa8, 0x4d, 0x96, 0x25, 0x4d, 0x6d, 0xd6, 0x89,
  1538. 0x87, 0xe1, 0x6a, 0x23, 0x92, 0x39, 0xa0, 0x36, 0x7a, 0xdc, 0x44, 0x14, 0x36, 0x1d, 0x7b, 0x74,
  1539. 0xb5, 0x51, 0x23, 0xe6, 0x6a, 0x33, 0x10, 0x2e, 0x21, 0x76, 0x09, 0xf1, 0x10, 0xb5, 0xd1, 0x02,
  1540. 0xe5, 0x6a, 0xa3, 0xed, 0x16, 0x53, 0x1b, 0x0f, 0xef, 0x19, 0x55, 0x1b, 0x75, 0xdf, 0x84, 0xda,
  1541. 0x88, 0x79, 0x44, 0x6d, 0x6e, 0x32, 0xbc, 0x95, 0x95, 0x03, 0x51, 0x9b, 0x67, 0x60, 0xa6, 0x13,
  1542. 0xf4, 0xa8, 0x40, 0x30, 0x99, 0xb8, 0x45, 0x92, 0xfa, 0x56, 0x7e, 0x06, 0x9e, 0x04, 0x3d, 0xa2,
  1543. 0x1d, 0xe4, 0x63, 0xbb, 0x9b, 0xc6, 0xc7, 0xfe, 0x54, 0x47, 0xb6, 0x49, 0xac, 0x9e, 0xcb, 0x54,
  1544. 0xe5, 0xf6, 0x68, 0xac, 0x9e, 0x4b, 0x3e, 0x14, 0x56, 0x66, 0x83, 0x2f, 0xc0, 0x2c, 0x66, 0xa5,
  1545. 0xf2, 0xc3, 0x55, 0xe8, 0x0e, 0xe1, 0x5d, 0x1d, 0xca, 0x4b, 0xa5, 0x89, 0x7e, 0x52, 0x66, 0x1c,
  1546. 0x9e, 0x6c, 0x95, 0xb9, 0x3d, 0x97, 0x0b, 0xd7, 0xbb, 0x23, 0x72, 0x7b, 0x2e, 0xfd, 0x54, 0xb9,
  1547. 0xb9, 0x95, 0x73, 0x53, 0x91, 0xe3, 0x5a, 0xf7, 0xc9, 0x11, 0xb8, 0xa9, 0x00, 0xee, 0x69, 0x71,
  1548. 0xcb, 0x56, 0x99, 0xdb, 0x73, 0xb9, 0x3c, 0xbe, 0x37, 0x22, 0xb7, 0xe7, 0xee, 0x69, 0x71, 0xcb,
  1549. 0x56, 0xf8, 0x59, 0x30, 0x87, 0xb9, 0x99, 0xb6, 0x09, 0x49, 0xbd, 0x4b, 0xd8, 0xd7, 0x86, 0xb2,
  1550. 0x33, 0x9d, 0x65, 0x3f, 0x28, 0x3f, 0x0e, 0x54, 0xb5, 0x2b, 0x1e, 0x3c, 0x57, 0x28, 0xf1, 0xa7,
  1551. 0x46, 0xf5, 0xe0, 0xb9, 0xec, 0x87, 0xe6, 0x41, 0xd8, 0xe1, 0x21, 0x58, 0x20, 0xf9, 0xe1, 0x8b,
  1552. 0x10, 0x0a, 0x7e, 0x8f, 0xf8, 0xd8, 0x18, 0x9e, 0x23, 0x06, 0xe6, 0x3f, 0xa9, 0x17, 0x1c, 0xb2,
  1553. 0x3e, 0xa2, 0xfa, 0xc1, 0x3b, 0xc1, 0xd7, 0xb2, 0x35, 0xb2, 0x1f, 0xcf, 0xe5, 0x3f, 0x75, 0x3f,
  1554. 0xd9, 0x88, 0xfa, 0xbc, 0xd2, 0x43, 0xa3, 0x3a, 0xea, 0xf3, 0x4a, 0x8e, 0x13, 0xed, 0x79, 0xa5,
  1555. 0x47, 0xcc, 0x73, 0x50, 0xce, 0x58, 0xd9, 0x19, 0x73, 0x9f, 0xd0, 0xbe, 0x7d, 0x32, 0x2d, 0x3d,
  1556. 0x7d, 0x28, 0xef, 0x74, 0x47, 0x31, 0xc2, 0x5d, 0x80, 0x3d, 0x91, 0xd3, 0x88, 0x1e, 0x49, 0x0f,
  1557. 0x08, 0xeb, 0xb5, 0xa1, 0xac, 0xf8, 0x9c, 0xc2, 0xff, 0x53, 0xca, 0x62, 0x27, 0xb3, 0x88, 0x72,
  1558. 0xa7, 0x52, 0xc8, 0xce, 0xaf, 0xed, 0x51, 0xca, 0x9d, 0x40, 0xe9, 0xa7, 0x54, 0xee, 0x92, 0x95,
  1559. 0x27, 0x81, 0x71, 0xd3, 0x23, 0xaf, 0x36, 0x42, 0x12, 0xe8, 0x74, 0x72, 0x1a, 0x66, 0x49, 0x90,
  1560. 0x8c, 0xb0, 0x07, 0xce, 0x4a, 0xc4, 0xda, 0x21, 0xf9, 0x90, 0x78, 0xb8, 0x31, 0x82, 0x07, 0xe5,
  1561. 0x58, 0xa4, 0x9e, 0x16, 0x3b, 0xc6, 0x41, 0x98, 0x80, 0x65, 0xc9, 0xa3, 0x7e, 0x6a, 0x3e, 0x22,
  1562. 0x2e, 0xbd, 0x11, 0x5c, 0xaa, 0x67, 0x26, 0xf5, 0xb9, 0xd4, 0x31, 0x8f, 0xc2, 0x23, 0xb0, 0x38,
  1563. 0xb8, 0x4c, 0x72, 0xf4, 0xed, 0x8c, 0xf2, 0x0c, 0x48, 0xcb, 0xc0, 0x47, 0x9f, 0xf4, 0x0c, 0x68,
  1564. 0x23, 0xf0, 0x43, 0xb0, 0x64, 0x58, 0x1d, 0xf1, 0xf4, 0x98, 0x78, 0xda, 0x1c, 0x7d, 0x69, 0x99,
  1565. 0xab, 0xf9, 0x8e, 0x61, 0x08, 0x5e, 0x02, 0xa5, 0xa8, 0x1b, 0x46, 0x87, 0xfc, 0xb8, 0x89, 0xf0,
  1566. 0x15, 0xfb, 0xd1, 0x98, 0x5f, 0x24, 0x56, 0x76, 0x78, 0x7c, 0x06, 0xcc, 0x53, 0x90, 0xb6, 0xb7,
  1567. 0xbd, 0xd7, 0xba, 0x6e, 0x3d, 0x1a, 0xf3, 0x21, 0xa1, 0x51, 0xf7, 0x52, 0x44, 0xc0, 0xaa, 0xfd,
  1568. 0x23, 0xde, 0x91, 0x20, 0x56, 0x56, 0xbb, 0x17, 0x01, 0xfd, 0xca, 0xca, 0x36, 0x66, 0xed, 0x0d,
  1569. 0x40, 0x8c, 0xb4, 0x0a, 0xeb, 0xd2, 0xc5, 0x85, 0x3c, 0x8f, 0xac, 0xf1, 0x84, 0x7e, 0x63, 0x91,
  1570. 0x30, 0x97, 0x57, 0x69, 0x67, 0x6a, 0x95, 0xb7, 0x44, 0x56, 0xf1, 0x13, 0xf7, 0x41, 0xd0, 0xee,
  1571. 0x87, 0xd9, 0x8d, 0x06, 0x9b, 0x9e, 0xd3, 0x79, 0xd0, 0x07, 0x8b, 0x6a, 0x3b, 0x43, 0x30, 0xfe,
  1572. 0xd6, 0x62, 0xb7, 0x40, 0x9d, 0x91, 0x48, 0x03, 0xa5, 0x9c, 0x57, 0x9a, 0x1e, 0x39, 0x9c, 0x9e,
  1573. 0x2b, 0x38, 0x7f, 0x37, 0x84, 0xd3, 0x73, 0x07, 0x39, 0x3d, 0x97, 0x73, 0xee, 0x4b, 0xf7, 0xe1,
  1574. 0xbe, 0x1a, 0xe8, 0xef, 0x29, 0xe9, 0xf9, 0x01, 0xd2, 0x7d, 0x29, 0xd2, 0x05, 0xb5, 0x9f, 0x92,
  1575. 0x47, 0x2b, 0xc5, 0xfa, 0x87, 0x61, 0xb4, 0x3c, 0xd8, 0x05, 0xb5, 0xfb, 0x62, 0xca, 0x00, 0xd1,
  1576. 0x77, 0xc1, 0xfa, 0xc7, 0xbc, 0x0c, 0x10, 0x0d, 0xd7, 0x32, 0x40, 0x6c, 0xa6, 0x50, 0xa9, 0xba,
  1577. 0x0b, 0xd2, 0x3f, 0xe5, 0x85, 0x4a, 0x05, 0x5c, 0x0b, 0x95, 0x1a, 0x4d, 0xb4, 0xec, 0x61, 0xe4,
  1578. 0xb4, 0x7f, 0xce, 0xa3, 0xa5, 0xf5, 0xaa, 0xd1, 0x52, 0xa3, 0x29, 0x03, 0xa4, 0x9c, 0x05, 0xeb,
  1579. 0x5f, 0xf2, 0x32, 0x40, 0x2a, 0x5c, 0xcb, 0x00, 0xb1, 0x71, 0xce, 0xba, 0xf4, 0x77, 0xb4, 0x52,
  1580. 0xfc, 0x7f, 0xb5, 0x88, 0x62, 0x0c, 0x2d, 0x7e, 0xf9, 0xfe, 0x24, 0x05, 0xa9, 0xde, 0xae, 0x05,
  1581. 0xe3, 0xdf, 0x2c, 0x76, 0x29, 0x19, 0x56, 0xfc, 0xca, 0x1d, 0x3c, 0x87, 0x53, 0x2a, 0xa8, 0xbf,
  1582. 0x0f, 0xe1, 0x14, 0xc5, 0xaf, 0x5c, 0xd8, 0xa5, 0x3d, 0xd2, 0xee, 0xed, 0x82, 0xf4, 0x1f, 0x94,
  1583. 0xf4, 0x84, 0xe2, 0x57, 0xaf, 0xf7, 0x79, 0xb4, 0x52, 0xac, 0xff, 0x1c, 0x46, 0x2b, 0x8a, 0x5f,
  1584. 0x6d, 0x06, 0x98, 0x32, 0xa0, 0x16, 0xff, 0xbf, 0xf2, 0x32, 0x20, 0x17, 0xbf, 0x72, 0x6f, 0x36,
  1585. 0x85, 0xaa, 0x15, 0xff, 0xbf, 0xf3, 0x42, 0x55, 0x8a, 0x5f, 0xbd, 0x65, 0x9b, 0x68, 0xb5, 0xe2,
  1586. 0xff, 0x4f, 0x1e, 0xad, 0x52, 0xfc, 0xea, 0xb5, 0xcd, 0x94, 0x01, 0xb5, 0xf8, 0xff, 0x9b, 0x97,
  1587. 0x01, 0xb9, 0xf8, 0x95, 0xbb, 0x39, 0xe7, 0x7c, 0x28, 0xb5, 0x40, 0xf9, 0xeb, 0x0e, 0xf4, 0xbd,
  1588. 0x02, 0x6b, 0x29, 0x0d, 0xac, 0x9d, 0x21, 0xb2, 0xf6, 0x28, 0xb7, 0xc0, 0xc7, 0x40, 0xf4, 0xd7,
  1589. 0x1a, 0xe2, 0xbd, 0x06, 0xfa, 0x7e, 0x21, 0xe7, 0xfc, 0x78, 0xc6, 0x21, 0xbe, 0xf0, 0x2f, 0x4c,
  1590. 0xf0, 0xd3, 0x60, 0x4e, 0xea, 0xf7, 0xf2, 0x77, 0x2c, 0xe8, 0x07, 0x79, 0x64, 0x35, 0x8c, 0x79,
  1591. 0x12, 0x24, 0xaf, 0x32, 0x32, 0x61, 0x82, 0x5b, 0x6a, 0x0b, 0xb5, 0xdf, 0x4c, 0xd1, 0x0f, 0x29,
  1592. 0xd1, 0x92, 0x69, 0x13, 0xfa, 0xcd, 0x54, 0x69, 0xae, 0xf6, 0x9b, 0x29, 0xbc, 0x05, 0x44, 0x1b,
  1593. 0xae, 0x11, 0x74, 0x8f, 0xd1, 0x8f, 0xe8, 0xfc, 0xf9, 0x81, 0xf9, 0x5b, 0xdd, 0x63, 0xbf, 0xc8,
  1594. 0xa1, 0x5b, 0xdd, 0x63, 0x78, 0x57, 0x6a, 0xcb, 0x7e, 0x8c, 0xb7, 0x01, 0xfd, 0x98, 0xce, 0x5d,
  1595. 0x1c, 0x98, 0x4b, 0x77, 0x49, 0x34, 0x02, 0xc9, 0x57, 0xbc, 0x3d, 0x59, 0x81, 0xf2, 0xed, 0xf9,
  1596. 0x69, 0x81, 0xec, 0xf6, 0xb0, 0xed, 0x11, 0x75, 0x29, 0x6d, 0x8f, 0x20, 0xca, 0xb6, 0xe7, 0x67,
  1597. 0x85, 0x1c, 0x85, 0x93, 0xb6, 0x87, 0x4f, 0xcb, 0xb6, 0x47, 0xe6, 0x22, 0xdb, 0x43, 0x76, 0xe7,
  1598. 0xe7, 0x79, 0x5c, 0xd2, 0xee, 0x64, 0xfd, 0x33, 0x36, 0x0b, 0xef, 0x8e, 0xfc, 0xa8, 0xe0, 0xdd,
  1599. 0xf9, 0x35, 0x25, 0xca, 0xdf, 0x1d, 0xe9, 0xe9, 0x60, 0xbb, 0x23, 0x28, 0xf0, 0xee, 0xfc, 0x82,
  1600. 0xce, 0xcf, 0xd9, 0x1d, 0x0e, 0x65, 0xbb, 0x23, 0x66, 0xd2, 0xdd, 0xf9, 0x25, 0x9d, 0x9b, 0xbb,
  1601. 0x3b, 0x1c, 0x4e, 0x77, 0xe7, 0x02, 0x00, 0x64, 0xfd, 0xdd, 0xa0, 0x13, 0xae, 0xa3, 0x2f, 0xd9,
  1602. 0xe4, 0x8d, 0x8d, 0x64, 0x82, 0x0e, 0x28, 0xd2, 0xfa, 0xc5, 0x5f, 0x37, 0xd0, 0x97, 0x65, 0xc4,
  1603. 0x2e, 0x36, 0xc1, 0x8b, 0xa0, 0xd4, 0xc8, 0x20, 0x9b, 0xe8, 0x2b, 0x0c, 0x52, 0xe3, 0x90, 0x4d,
  1604. 0xb8, 0x02, 0xa6, 0x28, 0x82, 0x40, 0xdc, 0x06, 0xfa, 0xaa, 0x4e, 0xe3, 0xe2, 0xbf, 0xf1, 0xc8,
  1605. 0xb7, 0x35, 0x0c, 0xb9, 0x81, 0xbe, 0x46, 0x11, 0xb2, 0x0d, 0x5e, 0xe2, 0x34, 0x6b, 0x84, 0xc7,
  1606. 0x43, 0x5f, 0x57, 0x40, 0x98, 0xc7, 0x13, 0x2b, 0xc2, 0xdf, 0x6e, 0xa2, 0x6f, 0xe8, 0x8e, 0x6e,
  1607. 0x62, 0x80, 0x08, 0xed, 0x16, 0xfa, 0xa6, 0x1e, 0xed, 0xad, 0x6c, 0xc9, 0xf8, 0xeb, 0x6d, 0xf4,
  1608. 0x2d, 0x9d, 0xe2, 0x36, 0x5c, 0x01, 0xa5, 0x9a, 0x40, 0xac, 0xaf, 0xa1, 0x6f, 0xb3, 0x38, 0x04,
  1609. 0xc9, 0xfa, 0x1a, 0xc1, 0xec, 0x6c, 0xbf, 0xff, 0xa0, 0xb1, 0xbb, 0xf5, 0x64, 0x7b, 0x7d, 0x1d,
  1610. 0x7d, 0x87, 0x63, 0xb0, 0x91, 0xda, 0x32, 0x0c, 0xc9, 0xf5, 0x06, 0xfa, 0xae, 0x82, 0x21, 0xb6,
  1611. 0xe5, 0x17, 0x60, 0x4a, 0xfd, 0x8b, 0xb9, 0x04, 0xac, 0x80, 0xbd, 0x5a, 0xb3, 0x02, 0xf8, 0x2e,
  1612. 0x28, 0x36, 0x23, 0xd1, 0x1d, 0x47, 0x85, 0x93, 0x3a, 0xe9, 0x32, 0x7a, 0xf9, 0x1e, 0x80, 0x83,
  1613. 0xdd, 0x2e, 0x58, 0x06, 0xf6, 0xab, 0xf0, 0x98, 0xb9, 0xc0, 0xbf, 0xc2, 0x79, 0x70, 0x9a, 0x16,
  1614. 0x57, 0x81, 0xd8, 0xe8, 0x97, 0x3b, 0x85, 0x5b, 0x56, 0xc6, 0x20, 0x77, 0xb6, 0x64, 0x06, 0xdb,
  1615. 0xc0, 0x60, 0xcb, 0x0c, 0x55, 0x30, 0x6f, 0xea, 0x61, 0xc9, 0x1c, 0x53, 0x06, 0x8e, 0x29, 0x33,
  1616. 0x87, 0xd2, 0xab, 0x92, 0x39, 0x4e, 0x19, 0x38, 0x4e, 0x0d, 0x72, 0x0c, 0xf4, 0xa4, 0x64, 0x8e,
  1617. 0x59, 0x03, 0xc7, 0xac, 0x99, 0x43, 0xe9, 0x3d, 0xc9, 0x1c, 0xd0, 0xc0, 0x01, 0x65, 0x8e, 0x07,
  1618. 0x60, 0xd1, 0xdc, 0x61, 0x92, 0x59, 0x26, 0x0c, 0x2c, 0x13, 0x39, 0x2c, 0x6a, 0x17, 0x49, 0x66,
  1619. 0x19, 0x37, 0xb0, 0x8c, 0xcb, 0x2c, 0x35, 0x80, 0xf2, 0xfa, 0x44, 0x32, 0xcf, 0x8c, 0x81, 0x67,
  1620. 0x26, 0x8f, 0x47, 0xeb, 0x03, 0xc9, 0x3c, 0x65, 0x03, 0x4f, 0xd9, 0x58, 0x6d, 0x72, 0xb7, 0xe7,
  1621. 0xa4, 0x7a, 0x2d, 0xc8, 0x0c, 0x5b, 0x60, 0xce, 0xd0, 0xd8, 0x39, 0x89, 0xc2, 0x92, 0x29, 0xee,
  1622. 0x82, 0xb2, 0xde, 0xc5, 0x91, 0xe7, 0x4f, 0x1a, 0xe6, 0x4f, 0x1a, 0x8a, 0x44, 0xef, 0xd8, 0xc8,
  1623. 0x1c, 0x67, 0x0c, 0x1c, 0x67, 0x06, 0x97, 0xa1, 0xb7, 0x66, 0x4e, 0xa2, 0x28, 0xc9, 0x14, 0x31,
  1624. 0x38, 0x37, 0xa4, 0xf7, 0x62, 0xa0, 0x7a, 0x4f, 0xa6, 0x7a, 0x8d, 0x17, 0x1f, 0x92, 0xcf, 0x23,
  1625. 0x70, 0x7e, 0x58, 0xf3, 0xc5, 0xe0, 0x74, 0x5d, 0x75, 0x3a, 0xf4, 0x5d, 0x88, 0xe4, 0xa8, 0x4d,
  1626. 0x0b, 0xce, 0xd4, 0x74, 0x31, 0x38, 0xb9, 0x23, 0x3b, 0x19, 0xf5, 0xed, 0x88, 0xe4, 0x2d, 0x00,
  1627. 0x67, 0x73, 0x1b, 0x2f, 0x06, 0x77, 0xab, 0xaa, 0xbb, 0xfc, 0x77, 0x26, 0x99, 0x8b, 0x95, 0xdb,
  1628. 0x00, 0x48, 0x2d, 0xa2, 0x09, 0x60, 0xd7, 0xea, 0xf5, 0xf2, 0x18, 0xfe, 0xa5, 0xba, 0xe5, 0x97,
  1629. 0x2d, 0xfa, 0xcb, 0x8b, 0x72, 0x01, 0xbb, 0xdb, 0xdd, 0x7e, 0x58, 0xfe, 0x1f, 0xff, 0xcf, 0xaa,
  1630. 0x4e, 0xf1, 0xe6, 0x09, 0x39, 0xc0, 0x56, 0xde, 0x00, 0xd3, 0x5a, 0x67, 0xab, 0x04, 0xac, 0x26,
  1631. 0x3f, 0x50, 0x9a, 0xd7, 0x6e, 0x00, 0x90, 0xfd, 0x63, 0x18, 0x38, 0x03, 0x8a, 0xfb, 0xbb, 0x7b,
  1632. 0x4f, 0xb7, 0xef, 0xef, 0xd4, 0x76, 0xb6, 0x1f, 0x94, 0xc7, 0x60, 0x09, 0x4c, 0x3e, 0xf5, 0xeb,
  1633. 0xcf, 0xea, 0xd5, 0xfd, 0x5a, 0xd9, 0x82, 0x93, 0xe0, 0xd4, 0xe3, 0xbd, 0xfa, 0x6e, 0xb9, 0x70,
  1634. 0xed, 0x1e, 0x28, 0xca, 0x8d, 0xa5, 0x19, 0x50, 0xac, 0xd5, 0xfd, 0xed, 0x9d, 0x87, 0xbb, 0x0d,
  1635. 0x1a, 0xa9, 0x64, 0xa0, 0x11, 0x2b, 0x86, 0x17, 0xe5, 0x42, 0xf5, 0x22, 0xb8, 0xd0, 0x8c, 0x3a,
  1636. 0x03, 0x7f, 0xb6, 0x48, 0xc9, 0x79, 0x39, 0x4e, 0xac, 0x9b, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff,
  1637. 0x29, 0x30, 0x51, 0x54, 0x22, 0x25, 0x00, 0x00,
  1638. }