forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchaincode.pb.go
625 lines (546 loc) · 28.8 KB
/
chaincode.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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
// Code generated by protoc-gen-go.
// source: chaincode.proto
// DO NOT EDIT!
package protos
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// Confidentiality Levels
type ConfidentialityLevel int32
const (
ConfidentialityLevel_PUBLIC ConfidentialityLevel = 0
ConfidentialityLevel_CONFIDENTIAL ConfidentialityLevel = 1
)
var ConfidentialityLevel_name = map[int32]string{
0: "PUBLIC",
1: "CONFIDENTIAL",
}
var ConfidentialityLevel_value = map[string]int32{
"PUBLIC": 0,
"CONFIDENTIAL": 1,
}
func (x ConfidentialityLevel) String() string {
return proto.EnumName(ConfidentialityLevel_name, int32(x))
}
func (ConfidentialityLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
type ChaincodeSpec_Type int32
const (
ChaincodeSpec_UNDEFINED ChaincodeSpec_Type = 0
ChaincodeSpec_GOLANG ChaincodeSpec_Type = 1
ChaincodeSpec_NODE ChaincodeSpec_Type = 2
ChaincodeSpec_CAR ChaincodeSpec_Type = 3
ChaincodeSpec_JAVA ChaincodeSpec_Type = 4
)
var ChaincodeSpec_Type_name = map[int32]string{
0: "UNDEFINED",
1: "GOLANG",
2: "NODE",
3: "CAR",
4: "JAVA",
}
var ChaincodeSpec_Type_value = map[string]int32{
"UNDEFINED": 0,
"GOLANG": 1,
"NODE": 2,
"CAR": 3,
"JAVA": 4,
}
func (x ChaincodeSpec_Type) String() string {
return proto.EnumName(ChaincodeSpec_Type_name, int32(x))
}
func (ChaincodeSpec_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 0} }
type ChaincodeDeploymentSpec_ExecutionEnvironment int32
const (
ChaincodeDeploymentSpec_DOCKER ChaincodeDeploymentSpec_ExecutionEnvironment = 0
ChaincodeDeploymentSpec_SYSTEM ChaincodeDeploymentSpec_ExecutionEnvironment = 1
)
var ChaincodeDeploymentSpec_ExecutionEnvironment_name = map[int32]string{
0: "DOCKER",
1: "SYSTEM",
}
var ChaincodeDeploymentSpec_ExecutionEnvironment_value = map[string]int32{
"DOCKER": 0,
"SYSTEM": 1,
}
func (x ChaincodeDeploymentSpec_ExecutionEnvironment) String() string {
return proto.EnumName(ChaincodeDeploymentSpec_ExecutionEnvironment_name, int32(x))
}
func (ChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor() ([]byte, []int) {
return fileDescriptor2, []int{3, 0}
}
type ChaincodeMessage_Type int32
const (
ChaincodeMessage_UNDEFINED ChaincodeMessage_Type = 0
ChaincodeMessage_REGISTER ChaincodeMessage_Type = 1
ChaincodeMessage_REGISTERED ChaincodeMessage_Type = 2
ChaincodeMessage_INIT ChaincodeMessage_Type = 3
ChaincodeMessage_READY ChaincodeMessage_Type = 4
ChaincodeMessage_TRANSACTION ChaincodeMessage_Type = 5
ChaincodeMessage_COMPLETED ChaincodeMessage_Type = 6
ChaincodeMessage_ERROR ChaincodeMessage_Type = 7
ChaincodeMessage_GET_STATE ChaincodeMessage_Type = 8
ChaincodeMessage_PUT_STATE ChaincodeMessage_Type = 9
ChaincodeMessage_DEL_STATE ChaincodeMessage_Type = 10
ChaincodeMessage_INVOKE_CHAINCODE ChaincodeMessage_Type = 11
ChaincodeMessage_INVOKE_QUERY ChaincodeMessage_Type = 12
ChaincodeMessage_RESPONSE ChaincodeMessage_Type = 13
ChaincodeMessage_QUERY ChaincodeMessage_Type = 14
ChaincodeMessage_QUERY_COMPLETED ChaincodeMessage_Type = 15
ChaincodeMessage_QUERY_ERROR ChaincodeMessage_Type = 16
ChaincodeMessage_RANGE_QUERY_STATE ChaincodeMessage_Type = 17
ChaincodeMessage_RANGE_QUERY_STATE_NEXT ChaincodeMessage_Type = 18
ChaincodeMessage_RANGE_QUERY_STATE_CLOSE ChaincodeMessage_Type = 19
ChaincodeMessage_KEEPALIVE ChaincodeMessage_Type = 20
)
var ChaincodeMessage_Type_name = map[int32]string{
0: "UNDEFINED",
1: "REGISTER",
2: "REGISTERED",
3: "INIT",
4: "READY",
5: "TRANSACTION",
6: "COMPLETED",
7: "ERROR",
8: "GET_STATE",
9: "PUT_STATE",
10: "DEL_STATE",
11: "INVOKE_CHAINCODE",
12: "INVOKE_QUERY",
13: "RESPONSE",
14: "QUERY",
15: "QUERY_COMPLETED",
16: "QUERY_ERROR",
17: "RANGE_QUERY_STATE",
18: "RANGE_QUERY_STATE_NEXT",
19: "RANGE_QUERY_STATE_CLOSE",
20: "KEEPALIVE",
}
var ChaincodeMessage_Type_value = map[string]int32{
"UNDEFINED": 0,
"REGISTER": 1,
"REGISTERED": 2,
"INIT": 3,
"READY": 4,
"TRANSACTION": 5,
"COMPLETED": 6,
"ERROR": 7,
"GET_STATE": 8,
"PUT_STATE": 9,
"DEL_STATE": 10,
"INVOKE_CHAINCODE": 11,
"INVOKE_QUERY": 12,
"RESPONSE": 13,
"QUERY": 14,
"QUERY_COMPLETED": 15,
"QUERY_ERROR": 16,
"RANGE_QUERY_STATE": 17,
"RANGE_QUERY_STATE_NEXT": 18,
"RANGE_QUERY_STATE_CLOSE": 19,
"KEEPALIVE": 20,
}
func (x ChaincodeMessage_Type) String() string {
return proto.EnumName(ChaincodeMessage_Type_name, int32(x))
}
func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{6, 0} }
// ChaincodeID contains the path as specified by the deploy transaction
// that created it as well as the hashCode that is generated by the
// system for the path. From the user level (ie, CLI, REST API and so on)
// deploy transaction is expected to provide the path and other requests
// are expected to provide the hashCode. The other value will be ignored.
// Internally, the structure could contain both values. For instance, the
// hashCode will be set when first generated using the path
type ChaincodeID struct {
// deploy transaction will use the path
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
// all other requests will use the name (really a hashcode) generated by
// the deploy transaction
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
func (m *ChaincodeID) Reset() { *m = ChaincodeID{} }
func (m *ChaincodeID) String() string { return proto.CompactTextString(m) }
func (*ChaincodeID) ProtoMessage() {}
func (*ChaincodeID) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
// Carries the chaincode function and its arguments.
// UnmarshalJSON in transaction.go converts the string-based REST/JSON input to
// the []byte-based current ChaincodeInput structure.
type ChaincodeInput struct {
Args [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
}
func (m *ChaincodeInput) Reset() { *m = ChaincodeInput{} }
func (m *ChaincodeInput) String() string { return proto.CompactTextString(m) }
func (*ChaincodeInput) ProtoMessage() {}
func (*ChaincodeInput) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
// Carries the chaincode specification. This is the actual metadata required for
// defining a chaincode.
type ChaincodeSpec struct {
Type ChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,enum=protos.ChaincodeSpec_Type" json:"type,omitempty"`
ChaincodeID *ChaincodeID `protobuf:"bytes,2,opt,name=chaincodeID" json:"chaincodeID,omitempty"`
CtorMsg *ChaincodeInput `protobuf:"bytes,3,opt,name=ctorMsg" json:"ctorMsg,omitempty"`
Timeout int32 `protobuf:"varint,4,opt,name=timeout" json:"timeout,omitempty"`
SecureContext string `protobuf:"bytes,5,opt,name=secureContext" json:"secureContext,omitempty"`
ConfidentialityLevel ConfidentialityLevel `protobuf:"varint,6,opt,name=confidentialityLevel,enum=protos.ConfidentialityLevel" json:"confidentialityLevel,omitempty"`
Metadata []byte `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"`
Attributes []string `protobuf:"bytes,8,rep,name=attributes" json:"attributes,omitempty"`
}
func (m *ChaincodeSpec) Reset() { *m = ChaincodeSpec{} }
func (m *ChaincodeSpec) String() string { return proto.CompactTextString(m) }
func (*ChaincodeSpec) ProtoMessage() {}
func (*ChaincodeSpec) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
func (m *ChaincodeSpec) GetChaincodeID() *ChaincodeID {
if m != nil {
return m.ChaincodeID
}
return nil
}
func (m *ChaincodeSpec) GetCtorMsg() *ChaincodeInput {
if m != nil {
return m.CtorMsg
}
return nil
}
// Specify the deployment of a chaincode.
// TODO: Define `codePackage`.
type ChaincodeDeploymentSpec struct {
ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincodeSpec" json:"chaincodeSpec,omitempty"`
// Controls when the chaincode becomes executable.
EffectiveDate *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=effectiveDate" json:"effectiveDate,omitempty"`
CodePackage []byte `protobuf:"bytes,3,opt,name=codePackage,proto3" json:"codePackage,omitempty"`
ExecEnv ChaincodeDeploymentSpec_ExecutionEnvironment `protobuf:"varint,4,opt,name=execEnv,enum=protos.ChaincodeDeploymentSpec_ExecutionEnvironment" json:"execEnv,omitempty"`
}
func (m *ChaincodeDeploymentSpec) Reset() { *m = ChaincodeDeploymentSpec{} }
func (m *ChaincodeDeploymentSpec) String() string { return proto.CompactTextString(m) }
func (*ChaincodeDeploymentSpec) ProtoMessage() {}
func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec {
if m != nil {
return m.ChaincodeSpec
}
return nil
}
func (m *ChaincodeDeploymentSpec) GetEffectiveDate() *google_protobuf.Timestamp {
if m != nil {
return m.EffectiveDate
}
return nil
}
// Carries the chaincode function and its arguments.
type ChaincodeInvocationSpec struct {
ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincodeSpec" json:"chaincodeSpec,omitempty"`
// This field can contain a user-specified ID generation algorithm
// If supplied, this will be used to generate a ID
// If not supplied (left empty), sha256base64 will be used
// The algorithm consists of two parts:
// 1, a hash function
// 2, a decoding used to decode user (string) input to bytes
// Currently, SHA256 with BASE64 is supported (e.g. idGenerationAlg='sha256base64')
IdGenerationAlg string `protobuf:"bytes,2,opt,name=idGenerationAlg" json:"idGenerationAlg,omitempty"`
}
func (m *ChaincodeInvocationSpec) Reset() { *m = ChaincodeInvocationSpec{} }
func (m *ChaincodeInvocationSpec) String() string { return proto.CompactTextString(m) }
func (*ChaincodeInvocationSpec) ProtoMessage() {}
func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec {
if m != nil {
return m.ChaincodeSpec
}
return nil
}
// This structure contain transaction data that we send to the chaincode
// container shim and allow the chaincode to access through the shim interface.
// TODO: Consider remove this message and just pass the transaction object
// to the shim and/or allow the chaincode to query transactions.
type ChaincodeSecurityContext struct {
CallerCert []byte `protobuf:"bytes,1,opt,name=callerCert,proto3" json:"callerCert,omitempty"`
CallerSign []byte `protobuf:"bytes,2,opt,name=callerSign,proto3" json:"callerSign,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
Binding []byte `protobuf:"bytes,4,opt,name=binding,proto3" json:"binding,omitempty"`
Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
ParentMetadata []byte `protobuf:"bytes,6,opt,name=parentMetadata,proto3" json:"parentMetadata,omitempty"`
TxTimestamp *google_protobuf.Timestamp `protobuf:"bytes,7,opt,name=txTimestamp" json:"txTimestamp,omitempty"`
}
func (m *ChaincodeSecurityContext) Reset() { *m = ChaincodeSecurityContext{} }
func (m *ChaincodeSecurityContext) String() string { return proto.CompactTextString(m) }
func (*ChaincodeSecurityContext) ProtoMessage() {}
func (*ChaincodeSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
func (m *ChaincodeSecurityContext) GetTxTimestamp() *google_protobuf.Timestamp {
if m != nil {
return m.TxTimestamp
}
return nil
}
type ChaincodeMessage struct {
Type ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,enum=protos.ChaincodeMessage_Type" json:"type,omitempty"`
Timestamp *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"`
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
Txid string `protobuf:"bytes,4,opt,name=txid" json:"txid,omitempty"`
SecurityContext *ChaincodeSecurityContext `protobuf:"bytes,5,opt,name=securityContext" json:"securityContext,omitempty"`
// event emmited by chaincode. Used only with Init or Invoke.
// This event is then stored (currently)
// with Block.NonHashData.TransactionResult
ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,6,opt,name=chaincodeEvent" json:"chaincodeEvent,omitempty"`
}
func (m *ChaincodeMessage) Reset() { *m = ChaincodeMessage{} }
func (m *ChaincodeMessage) String() string { return proto.CompactTextString(m) }
func (*ChaincodeMessage) ProtoMessage() {}
func (*ChaincodeMessage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
func (m *ChaincodeMessage) GetTimestamp() *google_protobuf.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
func (m *ChaincodeMessage) GetSecurityContext() *ChaincodeSecurityContext {
if m != nil {
return m.SecurityContext
}
return nil
}
func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent {
if m != nil {
return m.ChaincodeEvent
}
return nil
}
type PutStateInfo struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *PutStateInfo) Reset() { *m = PutStateInfo{} }
func (m *PutStateInfo) String() string { return proto.CompactTextString(m) }
func (*PutStateInfo) ProtoMessage() {}
func (*PutStateInfo) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
type RangeQueryState struct {
StartKey string `protobuf:"bytes,1,opt,name=startKey" json:"startKey,omitempty"`
EndKey string `protobuf:"bytes,2,opt,name=endKey" json:"endKey,omitempty"`
}
func (m *RangeQueryState) Reset() { *m = RangeQueryState{} }
func (m *RangeQueryState) String() string { return proto.CompactTextString(m) }
func (*RangeQueryState) ProtoMessage() {}
func (*RangeQueryState) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
type RangeQueryStateNext struct {
ID string `protobuf:"bytes,1,opt,name=ID,json=iD" json:"ID,omitempty"`
}
func (m *RangeQueryStateNext) Reset() { *m = RangeQueryStateNext{} }
func (m *RangeQueryStateNext) String() string { return proto.CompactTextString(m) }
func (*RangeQueryStateNext) ProtoMessage() {}
func (*RangeQueryStateNext) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
type RangeQueryStateClose struct {
ID string `protobuf:"bytes,1,opt,name=ID,json=iD" json:"ID,omitempty"`
}
func (m *RangeQueryStateClose) Reset() { *m = RangeQueryStateClose{} }
func (m *RangeQueryStateClose) String() string { return proto.CompactTextString(m) }
func (*RangeQueryStateClose) ProtoMessage() {}
func (*RangeQueryStateClose) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} }
type RangeQueryStateKeyValue struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (m *RangeQueryStateKeyValue) Reset() { *m = RangeQueryStateKeyValue{} }
func (m *RangeQueryStateKeyValue) String() string { return proto.CompactTextString(m) }
func (*RangeQueryStateKeyValue) ProtoMessage() {}
func (*RangeQueryStateKeyValue) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{11} }
type RangeQueryStateResponse struct {
KeysAndValues []*RangeQueryStateKeyValue `protobuf:"bytes,1,rep,name=keysAndValues" json:"keysAndValues,omitempty"`
HasMore bool `protobuf:"varint,2,opt,name=hasMore" json:"hasMore,omitempty"`
ID string `protobuf:"bytes,3,opt,name=ID,json=iD" json:"ID,omitempty"`
}
func (m *RangeQueryStateResponse) Reset() { *m = RangeQueryStateResponse{} }
func (m *RangeQueryStateResponse) String() string { return proto.CompactTextString(m) }
func (*RangeQueryStateResponse) ProtoMessage() {}
func (*RangeQueryStateResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{12} }
func (m *RangeQueryStateResponse) GetKeysAndValues() []*RangeQueryStateKeyValue {
if m != nil {
return m.KeysAndValues
}
return nil
}
func init() {
proto.RegisterType((*ChaincodeID)(nil), "protos.ChaincodeID")
proto.RegisterType((*ChaincodeInput)(nil), "protos.ChaincodeInput")
proto.RegisterType((*ChaincodeSpec)(nil), "protos.ChaincodeSpec")
proto.RegisterType((*ChaincodeDeploymentSpec)(nil), "protos.ChaincodeDeploymentSpec")
proto.RegisterType((*ChaincodeInvocationSpec)(nil), "protos.ChaincodeInvocationSpec")
proto.RegisterType((*ChaincodeSecurityContext)(nil), "protos.ChaincodeSecurityContext")
proto.RegisterType((*ChaincodeMessage)(nil), "protos.ChaincodeMessage")
proto.RegisterType((*PutStateInfo)(nil), "protos.PutStateInfo")
proto.RegisterType((*RangeQueryState)(nil), "protos.RangeQueryState")
proto.RegisterType((*RangeQueryStateNext)(nil), "protos.RangeQueryStateNext")
proto.RegisterType((*RangeQueryStateClose)(nil), "protos.RangeQueryStateClose")
proto.RegisterType((*RangeQueryStateKeyValue)(nil), "protos.RangeQueryStateKeyValue")
proto.RegisterType((*RangeQueryStateResponse)(nil), "protos.RangeQueryStateResponse")
proto.RegisterEnum("protos.ConfidentialityLevel", ConfidentialityLevel_name, ConfidentialityLevel_value)
proto.RegisterEnum("protos.ChaincodeSpec_Type", ChaincodeSpec_Type_name, ChaincodeSpec_Type_value)
proto.RegisterEnum("protos.ChaincodeDeploymentSpec_ExecutionEnvironment", ChaincodeDeploymentSpec_ExecutionEnvironment_name, ChaincodeDeploymentSpec_ExecutionEnvironment_value)
proto.RegisterEnum("protos.ChaincodeMessage_Type", ChaincodeMessage_Type_name, ChaincodeMessage_Type_value)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion3
// Client API for ChaincodeSupport service
type ChaincodeSupportClient interface {
Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error)
}
type chaincodeSupportClient struct {
cc *grpc.ClientConn
}
func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient {
return &chaincodeSupportClient{cc}
}
func (c *chaincodeSupportClient) Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error) {
stream, err := grpc.NewClientStream(ctx, &_ChaincodeSupport_serviceDesc.Streams[0], c.cc, "/protos.ChaincodeSupport/Register", opts...)
if err != nil {
return nil, err
}
x := &chaincodeSupportRegisterClient{stream}
return x, nil
}
type ChaincodeSupport_RegisterClient interface {
Send(*ChaincodeMessage) error
Recv() (*ChaincodeMessage, error)
grpc.ClientStream
}
type chaincodeSupportRegisterClient struct {
grpc.ClientStream
}
func (x *chaincodeSupportRegisterClient) Send(m *ChaincodeMessage) error {
return x.ClientStream.SendMsg(m)
}
func (x *chaincodeSupportRegisterClient) Recv() (*ChaincodeMessage, error) {
m := new(ChaincodeMessage)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// Server API for ChaincodeSupport service
type ChaincodeSupportServer interface {
Register(ChaincodeSupport_RegisterServer) error
}
func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer) {
s.RegisterService(&_ChaincodeSupport_serviceDesc, srv)
}
func _ChaincodeSupport_Register_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ChaincodeSupportServer).Register(&chaincodeSupportRegisterServer{stream})
}
type ChaincodeSupport_RegisterServer interface {
Send(*ChaincodeMessage) error
Recv() (*ChaincodeMessage, error)
grpc.ServerStream
}
type chaincodeSupportRegisterServer struct {
grpc.ServerStream
}
func (x *chaincodeSupportRegisterServer) Send(m *ChaincodeMessage) error {
return x.ServerStream.SendMsg(m)
}
func (x *chaincodeSupportRegisterServer) Recv() (*ChaincodeMessage, error) {
m := new(ChaincodeMessage)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _ChaincodeSupport_serviceDesc = grpc.ServiceDesc{
ServiceName: "protos.ChaincodeSupport",
HandlerType: (*ChaincodeSupportServer)(nil),
Methods: []grpc.MethodDesc{},
Streams: []grpc.StreamDesc{
{
StreamName: "Register",
Handler: _ChaincodeSupport_Register_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: fileDescriptor2,
}
func init() { proto.RegisterFile("chaincode.proto", fileDescriptor2) }
var fileDescriptor2 = []byte{
// 1173 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x56, 0x4b, 0x6f, 0xdb, 0x46,
0x10, 0x8e, 0x5e, 0x7e, 0x8c, 0x5e, 0xcc, 0x5a, 0x71, 0x04, 0xf7, 0x91, 0x80, 0x48, 0x03, 0xa3,
0x07, 0x25, 0x55, 0xd3, 0xa2, 0x40, 0x8b, 0xa0, 0x0c, 0xb9, 0x71, 0x19, 0xcb, 0x94, 0xb2, 0xa2,
0x8d, 0xe4, 0x64, 0xd0, 0xd4, 0x9a, 0x26, 0x22, 0x93, 0x04, 0xb9, 0x32, 0xec, 0x5b, 0xcf, 0x3d,
0xf5, 0x37, 0xf4, 0x47, 0xf4, 0xd0, 0x1f, 0xd4, 0xdf, 0xd1, 0xdd, 0xe5, 0x43, 0xcf, 0x04, 0x01,
0x7a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