forked from hyperledger/fabric-protos-go
-
Notifications
You must be signed in to change notification settings - Fork 2
/
collection.pb.go
371 lines (327 loc) · 15.5 KB
/
collection.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: common/collection.proto
package common
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
// CollectionConfigPackage represents an array of CollectionConfig
// messages; the extra struct is required because repeated oneof is
// forbidden by the protobuf syntax
//
// Deprecated: Do not use.
type CollectionConfigPackage struct {
Config []*CollectionConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CollectionConfigPackage) Reset() { *m = CollectionConfigPackage{} }
func (m *CollectionConfigPackage) String() string { return proto.CompactTextString(m) }
func (*CollectionConfigPackage) ProtoMessage() {}
func (*CollectionConfigPackage) Descriptor() ([]byte, []int) {
return fileDescriptor_89f245fc544906c7, []int{0}
}
func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollectionConfigPackage.Unmarshal(m, b)
}
func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollectionConfigPackage.Marshal(b, m, deterministic)
}
func (m *CollectionConfigPackage) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectionConfigPackage.Merge(m, src)
}
func (m *CollectionConfigPackage) XXX_Size() int {
return xxx_messageInfo_CollectionConfigPackage.Size(m)
}
func (m *CollectionConfigPackage) XXX_DiscardUnknown() {
xxx_messageInfo_CollectionConfigPackage.DiscardUnknown(m)
}
var xxx_messageInfo_CollectionConfigPackage proto.InternalMessageInfo
func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig {
if m != nil {
return m.Config
}
return nil
}
// CollectionConfig defines the configuration of a collection object;
// it currently contains a single, static type.
// Dynamic collections are deferred.
//
// Deprecated: Do not use.
type CollectionConfig struct {
// Types that are valid to be assigned to Payload:
// *CollectionConfig_StaticCollectionConfig
Payload isCollectionConfig_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CollectionConfig) Reset() { *m = CollectionConfig{} }
func (m *CollectionConfig) String() string { return proto.CompactTextString(m) }
func (*CollectionConfig) ProtoMessage() {}
func (*CollectionConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_89f245fc544906c7, []int{1}
}
func (m *CollectionConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollectionConfig.Unmarshal(m, b)
}
func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollectionConfig.Marshal(b, m, deterministic)
}
func (m *CollectionConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectionConfig.Merge(m, src)
}
func (m *CollectionConfig) XXX_Size() int {
return xxx_messageInfo_CollectionConfig.Size(m)
}
func (m *CollectionConfig) XXX_DiscardUnknown() {
xxx_messageInfo_CollectionConfig.DiscardUnknown(m)
}
var xxx_messageInfo_CollectionConfig proto.InternalMessageInfo
type isCollectionConfig_Payload interface {
isCollectionConfig_Payload()
}
type CollectionConfig_StaticCollectionConfig struct {
StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"`
}
func (*CollectionConfig_StaticCollectionConfig) isCollectionConfig_Payload() {}
func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig {
if x, ok := m.GetPayload().(*CollectionConfig_StaticCollectionConfig); ok {
return x.StaticCollectionConfig
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*CollectionConfig) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CollectionConfig_StaticCollectionConfig)(nil),
}
}
// StaticCollectionConfig constitutes the configuration parameters of a
// static collection object. Static collections are collections that are
// known at chaincode instantiation time, and that cannot be changed.
// Dynamic collections are deferred.
//
// Deprecated: Do not use.
type StaticCollectionConfig struct {
// the name of the collection inside the denoted chaincode
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// a reference to a policy residing / managed in the config block
// to define which orgs have access to this collection’s private data
MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"`
// The minimum number of peers private data will be sent to upon
// endorsement. The endorsement would fail if dissemination to at least
// this number of peers is not achieved.
RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"`
// The maximum number of peers that private data will be sent to
// upon endorsement. This number has to be bigger than required_peer_count.
MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"`
// The number of blocks after which the collection data expires.
// For instance if the value is set to 10, a key last modified by block number 100
// will be purged at block number 111. A zero value is treated same as MaxUint64
BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"`
// The member only read access denotes whether only collection member clients
// can read the private data (if set to true), or even non members can
// read the data (if set to false, for example if you want to implement more granular
// access logic in the chaincode)
MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"`
// The member only write access denotes whether only collection member clients
// can write the private data (if set to true), or even non members can
// write the data (if set to false, for example if you want to implement more granular
// access logic in the chaincode)
MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"`
// a reference to a policy residing / managed in the config block
// to define the endorsement policy for this collection
EndorsementPolicy *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StaticCollectionConfig) Reset() { *m = StaticCollectionConfig{} }
func (m *StaticCollectionConfig) String() string { return proto.CompactTextString(m) }
func (*StaticCollectionConfig) ProtoMessage() {}
func (*StaticCollectionConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_89f245fc544906c7, []int{2}
}
func (m *StaticCollectionConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StaticCollectionConfig.Unmarshal(m, b)
}
func (m *StaticCollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StaticCollectionConfig.Marshal(b, m, deterministic)
}
func (m *StaticCollectionConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_StaticCollectionConfig.Merge(m, src)
}
func (m *StaticCollectionConfig) XXX_Size() int {
return xxx_messageInfo_StaticCollectionConfig.Size(m)
}
func (m *StaticCollectionConfig) XXX_DiscardUnknown() {
xxx_messageInfo_StaticCollectionConfig.DiscardUnknown(m)
}
var xxx_messageInfo_StaticCollectionConfig proto.InternalMessageInfo
func (m *StaticCollectionConfig) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig {
if m != nil {
return m.MemberOrgsPolicy
}
return nil
}
func (m *StaticCollectionConfig) GetRequiredPeerCount() int32 {
if m != nil {
return m.RequiredPeerCount
}
return 0
}
func (m *StaticCollectionConfig) GetMaximumPeerCount() int32 {
if m != nil {
return m.MaximumPeerCount
}
return 0
}
func (m *StaticCollectionConfig) GetBlockToLive() uint64 {
if m != nil {
return m.BlockToLive
}
return 0
}
func (m *StaticCollectionConfig) GetMemberOnlyRead() bool {
if m != nil {
return m.MemberOnlyRead
}
return false
}
func (m *StaticCollectionConfig) GetMemberOnlyWrite() bool {
if m != nil {
return m.MemberOnlyWrite
}
return false
}
func (m *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy {
if m != nil {
return m.EndorsementPolicy
}
return nil
}
// Collection policy configuration. Initially, the configuration can only
// contain a SignaturePolicy. In the future, the SignaturePolicy may be a
// more general Policy. Instead of containing the actual policy, the
// configuration may in the future contain a string reference to a policy.
//
// Deprecated: Do not use.
type CollectionPolicyConfig struct {
// Types that are valid to be assigned to Payload:
// *CollectionPolicyConfig_SignaturePolicy
Payload isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CollectionPolicyConfig) Reset() { *m = CollectionPolicyConfig{} }
func (m *CollectionPolicyConfig) String() string { return proto.CompactTextString(m) }
func (*CollectionPolicyConfig) ProtoMessage() {}
func (*CollectionPolicyConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_89f245fc544906c7, []int{3}
}
func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollectionPolicyConfig.Unmarshal(m, b)
}
func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollectionPolicyConfig.Marshal(b, m, deterministic)
}
func (m *CollectionPolicyConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollectionPolicyConfig.Merge(m, src)
}
func (m *CollectionPolicyConfig) XXX_Size() int {
return xxx_messageInfo_CollectionPolicyConfig.Size(m)
}
func (m *CollectionPolicyConfig) XXX_DiscardUnknown() {
xxx_messageInfo_CollectionPolicyConfig.DiscardUnknown(m)
}
var xxx_messageInfo_CollectionPolicyConfig proto.InternalMessageInfo
type isCollectionPolicyConfig_Payload interface {
isCollectionPolicyConfig_Payload()
}
type CollectionPolicyConfig_SignaturePolicy struct {
SignaturePolicy *SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
}
func (*CollectionPolicyConfig_SignaturePolicy) isCollectionPolicyConfig_Payload() {}
func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *CollectionPolicyConfig) GetSignaturePolicy() *SignaturePolicyEnvelope {
if x, ok := m.GetPayload().(*CollectionPolicyConfig_SignaturePolicy); ok {
return x.SignaturePolicy
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*CollectionPolicyConfig_SignaturePolicy)(nil),
}
}
func init() {
proto.RegisterType((*CollectionConfigPackage)(nil), "common.CollectionConfigPackage")
proto.RegisterType((*CollectionConfig)(nil), "common.CollectionConfig")
proto.RegisterType((*StaticCollectionConfig)(nil), "common.StaticCollectionConfig")
proto.RegisterType((*CollectionPolicyConfig)(nil), "common.CollectionPolicyConfig")
}
func init() { proto.RegisterFile("common/collection.proto", fileDescriptor_89f245fc544906c7) }
var fileDescriptor_89f245fc544906c7 = []byte{
// 479 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
0x14, 0xc6, 0x97, 0xb5, 0xeb, 0x36, 0x57, 0xb0, 0xd4, 0x88, 0x2e, 0x70, 0x80, 0xaa, 0xe2, 0x10,
0x21, 0x96, 0xa2, 0x71, 0xe3, 0xc6, 0x2a, 0xa4, 0x1e, 0x2a, 0xad, 0x0a, 0x08, 0xa4, 0x5d, 0x22,
0xc7, 0x79, 0xcb, 0xac, 0x39, 0x76, 0xb0, 0x9d, 0x42, 0x0e, 0xfc, 0x2f, 0xfc, 0xa9, 0xa8, 0x76,
0xd2, 0x74, 0x55, 0x6f, 0xed, 0xfb, 0x7e, 0xef, 0x7b, 0xcf, 0x9f, 0x5e, 0xd0, 0x25, 0x95, 0x45,
0x21, 0xc5, 0x8c, 0x4a, 0xce, 0x81, 0x1a, 0x26, 0x45, 0x54, 0x2a, 0x69, 0x24, 0x1e, 0x38, 0xe1,
0xf5, 0xcb, 0x06, 0x28, 0x25, 0x67, 0x94, 0x81, 0x76, 0xf2, 0xf4, 0x16, 0x5d, 0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