Commit 5ad1d431 authored by vipwzw's avatar vipwzw

auto ci

parent 22ca51dd
...@@ -494,229 +494,116 @@ func (m *LotteryAction) GetTy() int32 { ...@@ -494,229 +494,116 @@ func (m *LotteryAction) GetTy() int32 {
return 0 return 0
} }
// XXX_OneofWrappers is for the internal use of the proto package.
func (*LotteryAction) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*LotteryAction_Create)(nil),
(*LotteryAction_Buy)(nil),
(*LotteryAction_Draw)(nil),
(*LotteryAction_Close)(nil),
}
}
// XXX_OneofFuncs is for the internal use of the proto package. // XXX_OneofFuncs is for the internal use of the proto package.
func (*LotteryAction) 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{}) { func (*LotteryAction) 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{}) {
return _LotteryAction_OneofMarshaler, _LotteryAction_OneofUnmarshaler, _LotteryAction_OneofSizer, []interface{}{ return _LotteryAction_OneofMarshaler, _LotteryAction_OneofUnmarshaler, _LotteryAction_OneofSizer, []interface{}{
(*LotteryAction_Create)(nil), (*LotteryAction_Create)(nil),
(*LotteryAction_Buy)(nil), (*LotteryAction_Buy)(nil),
(*LotteryAction_Draw)(nil), (*LotteryAction_Draw)(nil),
(*LotteryAction_Close)(nil), (*LotteryAction_Close)(nil),
} }
} }
func _LotteryAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { func _LotteryAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*LotteryAction) m := msg.(*LotteryAction)
// value // value
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *LotteryAction_Create: case *LotteryAction_Create:
b.EncodeVarint(1<<3 | proto.WireBytes) b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Create); err != nil { if err := b.EncodeMessage(x.Create); err != nil {
return err return err
} }
case *LotteryAction_Buy: case *LotteryAction_Buy:
b.EncodeVarint(2<<3 | proto.WireBytes) b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Buy); err != nil { if err := b.EncodeMessage(x.Buy); err != nil {
return err return err
} }
case *LotteryAction_Draw: case *LotteryAction_Draw:
b.EncodeVarint(3<<3 | proto.WireBytes) b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Draw); err != nil { if err := b.EncodeMessage(x.Draw); err != nil {
return err return err
} }
case *LotteryAction_Close: case *LotteryAction_Close:
b.EncodeVarint(4<<3 | proto.WireBytes) b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Close); err != nil { if err := b.EncodeMessage(x.Close); err != nil {
return err return err
} }
case nil: case nil:
default: default:
return fmt.Errorf("LotteryAction.Value has unexpected type %T", x) return fmt.Errorf("LotteryAction.Value has unexpected type %T", x)
} }
return nil return nil
} }
func _LotteryAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { func _LotteryAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*LotteryAction) m := msg.(*LotteryAction)
switch tag { switch tag {
case 1: // value.create case 1: // value.create
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(LotteryCreate) msg := new(LotteryCreate)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &LotteryAction_Create{msg} m.Value = &LotteryAction_Create{msg}
return true, err return true, err
case 2: // value.buy case 2: // value.buy
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(LotteryBuy) msg := new(LotteryBuy)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &LotteryAction_Buy{msg} m.Value = &LotteryAction_Buy{msg}
return true, err return true, err
case 3: // value.draw case 3: // value.draw
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(LotteryDraw) msg := new(LotteryDraw)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &LotteryAction_Draw{msg} m.Value = &LotteryAction_Draw{msg}
return true, err return true, err
case 4: // value.close case 4: // value.close
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(LotteryClose) msg := new(LotteryClose)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &LotteryAction_Close{msg} m.Value = &LotteryAction_Close{msg}
return true, err return true, err
default: default:
return false, nil return false, nil
} }
} }
func _LotteryAction_OneofSizer(msg proto.Message) (n int) { func _LotteryAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*LotteryAction) m := msg.(*LotteryAction)
// value // value
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *LotteryAction_Create: case *LotteryAction_Create:
s := proto.Size(x.Create) s := proto.Size(x.Create)
n += 1 // tag and wire n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *LotteryAction_Buy: case *LotteryAction_Buy:
s := proto.Size(x.Buy) s := proto.Size(x.Buy)
n += 1 // tag and wire n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *LotteryAction_Draw: case *LotteryAction_Draw:
s := proto.Size(x.Draw) s := proto.Size(x.Draw)
n += 1 // tag and wire n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *LotteryAction_Close: case *LotteryAction_Close:
s := proto.Size(x.Close) s := proto.Size(x.Close)
n += 1 // tag and wire n += 1 // tag and wire
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
default: default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
} }
return n return n
} }
type LotteryCreate struct { type LotteryCreate struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment