github.com/ZihuaZhang/fabric-protos-go@v1.0.7/peer/policy.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: peer/policy.proto 3 4 package peer 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 common "github.com/ZihuaZhang/fabric-protos-go/common" 10 math "math" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24 // ApplicationPolicy captures the diffenrent policy types that 25 // are set and evaluted at the application level. 26 type ApplicationPolicy struct { 27 // Types that are valid to be assigned to Type: 28 // 29 // *ApplicationPolicy_SignaturePolicy 30 // *ApplicationPolicy_ChannelConfigPolicyReference 31 Type isApplicationPolicy_Type `protobuf_oneof:"Type"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35 } 36 37 func (m *ApplicationPolicy) Reset() { *m = ApplicationPolicy{} } 38 func (m *ApplicationPolicy) String() string { return proto.CompactTextString(m) } 39 func (*ApplicationPolicy) ProtoMessage() {} 40 func (*ApplicationPolicy) Descriptor() ([]byte, []int) { 41 return fileDescriptor_17aa1dd1e55c3e19, []int{0} 42 } 43 44 func (m *ApplicationPolicy) XXX_Unmarshal(b []byte) error { 45 return xxx_messageInfo_ApplicationPolicy.Unmarshal(m, b) 46 } 47 func (m *ApplicationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 return xxx_messageInfo_ApplicationPolicy.Marshal(b, m, deterministic) 49 } 50 func (m *ApplicationPolicy) XXX_Merge(src proto.Message) { 51 xxx_messageInfo_ApplicationPolicy.Merge(m, src) 52 } 53 func (m *ApplicationPolicy) XXX_Size() int { 54 return xxx_messageInfo_ApplicationPolicy.Size(m) 55 } 56 func (m *ApplicationPolicy) XXX_DiscardUnknown() { 57 xxx_messageInfo_ApplicationPolicy.DiscardUnknown(m) 58 } 59 60 var xxx_messageInfo_ApplicationPolicy proto.InternalMessageInfo 61 62 type isApplicationPolicy_Type interface { 63 isApplicationPolicy_Type() 64 } 65 66 type ApplicationPolicy_SignaturePolicy struct { 67 SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` 68 } 69 70 type ApplicationPolicy_ChannelConfigPolicyReference struct { 71 ChannelConfigPolicyReference string `protobuf:"bytes,2,opt,name=channel_config_policy_reference,json=channelConfigPolicyReference,proto3,oneof"` 72 } 73 74 func (*ApplicationPolicy_SignaturePolicy) isApplicationPolicy_Type() {} 75 76 func (*ApplicationPolicy_ChannelConfigPolicyReference) isApplicationPolicy_Type() {} 77 78 func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type { 79 if m != nil { 80 return m.Type 81 } 82 return nil 83 } 84 85 func (m *ApplicationPolicy) GetSignaturePolicy() *common.SignaturePolicyEnvelope { 86 if x, ok := m.GetType().(*ApplicationPolicy_SignaturePolicy); ok { 87 return x.SignaturePolicy 88 } 89 return nil 90 } 91 92 func (m *ApplicationPolicy) GetChannelConfigPolicyReference() string { 93 if x, ok := m.GetType().(*ApplicationPolicy_ChannelConfigPolicyReference); ok { 94 return x.ChannelConfigPolicyReference 95 } 96 return "" 97 } 98 99 // XXX_OneofWrappers is for the internal use of the proto package. 100 func (*ApplicationPolicy) XXX_OneofWrappers() []interface{} { 101 return []interface{}{ 102 (*ApplicationPolicy_SignaturePolicy)(nil), 103 (*ApplicationPolicy_ChannelConfigPolicyReference)(nil), 104 } 105 } 106 107 func init() { 108 proto.RegisterType((*ApplicationPolicy)(nil), "protos.ApplicationPolicy") 109 } 110 111 func init() { proto.RegisterFile("peer/policy.proto", fileDescriptor_17aa1dd1e55c3e19) } 112 113 var fileDescriptor_17aa1dd1e55c3e19 = []byte{ 114 // 243 bytes of a gzipped FileDescriptorProto 115 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xc1, 0x4a, 0xc3, 0x40, 116 0x10, 0x86, 0x1b, 0x91, 0x82, 0xeb, 0x41, 0x1b, 0x10, 0x8a, 0x08, 0x2d, 0x3d, 0xf5, 0x60, 0x37, 117 0xa0, 0x4f, 0x60, 0x45, 0xec, 0xc1, 0x83, 0x44, 0x4f, 0x5e, 0x42, 0xb2, 0x4e, 0x36, 0x0b, 0xdb, 118 0x9d, 0x61, 0x36, 0x15, 0xf2, 0x5a, 0x3e, 0xa1, 0x24, 0xd3, 0x80, 0x3d, 0xed, 0xe1, 0xfb, 0xfe, 119 0x9f, 0x9d, 0x5f, 0xcd, 0x08, 0x80, 0x33, 0x42, 0xef, 0x4c, 0xa7, 0x89, 0xb1, 0xc5, 0x74, 0x3a, 120 0x3c, 0xf1, 0xf6, 0xc6, 0xe0, 0x7e, 0x8f, 0x41, 0xa0, 0x83, 0x28, 0x78, 0xf5, 0x9b, 0xa8, 0xd9, 121 0x13, 0x91, 0x77, 0xa6, 0x6c, 0x1d, 0x86, 0xf7, 0x21, 0x9a, 0xbe, 0xa9, 0xeb, 0xe8, 0x6c, 0x28, 122 0xdb, 0x03, 0x43, 0x21, 0x75, 0xf3, 0x64, 0x99, 0xac, 0x2f, 0x1f, 0x16, 0x5a, 0x7a, 0xf4, 0xc7, 123 0xc8, 0x25, 0xf2, 0x12, 0x7e, 0xc0, 0x23, 0xc1, 0x6e, 0x92, 0x5f, 0xc5, 0x53, 0x94, 0xbe, 0xaa, 124 0x85, 0x69, 0xca, 0x10, 0xc0, 0x17, 0x06, 0x43, 0xed, 0xec, 0xb1, 0xb2, 0x60, 0xa8, 0x81, 0x21, 125 0x18, 0x98, 0x9f, 0x2d, 0x93, 0xf5, 0xc5, 0x6e, 0x92, 0xdf, 0x1d, 0xc5, 0xe7, 0xc1, 0x93, 0x7c, 126 0x3e, 0x5a, 0xdb, 0xa9, 0x3a, 0xff, 0xec, 0x08, 0xb6, 0xb9, 0x5a, 0x21, 0x5b, 0xdd, 0x74, 0x04, 127 0xec, 0xe1, 0xdb, 0x02, 0xeb, 0xba, 0xac, 0xd8, 0x19, 0x39, 0x2a, 0xea, 0x7e, 0x86, 0xaf, 0x7b, 128 0xeb, 0xda, 0xe6, 0x50, 0xf5, 0x1f, 0xce, 0xfe, 0xa9, 0x99, 0xa8, 0x1b, 0x51, 0x37, 0x16, 0xb3, 129 0xde, 0xae, 0x64, 0xa7, 0xc7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x76, 0x3a, 0x03, 0x43, 130 0x01, 0x00, 0x00, 131 }