github.com/turingchain2020/turingchain@v1.1.21/system/dapp/coins/types/coins.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: coins.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 math "math" 9 10 types "github.com/turingchain2020/turingchain/types" 11 proto "github.com/golang/protobuf/proto" 12 ) 13 14 // Reference imports to suppress errors if they are not otherwise used. 15 var _ = proto.Marshal 16 var _ = fmt.Errorf 17 var _ = math.Inf 18 19 // This is a compile-time assertion to ensure that this generated file 20 // is compatible with the proto package it is being compiled against. 21 // A compilation error at this line likely means your copy of the 22 // proto package needs to be updated. 23 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25 // message for execs.coins 26 type CoinsAction struct { 27 // Types that are valid to be assigned to Value: 28 // *CoinsAction_Transfer 29 // *CoinsAction_Withdraw 30 // *CoinsAction_Genesis 31 // *CoinsAction_TransferToExec 32 Value isCoinsAction_Value `protobuf_oneof:"value"` 33 Ty int32 `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"` 34 XXX_NoUnkeyedLiteral struct{} `json:"-"` 35 XXX_unrecognized []byte `json:"-"` 36 XXX_sizecache int32 `json:"-"` 37 } 38 39 func (m *CoinsAction) Reset() { *m = CoinsAction{} } 40 func (m *CoinsAction) String() string { return proto.CompactTextString(m) } 41 func (*CoinsAction) ProtoMessage() {} 42 func (*CoinsAction) Descriptor() ([]byte, []int) { 43 return fileDescriptor_da4483c99519c66a, []int{0} 44 } 45 46 func (m *CoinsAction) XXX_Unmarshal(b []byte) error { 47 return xxx_messageInfo_CoinsAction.Unmarshal(m, b) 48 } 49 func (m *CoinsAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 50 return xxx_messageInfo_CoinsAction.Marshal(b, m, deterministic) 51 } 52 func (m *CoinsAction) XXX_Merge(src proto.Message) { 53 xxx_messageInfo_CoinsAction.Merge(m, src) 54 } 55 func (m *CoinsAction) XXX_Size() int { 56 return xxx_messageInfo_CoinsAction.Size(m) 57 } 58 func (m *CoinsAction) XXX_DiscardUnknown() { 59 xxx_messageInfo_CoinsAction.DiscardUnknown(m) 60 } 61 62 var xxx_messageInfo_CoinsAction proto.InternalMessageInfo 63 64 type isCoinsAction_Value interface { 65 isCoinsAction_Value() 66 } 67 68 type CoinsAction_Transfer struct { 69 Transfer *types.AssetsTransfer `protobuf:"bytes,1,opt,name=transfer,proto3,oneof"` 70 } 71 72 type CoinsAction_Withdraw struct { 73 Withdraw *types.AssetsWithdraw `protobuf:"bytes,4,opt,name=withdraw,proto3,oneof"` 74 } 75 76 type CoinsAction_Genesis struct { 77 Genesis *types.AssetsGenesis `protobuf:"bytes,2,opt,name=genesis,proto3,oneof"` 78 } 79 80 type CoinsAction_TransferToExec struct { 81 TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,5,opt,name=transferToExec,proto3,oneof"` 82 } 83 84 func (*CoinsAction_Transfer) isCoinsAction_Value() {} 85 86 func (*CoinsAction_Withdraw) isCoinsAction_Value() {} 87 88 func (*CoinsAction_Genesis) isCoinsAction_Value() {} 89 90 func (*CoinsAction_TransferToExec) isCoinsAction_Value() {} 91 92 func (m *CoinsAction) GetValue() isCoinsAction_Value { 93 if m != nil { 94 return m.Value 95 } 96 return nil 97 } 98 99 func (m *CoinsAction) GetTransfer() *types.AssetsTransfer { 100 if x, ok := m.GetValue().(*CoinsAction_Transfer); ok { 101 return x.Transfer 102 } 103 return nil 104 } 105 106 func (m *CoinsAction) GetWithdraw() *types.AssetsWithdraw { 107 if x, ok := m.GetValue().(*CoinsAction_Withdraw); ok { 108 return x.Withdraw 109 } 110 return nil 111 } 112 113 func (m *CoinsAction) GetGenesis() *types.AssetsGenesis { 114 if x, ok := m.GetValue().(*CoinsAction_Genesis); ok { 115 return x.Genesis 116 } 117 return nil 118 } 119 120 func (m *CoinsAction) GetTransferToExec() *types.AssetsTransferToExec { 121 if x, ok := m.GetValue().(*CoinsAction_TransferToExec); ok { 122 return x.TransferToExec 123 } 124 return nil 125 } 126 127 func (m *CoinsAction) GetTy() int32 { 128 if m != nil { 129 return m.Ty 130 } 131 return 0 132 } 133 134 // XXX_OneofWrappers is for the internal use of the proto package. 135 func (*CoinsAction) XXX_OneofWrappers() []interface{} { 136 return []interface{}{ 137 (*CoinsAction_Transfer)(nil), 138 (*CoinsAction_Withdraw)(nil), 139 (*CoinsAction_Genesis)(nil), 140 (*CoinsAction_TransferToExec)(nil), 141 } 142 } 143 144 func init() { 145 proto.RegisterType((*CoinsAction)(nil), "types.CoinsAction") 146 } 147 148 func init() { 149 proto.RegisterFile("coins.proto", fileDescriptor_da4483c99519c66a) 150 } 151 152 var fileDescriptor_da4483c99519c66a = []byte{ 153 // 214 bytes of a gzipped FileDescriptorProto 154 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0xce, 0xcf, 0xcc, 155 0x2b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x96, 0x12, 156 0x2c, 0x29, 0x4a, 0xcc, 0x2b, 0x4e, 0x4c, 0x2e, 0xc9, 0xcc, 0xcf, 0x83, 0xc8, 0x28, 0x75, 0x32, 157 0x71, 0x71, 0x3b, 0x83, 0x54, 0x3a, 0x82, 0x45, 0x85, 0x8c, 0xb9, 0x38, 0xc0, 0x8a, 0xd2, 0x52, 158 0x8b, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, 0x44, 0xf5, 0xc0, 0x9a, 0xf5, 0x1c, 0x8b, 0x8b, 159 0x53, 0x4b, 0x8a, 0x43, 0xa0, 0x92, 0x1e, 0x0c, 0x41, 0x70, 0x85, 0x20, 0x4d, 0xe5, 0x99, 0x25, 160 0x19, 0x29, 0x45, 0x89, 0xe5, 0x12, 0x2c, 0x58, 0x34, 0x85, 0x43, 0x25, 0x41, 0x9a, 0x60, 0x0a, 161 0x85, 0x0c, 0xb8, 0xd8, 0xd3, 0x53, 0xf3, 0x52, 0x8b, 0x33, 0x8b, 0x25, 0x98, 0xc0, 0x7a, 0x44, 162 0x50, 0xf4, 0xb8, 0x43, 0xe4, 0x3c, 0x18, 0x82, 0x60, 0xca, 0x84, 0x5c, 0xb9, 0xf8, 0x60, 0x56, 163 0x86, 0xe4, 0xbb, 0x56, 0xa4, 0x26, 0x4b, 0xb0, 0x82, 0x35, 0x4a, 0x63, 0x75, 0x21, 0x44, 0x89, 164 0x07, 0x43, 0x10, 0x9a, 0x26, 0x21, 0x3e, 0x2e, 0xa6, 0x92, 0x4a, 0x09, 0x66, 0x05, 0x46, 0x0d, 165 0xd6, 0x20, 0xa6, 0x92, 0x4a, 0x27, 0x76, 0x2e, 0xd6, 0xb2, 0xc4, 0x9c, 0xd2, 0x54, 0x27, 0xf6, 166 0x28, 0x48, 0x38, 0x25, 0xb1, 0x81, 0xc3, 0xc6, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x27, 167 0xc9, 0xb3, 0x44, 0x01, 0x00, 0x00, 168 }