github.com/ZihuaZhang/fabric-protos-go@v1.0.7/peer/lifecycle/chaincode_definition.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: peer/lifecycle/chaincode_definition.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 // ChaincodeEndorsementInfo is (most) everything the peer needs to know in order 24 // to execute a chaincode 25 type ChaincodeEndorsementInfo struct { 26 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 27 InitRequired bool `protobuf:"varint,2,opt,name=init_required,json=initRequired,proto3" json:"init_required,omitempty"` 28 EndorsementPlugin string `protobuf:"bytes,3,opt,name=endorsement_plugin,json=endorsementPlugin,proto3" json:"endorsement_plugin,omitempty"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32 } 33 34 func (m *ChaincodeEndorsementInfo) Reset() { *m = ChaincodeEndorsementInfo{} } 35 func (m *ChaincodeEndorsementInfo) String() string { return proto.CompactTextString(m) } 36 func (*ChaincodeEndorsementInfo) ProtoMessage() {} 37 func (*ChaincodeEndorsementInfo) Descriptor() ([]byte, []int) { 38 return fileDescriptor_f0faa93bbd697c66, []int{0} 39 } 40 41 func (m *ChaincodeEndorsementInfo) XXX_Unmarshal(b []byte) error { 42 return xxx_messageInfo_ChaincodeEndorsementInfo.Unmarshal(m, b) 43 } 44 func (m *ChaincodeEndorsementInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 return xxx_messageInfo_ChaincodeEndorsementInfo.Marshal(b, m, deterministic) 46 } 47 func (m *ChaincodeEndorsementInfo) XXX_Merge(src proto.Message) { 48 xxx_messageInfo_ChaincodeEndorsementInfo.Merge(m, src) 49 } 50 func (m *ChaincodeEndorsementInfo) XXX_Size() int { 51 return xxx_messageInfo_ChaincodeEndorsementInfo.Size(m) 52 } 53 func (m *ChaincodeEndorsementInfo) XXX_DiscardUnknown() { 54 xxx_messageInfo_ChaincodeEndorsementInfo.DiscardUnknown(m) 55 } 56 57 var xxx_messageInfo_ChaincodeEndorsementInfo proto.InternalMessageInfo 58 59 func (m *ChaincodeEndorsementInfo) GetVersion() string { 60 if m != nil { 61 return m.Version 62 } 63 return "" 64 } 65 66 func (m *ChaincodeEndorsementInfo) GetInitRequired() bool { 67 if m != nil { 68 return m.InitRequired 69 } 70 return false 71 } 72 73 func (m *ChaincodeEndorsementInfo) GetEndorsementPlugin() string { 74 if m != nil { 75 return m.EndorsementPlugin 76 } 77 return "" 78 } 79 80 // ValidationInfo is (most) everything the peer needs to know in order 81 // to validate a transaction 82 type ChaincodeValidationInfo struct { 83 ValidationPlugin string `protobuf:"bytes,1,opt,name=validation_plugin,json=validationPlugin,proto3" json:"validation_plugin,omitempty"` 84 ValidationParameter []byte `protobuf:"bytes,2,opt,name=validation_parameter,json=validationParameter,proto3" json:"validation_parameter,omitempty"` 85 XXX_NoUnkeyedLiteral struct{} `json:"-"` 86 XXX_unrecognized []byte `json:"-"` 87 XXX_sizecache int32 `json:"-"` 88 } 89 90 func (m *ChaincodeValidationInfo) Reset() { *m = ChaincodeValidationInfo{} } 91 func (m *ChaincodeValidationInfo) String() string { return proto.CompactTextString(m) } 92 func (*ChaincodeValidationInfo) ProtoMessage() {} 93 func (*ChaincodeValidationInfo) Descriptor() ([]byte, []int) { 94 return fileDescriptor_f0faa93bbd697c66, []int{1} 95 } 96 97 func (m *ChaincodeValidationInfo) XXX_Unmarshal(b []byte) error { 98 return xxx_messageInfo_ChaincodeValidationInfo.Unmarshal(m, b) 99 } 100 func (m *ChaincodeValidationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 101 return xxx_messageInfo_ChaincodeValidationInfo.Marshal(b, m, deterministic) 102 } 103 func (m *ChaincodeValidationInfo) XXX_Merge(src proto.Message) { 104 xxx_messageInfo_ChaincodeValidationInfo.Merge(m, src) 105 } 106 func (m *ChaincodeValidationInfo) XXX_Size() int { 107 return xxx_messageInfo_ChaincodeValidationInfo.Size(m) 108 } 109 func (m *ChaincodeValidationInfo) XXX_DiscardUnknown() { 110 xxx_messageInfo_ChaincodeValidationInfo.DiscardUnknown(m) 111 } 112 113 var xxx_messageInfo_ChaincodeValidationInfo proto.InternalMessageInfo 114 115 func (m *ChaincodeValidationInfo) GetValidationPlugin() string { 116 if m != nil { 117 return m.ValidationPlugin 118 } 119 return "" 120 } 121 122 func (m *ChaincodeValidationInfo) GetValidationParameter() []byte { 123 if m != nil { 124 return m.ValidationParameter 125 } 126 return nil 127 } 128 129 func init() { 130 proto.RegisterType((*ChaincodeEndorsementInfo)(nil), "lifecycle.ChaincodeEndorsementInfo") 131 proto.RegisterType((*ChaincodeValidationInfo)(nil), "lifecycle.ChaincodeValidationInfo") 132 } 133 134 func init() { 135 proto.RegisterFile("peer/lifecycle/chaincode_definition.proto", fileDescriptor_f0faa93bbd697c66) 136 } 137 138 var fileDescriptor_f0faa93bbd697c66 = []byte{ 139 // 275 bytes of a gzipped FileDescriptorProto 140 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0x4f, 0x4b, 0xb5, 0x40, 141 0x14, 0xc6, 0xf1, 0x7d, 0xa1, 0xba, 0xc3, 0x0d, 0xba, 0x53, 0x90, 0xcb, 0xcb, 0x6d, 0x73, 0xa3, 142 0x1c, 0x89, 0xa0, 0x0f, 0x50, 0xb4, 0x68, 0x17, 0x2e, 0x5a, 0xb4, 0x91, 0x71, 0xe6, 0xa8, 0x07, 143 0x74, 0x8e, 0x1d, 0xf5, 0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 0xbf, 0xad, 0x9a, 0x57, 0xfb, 0x7c, 0xca, 0xb0, 0xc9, 155 0xdb, 0x44, 0x19, 0x2a, 0xc3, 0x45, 0x28, 0x1c, 0x43, 0xc1, 0x18, 0x0a, 0x32, 0x0a, 0xff, 0xfe, 156 0x49, 0x72, 0x32, 0x28, 0x8f, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x94, 0x68, 0xee, 0xac, 157 0x01, 0x00, 0x00, 158 }