forked from hyperledger/fabric-protos-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.pb.go
193 lines (164 loc) · 6.39 KB
/
db.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/lifecycle/db.proto
package lifecycle
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // please upgrade the proto package
// StateMetadata describes the keys in a namespace. It is necessary because
// in collections, range scans are not possible during transactions which
// write. Therefore we must track the keys in our namespace ourselves.
type StateMetadata struct {
Datatype string `protobuf:"bytes,1,opt,name=datatype,proto3" json:"datatype,omitempty"`
Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StateMetadata) Reset() { *m = StateMetadata{} }
func (m *StateMetadata) String() string { return proto.CompactTextString(m) }
func (*StateMetadata) ProtoMessage() {}
func (*StateMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_389b29a8aaf0aebb, []int{0}
}
func (m *StateMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StateMetadata.Unmarshal(m, b)
}
func (m *StateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StateMetadata.Marshal(b, m, deterministic)
}
func (m *StateMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_StateMetadata.Merge(m, src)
}
func (m *StateMetadata) XXX_Size() int {
return xxx_messageInfo_StateMetadata.Size(m)
}
func (m *StateMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_StateMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_StateMetadata proto.InternalMessageInfo
func (m *StateMetadata) GetDatatype() string {
if m != nil {
return m.Datatype
}
return ""
}
func (m *StateMetadata) GetFields() []string {
if m != nil {
return m.Fields
}
return nil
}
// StateData encodes a particular field of a datatype
type StateData struct {
// Types that are valid to be assigned to Type:
// *StateData_Int64
// *StateData_Bytes
// *StateData_String_
Type isStateData_Type `protobuf_oneof:"Type"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StateData) Reset() { *m = StateData{} }
func (m *StateData) String() string { return proto.CompactTextString(m) }
func (*StateData) ProtoMessage() {}
func (*StateData) Descriptor() ([]byte, []int) {
return fileDescriptor_389b29a8aaf0aebb, []int{1}
}
func (m *StateData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StateData.Unmarshal(m, b)
}
func (m *StateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StateData.Marshal(b, m, deterministic)
}
func (m *StateData) XXX_Merge(src proto.Message) {
xxx_messageInfo_StateData.Merge(m, src)
}
func (m *StateData) XXX_Size() int {
return xxx_messageInfo_StateData.Size(m)
}
func (m *StateData) XXX_DiscardUnknown() {
xxx_messageInfo_StateData.DiscardUnknown(m)
}
var xxx_messageInfo_StateData proto.InternalMessageInfo
type isStateData_Type interface {
isStateData_Type()
}
type StateData_Int64 struct {
Int64 int64 `protobuf:"varint,1,opt,name=Int64,proto3,oneof"`
}
type StateData_Bytes struct {
Bytes []byte `protobuf:"bytes,2,opt,name=Bytes,proto3,oneof"`
}
type StateData_String_ struct {
String_ string `protobuf:"bytes,3,opt,name=String,proto3,oneof"`
}
func (*StateData_Int64) isStateData_Type() {}
func (*StateData_Bytes) isStateData_Type() {}
func (*StateData_String_) isStateData_Type() {}
func (m *StateData) GetType() isStateData_Type {
if m != nil {
return m.Type
}
return nil
}
func (m *StateData) GetInt64() int64 {
if x, ok := m.GetType().(*StateData_Int64); ok {
return x.Int64
}
return 0
}
func (m *StateData) GetBytes() []byte {
if x, ok := m.GetType().(*StateData_Bytes); ok {
return x.Bytes
}
return nil
}
func (m *StateData) GetString_() string {
if x, ok := m.GetType().(*StateData_String_); ok {
return x.String_
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*StateData) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*StateData_Int64)(nil),
(*StateData_Bytes)(nil),
(*StateData_String_)(nil),
}
}
func init() {
proto.RegisterType((*StateMetadata)(nil), "lifecycle.StateMetadata")
proto.RegisterType((*StateData)(nil), "lifecycle.StateData")
}
func init() { proto.RegisterFile("peer/lifecycle/db.proto", fileDescriptor_389b29a8aaf0aebb) }
var fileDescriptor_389b29a8aaf0aebb = []byte{
// 235 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xb1, 0x4e, 0xc3, 0x30,
0x14, 0x45, 0x1b, 0x02, 0x11, 0x79, 0x82, 0x25, 0x43, 0x89, 0x98, 0xaa, 0x4e, 0x19, 0xa8, 0x3d,
0x80, 0xfa, 0x01, 0x81, 0xa1, 0x0c, 0x2c, 0x29, 0x13, 0x12, 0x83, 0x93, 0xbc, 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