hello.pb.go 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: hello.proto
  3. /*
  4. Package grpc is a generated protocol buffer package.
  5. It is generated from these files:
  6. hello.proto
  7. It has these top-level messages:
  8. BenchmarkMessage
  9. */
  10. package proto
  11. import proto "github.com/golang/protobuf/proto"
  12. import fmt "fmt"
  13. import math "math"
  14. import _ "github.com/gogo/protobuf/gogoproto"
  15. import context "golang.org/x/net/context"
  16. import grpc1 "google.golang.org/grpc"
  17. import binary "encoding/binary"
  18. import io "io"
  19. // Reference imports to suppress errors if they are not otherwise used.
  20. var _ = proto.Marshal
  21. var _ = fmt.Errorf
  22. var _ = math.Inf
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  28. type BenchmarkMessage struct {
  29. Field1 string `protobuf:"bytes,1,opt,name=field1,proto3" json:"field1,omitempty"`
  30. Field9 string `protobuf:"bytes,9,opt,name=field9,proto3" json:"field9,omitempty"`
  31. Field18 string `protobuf:"bytes,18,opt,name=field18,proto3" json:"field18,omitempty"`
  32. Field80 bool `protobuf:"varint,80,opt,name=field80,proto3" json:"field80,omitempty"`
  33. Field81 bool `protobuf:"varint,81,opt,name=field81,proto3" json:"field81,omitempty"`
  34. Field2 int32 `protobuf:"varint,2,opt,name=field2,proto3" json:"field2,omitempty"`
  35. Field3 int32 `protobuf:"varint,3,opt,name=field3,proto3" json:"field3,omitempty"`
  36. Field280 int32 `protobuf:"varint,280,opt,name=field280,proto3" json:"field280,omitempty"`
  37. Field6 int32 `protobuf:"varint,6,opt,name=field6,proto3" json:"field6,omitempty"`
  38. Field22 int64 `protobuf:"varint,22,opt,name=field22,proto3" json:"field22,omitempty"`
  39. Field4 string `protobuf:"bytes,4,opt,name=field4,proto3" json:"field4,omitempty"`
  40. Field5 uint64 `protobuf:"fixed64,5,opt,name=field5,proto3" json:"field5,omitempty"`
  41. Field59 bool `protobuf:"varint,59,opt,name=field59,proto3" json:"field59,omitempty"`
  42. Field7 string `protobuf:"bytes,7,opt,name=field7,proto3" json:"field7,omitempty"`
  43. Field16 int32 `protobuf:"varint,16,opt,name=field16,proto3" json:"field16,omitempty"`
  44. Field130 int32 `protobuf:"varint,130,opt,name=field130,proto3" json:"field130,omitempty"`
  45. Field12 bool `protobuf:"varint,12,opt,name=field12,proto3" json:"field12,omitempty"`
  46. Field17 bool `protobuf:"varint,17,opt,name=field17,proto3" json:"field17,omitempty"`
  47. Field13 bool `protobuf:"varint,13,opt,name=field13,proto3" json:"field13,omitempty"`
  48. Field14 bool `protobuf:"varint,14,opt,name=field14,proto3" json:"field14,omitempty"`
  49. Field104 int32 `protobuf:"varint,104,opt,name=field104,proto3" json:"field104,omitempty"`
  50. Field100 int32 `protobuf:"varint,100,opt,name=field100,proto3" json:"field100,omitempty"`
  51. Field101 int32 `protobuf:"varint,101,opt,name=field101,proto3" json:"field101,omitempty"`
  52. Field102 string `protobuf:"bytes,102,opt,name=field102,proto3" json:"field102,omitempty"`
  53. Field103 string `protobuf:"bytes,103,opt,name=field103,proto3" json:"field103,omitempty"`
  54. Field29 int32 `protobuf:"varint,29,opt,name=field29,proto3" json:"field29,omitempty"`
  55. Field30 bool `protobuf:"varint,30,opt,name=field30,proto3" json:"field30,omitempty"`
  56. Field60 int32 `protobuf:"varint,60,opt,name=field60,proto3" json:"field60,omitempty"`
  57. Field271 int32 `protobuf:"varint,271,opt,name=field271,proto3" json:"field271,omitempty"`
  58. Field272 int32 `protobuf:"varint,272,opt,name=field272,proto3" json:"field272,omitempty"`
  59. Field150 int32 `protobuf:"varint,150,opt,name=field150,proto3" json:"field150,omitempty"`
  60. Field23 int32 `protobuf:"varint,23,opt,name=field23,proto3" json:"field23,omitempty"`
  61. Field24 bool `protobuf:"varint,24,opt,name=field24,proto3" json:"field24,omitempty"`
  62. Field25 int32 `protobuf:"varint,25,opt,name=field25,proto3" json:"field25,omitempty"`
  63. Field78 bool `protobuf:"varint,78,opt,name=field78,proto3" json:"field78,omitempty"`
  64. Field67 int32 `protobuf:"varint,67,opt,name=field67,proto3" json:"field67,omitempty"`
  65. Field68 int32 `protobuf:"varint,68,opt,name=field68,proto3" json:"field68,omitempty"`
  66. Field128 int32 `protobuf:"varint,128,opt,name=field128,proto3" json:"field128,omitempty"`
  67. Field129 string `protobuf:"bytes,129,opt,name=field129,proto3" json:"field129,omitempty"`
  68. Field131 int32 `protobuf:"varint,131,opt,name=field131,proto3" json:"field131,omitempty"`
  69. }
  70. func (m *BenchmarkMessage) Reset() { *m = BenchmarkMessage{} }
  71. func (m *BenchmarkMessage) String() string { return proto.CompactTextString(m) }
  72. func (*BenchmarkMessage) ProtoMessage() {}
  73. func (*BenchmarkMessage) Descriptor() ([]byte, []int) { return fileDescriptorHello, []int{0} }
  74. func init() {
  75. proto.RegisterType((*BenchmarkMessage)(nil), "grpc.BenchmarkMessage")
  76. }
  77. // Reference imports to suppress errors if they are not otherwise used.
  78. var _ context.Context
  79. var _ grpc1.ClientConn
  80. // This is a compile-time assertion to ensure that this generated file
  81. // is compatible with the grpc package it is being compiled against.
  82. const _ = grpc1.SupportPackageIsVersion4
  83. // Client API for Hello service
  84. type HelloClient interface {
  85. // Sends a greeting
  86. Say(ctx context.Context, in *BenchmarkMessage, opts ...grpc1.CallOption) (*BenchmarkMessage, error)
  87. }
  88. type helloClient struct {
  89. cc *grpc1.ClientConn
  90. }
  91. func NewHelloClient(cc *grpc1.ClientConn) HelloClient {
  92. return &helloClient{cc}
  93. }
  94. func (c *helloClient) Say(ctx context.Context, in *BenchmarkMessage, opts ...grpc1.CallOption) (*BenchmarkMessage, error) {
  95. out := new(BenchmarkMessage)
  96. err := grpc1.Invoke(ctx, "/grpc.Hello/Say", in, out, c.cc, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. // Server API for Hello service
  103. type HelloServer interface {
  104. // Sends a greeting
  105. Say(context.Context, *BenchmarkMessage) (*BenchmarkMessage, error)
  106. }
  107. func RegisterHelloServer(s *grpc1.Server, srv HelloServer) {
  108. s.RegisterService(&_Hello_serviceDesc, srv)
  109. }
  110. func _Hello_Say_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) {
  111. in := new(BenchmarkMessage)
  112. if err := dec(in); err != nil {
  113. return nil, err
  114. }
  115. if interceptor == nil {
  116. return srv.(HelloServer).Say(ctx, in)
  117. }
  118. info := &grpc1.UnaryServerInfo{
  119. Server: srv,
  120. FullMethod: "/grpc.Hello/Say",
  121. }
  122. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  123. return srv.(HelloServer).Say(ctx, req.(*BenchmarkMessage))
  124. }
  125. return interceptor(ctx, in, info, handler)
  126. }
  127. var _Hello_serviceDesc = grpc1.ServiceDesc{
  128. ServiceName: "grpc.Hello",
  129. HandlerType: (*HelloServer)(nil),
  130. Methods: []grpc1.MethodDesc{
  131. {
  132. MethodName: "Say",
  133. Handler: _Hello_Say_Handler,
  134. },
  135. },
  136. Streams: []grpc1.StreamDesc{},
  137. Metadata: "hello.proto",
  138. }
  139. func (m *BenchmarkMessage) Marshal() (dAtA []byte, err error) {
  140. size := m.Size()
  141. dAtA = make([]byte, size)
  142. n, err := m.MarshalTo(dAtA)
  143. if err != nil {
  144. return nil, err
  145. }
  146. return dAtA[:n], nil
  147. }
  148. func (m *BenchmarkMessage) MarshalTo(dAtA []byte) (int, error) {
  149. var i int
  150. _ = i
  151. var l int
  152. _ = l
  153. if len(m.Field1) > 0 {
  154. dAtA[i] = 0xa
  155. i++
  156. i = encodeVarintHello(dAtA, i, uint64(len(m.Field1)))
  157. i += copy(dAtA[i:], m.Field1)
  158. }
  159. if m.Field2 != 0 {
  160. dAtA[i] = 0x10
  161. i++
  162. i = encodeVarintHello(dAtA, i, uint64(m.Field2))
  163. }
  164. if m.Field3 != 0 {
  165. dAtA[i] = 0x18
  166. i++
  167. i = encodeVarintHello(dAtA, i, uint64(m.Field3))
  168. }
  169. if len(m.Field4) > 0 {
  170. dAtA[i] = 0x22
  171. i++
  172. i = encodeVarintHello(dAtA, i, uint64(len(m.Field4)))
  173. i += copy(dAtA[i:], m.Field4)
  174. }
  175. if m.Field5 != 0 {
  176. dAtA[i] = 0x29
  177. i++
  178. binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Field5))
  179. i += 8
  180. }
  181. if m.Field6 != 0 {
  182. dAtA[i] = 0x30
  183. i++
  184. i = encodeVarintHello(dAtA, i, uint64(m.Field6))
  185. }
  186. if len(m.Field7) > 0 {
  187. dAtA[i] = 0x3a
  188. i++
  189. i = encodeVarintHello(dAtA, i, uint64(len(m.Field7)))
  190. i += copy(dAtA[i:], m.Field7)
  191. }
  192. if len(m.Field9) > 0 {
  193. dAtA[i] = 0x4a
  194. i++
  195. i = encodeVarintHello(dAtA, i, uint64(len(m.Field9)))
  196. i += copy(dAtA[i:], m.Field9)
  197. }
  198. if m.Field12 {
  199. dAtA[i] = 0x60
  200. i++
  201. if m.Field12 {
  202. dAtA[i] = 1
  203. } else {
  204. dAtA[i] = 0
  205. }
  206. i++
  207. }
  208. if m.Field13 {
  209. dAtA[i] = 0x68
  210. i++
  211. if m.Field13 {
  212. dAtA[i] = 1
  213. } else {
  214. dAtA[i] = 0
  215. }
  216. i++
  217. }
  218. if m.Field14 {
  219. dAtA[i] = 0x70
  220. i++
  221. if m.Field14 {
  222. dAtA[i] = 1
  223. } else {
  224. dAtA[i] = 0
  225. }
  226. i++
  227. }
  228. if m.Field16 != 0 {
  229. dAtA[i] = 0x80
  230. i++
  231. dAtA[i] = 0x1
  232. i++
  233. i = encodeVarintHello(dAtA, i, uint64(m.Field16))
  234. }
  235. if m.Field17 {
  236. dAtA[i] = 0x88
  237. i++
  238. dAtA[i] = 0x1
  239. i++
  240. if m.Field17 {
  241. dAtA[i] = 1
  242. } else {
  243. dAtA[i] = 0
  244. }
  245. i++
  246. }
  247. if len(m.Field18) > 0 {
  248. dAtA[i] = 0x92
  249. i++
  250. dAtA[i] = 0x1
  251. i++
  252. i = encodeVarintHello(dAtA, i, uint64(len(m.Field18)))
  253. i += copy(dAtA[i:], m.Field18)
  254. }
  255. if m.Field22 != 0 {
  256. dAtA[i] = 0xb0
  257. i++
  258. dAtA[i] = 0x1
  259. i++
  260. i = encodeVarintHello(dAtA, i, uint64(m.Field22))
  261. }
  262. if m.Field23 != 0 {
  263. dAtA[i] = 0xb8
  264. i++
  265. dAtA[i] = 0x1
  266. i++
  267. i = encodeVarintHello(dAtA, i, uint64(m.Field23))
  268. }
  269. if m.Field24 {
  270. dAtA[i] = 0xc0
  271. i++
  272. dAtA[i] = 0x1
  273. i++
  274. if m.Field24 {
  275. dAtA[i] = 1
  276. } else {
  277. dAtA[i] = 0
  278. }
  279. i++
  280. }
  281. if m.Field25 != 0 {
  282. dAtA[i] = 0xc8
  283. i++
  284. dAtA[i] = 0x1
  285. i++
  286. i = encodeVarintHello(dAtA, i, uint64(m.Field25))
  287. }
  288. if m.Field29 != 0 {
  289. dAtA[i] = 0xe8
  290. i++
  291. dAtA[i] = 0x1
  292. i++
  293. i = encodeVarintHello(dAtA, i, uint64(m.Field29))
  294. }
  295. if m.Field30 {
  296. dAtA[i] = 0xf0
  297. i++
  298. dAtA[i] = 0x1
  299. i++
  300. if m.Field30 {
  301. dAtA[i] = 1
  302. } else {
  303. dAtA[i] = 0
  304. }
  305. i++
  306. }
  307. if m.Field59 {
  308. dAtA[i] = 0xd8
  309. i++
  310. dAtA[i] = 0x3
  311. i++
  312. if m.Field59 {
  313. dAtA[i] = 1
  314. } else {
  315. dAtA[i] = 0
  316. }
  317. i++
  318. }
  319. if m.Field60 != 0 {
  320. dAtA[i] = 0xe0
  321. i++
  322. dAtA[i] = 0x3
  323. i++
  324. i = encodeVarintHello(dAtA, i, uint64(m.Field60))
  325. }
  326. if m.Field67 != 0 {
  327. dAtA[i] = 0x98
  328. i++
  329. dAtA[i] = 0x4
  330. i++
  331. i = encodeVarintHello(dAtA, i, uint64(m.Field67))
  332. }
  333. if m.Field68 != 0 {
  334. dAtA[i] = 0xa0
  335. i++
  336. dAtA[i] = 0x4
  337. i++
  338. i = encodeVarintHello(dAtA, i, uint64(m.Field68))
  339. }
  340. if m.Field78 {
  341. dAtA[i] = 0xf0
  342. i++
  343. dAtA[i] = 0x4
  344. i++
  345. if m.Field78 {
  346. dAtA[i] = 1
  347. } else {
  348. dAtA[i] = 0
  349. }
  350. i++
  351. }
  352. if m.Field80 {
  353. dAtA[i] = 0x80
  354. i++
  355. dAtA[i] = 0x5
  356. i++
  357. if m.Field80 {
  358. dAtA[i] = 1
  359. } else {
  360. dAtA[i] = 0
  361. }
  362. i++
  363. }
  364. if m.Field81 {
  365. dAtA[i] = 0x88
  366. i++
  367. dAtA[i] = 0x5
  368. i++
  369. if m.Field81 {
  370. dAtA[i] = 1
  371. } else {
  372. dAtA[i] = 0
  373. }
  374. i++
  375. }
  376. if m.Field100 != 0 {
  377. dAtA[i] = 0xa0
  378. i++
  379. dAtA[i] = 0x6
  380. i++
  381. i = encodeVarintHello(dAtA, i, uint64(m.Field100))
  382. }
  383. if m.Field101 != 0 {
  384. dAtA[i] = 0xa8
  385. i++
  386. dAtA[i] = 0x6
  387. i++
  388. i = encodeVarintHello(dAtA, i, uint64(m.Field101))
  389. }
  390. if len(m.Field102) > 0 {
  391. dAtA[i] = 0xb2
  392. i++
  393. dAtA[i] = 0x6
  394. i++
  395. i = encodeVarintHello(dAtA, i, uint64(len(m.Field102)))
  396. i += copy(dAtA[i:], m.Field102)
  397. }
  398. if len(m.Field103) > 0 {
  399. dAtA[i] = 0xba
  400. i++
  401. dAtA[i] = 0x6
  402. i++
  403. i = encodeVarintHello(dAtA, i, uint64(len(m.Field103)))
  404. i += copy(dAtA[i:], m.Field103)
  405. }
  406. if m.Field104 != 0 {
  407. dAtA[i] = 0xc0
  408. i++
  409. dAtA[i] = 0x6
  410. i++
  411. i = encodeVarintHello(dAtA, i, uint64(m.Field104))
  412. }
  413. if m.Field128 != 0 {
  414. dAtA[i] = 0x80
  415. i++
  416. dAtA[i] = 0x8
  417. i++
  418. i = encodeVarintHello(dAtA, i, uint64(m.Field128))
  419. }
  420. if len(m.Field129) > 0 {
  421. dAtA[i] = 0x8a
  422. i++
  423. dAtA[i] = 0x8
  424. i++
  425. i = encodeVarintHello(dAtA, i, uint64(len(m.Field129)))
  426. i += copy(dAtA[i:], m.Field129)
  427. }
  428. if m.Field130 != 0 {
  429. dAtA[i] = 0x90
  430. i++
  431. dAtA[i] = 0x8
  432. i++
  433. i = encodeVarintHello(dAtA, i, uint64(m.Field130))
  434. }
  435. if m.Field131 != 0 {
  436. dAtA[i] = 0x98
  437. i++
  438. dAtA[i] = 0x8
  439. i++
  440. i = encodeVarintHello(dAtA, i, uint64(m.Field131))
  441. }
  442. if m.Field150 != 0 {
  443. dAtA[i] = 0xb0
  444. i++
  445. dAtA[i] = 0x9
  446. i++
  447. i = encodeVarintHello(dAtA, i, uint64(m.Field150))
  448. }
  449. if m.Field271 != 0 {
  450. dAtA[i] = 0xf8
  451. i++
  452. dAtA[i] = 0x10
  453. i++
  454. i = encodeVarintHello(dAtA, i, uint64(m.Field271))
  455. }
  456. if m.Field272 != 0 {
  457. dAtA[i] = 0x80
  458. i++
  459. dAtA[i] = 0x11
  460. i++
  461. i = encodeVarintHello(dAtA, i, uint64(m.Field272))
  462. }
  463. if m.Field280 != 0 {
  464. dAtA[i] = 0xc0
  465. i++
  466. dAtA[i] = 0x11
  467. i++
  468. i = encodeVarintHello(dAtA, i, uint64(m.Field280))
  469. }
  470. return i, nil
  471. }
  472. func encodeVarintHello(dAtA []byte, offset int, v uint64) int {
  473. for v >= 1<<7 {
  474. dAtA[offset] = uint8(v&0x7f | 0x80)
  475. v >>= 7
  476. offset++
  477. }
  478. dAtA[offset] = uint8(v)
  479. return offset + 1
  480. }
  481. func (m *BenchmarkMessage) Size() (n int) {
  482. var l int
  483. _ = l
  484. l = len(m.Field1)
  485. if l > 0 {
  486. n += 1 + l + sovHello(uint64(l))
  487. }
  488. if m.Field2 != 0 {
  489. n += 1 + sovHello(uint64(m.Field2))
  490. }
  491. if m.Field3 != 0 {
  492. n += 1 + sovHello(uint64(m.Field3))
  493. }
  494. l = len(m.Field4)
  495. if l > 0 {
  496. n += 1 + l + sovHello(uint64(l))
  497. }
  498. if m.Field5 != 0 {
  499. n += 9
  500. }
  501. if m.Field6 != 0 {
  502. n += 1 + sovHello(uint64(m.Field6))
  503. }
  504. l = len(m.Field7)
  505. if l > 0 {
  506. n += 1 + l + sovHello(uint64(l))
  507. }
  508. l = len(m.Field9)
  509. if l > 0 {
  510. n += 1 + l + sovHello(uint64(l))
  511. }
  512. if m.Field12 {
  513. n += 2
  514. }
  515. if m.Field13 {
  516. n += 2
  517. }
  518. if m.Field14 {
  519. n += 2
  520. }
  521. if m.Field16 != 0 {
  522. n += 2 + sovHello(uint64(m.Field16))
  523. }
  524. if m.Field17 {
  525. n += 3
  526. }
  527. l = len(m.Field18)
  528. if l > 0 {
  529. n += 2 + l + sovHello(uint64(l))
  530. }
  531. if m.Field22 != 0 {
  532. n += 2 + sovHello(uint64(m.Field22))
  533. }
  534. if m.Field23 != 0 {
  535. n += 2 + sovHello(uint64(m.Field23))
  536. }
  537. if m.Field24 {
  538. n += 3
  539. }
  540. if m.Field25 != 0 {
  541. n += 2 + sovHello(uint64(m.Field25))
  542. }
  543. if m.Field29 != 0 {
  544. n += 2 + sovHello(uint64(m.Field29))
  545. }
  546. if m.Field30 {
  547. n += 3
  548. }
  549. if m.Field59 {
  550. n += 3
  551. }
  552. if m.Field60 != 0 {
  553. n += 2 + sovHello(uint64(m.Field60))
  554. }
  555. if m.Field67 != 0 {
  556. n += 2 + sovHello(uint64(m.Field67))
  557. }
  558. if m.Field68 != 0 {
  559. n += 2 + sovHello(uint64(m.Field68))
  560. }
  561. if m.Field78 {
  562. n += 3
  563. }
  564. if m.Field80 {
  565. n += 3
  566. }
  567. if m.Field81 {
  568. n += 3
  569. }
  570. if m.Field100 != 0 {
  571. n += 2 + sovHello(uint64(m.Field100))
  572. }
  573. if m.Field101 != 0 {
  574. n += 2 + sovHello(uint64(m.Field101))
  575. }
  576. l = len(m.Field102)
  577. if l > 0 {
  578. n += 2 + l + sovHello(uint64(l))
  579. }
  580. l = len(m.Field103)
  581. if l > 0 {
  582. n += 2 + l + sovHello(uint64(l))
  583. }
  584. if m.Field104 != 0 {
  585. n += 2 + sovHello(uint64(m.Field104))
  586. }
  587. if m.Field128 != 0 {
  588. n += 2 + sovHello(uint64(m.Field128))
  589. }
  590. l = len(m.Field129)
  591. if l > 0 {
  592. n += 2 + l + sovHello(uint64(l))
  593. }
  594. if m.Field130 != 0 {
  595. n += 2 + sovHello(uint64(m.Field130))
  596. }
  597. if m.Field131 != 0 {
  598. n += 2 + sovHello(uint64(m.Field131))
  599. }
  600. if m.Field150 != 0 {
  601. n += 2 + sovHello(uint64(m.Field150))
  602. }
  603. if m.Field271 != 0 {
  604. n += 2 + sovHello(uint64(m.Field271))
  605. }
  606. if m.Field272 != 0 {
  607. n += 2 + sovHello(uint64(m.Field272))
  608. }
  609. if m.Field280 != 0 {
  610. n += 2 + sovHello(uint64(m.Field280))
  611. }
  612. return n
  613. }
  614. func sovHello(x uint64) (n int) {
  615. for {
  616. n++
  617. x >>= 7
  618. if x == 0 {
  619. break
  620. }
  621. }
  622. return n
  623. }
  624. func sozHello(x uint64) (n int) {
  625. return sovHello(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  626. }
  627. func (m *BenchmarkMessage) Unmarshal(dAtA []byte) error {
  628. l := len(dAtA)
  629. iNdEx := 0
  630. for iNdEx < l {
  631. preIndex := iNdEx
  632. var wire uint64
  633. for shift := uint(0); ; shift += 7 {
  634. if shift >= 64 {
  635. return ErrIntOverflowHello
  636. }
  637. if iNdEx >= l {
  638. return io.ErrUnexpectedEOF
  639. }
  640. b := dAtA[iNdEx]
  641. iNdEx++
  642. wire |= (uint64(b) & 0x7F) << shift
  643. if b < 0x80 {
  644. break
  645. }
  646. }
  647. fieldNum := int32(wire >> 3)
  648. wireType := int(wire & 0x7)
  649. if wireType == 4 {
  650. return fmt.Errorf("proto: BenchmarkMessage: wiretype end group for non-group")
  651. }
  652. if fieldNum <= 0 {
  653. return fmt.Errorf("proto: BenchmarkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  654. }
  655. switch fieldNum {
  656. case 1:
  657. if wireType != 2 {
  658. return fmt.Errorf("proto: wrong wireType = %d for field Field1", wireType)
  659. }
  660. var stringLen uint64
  661. for shift := uint(0); ; shift += 7 {
  662. if shift >= 64 {
  663. return ErrIntOverflowHello
  664. }
  665. if iNdEx >= l {
  666. return io.ErrUnexpectedEOF
  667. }
  668. b := dAtA[iNdEx]
  669. iNdEx++
  670. stringLen |= (uint64(b) & 0x7F) << shift
  671. if b < 0x80 {
  672. break
  673. }
  674. }
  675. intStringLen := int(stringLen)
  676. if intStringLen < 0 {
  677. return ErrInvalidLengthHello
  678. }
  679. postIndex := iNdEx + intStringLen
  680. if postIndex > l {
  681. return io.ErrUnexpectedEOF
  682. }
  683. m.Field1 = string(dAtA[iNdEx:postIndex])
  684. iNdEx = postIndex
  685. case 2:
  686. if wireType != 0 {
  687. return fmt.Errorf("proto: wrong wireType = %d for field Field2", wireType)
  688. }
  689. m.Field2 = 0
  690. for shift := uint(0); ; shift += 7 {
  691. if shift >= 64 {
  692. return ErrIntOverflowHello
  693. }
  694. if iNdEx >= l {
  695. return io.ErrUnexpectedEOF
  696. }
  697. b := dAtA[iNdEx]
  698. iNdEx++
  699. m.Field2 |= (int32(b) & 0x7F) << shift
  700. if b < 0x80 {
  701. break
  702. }
  703. }
  704. case 3:
  705. if wireType != 0 {
  706. return fmt.Errorf("proto: wrong wireType = %d for field Field3", wireType)
  707. }
  708. m.Field3 = 0
  709. for shift := uint(0); ; shift += 7 {
  710. if shift >= 64 {
  711. return ErrIntOverflowHello
  712. }
  713. if iNdEx >= l {
  714. return io.ErrUnexpectedEOF
  715. }
  716. b := dAtA[iNdEx]
  717. iNdEx++
  718. m.Field3 |= (int32(b) & 0x7F) << shift
  719. if b < 0x80 {
  720. break
  721. }
  722. }
  723. case 4:
  724. if wireType != 2 {
  725. return fmt.Errorf("proto: wrong wireType = %d for field Field4", wireType)
  726. }
  727. var stringLen uint64
  728. for shift := uint(0); ; shift += 7 {
  729. if shift >= 64 {
  730. return ErrIntOverflowHello
  731. }
  732. if iNdEx >= l {
  733. return io.ErrUnexpectedEOF
  734. }
  735. b := dAtA[iNdEx]
  736. iNdEx++
  737. stringLen |= (uint64(b) & 0x7F) << shift
  738. if b < 0x80 {
  739. break
  740. }
  741. }
  742. intStringLen := int(stringLen)
  743. if intStringLen < 0 {
  744. return ErrInvalidLengthHello
  745. }
  746. postIndex := iNdEx + intStringLen
  747. if postIndex > l {
  748. return io.ErrUnexpectedEOF
  749. }
  750. m.Field4 = string(dAtA[iNdEx:postIndex])
  751. iNdEx = postIndex
  752. case 5:
  753. if wireType != 1 {
  754. return fmt.Errorf("proto: wrong wireType = %d for field Field5", wireType)
  755. }
  756. m.Field5 = 0
  757. if (iNdEx + 8) > l {
  758. return io.ErrUnexpectedEOF
  759. }
  760. m.Field5 = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  761. iNdEx += 8
  762. case 6:
  763. if wireType != 0 {
  764. return fmt.Errorf("proto: wrong wireType = %d for field Field6", wireType)
  765. }
  766. m.Field6 = 0
  767. for shift := uint(0); ; shift += 7 {
  768. if shift >= 64 {
  769. return ErrIntOverflowHello
  770. }
  771. if iNdEx >= l {
  772. return io.ErrUnexpectedEOF
  773. }
  774. b := dAtA[iNdEx]
  775. iNdEx++
  776. m.Field6 |= (int32(b) & 0x7F) << shift
  777. if b < 0x80 {
  778. break
  779. }
  780. }
  781. case 7:
  782. if wireType != 2 {
  783. return fmt.Errorf("proto: wrong wireType = %d for field Field7", wireType)
  784. }
  785. var stringLen uint64
  786. for shift := uint(0); ; shift += 7 {
  787. if shift >= 64 {
  788. return ErrIntOverflowHello
  789. }
  790. if iNdEx >= l {
  791. return io.ErrUnexpectedEOF
  792. }
  793. b := dAtA[iNdEx]
  794. iNdEx++
  795. stringLen |= (uint64(b) & 0x7F) << shift
  796. if b < 0x80 {
  797. break
  798. }
  799. }
  800. intStringLen := int(stringLen)
  801. if intStringLen < 0 {
  802. return ErrInvalidLengthHello
  803. }
  804. postIndex := iNdEx + intStringLen
  805. if postIndex > l {
  806. return io.ErrUnexpectedEOF
  807. }
  808. m.Field7 = string(dAtA[iNdEx:postIndex])
  809. iNdEx = postIndex
  810. case 9:
  811. if wireType != 2 {
  812. return fmt.Errorf("proto: wrong wireType = %d for field Field9", wireType)
  813. }
  814. var stringLen uint64
  815. for shift := uint(0); ; shift += 7 {
  816. if shift >= 64 {
  817. return ErrIntOverflowHello
  818. }
  819. if iNdEx >= l {
  820. return io.ErrUnexpectedEOF
  821. }
  822. b := dAtA[iNdEx]
  823. iNdEx++
  824. stringLen |= (uint64(b) & 0x7F) << shift
  825. if b < 0x80 {
  826. break
  827. }
  828. }
  829. intStringLen := int(stringLen)
  830. if intStringLen < 0 {
  831. return ErrInvalidLengthHello
  832. }
  833. postIndex := iNdEx + intStringLen
  834. if postIndex > l {
  835. return io.ErrUnexpectedEOF
  836. }
  837. m.Field9 = string(dAtA[iNdEx:postIndex])
  838. iNdEx = postIndex
  839. case 12:
  840. if wireType != 0 {
  841. return fmt.Errorf("proto: wrong wireType = %d for field Field12", wireType)
  842. }
  843. var v int
  844. for shift := uint(0); ; shift += 7 {
  845. if shift >= 64 {
  846. return ErrIntOverflowHello
  847. }
  848. if iNdEx >= l {
  849. return io.ErrUnexpectedEOF
  850. }
  851. b := dAtA[iNdEx]
  852. iNdEx++
  853. v |= (int(b) & 0x7F) << shift
  854. if b < 0x80 {
  855. break
  856. }
  857. }
  858. m.Field12 = bool(v != 0)
  859. case 13:
  860. if wireType != 0 {
  861. return fmt.Errorf("proto: wrong wireType = %d for field Field13", wireType)
  862. }
  863. var v int
  864. for shift := uint(0); ; shift += 7 {
  865. if shift >= 64 {
  866. return ErrIntOverflowHello
  867. }
  868. if iNdEx >= l {
  869. return io.ErrUnexpectedEOF
  870. }
  871. b := dAtA[iNdEx]
  872. iNdEx++
  873. v |= (int(b) & 0x7F) << shift
  874. if b < 0x80 {
  875. break
  876. }
  877. }
  878. m.Field13 = bool(v != 0)
  879. case 14:
  880. if wireType != 0 {
  881. return fmt.Errorf("proto: wrong wireType = %d for field Field14", wireType)
  882. }
  883. var v int
  884. for shift := uint(0); ; shift += 7 {
  885. if shift >= 64 {
  886. return ErrIntOverflowHello
  887. }
  888. if iNdEx >= l {
  889. return io.ErrUnexpectedEOF
  890. }
  891. b := dAtA[iNdEx]
  892. iNdEx++
  893. v |= (int(b) & 0x7F) << shift
  894. if b < 0x80 {
  895. break
  896. }
  897. }
  898. m.Field14 = bool(v != 0)
  899. case 16:
  900. if wireType != 0 {
  901. return fmt.Errorf("proto: wrong wireType = %d for field Field16", wireType)
  902. }
  903. m.Field16 = 0
  904. for shift := uint(0); ; shift += 7 {
  905. if shift >= 64 {
  906. return ErrIntOverflowHello
  907. }
  908. if iNdEx >= l {
  909. return io.ErrUnexpectedEOF
  910. }
  911. b := dAtA[iNdEx]
  912. iNdEx++
  913. m.Field16 |= (int32(b) & 0x7F) << shift
  914. if b < 0x80 {
  915. break
  916. }
  917. }
  918. case 17:
  919. if wireType != 0 {
  920. return fmt.Errorf("proto: wrong wireType = %d for field Field17", wireType)
  921. }
  922. var v int
  923. for shift := uint(0); ; shift += 7 {
  924. if shift >= 64 {
  925. return ErrIntOverflowHello
  926. }
  927. if iNdEx >= l {
  928. return io.ErrUnexpectedEOF
  929. }
  930. b := dAtA[iNdEx]
  931. iNdEx++
  932. v |= (int(b) & 0x7F) << shift
  933. if b < 0x80 {
  934. break
  935. }
  936. }
  937. m.Field17 = bool(v != 0)
  938. case 18:
  939. if wireType != 2 {
  940. return fmt.Errorf("proto: wrong wireType = %d for field Field18", wireType)
  941. }
  942. var stringLen uint64
  943. for shift := uint(0); ; shift += 7 {
  944. if shift >= 64 {
  945. return ErrIntOverflowHello
  946. }
  947. if iNdEx >= l {
  948. return io.ErrUnexpectedEOF
  949. }
  950. b := dAtA[iNdEx]
  951. iNdEx++
  952. stringLen |= (uint64(b) & 0x7F) << shift
  953. if b < 0x80 {
  954. break
  955. }
  956. }
  957. intStringLen := int(stringLen)
  958. if intStringLen < 0 {
  959. return ErrInvalidLengthHello
  960. }
  961. postIndex := iNdEx + intStringLen
  962. if postIndex > l {
  963. return io.ErrUnexpectedEOF
  964. }
  965. m.Field18 = string(dAtA[iNdEx:postIndex])
  966. iNdEx = postIndex
  967. case 22:
  968. if wireType != 0 {
  969. return fmt.Errorf("proto: wrong wireType = %d for field Field22", wireType)
  970. }
  971. m.Field22 = 0
  972. for shift := uint(0); ; shift += 7 {
  973. if shift >= 64 {
  974. return ErrIntOverflowHello
  975. }
  976. if iNdEx >= l {
  977. return io.ErrUnexpectedEOF
  978. }
  979. b := dAtA[iNdEx]
  980. iNdEx++
  981. m.Field22 |= (int64(b) & 0x7F) << shift
  982. if b < 0x80 {
  983. break
  984. }
  985. }
  986. case 23:
  987. if wireType != 0 {
  988. return fmt.Errorf("proto: wrong wireType = %d for field Field23", wireType)
  989. }
  990. m.Field23 = 0
  991. for shift := uint(0); ; shift += 7 {
  992. if shift >= 64 {
  993. return ErrIntOverflowHello
  994. }
  995. if iNdEx >= l {
  996. return io.ErrUnexpectedEOF
  997. }
  998. b := dAtA[iNdEx]
  999. iNdEx++
  1000. m.Field23 |= (int32(b) & 0x7F) << shift
  1001. if b < 0x80 {
  1002. break
  1003. }
  1004. }
  1005. case 24:
  1006. if wireType != 0 {
  1007. return fmt.Errorf("proto: wrong wireType = %d for field Field24", wireType)
  1008. }
  1009. var v int
  1010. for shift := uint(0); ; shift += 7 {
  1011. if shift >= 64 {
  1012. return ErrIntOverflowHello
  1013. }
  1014. if iNdEx >= l {
  1015. return io.ErrUnexpectedEOF
  1016. }
  1017. b := dAtA[iNdEx]
  1018. iNdEx++
  1019. v |= (int(b) & 0x7F) << shift
  1020. if b < 0x80 {
  1021. break
  1022. }
  1023. }
  1024. m.Field24 = bool(v != 0)
  1025. case 25:
  1026. if wireType != 0 {
  1027. return fmt.Errorf("proto: wrong wireType = %d for field Field25", wireType)
  1028. }
  1029. m.Field25 = 0
  1030. for shift := uint(0); ; shift += 7 {
  1031. if shift >= 64 {
  1032. return ErrIntOverflowHello
  1033. }
  1034. if iNdEx >= l {
  1035. return io.ErrUnexpectedEOF
  1036. }
  1037. b := dAtA[iNdEx]
  1038. iNdEx++
  1039. m.Field25 |= (int32(b) & 0x7F) << shift
  1040. if b < 0x80 {
  1041. break
  1042. }
  1043. }
  1044. case 29:
  1045. if wireType != 0 {
  1046. return fmt.Errorf("proto: wrong wireType = %d for field Field29", wireType)
  1047. }
  1048. m.Field29 = 0
  1049. for shift := uint(0); ; shift += 7 {
  1050. if shift >= 64 {
  1051. return ErrIntOverflowHello
  1052. }
  1053. if iNdEx >= l {
  1054. return io.ErrUnexpectedEOF
  1055. }
  1056. b := dAtA[iNdEx]
  1057. iNdEx++
  1058. m.Field29 |= (int32(b) & 0x7F) << shift
  1059. if b < 0x80 {
  1060. break
  1061. }
  1062. }
  1063. case 30:
  1064. if wireType != 0 {
  1065. return fmt.Errorf("proto: wrong wireType = %d for field Field30", wireType)
  1066. }
  1067. var v int
  1068. for shift := uint(0); ; shift += 7 {
  1069. if shift >= 64 {
  1070. return ErrIntOverflowHello
  1071. }
  1072. if iNdEx >= l {
  1073. return io.ErrUnexpectedEOF
  1074. }
  1075. b := dAtA[iNdEx]
  1076. iNdEx++
  1077. v |= (int(b) & 0x7F) << shift
  1078. if b < 0x80 {
  1079. break
  1080. }
  1081. }
  1082. m.Field30 = bool(v != 0)
  1083. case 59:
  1084. if wireType != 0 {
  1085. return fmt.Errorf("proto: wrong wireType = %d for field Field59", wireType)
  1086. }
  1087. var v int
  1088. for shift := uint(0); ; shift += 7 {
  1089. if shift >= 64 {
  1090. return ErrIntOverflowHello
  1091. }
  1092. if iNdEx >= l {
  1093. return io.ErrUnexpectedEOF
  1094. }
  1095. b := dAtA[iNdEx]
  1096. iNdEx++
  1097. v |= (int(b) & 0x7F) << shift
  1098. if b < 0x80 {
  1099. break
  1100. }
  1101. }
  1102. m.Field59 = bool(v != 0)
  1103. case 60:
  1104. if wireType != 0 {
  1105. return fmt.Errorf("proto: wrong wireType = %d for field Field60", wireType)
  1106. }
  1107. m.Field60 = 0
  1108. for shift := uint(0); ; shift += 7 {
  1109. if shift >= 64 {
  1110. return ErrIntOverflowHello
  1111. }
  1112. if iNdEx >= l {
  1113. return io.ErrUnexpectedEOF
  1114. }
  1115. b := dAtA[iNdEx]
  1116. iNdEx++
  1117. m.Field60 |= (int32(b) & 0x7F) << shift
  1118. if b < 0x80 {
  1119. break
  1120. }
  1121. }
  1122. case 67:
  1123. if wireType != 0 {
  1124. return fmt.Errorf("proto: wrong wireType = %d for field Field67", wireType)
  1125. }
  1126. m.Field67 = 0
  1127. for shift := uint(0); ; shift += 7 {
  1128. if shift >= 64 {
  1129. return ErrIntOverflowHello
  1130. }
  1131. if iNdEx >= l {
  1132. return io.ErrUnexpectedEOF
  1133. }
  1134. b := dAtA[iNdEx]
  1135. iNdEx++
  1136. m.Field67 |= (int32(b) & 0x7F) << shift
  1137. if b < 0x80 {
  1138. break
  1139. }
  1140. }
  1141. case 68:
  1142. if wireType != 0 {
  1143. return fmt.Errorf("proto: wrong wireType = %d for field Field68", wireType)
  1144. }
  1145. m.Field68 = 0
  1146. for shift := uint(0); ; shift += 7 {
  1147. if shift >= 64 {
  1148. return ErrIntOverflowHello
  1149. }
  1150. if iNdEx >= l {
  1151. return io.ErrUnexpectedEOF
  1152. }
  1153. b := dAtA[iNdEx]
  1154. iNdEx++
  1155. m.Field68 |= (int32(b) & 0x7F) << shift
  1156. if b < 0x80 {
  1157. break
  1158. }
  1159. }
  1160. case 78:
  1161. if wireType != 0 {
  1162. return fmt.Errorf("proto: wrong wireType = %d for field Field78", wireType)
  1163. }
  1164. var v int
  1165. for shift := uint(0); ; shift += 7 {
  1166. if shift >= 64 {
  1167. return ErrIntOverflowHello
  1168. }
  1169. if iNdEx >= l {
  1170. return io.ErrUnexpectedEOF
  1171. }
  1172. b := dAtA[iNdEx]
  1173. iNdEx++
  1174. v |= (int(b) & 0x7F) << shift
  1175. if b < 0x80 {
  1176. break
  1177. }
  1178. }
  1179. m.Field78 = bool(v != 0)
  1180. case 80:
  1181. if wireType != 0 {
  1182. return fmt.Errorf("proto: wrong wireType = %d for field Field80", wireType)
  1183. }
  1184. var v int
  1185. for shift := uint(0); ; shift += 7 {
  1186. if shift >= 64 {
  1187. return ErrIntOverflowHello
  1188. }
  1189. if iNdEx >= l {
  1190. return io.ErrUnexpectedEOF
  1191. }
  1192. b := dAtA[iNdEx]
  1193. iNdEx++
  1194. v |= (int(b) & 0x7F) << shift
  1195. if b < 0x80 {
  1196. break
  1197. }
  1198. }
  1199. m.Field80 = bool(v != 0)
  1200. case 81:
  1201. if wireType != 0 {
  1202. return fmt.Errorf("proto: wrong wireType = %d for field Field81", wireType)
  1203. }
  1204. var v int
  1205. for shift := uint(0); ; shift += 7 {
  1206. if shift >= 64 {
  1207. return ErrIntOverflowHello
  1208. }
  1209. if iNdEx >= l {
  1210. return io.ErrUnexpectedEOF
  1211. }
  1212. b := dAtA[iNdEx]
  1213. iNdEx++
  1214. v |= (int(b) & 0x7F) << shift
  1215. if b < 0x80 {
  1216. break
  1217. }
  1218. }
  1219. m.Field81 = bool(v != 0)
  1220. case 100:
  1221. if wireType != 0 {
  1222. return fmt.Errorf("proto: wrong wireType = %d for field Field100", wireType)
  1223. }
  1224. m.Field100 = 0
  1225. for shift := uint(0); ; shift += 7 {
  1226. if shift >= 64 {
  1227. return ErrIntOverflowHello
  1228. }
  1229. if iNdEx >= l {
  1230. return io.ErrUnexpectedEOF
  1231. }
  1232. b := dAtA[iNdEx]
  1233. iNdEx++
  1234. m.Field100 |= (int32(b) & 0x7F) << shift
  1235. if b < 0x80 {
  1236. break
  1237. }
  1238. }
  1239. case 101:
  1240. if wireType != 0 {
  1241. return fmt.Errorf("proto: wrong wireType = %d for field Field101", wireType)
  1242. }
  1243. m.Field101 = 0
  1244. for shift := uint(0); ; shift += 7 {
  1245. if shift >= 64 {
  1246. return ErrIntOverflowHello
  1247. }
  1248. if iNdEx >= l {
  1249. return io.ErrUnexpectedEOF
  1250. }
  1251. b := dAtA[iNdEx]
  1252. iNdEx++
  1253. m.Field101 |= (int32(b) & 0x7F) << shift
  1254. if b < 0x80 {
  1255. break
  1256. }
  1257. }
  1258. case 102:
  1259. if wireType != 2 {
  1260. return fmt.Errorf("proto: wrong wireType = %d for field Field102", wireType)
  1261. }
  1262. var stringLen uint64
  1263. for shift := uint(0); ; shift += 7 {
  1264. if shift >= 64 {
  1265. return ErrIntOverflowHello
  1266. }
  1267. if iNdEx >= l {
  1268. return io.ErrUnexpectedEOF
  1269. }
  1270. b := dAtA[iNdEx]
  1271. iNdEx++
  1272. stringLen |= (uint64(b) & 0x7F) << shift
  1273. if b < 0x80 {
  1274. break
  1275. }
  1276. }
  1277. intStringLen := int(stringLen)
  1278. if intStringLen < 0 {
  1279. return ErrInvalidLengthHello
  1280. }
  1281. postIndex := iNdEx + intStringLen
  1282. if postIndex > l {
  1283. return io.ErrUnexpectedEOF
  1284. }
  1285. m.Field102 = string(dAtA[iNdEx:postIndex])
  1286. iNdEx = postIndex
  1287. case 103:
  1288. if wireType != 2 {
  1289. return fmt.Errorf("proto: wrong wireType = %d for field Field103", wireType)
  1290. }
  1291. var stringLen uint64
  1292. for shift := uint(0); ; shift += 7 {
  1293. if shift >= 64 {
  1294. return ErrIntOverflowHello
  1295. }
  1296. if iNdEx >= l {
  1297. return io.ErrUnexpectedEOF
  1298. }
  1299. b := dAtA[iNdEx]
  1300. iNdEx++
  1301. stringLen |= (uint64(b) & 0x7F) << shift
  1302. if b < 0x80 {
  1303. break
  1304. }
  1305. }
  1306. intStringLen := int(stringLen)
  1307. if intStringLen < 0 {
  1308. return ErrInvalidLengthHello
  1309. }
  1310. postIndex := iNdEx + intStringLen
  1311. if postIndex > l {
  1312. return io.ErrUnexpectedEOF
  1313. }
  1314. m.Field103 = string(dAtA[iNdEx:postIndex])
  1315. iNdEx = postIndex
  1316. case 104:
  1317. if wireType != 0 {
  1318. return fmt.Errorf("proto: wrong wireType = %d for field Field104", wireType)
  1319. }
  1320. m.Field104 = 0
  1321. for shift := uint(0); ; shift += 7 {
  1322. if shift >= 64 {
  1323. return ErrIntOverflowHello
  1324. }
  1325. if iNdEx >= l {
  1326. return io.ErrUnexpectedEOF
  1327. }
  1328. b := dAtA[iNdEx]
  1329. iNdEx++
  1330. m.Field104 |= (int32(b) & 0x7F) << shift
  1331. if b < 0x80 {
  1332. break
  1333. }
  1334. }
  1335. case 128:
  1336. if wireType != 0 {
  1337. return fmt.Errorf("proto: wrong wireType = %d for field Field128", wireType)
  1338. }
  1339. m.Field128 = 0
  1340. for shift := uint(0); ; shift += 7 {
  1341. if shift >= 64 {
  1342. return ErrIntOverflowHello
  1343. }
  1344. if iNdEx >= l {
  1345. return io.ErrUnexpectedEOF
  1346. }
  1347. b := dAtA[iNdEx]
  1348. iNdEx++
  1349. m.Field128 |= (int32(b) & 0x7F) << shift
  1350. if b < 0x80 {
  1351. break
  1352. }
  1353. }
  1354. case 129:
  1355. if wireType != 2 {
  1356. return fmt.Errorf("proto: wrong wireType = %d for field Field129", wireType)
  1357. }
  1358. var stringLen uint64
  1359. for shift := uint(0); ; shift += 7 {
  1360. if shift >= 64 {
  1361. return ErrIntOverflowHello
  1362. }
  1363. if iNdEx >= l {
  1364. return io.ErrUnexpectedEOF
  1365. }
  1366. b := dAtA[iNdEx]
  1367. iNdEx++
  1368. stringLen |= (uint64(b) & 0x7F) << shift
  1369. if b < 0x80 {
  1370. break
  1371. }
  1372. }
  1373. intStringLen := int(stringLen)
  1374. if intStringLen < 0 {
  1375. return ErrInvalidLengthHello
  1376. }
  1377. postIndex := iNdEx + intStringLen
  1378. if postIndex > l {
  1379. return io.ErrUnexpectedEOF
  1380. }
  1381. m.Field129 = string(dAtA[iNdEx:postIndex])
  1382. iNdEx = postIndex
  1383. case 130:
  1384. if wireType != 0 {
  1385. return fmt.Errorf("proto: wrong wireType = %d for field Field130", wireType)
  1386. }
  1387. m.Field130 = 0
  1388. for shift := uint(0); ; shift += 7 {
  1389. if shift >= 64 {
  1390. return ErrIntOverflowHello
  1391. }
  1392. if iNdEx >= l {
  1393. return io.ErrUnexpectedEOF
  1394. }
  1395. b := dAtA[iNdEx]
  1396. iNdEx++
  1397. m.Field130 |= (int32(b) & 0x7F) << shift
  1398. if b < 0x80 {
  1399. break
  1400. }
  1401. }
  1402. case 131:
  1403. if wireType != 0 {
  1404. return fmt.Errorf("proto: wrong wireType = %d for field Field131", wireType)
  1405. }
  1406. m.Field131 = 0
  1407. for shift := uint(0); ; shift += 7 {
  1408. if shift >= 64 {
  1409. return ErrIntOverflowHello
  1410. }
  1411. if iNdEx >= l {
  1412. return io.ErrUnexpectedEOF
  1413. }
  1414. b := dAtA[iNdEx]
  1415. iNdEx++
  1416. m.Field131 |= (int32(b) & 0x7F) << shift
  1417. if b < 0x80 {
  1418. break
  1419. }
  1420. }
  1421. case 150:
  1422. if wireType != 0 {
  1423. return fmt.Errorf("proto: wrong wireType = %d for field Field150", wireType)
  1424. }
  1425. m.Field150 = 0
  1426. for shift := uint(0); ; shift += 7 {
  1427. if shift >= 64 {
  1428. return ErrIntOverflowHello
  1429. }
  1430. if iNdEx >= l {
  1431. return io.ErrUnexpectedEOF
  1432. }
  1433. b := dAtA[iNdEx]
  1434. iNdEx++
  1435. m.Field150 |= (int32(b) & 0x7F) << shift
  1436. if b < 0x80 {
  1437. break
  1438. }
  1439. }
  1440. case 271:
  1441. if wireType != 0 {
  1442. return fmt.Errorf("proto: wrong wireType = %d for field Field271", wireType)
  1443. }
  1444. m.Field271 = 0
  1445. for shift := uint(0); ; shift += 7 {
  1446. if shift >= 64 {
  1447. return ErrIntOverflowHello
  1448. }
  1449. if iNdEx >= l {
  1450. return io.ErrUnexpectedEOF
  1451. }
  1452. b := dAtA[iNdEx]
  1453. iNdEx++
  1454. m.Field271 |= (int32(b) & 0x7F) << shift
  1455. if b < 0x80 {
  1456. break
  1457. }
  1458. }
  1459. case 272:
  1460. if wireType != 0 {
  1461. return fmt.Errorf("proto: wrong wireType = %d for field Field272", wireType)
  1462. }
  1463. m.Field272 = 0
  1464. for shift := uint(0); ; shift += 7 {
  1465. if shift >= 64 {
  1466. return ErrIntOverflowHello
  1467. }
  1468. if iNdEx >= l {
  1469. return io.ErrUnexpectedEOF
  1470. }
  1471. b := dAtA[iNdEx]
  1472. iNdEx++
  1473. m.Field272 |= (int32(b) & 0x7F) << shift
  1474. if b < 0x80 {
  1475. break
  1476. }
  1477. }
  1478. case 280:
  1479. if wireType != 0 {
  1480. return fmt.Errorf("proto: wrong wireType = %d for field Field280", wireType)
  1481. }
  1482. m.Field280 = 0
  1483. for shift := uint(0); ; shift += 7 {
  1484. if shift >= 64 {
  1485. return ErrIntOverflowHello
  1486. }
  1487. if iNdEx >= l {
  1488. return io.ErrUnexpectedEOF
  1489. }
  1490. b := dAtA[iNdEx]
  1491. iNdEx++
  1492. m.Field280 |= (int32(b) & 0x7F) << shift
  1493. if b < 0x80 {
  1494. break
  1495. }
  1496. }
  1497. default:
  1498. iNdEx = preIndex
  1499. skippy, err := skipHello(dAtA[iNdEx:])
  1500. if err != nil {
  1501. return err
  1502. }
  1503. if skippy < 0 {
  1504. return ErrInvalidLengthHello
  1505. }
  1506. if (iNdEx + skippy) > l {
  1507. return io.ErrUnexpectedEOF
  1508. }
  1509. iNdEx += skippy
  1510. }
  1511. }
  1512. if iNdEx > l {
  1513. return io.ErrUnexpectedEOF
  1514. }
  1515. return nil
  1516. }
  1517. func skipHello(dAtA []byte) (n int, err error) {
  1518. l := len(dAtA)
  1519. iNdEx := 0
  1520. for iNdEx < l {
  1521. var wire uint64
  1522. for shift := uint(0); ; shift += 7 {
  1523. if shift >= 64 {
  1524. return 0, ErrIntOverflowHello
  1525. }
  1526. if iNdEx >= l {
  1527. return 0, io.ErrUnexpectedEOF
  1528. }
  1529. b := dAtA[iNdEx]
  1530. iNdEx++
  1531. wire |= (uint64(b) & 0x7F) << shift
  1532. if b < 0x80 {
  1533. break
  1534. }
  1535. }
  1536. wireType := int(wire & 0x7)
  1537. switch wireType {
  1538. case 0:
  1539. for shift := uint(0); ; shift += 7 {
  1540. if shift >= 64 {
  1541. return 0, ErrIntOverflowHello
  1542. }
  1543. if iNdEx >= l {
  1544. return 0, io.ErrUnexpectedEOF
  1545. }
  1546. iNdEx++
  1547. if dAtA[iNdEx-1] < 0x80 {
  1548. break
  1549. }
  1550. }
  1551. return iNdEx, nil
  1552. case 1:
  1553. iNdEx += 8
  1554. return iNdEx, nil
  1555. case 2:
  1556. var length int
  1557. for shift := uint(0); ; shift += 7 {
  1558. if shift >= 64 {
  1559. return 0, ErrIntOverflowHello
  1560. }
  1561. if iNdEx >= l {
  1562. return 0, io.ErrUnexpectedEOF
  1563. }
  1564. b := dAtA[iNdEx]
  1565. iNdEx++
  1566. length |= (int(b) & 0x7F) << shift
  1567. if b < 0x80 {
  1568. break
  1569. }
  1570. }
  1571. iNdEx += length
  1572. if length < 0 {
  1573. return 0, ErrInvalidLengthHello
  1574. }
  1575. return iNdEx, nil
  1576. case 3:
  1577. for {
  1578. var innerWire uint64
  1579. var start int = iNdEx
  1580. for shift := uint(0); ; shift += 7 {
  1581. if shift >= 64 {
  1582. return 0, ErrIntOverflowHello
  1583. }
  1584. if iNdEx >= l {
  1585. return 0, io.ErrUnexpectedEOF
  1586. }
  1587. b := dAtA[iNdEx]
  1588. iNdEx++
  1589. innerWire |= (uint64(b) & 0x7F) << shift
  1590. if b < 0x80 {
  1591. break
  1592. }
  1593. }
  1594. innerWireType := int(innerWire & 0x7)
  1595. if innerWireType == 4 {
  1596. break
  1597. }
  1598. next, err := skipHello(dAtA[start:])
  1599. if err != nil {
  1600. return 0, err
  1601. }
  1602. iNdEx = start + next
  1603. }
  1604. return iNdEx, nil
  1605. case 4:
  1606. return iNdEx, nil
  1607. case 5:
  1608. iNdEx += 4
  1609. return iNdEx, nil
  1610. default:
  1611. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1612. }
  1613. }
  1614. panic("unreachable")
  1615. }
  1616. var (
  1617. ErrInvalidLengthHello = fmt.Errorf("proto: negative length found during unmarshaling")
  1618. ErrIntOverflowHello = fmt.Errorf("proto: integer overflow")
  1619. )
  1620. func init() { proto.RegisterFile("hello.proto", fileDescriptorHello) }
  1621. var fileDescriptorHello = []byte{
  1622. // 495 bytes of a gzipped FileDescriptorProto
  1623. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xd4, 0x4d, 0x6e, 0xd3, 0x40,
  1624. 0x14, 0x07, 0xf0, 0x4c, 0xdb, 0xa4, 0xa9, 0xf9, 0x50, 0xf1, 0x22, 0xfc, 0x09, 0xc2, 0x8a, 0xba,
  1625. 0xca, 0x86, 0x74, 0x3c, 0x63, 0x7b, 0xc6, 0x82, 0x05, 0x2a, 0x2c, 0xba, 0x01, 0x41, 0x38, 0x41,
  1626. 0x92, 0x3a, 0x4e, 0x45, 0x8a, 0xab, 0xb4, 0x5d, 0xb0, 0xe3, 0xe3, 0x00, 0xb0, 0x42, 0x3d, 0x08,
  1627. 0x87, 0xe8, 0xb2, 0x47, 0xa0, 0xe1, 0x22, 0xa8, 0x4e, 0x3c, 0xef, 0x19, 0x89, 0x9d, 0xdf, 0xff,
  1628. 0xa7, 0xf7, 0xe6, 0x69, 0x2c, 0x8d, 0x77, 0x67, 0x96, 0xcd, 0xe7, 0xc5, 0xe0, 0x74, 0x51, 0x9c,
  1629. 0x17, 0xfe, 0x56, 0xbe, 0x38, 0x9d, 0x74, 0x9f, 0xe6, 0xc7, 0xe7, 0xb3, 0x8b, 0xf1, 0x60, 0x52,
  1630. 0x9c, 0xec, 0xe7, 0x45, 0x5e, 0xec, 0x97, 0x38, 0xbe, 0x98, 0x96, 0x55, 0x59, 0x94, 0x5f, 0xab,
  1631. 0xa6, 0xbd, 0x5f, 0x6d, 0x6f, 0xf7, 0x20, 0xfb, 0x38, 0x99, 0x9d, 0x8c, 0x16, 0x1f, 0x5e, 0x67,
  1632. 0x67, 0x67, 0xa3, 0x3c, 0xf3, 0x3b, 0x5e, 0x6b, 0x7a, 0x9c, 0xcd, 0x8f, 0x42, 0x88, 0x9e, 0xe8,
  1633. 0xef, 0x0c, 0xd7, 0x95, 0xcb, 0x15, 0x36, 0x7a, 0xa2, 0xdf, 0x5c, 0xe7, 0xca, 0xe5, 0x1a, 0x9b,
  1634. 0x2c, 0xd7, 0x2e, 0x8f, 0xb0, 0xc5, 0xe6, 0x44, 0x2e, 0x8f, 0xd1, 0xec, 0x89, 0x7e, 0x6b, 0x9d,
  1635. 0xc7, 0x2e, 0x4f, 0xd0, 0x62, 0x73, 0x12, 0x97, 0x1b, 0x6c, 0xb3, 0x39, 0xc6, 0xe5, 0x29, 0x76,
  1636. 0x58, 0x9e, 0xfa, 0xf0, 0xb6, 0x57, 0x1b, 0x2b, 0xdc, 0xed, 0x89, 0x7e, 0x7b, 0x58, 0x95, 0x24,
  1637. 0x1a, 0xf7, 0xb8, 0x68, 0x92, 0x08, 0xf7, 0xb9, 0x44, 0x24, 0x09, 0x76, 0xcb, 0xb5, 0xaa, 0x92,
  1638. 0xc4, 0xe0, 0x01, 0xef, 0x31, 0x24, 0x16, 0x7e, 0xb9, 0x5a, 0x55, 0x3a, 0x51, 0x0a, 0x9d, 0x9e,
  1639. 0xe8, 0x6f, 0x0e, 0xab, 0x92, 0x44, 0xe3, 0x21, 0x3b, 0x47, 0xd1, 0x6e, 0x2a, 0x02, 0xd8, 0x39,
  1640. 0x8a, 0x76, 0x53, 0x31, 0x1e, 0xf1, 0x9e, 0x98, 0x24, 0xc5, 0x13, 0x2e, 0x74, 0x3b, 0x5a, 0x22,
  1641. 0x60, 0xd3, 0xb4, 0x74, 0x12, 0xa7, 0x78, 0xc6, 0x24, 0xa6, 0x9e, 0x44, 0xe2, 0x39, 0x9b, 0x96,
  1642. 0x50, 0x4f, 0x62, 0xf0, 0x92, 0x0b, 0xdd, 0x41, 0x62, 0xf1, 0x8a, 0x0b, 0xdd, 0x81, 0xb1, 0x78,
  1643. 0xc3, 0xce, 0x31, 0x24, 0x56, 0xe2, 0x2d, 0x13, 0x4b, 0xe7, 0xd8, 0x10, 0xef, 0xb8, 0x84, 0x7e,
  1644. 0xd7, 0x6b, 0xaf, 0x2e, 0x57, 0x4a, 0x1c, 0x95, 0x07, 0xb9, 0x9a, 0x59, 0x88, 0xac, 0x66, 0xbc,
  1645. 0x4f, 0x61, 0x5a, 0xfe, 0x24, 0x57, 0x33, 0xd3, 0xc8, 0x6b, 0xa6, 0x99, 0x45, 0x98, 0xd5, 0x66,
  1646. 0x46, 0xfe, 0xe3, 0xca, 0x94, 0xc5, 0x67, 0xc1, 0x51, 0x59, 0x86, 0x29, 0xbe, 0x08, 0x3e, 0x55,
  1647. 0xa5, 0x84, 0x5a, 0xe2, 0x6b, 0xad, 0x53, 0x4b, 0x86, 0x21, 0xbe, 0xd5, 0x31, 0x24, 0x8c, 0x25,
  1648. 0x7e, 0xd6, 0x30, 0xa6, 0x4e, 0x65, 0x42, 0x7c, 0xdf, 0x60, 0xa8, 0x4c, 0xc8, 0x50, 0xe1, 0x47,
  1649. 0x1d, 0x15, 0xa1, 0x95, 0xb8, 0xac, 0xa1, 0x95, 0xea, 0x85, 0xd7, 0x3c, 0xbc, 0x7d, 0x7a, 0x7c,
  1650. 0xe3, 0x6d, 0xbe, 0x1f, 0x7d, 0xf2, 0x3b, 0x83, 0xdb, 0xc7, 0x67, 0xf0, 0xef, 0x4b, 0xd2, 0xfd,
  1651. 0x4f, 0xbe, 0xd7, 0x38, 0xe8, 0x5e, 0xdd, 0x04, 0x8d, 0xeb, 0x9b, 0xa0, 0x71, 0xb5, 0x0c, 0xc4,
  1652. 0xf5, 0x32, 0x10, 0xbf, 0x97, 0x81, 0xb8, 0xfc, 0x13, 0x34, 0x0e, 0xc5, 0xb8, 0x55, 0xbe, 0x4d,
  1653. 0xfa, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf2, 0xed, 0x6f, 0xb7, 0xdf, 0x04, 0x00, 0x00,
  1654. }