代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go.
// source: table.proto
// DO NOT EDIT!
/*
Package shim is a generated protocol buffer package.
It is generated from these files:
table.proto
It has these top-level messages:
ColumnDefinition
Table
Column
Row
*/
package shim
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ColumnDefinition_Type int32
const (
ColumnDefinition_STRING ColumnDefinition_Type = 0
ColumnDefinition_INT32 ColumnDefinition_Type = 1
ColumnDefinition_INT64 ColumnDefinition_Type = 2
ColumnDefinition_UINT32 ColumnDefinition_Type = 3
ColumnDefinition_UINT64 ColumnDefinition_Type = 4
ColumnDefinition_BYTES ColumnDefinition_Type = 5
ColumnDefinition_BOOL ColumnDefinition_Type = 6
)
var ColumnDefinition_Type_name = map[int32]string{
0: "STRING",
1: "INT32",
2: "INT64",
3: "UINT32",
4: "UINT64",
5: "BYTES",
6: "BOOL",
}
var ColumnDefinition_Type_value = map[string]int32{
"STRING": 0,
"INT32": 1,
"INT64": 2,
"UINT32": 3,
"UINT64": 4,
"BYTES": 5,
"BOOL": 6,
}
func (x ColumnDefinition_Type) String() string {
return proto.EnumName(ColumnDefinition_Type_name, int32(x))
}
func (ColumnDefinition_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
type ColumnDefinition struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Type ColumnDefinition_Type `protobuf:"varint,2,opt,name=type,enum=shim.ColumnDefinition_Type" json:"type,omitempty"`
Key bool `protobuf:"varint,3,opt,name=key" json:"key,omitempty"`
}
func (m *ColumnDefinition) Reset() { *m = ColumnDefinition{} }
func (m *ColumnDefinition) String() string { return proto.CompactTextString(m) }
func (*ColumnDefinition) ProtoMessage() {}
func (*ColumnDefinition) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type Table struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
ColumnDefinitions []*ColumnDefinition `protobuf:"bytes,2,rep,name=columnDefinitions" json:"columnDefinitions,omitempty"`
}
func (m *Table) Reset() { *m = Table{} }
func (m *Table) String() string { return proto.CompactTextString(m) }
func (*Table) ProtoMessage() {}
func (*Table) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Table) GetColumnDefinitions() []*ColumnDefinition {
if m != nil {
return m.ColumnDefinitions
}
return nil
}
type Column struct {
// Types that are valid to be assigned to Value:
// *Column_String_
// *Column_Int32
// *Column_Int64
// *Column_Uint32
// *Column_Uint64
// *Column_Bytes
// *Column_Bool
Value isColumn_Value `protobuf_oneof:"value"`
}
func (m *Column) Reset() { *m = Column{} }
func (m *Column) String() string { return proto.CompactTextString(m) }
func (*Column) ProtoMessage() {}
func (*Column) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
type isColumn_Value interface {
isColumn_Value()
}
type Column_String_ struct {
String_ string `protobuf:"bytes,1,opt,name=string,oneof"`
}
type Column_Int32 struct {
Int32 int32 `protobuf:"varint,2,opt,name=int32,oneof"`
}
type Column_Int64 struct {
Int64 int64 `protobuf:"varint,3,opt,name=int64,oneof"`
}
type Column_Uint32 struct {
Uint32 uint32 `protobuf:"varint,4,opt,name=uint32,oneof"`
}
type Column_Uint64 struct {
Uint64 uint64 `protobuf:"varint,5,opt,name=uint64,oneof"`
}
type Column_Bytes struct {
Bytes []byte `protobuf:"bytes,6,opt,name=bytes,proto3,oneof"`
}
type Column_Bool struct {
Bool bool `protobuf:"varint,7,opt,name=bool,oneof"`
}
func (*Column_String_) isColumn_Value() {}
func (*Column_Int32) isColumn_Value() {}
func (*Column_Int64) isColumn_Value() {}
func (*Column_Uint32) isColumn_Value() {}
func (*Column_Uint64) isColumn_Value() {}
func (*Column_Bytes) isColumn_Value() {}
func (*Column_Bool) isColumn_Value() {}
func (m *Column) GetValue() isColumn_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *Column) GetString_() string {
if x, ok := m.GetValue().(*Column_String_); ok {
return x.String_
}
return ""
}
func (m *Column) GetInt32() int32 {
if x, ok := m.GetValue().(*Column_Int32); ok {
return x.Int32
}
return 0
}
func (m *Column) GetInt64() int64 {
if x, ok := m.GetValue().(*Column_Int64); ok {
return x.Int64
}
return 0
}
func (m *Column) GetUint32() uint32 {
if x, ok := m.GetValue().(*Column_Uint32); ok {
return x.Uint32
}
return 0
}
func (m *Column) GetUint64() uint64 {
if x, ok := m.GetValue().(*Column_Uint64); ok {
return x.Uint64
}
return 0
}
func (m *Column) GetBytes() []byte {
if x, ok := m.GetValue().(*Column_Bytes); ok {
return x.Bytes
}
return nil
}
func (m *Column) GetBool() bool {
if x, ok := m.GetValue().(*Column_Bool); ok {
return x.Bool
}
return false
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Column) 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 _Column_OneofMarshaler, _Column_OneofUnmarshaler, _Column_OneofSizer, []interface{}{
(*Column_String_)(nil),
(*Column_Int32)(nil),
(*Column_Int64)(nil),
(*Column_Uint32)(nil),
(*Column_Uint64)(nil),
(*Column_Bytes)(nil),
(*Column_Bool)(nil),
}
}
func _Column_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Column)
// value
switch x := m.Value.(type) {
case *Column_String_:
b.EncodeVarint(1<<3 | proto.WireBytes)
b.EncodeStringBytes(x.String_)
case *Column_Int32:
b.EncodeVarint(2<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Int32))
case *Column_Int64:
b.EncodeVarint(3<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Int64))
case *Column_Uint32:
b.EncodeVarint(4<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Uint32))
case *Column_Uint64:
b.EncodeVarint(5<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Uint64))
case *Column_Bytes:
b.EncodeVarint(6<<3 | proto.WireBytes)
b.EncodeRawBytes(x.Bytes)
case *Column_Bool:
t := uint64(0)
if x.Bool {
t = 1
}
b.EncodeVarint(7<<3 | proto.WireVarint)
b.EncodeVarint(t)
case nil:
default:
return fmt.Errorf("Column.Value has unexpected type %T", x)
}
return nil
}
func _Column_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Column)
switch tag {
case 1: // value.string
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Value = &Column_String_{x}
return true, err
case 2: // value.int32
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &Column_Int32{int32(x)}
return true, err
case 3: // value.int64
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &Column_Int64{int64(x)}
return true, err
case 4: // value.uint32
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &Column_Uint32{uint32(x)}
return true, err
case 5: // value.uint64
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &Column_Uint64{x}
return true, err
case 6: // value.bytes
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Value = &Column_Bytes{x}
return true, err
case 7: // value.bool
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &Column_Bool{x != 0}
return true, err
default:
return false, nil
}
}
func _Column_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Column)
// value
switch x := m.Value.(type) {
case *Column_String_:
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.String_)))
n += len(x.String_)
case *Column_Int32:
n += proto.SizeVarint(2<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.Int32))
case *Column_Int64:
n += proto.SizeVarint(3<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.Int64))
case *Column_Uint32:
n += proto.SizeVarint(4<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.Uint32))
case *Column_Uint64:
n += proto.SizeVarint(5<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.Uint64))
case *Column_Bytes:
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.Bytes)))
n += len(x.Bytes)
case *Column_Bool:
n += proto.SizeVarint(7<<3 | proto.WireVarint)
n += 1
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type Row struct {
Columns []*Column `protobuf:"bytes,1,rep,name=columns" json:"columns,omitempty"`
}
func (m *Row) Reset() { *m = Row{} }
func (m *Row) String() string { return proto.CompactTextString(m) }
func (*Row) ProtoMessage() {}
func (*Row) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Row) GetColumns() []*Column {
if m != nil {
return m.Columns
}
return nil
}
func init() {
proto.RegisterType((*ColumnDefinition)(nil), "shim.ColumnDefinition")
proto.RegisterType((*Table)(nil), "shim.Table")
proto.RegisterType((*Column)(nil), "shim.Column")
proto.RegisterType((*Row)(nil), "shim.Row")
proto.RegisterEnum("shim.ColumnDefinition_Type", ColumnDefinition_Type_name, ColumnDefinition_Type_value)
}
func init() { proto.RegisterFile("chaincode.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 351 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x52, 0xcd, 0x6a, 0xea, 0x40,
0x14, 0x36, 0x66, 0x12, 0xf5, 0x5c, 0xef, 0xbd, 0xe9, 0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0,
0x6c, 0x75, 0xf4, 0xc8, 0x02, 0x6f, 0xb0, 0xfb, 0x7f, 0xa2, 0xde, 0xe9, 0x1b, 0xd8, 0xef, 0x40,
0xf0, 0x69, 0x81, 0x6b, 0x7c, 0xd4, 0x07, 0xb7, 0x28, 0x77, 0x99, 0x78, 0x35, 0x9f, 0x79, 0x68,
0xb0, 0x0a, 0xd3, 0x1e, 0x38, 0x99, 0x28, 0x07, 0x91, 0xae, 0xc8, 0x41, 0xc1, 0xc0, 0x8a, 0x1f,
0x0d, 0x75, 0x15, 0x76, 0xc5, 0x8f, 0x86, 0x6a, 0xd3, 0xde, 0x04, 0x08, 0x0a, 0x7f, 0xd5, 0x26,
0x83, 0x6b, 0x05, 0x23, 0x0e, 0x2a, 0xa4, 0x56, 0x30, 0x83, 0xbb, 0xd2, 0x43, 0xc9, 0x0b, 0xdf,
0x45, 0xa1, 0xab, 0x76, 0x69, 0x48, 0xcf, 0x81, 0xa4, 0x52, 0xe6, 0x7e, 0x4b, 0xb5, 0x8d, 0xb4,
0x46, 0xe3, 0x16, 0x38, 0xef, 0x49, 0xbe, 0xe7, 0xc1, 0x35, 0xd8, 0x4c, 0x7e, 0xd0, 0x2b, 0x68,
0x99, 0xdb, 0x0a, 0x7c, 0xbc, 0xaa, 0xa0, 0xfb, 0xb3, 0x02, 0x56, 0x8b, 0xa9, 0xab, 0xff, 0x90,
0xc1, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0xda, 0xb2, 0xc7, 0x34, 0x02, 0x00, 0x00,
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。