log_entry.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. // Code generated by protoc-gen-gogo.
  2. // source: log_entry.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package protobuf is a generated protocol buffer package.
  6. It is generated from these files:
  7. log_entry.proto
  8. It has these top-level messages:
  9. LogEntry
  10. */
  11. package protobuf
  12. import proto "github.com/coreos/etcd/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
  13. import math "math"
  14. // discarding unused import gogoproto "github.com/gogo/protobuf/gogoproto/gogo.pb"
  15. import io "io"
  16. import fmt "fmt"
  17. import github_com_gogo_protobuf_proto "github.com/coreos/etcd/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
  18. import strings "strings"
  19. import reflect "reflect"
  20. import sort "sort"
  21. import strconv "strconv"
  22. import bytes "bytes"
  23. // Reference imports to suppress errors if they are not otherwise used.
  24. var _ = proto.Marshal
  25. var _ = math.Inf
  26. type LogEntry struct {
  27. Index *uint64 `protobuf:"varint,1,req" json:"Index,omitempty"`
  28. Term *uint64 `protobuf:"varint,2,req" json:"Term,omitempty"`
  29. CommandName *string `protobuf:"bytes,3,req" json:"CommandName,omitempty"`
  30. Command []byte `protobuf:"bytes,4,opt" json:"Command,omitempty"`
  31. XXX_unrecognized []byte `json:"-"`
  32. }
  33. func (m *LogEntry) Reset() { *m = LogEntry{} }
  34. func (*LogEntry) ProtoMessage() {}
  35. func (m *LogEntry) GetIndex() uint64 {
  36. if m != nil && m.Index != nil {
  37. return *m.Index
  38. }
  39. return 0
  40. }
  41. func (m *LogEntry) GetTerm() uint64 {
  42. if m != nil && m.Term != nil {
  43. return *m.Term
  44. }
  45. return 0
  46. }
  47. func (m *LogEntry) GetCommandName() string {
  48. if m != nil && m.CommandName != nil {
  49. return *m.CommandName
  50. }
  51. return ""
  52. }
  53. func (m *LogEntry) GetCommand() []byte {
  54. if m != nil {
  55. return m.Command
  56. }
  57. return nil
  58. }
  59. func init() {
  60. }
  61. func (m *LogEntry) Unmarshal(data []byte) error {
  62. var hasFields [1]uint64
  63. l := len(data)
  64. iNdEx := 0
  65. for iNdEx < l {
  66. var wire uint64
  67. for shift := uint(0); ; shift += 7 {
  68. if iNdEx >= l {
  69. return io.ErrUnexpectedEOF
  70. }
  71. b := data[iNdEx]
  72. iNdEx++
  73. wire |= (uint64(b) & 0x7F) << shift
  74. if b < 0x80 {
  75. break
  76. }
  77. }
  78. fieldNum := int32(wire >> 3)
  79. wireType := int(wire & 0x7)
  80. switch fieldNum {
  81. case 1:
  82. if wireType != 0 {
  83. return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  84. }
  85. var v uint64
  86. for shift := uint(0); ; shift += 7 {
  87. if iNdEx >= l {
  88. return io.ErrUnexpectedEOF
  89. }
  90. b := data[iNdEx]
  91. iNdEx++
  92. v |= (uint64(b) & 0x7F) << shift
  93. if b < 0x80 {
  94. break
  95. }
  96. }
  97. m.Index = &v
  98. hasFields[0] |= uint64(0x00000001)
  99. case 2:
  100. if wireType != 0 {
  101. return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
  102. }
  103. var v uint64
  104. for shift := uint(0); ; shift += 7 {
  105. if iNdEx >= l {
  106. return io.ErrUnexpectedEOF
  107. }
  108. b := data[iNdEx]
  109. iNdEx++
  110. v |= (uint64(b) & 0x7F) << shift
  111. if b < 0x80 {
  112. break
  113. }
  114. }
  115. m.Term = &v
  116. hasFields[0] |= uint64(0x00000002)
  117. case 3:
  118. if wireType != 2 {
  119. return fmt.Errorf("proto: wrong wireType = %d for field CommandName", wireType)
  120. }
  121. var stringLen uint64
  122. for shift := uint(0); ; shift += 7 {
  123. if iNdEx >= l {
  124. return io.ErrUnexpectedEOF
  125. }
  126. b := data[iNdEx]
  127. iNdEx++
  128. stringLen |= (uint64(b) & 0x7F) << shift
  129. if b < 0x80 {
  130. break
  131. }
  132. }
  133. postIndex := iNdEx + int(stringLen)
  134. if postIndex > l {
  135. return io.ErrUnexpectedEOF
  136. }
  137. s := string(data[iNdEx:postIndex])
  138. m.CommandName = &s
  139. iNdEx = postIndex
  140. hasFields[0] |= uint64(0x00000004)
  141. case 4:
  142. if wireType != 2 {
  143. return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType)
  144. }
  145. var byteLen int
  146. for shift := uint(0); ; shift += 7 {
  147. if iNdEx >= l {
  148. return io.ErrUnexpectedEOF
  149. }
  150. b := data[iNdEx]
  151. iNdEx++
  152. byteLen |= (int(b) & 0x7F) << shift
  153. if b < 0x80 {
  154. break
  155. }
  156. }
  157. postIndex := iNdEx + byteLen
  158. if postIndex > l {
  159. return io.ErrUnexpectedEOF
  160. }
  161. m.Command = append([]byte{}, data[iNdEx:postIndex]...)
  162. iNdEx = postIndex
  163. default:
  164. var sizeOfWire int
  165. for {
  166. sizeOfWire++
  167. wire >>= 7
  168. if wire == 0 {
  169. break
  170. }
  171. }
  172. iNdEx -= sizeOfWire
  173. skippy, err := skipLogEntry(data[iNdEx:])
  174. if err != nil {
  175. return err
  176. }
  177. if (iNdEx + skippy) > l {
  178. return io.ErrUnexpectedEOF
  179. }
  180. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  181. iNdEx += skippy
  182. }
  183. }
  184. if hasFields[0]&uint64(0x00000001) == 0 {
  185. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("Index")
  186. }
  187. if hasFields[0]&uint64(0x00000002) == 0 {
  188. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("Term")
  189. }
  190. if hasFields[0]&uint64(0x00000004) == 0 {
  191. return github_com_gogo_protobuf_proto.NewRequiredNotSetError("CommandName")
  192. }
  193. return nil
  194. }
  195. func skipLogEntry(data []byte) (n int, err error) {
  196. l := len(data)
  197. iNdEx := 0
  198. for iNdEx < l {
  199. var wire uint64
  200. for shift := uint(0); ; shift += 7 {
  201. if iNdEx >= l {
  202. return 0, io.ErrUnexpectedEOF
  203. }
  204. b := data[iNdEx]
  205. iNdEx++
  206. wire |= (uint64(b) & 0x7F) << shift
  207. if b < 0x80 {
  208. break
  209. }
  210. }
  211. wireType := int(wire & 0x7)
  212. switch wireType {
  213. case 0:
  214. for {
  215. if iNdEx >= l {
  216. return 0, io.ErrUnexpectedEOF
  217. }
  218. iNdEx++
  219. if data[iNdEx-1] < 0x80 {
  220. break
  221. }
  222. }
  223. return iNdEx, nil
  224. case 1:
  225. iNdEx += 8
  226. return iNdEx, nil
  227. case 2:
  228. var length int
  229. for shift := uint(0); ; shift += 7 {
  230. if iNdEx >= l {
  231. return 0, io.ErrUnexpectedEOF
  232. }
  233. b := data[iNdEx]
  234. iNdEx++
  235. length |= (int(b) & 0x7F) << shift
  236. if b < 0x80 {
  237. break
  238. }
  239. }
  240. iNdEx += length
  241. return iNdEx, nil
  242. case 3:
  243. for {
  244. var innerWire uint64
  245. var start int = iNdEx
  246. for shift := uint(0); ; shift += 7 {
  247. if iNdEx >= l {
  248. return 0, io.ErrUnexpectedEOF
  249. }
  250. b := data[iNdEx]
  251. iNdEx++
  252. innerWire |= (uint64(b) & 0x7F) << shift
  253. if b < 0x80 {
  254. break
  255. }
  256. }
  257. innerWireType := int(innerWire & 0x7)
  258. if innerWireType == 4 {
  259. break
  260. }
  261. next, err := skipLogEntry(data[start:])
  262. if err != nil {
  263. return 0, err
  264. }
  265. iNdEx = start + next
  266. }
  267. return iNdEx, nil
  268. case 4:
  269. return iNdEx, nil
  270. case 5:
  271. iNdEx += 4
  272. return iNdEx, nil
  273. default:
  274. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  275. }
  276. }
  277. panic("unreachable")
  278. }
  279. func (this *LogEntry) String() string {
  280. if this == nil {
  281. return "nil"
  282. }
  283. s := strings.Join([]string{`&LogEntry{`,
  284. `Index:` + valueToStringLogEntry(this.Index) + `,`,
  285. `Term:` + valueToStringLogEntry(this.Term) + `,`,
  286. `CommandName:` + valueToStringLogEntry(this.CommandName) + `,`,
  287. `Command:` + valueToStringLogEntry(this.Command) + `,`,
  288. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  289. `}`,
  290. }, "")
  291. return s
  292. }
  293. func valueToStringLogEntry(v interface{}) string {
  294. rv := reflect.ValueOf(v)
  295. if rv.IsNil() {
  296. return "nil"
  297. }
  298. pv := reflect.Indirect(rv).Interface()
  299. return fmt.Sprintf("*%v", pv)
  300. }
  301. func (m *LogEntry) Size() (n int) {
  302. var l int
  303. _ = l
  304. if m.Index != nil {
  305. n += 1 + sovLogEntry(uint64(*m.Index))
  306. }
  307. if m.Term != nil {
  308. n += 1 + sovLogEntry(uint64(*m.Term))
  309. }
  310. if m.CommandName != nil {
  311. l = len(*m.CommandName)
  312. n += 1 + l + sovLogEntry(uint64(l))
  313. }
  314. if m.Command != nil {
  315. l = len(m.Command)
  316. n += 1 + l + sovLogEntry(uint64(l))
  317. }
  318. if m.XXX_unrecognized != nil {
  319. n += len(m.XXX_unrecognized)
  320. }
  321. return n
  322. }
  323. func sovLogEntry(x uint64) (n int) {
  324. for {
  325. n++
  326. x >>= 7
  327. if x == 0 {
  328. break
  329. }
  330. }
  331. return n
  332. }
  333. func sozLogEntry(x uint64) (n int) {
  334. return sovLogEntry(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  335. }
  336. func NewPopulatedLogEntry(r randyLogEntry, easy bool) *LogEntry {
  337. this := &LogEntry{}
  338. v1 := uint64(uint64(r.Uint32()))
  339. this.Index = &v1
  340. v2 := uint64(uint64(r.Uint32()))
  341. this.Term = &v2
  342. v3 := randStringLogEntry(r)
  343. this.CommandName = &v3
  344. if r.Intn(10) != 0 {
  345. v4 := r.Intn(100)
  346. this.Command = make([]byte, v4)
  347. for i := 0; i < v4; i++ {
  348. this.Command[i] = byte(r.Intn(256))
  349. }
  350. }
  351. if !easy && r.Intn(10) != 0 {
  352. this.XXX_unrecognized = randUnrecognizedLogEntry(r, 5)
  353. }
  354. return this
  355. }
  356. type randyLogEntry interface {
  357. Float32() float32
  358. Float64() float64
  359. Int63() int64
  360. Int31() int32
  361. Uint32() uint32
  362. Intn(n int) int
  363. }
  364. func randUTF8RuneLogEntry(r randyLogEntry) rune {
  365. ru := r.Intn(62)
  366. if ru < 10 {
  367. return rune(ru + 48)
  368. } else if ru < 36 {
  369. return rune(ru + 55)
  370. }
  371. return rune(ru + 61)
  372. }
  373. func randStringLogEntry(r randyLogEntry) string {
  374. v5 := r.Intn(100)
  375. tmps := make([]rune, v5)
  376. for i := 0; i < v5; i++ {
  377. tmps[i] = randUTF8RuneLogEntry(r)
  378. }
  379. return string(tmps)
  380. }
  381. func randUnrecognizedLogEntry(r randyLogEntry, maxFieldNumber int) (data []byte) {
  382. l := r.Intn(5)
  383. for i := 0; i < l; i++ {
  384. wire := r.Intn(4)
  385. if wire == 3 {
  386. wire = 5
  387. }
  388. fieldNumber := maxFieldNumber + r.Intn(100)
  389. data = randFieldLogEntry(data, r, fieldNumber, wire)
  390. }
  391. return data
  392. }
  393. func randFieldLogEntry(data []byte, r randyLogEntry, fieldNumber int, wire int) []byte {
  394. key := uint32(fieldNumber)<<3 | uint32(wire)
  395. switch wire {
  396. case 0:
  397. data = encodeVarintPopulateLogEntry(data, uint64(key))
  398. v6 := r.Int63()
  399. if r.Intn(2) == 0 {
  400. v6 *= -1
  401. }
  402. data = encodeVarintPopulateLogEntry(data, uint64(v6))
  403. case 1:
  404. data = encodeVarintPopulateLogEntry(data, uint64(key))
  405. data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  406. case 2:
  407. data = encodeVarintPopulateLogEntry(data, uint64(key))
  408. ll := r.Intn(100)
  409. data = encodeVarintPopulateLogEntry(data, uint64(ll))
  410. for j := 0; j < ll; j++ {
  411. data = append(data, byte(r.Intn(256)))
  412. }
  413. default:
  414. data = encodeVarintPopulateLogEntry(data, uint64(key))
  415. data = append(data, byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)), byte(r.Intn(256)))
  416. }
  417. return data
  418. }
  419. func encodeVarintPopulateLogEntry(data []byte, v uint64) []byte {
  420. for v >= 1<<7 {
  421. data = append(data, uint8(uint64(v)&0x7f|0x80))
  422. v >>= 7
  423. }
  424. data = append(data, uint8(v))
  425. return data
  426. }
  427. func (m *LogEntry) Marshal() (data []byte, err error) {
  428. size := m.Size()
  429. data = make([]byte, size)
  430. n, err := m.MarshalTo(data)
  431. if err != nil {
  432. return nil, err
  433. }
  434. return data[:n], nil
  435. }
  436. func (m *LogEntry) MarshalTo(data []byte) (n int, err error) {
  437. var i int
  438. _ = i
  439. var l int
  440. _ = l
  441. if m.Index == nil {
  442. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("Index")
  443. } else {
  444. data[i] = 0x8
  445. i++
  446. i = encodeVarintLogEntry(data, i, uint64(*m.Index))
  447. }
  448. if m.Term == nil {
  449. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("Term")
  450. } else {
  451. data[i] = 0x10
  452. i++
  453. i = encodeVarintLogEntry(data, i, uint64(*m.Term))
  454. }
  455. if m.CommandName == nil {
  456. return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("CommandName")
  457. } else {
  458. data[i] = 0x1a
  459. i++
  460. i = encodeVarintLogEntry(data, i, uint64(len(*m.CommandName)))
  461. i += copy(data[i:], *m.CommandName)
  462. }
  463. if m.Command != nil {
  464. data[i] = 0x22
  465. i++
  466. i = encodeVarintLogEntry(data, i, uint64(len(m.Command)))
  467. i += copy(data[i:], m.Command)
  468. }
  469. if m.XXX_unrecognized != nil {
  470. i += copy(data[i:], m.XXX_unrecognized)
  471. }
  472. return i, nil
  473. }
  474. func encodeFixed64LogEntry(data []byte, offset int, v uint64) int {
  475. data[offset] = uint8(v)
  476. data[offset+1] = uint8(v >> 8)
  477. data[offset+2] = uint8(v >> 16)
  478. data[offset+3] = uint8(v >> 24)
  479. data[offset+4] = uint8(v >> 32)
  480. data[offset+5] = uint8(v >> 40)
  481. data[offset+6] = uint8(v >> 48)
  482. data[offset+7] = uint8(v >> 56)
  483. return offset + 8
  484. }
  485. func encodeFixed32LogEntry(data []byte, offset int, v uint32) int {
  486. data[offset] = uint8(v)
  487. data[offset+1] = uint8(v >> 8)
  488. data[offset+2] = uint8(v >> 16)
  489. data[offset+3] = uint8(v >> 24)
  490. return offset + 4
  491. }
  492. func encodeVarintLogEntry(data []byte, offset int, v uint64) int {
  493. for v >= 1<<7 {
  494. data[offset] = uint8(v&0x7f | 0x80)
  495. v >>= 7
  496. offset++
  497. }
  498. data[offset] = uint8(v)
  499. return offset + 1
  500. }
  501. func (this *LogEntry) GoString() string {
  502. if this == nil {
  503. return "nil"
  504. }
  505. s := strings.Join([]string{`&protobuf.LogEntry{` +
  506. `Index:` + valueToGoStringLogEntry(this.Index, "uint64"),
  507. `Term:` + valueToGoStringLogEntry(this.Term, "uint64"),
  508. `CommandName:` + valueToGoStringLogEntry(this.CommandName, "string"),
  509. `Command:` + valueToGoStringLogEntry(this.Command, "byte"),
  510. `XXX_unrecognized:` + fmt.Sprintf("%#v", this.XXX_unrecognized) + `}`}, ", ")
  511. return s
  512. }
  513. func valueToGoStringLogEntry(v interface{}, typ string) string {
  514. rv := reflect.ValueOf(v)
  515. if rv.IsNil() {
  516. return "nil"
  517. }
  518. pv := reflect.Indirect(rv).Interface()
  519. return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
  520. }
  521. func extensionToGoStringLogEntry(e map[int32]github_com_gogo_protobuf_proto.Extension) string {
  522. if e == nil {
  523. return "nil"
  524. }
  525. s := "map[int32]proto.Extension{"
  526. keys := make([]int, 0, len(e))
  527. for k := range e {
  528. keys = append(keys, int(k))
  529. }
  530. sort.Ints(keys)
  531. ss := []string{}
  532. for _, k := range keys {
  533. ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString())
  534. }
  535. s += strings.Join(ss, ",") + "}"
  536. return s
  537. }
  538. func (this *LogEntry) VerboseEqual(that interface{}) error {
  539. if that == nil {
  540. if this == nil {
  541. return nil
  542. }
  543. return fmt.Errorf("that == nil && this != nil")
  544. }
  545. that1, ok := that.(*LogEntry)
  546. if !ok {
  547. return fmt.Errorf("that is not of type *LogEntry")
  548. }
  549. if that1 == nil {
  550. if this == nil {
  551. return nil
  552. }
  553. return fmt.Errorf("that is type *LogEntry but is nil && this != nil")
  554. } else if this == nil {
  555. return fmt.Errorf("that is type *LogEntrybut is not nil && this == nil")
  556. }
  557. if this.Index != nil && that1.Index != nil {
  558. if *this.Index != *that1.Index {
  559. return fmt.Errorf("Index this(%v) Not Equal that(%v)", *this.Index, *that1.Index)
  560. }
  561. } else if this.Index != nil {
  562. return fmt.Errorf("this.Index == nil && that.Index != nil")
  563. } else if that1.Index != nil {
  564. return fmt.Errorf("Index this(%v) Not Equal that(%v)", this.Index, that1.Index)
  565. }
  566. if this.Term != nil && that1.Term != nil {
  567. if *this.Term != *that1.Term {
  568. return fmt.Errorf("Term this(%v) Not Equal that(%v)", *this.Term, *that1.Term)
  569. }
  570. } else if this.Term != nil {
  571. return fmt.Errorf("this.Term == nil && that.Term != nil")
  572. } else if that1.Term != nil {
  573. return fmt.Errorf("Term this(%v) Not Equal that(%v)", this.Term, that1.Term)
  574. }
  575. if this.CommandName != nil && that1.CommandName != nil {
  576. if *this.CommandName != *that1.CommandName {
  577. return fmt.Errorf("CommandName this(%v) Not Equal that(%v)", *this.CommandName, *that1.CommandName)
  578. }
  579. } else if this.CommandName != nil {
  580. return fmt.Errorf("this.CommandName == nil && that.CommandName != nil")
  581. } else if that1.CommandName != nil {
  582. return fmt.Errorf("CommandName this(%v) Not Equal that(%v)", this.CommandName, that1.CommandName)
  583. }
  584. if !bytes.Equal(this.Command, that1.Command) {
  585. return fmt.Errorf("Command this(%v) Not Equal that(%v)", this.Command, that1.Command)
  586. }
  587. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  588. return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
  589. }
  590. return nil
  591. }
  592. func (this *LogEntry) Equal(that interface{}) bool {
  593. if that == nil {
  594. if this == nil {
  595. return true
  596. }
  597. return false
  598. }
  599. that1, ok := that.(*LogEntry)
  600. if !ok {
  601. return false
  602. }
  603. if that1 == nil {
  604. if this == nil {
  605. return true
  606. }
  607. return false
  608. } else if this == nil {
  609. return false
  610. }
  611. if this.Index != nil && that1.Index != nil {
  612. if *this.Index != *that1.Index {
  613. return false
  614. }
  615. } else if this.Index != nil {
  616. return false
  617. } else if that1.Index != nil {
  618. return false
  619. }
  620. if this.Term != nil && that1.Term != nil {
  621. if *this.Term != *that1.Term {
  622. return false
  623. }
  624. } else if this.Term != nil {
  625. return false
  626. } else if that1.Term != nil {
  627. return false
  628. }
  629. if this.CommandName != nil && that1.CommandName != nil {
  630. if *this.CommandName != *that1.CommandName {
  631. return false
  632. }
  633. } else if this.CommandName != nil {
  634. return false
  635. } else if that1.CommandName != nil {
  636. return false
  637. }
  638. if !bytes.Equal(this.Command, that1.Command) {
  639. return false
  640. }
  641. if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
  642. return false
  643. }
  644. return true
  645. }