github.com/ZihuaZhang/fabric-protos-go@v1.0.7/peer/lifecycle/db.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: peer/lifecycle/db.proto 3 4 package lifecycle 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 // StateMetadata describes the keys in a namespace. It is necessary because 24 // in collections, range scans are not possible during transactions which 25 // write. Therefore we must track the keys in our namespace ourselves. 26 type StateMetadata struct { 27 Datatype string `protobuf:"bytes,1,opt,name=datatype,proto3" json:"datatype,omitempty"` 28 Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32 } 33 34 func (m *StateMetadata) Reset() { *m = StateMetadata{} } 35 func (m *StateMetadata) String() string { return proto.CompactTextString(m) } 36 func (*StateMetadata) ProtoMessage() {} 37 func (*StateMetadata) Descriptor() ([]byte, []int) { 38 return fileDescriptor_389b29a8aaf0aebb, []int{0} 39 } 40 41 func (m *StateMetadata) XXX_Unmarshal(b []byte) error { 42 return xxx_messageInfo_StateMetadata.Unmarshal(m, b) 43 } 44 func (m *StateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 return xxx_messageInfo_StateMetadata.Marshal(b, m, deterministic) 46 } 47 func (m *StateMetadata) XXX_Merge(src proto.Message) { 48 xxx_messageInfo_StateMetadata.Merge(m, src) 49 } 50 func (m *StateMetadata) XXX_Size() int { 51 return xxx_messageInfo_StateMetadata.Size(m) 52 } 53 func (m *StateMetadata) XXX_DiscardUnknown() { 54 xxx_messageInfo_StateMetadata.DiscardUnknown(m) 55 } 56 57 var xxx_messageInfo_StateMetadata proto.InternalMessageInfo 58 59 func (m *StateMetadata) GetDatatype() string { 60 if m != nil { 61 return m.Datatype 62 } 63 return "" 64 } 65 66 func (m *StateMetadata) GetFields() []string { 67 if m != nil { 68 return m.Fields 69 } 70 return nil 71 } 72 73 // StateData encodes a particular field of a datatype 74 type StateData struct { 75 // Types that are valid to be assigned to Type: 76 // 77 // *StateData_Int64 78 // *StateData_Bytes 79 // *StateData_String_ 80 Type isStateData_Type `protobuf_oneof:"Type"` 81 XXX_NoUnkeyedLiteral struct{} `json:"-"` 82 XXX_unrecognized []byte `json:"-"` 83 XXX_sizecache int32 `json:"-"` 84 } 85 86 func (m *StateData) Reset() { *m = StateData{} } 87 func (m *StateData) String() string { return proto.CompactTextString(m) } 88 func (*StateData) ProtoMessage() {} 89 func (*StateData) Descriptor() ([]byte, []int) { 90 return fileDescriptor_389b29a8aaf0aebb, []int{1} 91 } 92 93 func (m *StateData) XXX_Unmarshal(b []byte) error { 94 return xxx_messageInfo_StateData.Unmarshal(m, b) 95 } 96 func (m *StateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 97 return xxx_messageInfo_StateData.Marshal(b, m, deterministic) 98 } 99 func (m *StateData) XXX_Merge(src proto.Message) { 100 xxx_messageInfo_StateData.Merge(m, src) 101 } 102 func (m *StateData) XXX_Size() int { 103 return xxx_messageInfo_StateData.Size(m) 104 } 105 func (m *StateData) XXX_DiscardUnknown() { 106 xxx_messageInfo_StateData.DiscardUnknown(m) 107 } 108 109 var xxx_messageInfo_StateData proto.InternalMessageInfo 110 111 type isStateData_Type interface { 112 isStateData_Type() 113 } 114 115 type StateData_Int64 struct { 116 Int64 int64 `protobuf:"varint,1,opt,name=Int64,proto3,oneof"` 117 } 118 119 type StateData_Bytes struct { 120 Bytes []byte `protobuf:"bytes,2,opt,name=Bytes,proto3,oneof"` 121 } 122 123 type StateData_String_ struct { 124 String_ string `protobuf:"bytes,3,opt,name=String,proto3,oneof"` 125 } 126 127 func (*StateData_Int64) isStateData_Type() {} 128 129 func (*StateData_Bytes) isStateData_Type() {} 130 131 func (*StateData_String_) isStateData_Type() {} 132 133 func (m *StateData) GetType() isStateData_Type { 134 if m != nil { 135 return m.Type 136 } 137 return nil 138 } 139 140 func (m *StateData) GetInt64() int64 { 141 if x, ok := m.GetType().(*StateData_Int64); ok { 142 return x.Int64 143 } 144 return 0 145 } 146 147 func (m *StateData) GetBytes() []byte { 148 if x, ok := m.GetType().(*StateData_Bytes); ok { 149 return x.Bytes 150 } 151 return nil 152 } 153 154 func (m *StateData) GetString_() string { 155 if x, ok := m.GetType().(*StateData_String_); ok { 156 return x.String_ 157 } 158 return "" 159 } 160 161 // XXX_OneofWrappers is for the internal use of the proto package. 162 func (*StateData) XXX_OneofWrappers() []interface{} { 163 return []interface{}{ 164 (*StateData_Int64)(nil), 165 (*StateData_Bytes)(nil), 166 (*StateData_String_)(nil), 167 } 168 } 169 170 func init() { 171 proto.RegisterType((*StateMetadata)(nil), "lifecycle.StateMetadata") 172 proto.RegisterType((*StateData)(nil), "lifecycle.StateData") 173 } 174 175 func init() { proto.RegisterFile("peer/lifecycle/db.proto", fileDescriptor_389b29a8aaf0aebb) } 176 177 var fileDescriptor_389b29a8aaf0aebb = []byte{ 178 // 235 bytes of a gzipped FileDescriptorProto 179 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xb1, 0x4e, 0xc3, 0x30, 180 0x14, 0x45, 0x1b, 0x02, 0x11, 0x79, 0x82, 0x25, 0x43, 0x89, 0x98, 0xaa, 0x4e, 0x19, 0xa8, 0x3d, 181 0x80, 0xfa, 0x01, 0x81, 0xa1, 0x0c, 0x2c, 0x29, 0x13, 0x12, 0x83, 0x93, 0xbc, 0xb8, 0x96, 0x4c, 182 0x6d, 0xb9, 0x8f, 0xc1, 0x7f, 0x8f, 0x6c, 0x57, 0x11, 0x9d, 0xac, 0x73, 0xad, 0x73, 0xad, 0x6b, 183 0x78, 0xb0, 0x88, 0x8e, 0x6b, 0x35, 0xe1, 0xe0, 0x07, 0x8d, 0x7c, 0xec, 0x99, 0x75, 0x86, 0x4c, 184 0x55, 0xce, 0xd9, 0xfa, 0x15, 0xee, 0xf7, 0x24, 0x08, 0x3f, 0x90, 0xc4, 0x28, 0x48, 0x54, 0x8f, 185 0x70, 0x1b, 0x4e, 0xf2, 0x16, 0xeb, 0x6c, 0x95, 0x35, 0x65, 0x37, 0x73, 0xb5, 0x84, 0x62, 0x52, 186 0xa8, 0xc7, 0x53, 0x7d, 0xb5, 0xca, 0x9b, 0xb2, 0x3b, 0xd3, 0xfa, 0x1b, 0xca, 0x58, 0xf2, 0x16, 187 0x0a, 0x96, 0x70, 0xf3, 0x7e, 0xa4, 0xed, 0x4b, 0xb4, 0xf3, 0xdd, 0xa2, 0x4b, 0x18, 0xf2, 0xd6, 188 0x13, 0x06, 0x37, 0x6b, 0xee, 0x42, 0x1e, 0xb1, 0xaa, 0xa1, 0xd8, 0x93, 0x53, 0x47, 0x59, 0xe7, 189 0xe1, 0xb9, 0xdd, 0xa2, 0x3b, 0x73, 0x5b, 0xc0, 0xf5, 0xa7, 0xb7, 0xd8, 0x4e, 0xf0, 0x64, 0x9c, 190 0x64, 0x07, 0x6f, 0xd1, 0x69, 0x1c, 0x25, 0x3a, 0x36, 0x89, 0xde, 0xa9, 0x21, 0xcd, 0x39, 0xb1, 191 0xb0, 0x93, 0xcd, 0x9b, 0xbe, 0xb6, 0x52, 0xd1, 0xe1, 0xb7, 0x67, 0x83, 0xf9, 0xe1, 0xff, 0x24, 192 0x9e, 0xa4, 0x4d, 0x92, 0x36, 0xd2, 0xf0, 0xcb, 0xff, 0xe9, 0x8b, 0x78, 0xf3, 0xfc, 0x17, 0x00, 193 0x00, 0xff, 0xff, 0xc6, 0xbc, 0x63, 0x86, 0x38, 0x01, 0x00, 0x00, 194 }