github.com/ZihuaZhang/fabric-protos-go@v1.0.7/common/collection.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: common/collection.proto
     3  
     4  package common
     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  // CollectionConfigPackage represents an array of CollectionConfig
    24  // messages; the extra struct is required because repeated oneof is
    25  // forbidden by the protobuf syntax
    26  //
    27  // Deprecated: Do not use.
    28  type CollectionConfigPackage struct {
    29  	Config               []*CollectionConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"`
    30  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    31  	XXX_unrecognized     []byte              `json:"-"`
    32  	XXX_sizecache        int32               `json:"-"`
    33  }
    34  
    35  func (m *CollectionConfigPackage) Reset()         { *m = CollectionConfigPackage{} }
    36  func (m *CollectionConfigPackage) String() string { return proto.CompactTextString(m) }
    37  func (*CollectionConfigPackage) ProtoMessage()    {}
    38  func (*CollectionConfigPackage) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_89f245fc544906c7, []int{0}
    40  }
    41  
    42  func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error {
    43  	return xxx_messageInfo_CollectionConfigPackage.Unmarshal(m, b)
    44  }
    45  func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	return xxx_messageInfo_CollectionConfigPackage.Marshal(b, m, deterministic)
    47  }
    48  func (m *CollectionConfigPackage) XXX_Merge(src proto.Message) {
    49  	xxx_messageInfo_CollectionConfigPackage.Merge(m, src)
    50  }
    51  func (m *CollectionConfigPackage) XXX_Size() int {
    52  	return xxx_messageInfo_CollectionConfigPackage.Size(m)
    53  }
    54  func (m *CollectionConfigPackage) XXX_DiscardUnknown() {
    55  	xxx_messageInfo_CollectionConfigPackage.DiscardUnknown(m)
    56  }
    57  
    58  var xxx_messageInfo_CollectionConfigPackage proto.InternalMessageInfo
    59  
    60  func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig {
    61  	if m != nil {
    62  		return m.Config
    63  	}
    64  	return nil
    65  }
    66  
    67  // CollectionConfig defines the configuration of a collection object;
    68  // it currently contains a single, static type.
    69  // Dynamic collections are deferred.
    70  //
    71  // Deprecated: Do not use.
    72  type CollectionConfig struct {
    73  	// Types that are valid to be assigned to Payload:
    74  	//
    75  	//	*CollectionConfig_StaticCollectionConfig
    76  	Payload              isCollectionConfig_Payload `protobuf_oneof:"payload"`
    77  	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
    78  	XXX_unrecognized     []byte                     `json:"-"`
    79  	XXX_sizecache        int32                      `json:"-"`
    80  }
    81  
    82  func (m *CollectionConfig) Reset()         { *m = CollectionConfig{} }
    83  func (m *CollectionConfig) String() string { return proto.CompactTextString(m) }
    84  func (*CollectionConfig) ProtoMessage()    {}
    85  func (*CollectionConfig) Descriptor() ([]byte, []int) {
    86  	return fileDescriptor_89f245fc544906c7, []int{1}
    87  }
    88  
    89  func (m *CollectionConfig) XXX_Unmarshal(b []byte) error {
    90  	return xxx_messageInfo_CollectionConfig.Unmarshal(m, b)
    91  }
    92  func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    93  	return xxx_messageInfo_CollectionConfig.Marshal(b, m, deterministic)
    94  }
    95  func (m *CollectionConfig) XXX_Merge(src proto.Message) {
    96  	xxx_messageInfo_CollectionConfig.Merge(m, src)
    97  }
    98  func (m *CollectionConfig) XXX_Size() int {
    99  	return xxx_messageInfo_CollectionConfig.Size(m)
   100  }
   101  func (m *CollectionConfig) XXX_DiscardUnknown() {
   102  	xxx_messageInfo_CollectionConfig.DiscardUnknown(m)
   103  }
   104  
   105  var xxx_messageInfo_CollectionConfig proto.InternalMessageInfo
   106  
   107  type isCollectionConfig_Payload interface {
   108  	isCollectionConfig_Payload()
   109  }
   110  
   111  type CollectionConfig_StaticCollectionConfig struct {
   112  	StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"`
   113  }
   114  
   115  func (*CollectionConfig_StaticCollectionConfig) isCollectionConfig_Payload() {}
   116  
   117  func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload {
   118  	if m != nil {
   119  		return m.Payload
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig {
   125  	if x, ok := m.GetPayload().(*CollectionConfig_StaticCollectionConfig); ok {
   126  		return x.StaticCollectionConfig
   127  	}
   128  	return nil
   129  }
   130  
   131  // XXX_OneofWrappers is for the internal use of the proto package.
   132  func (*CollectionConfig) XXX_OneofWrappers() []interface{} {
   133  	return []interface{}{
   134  		(*CollectionConfig_StaticCollectionConfig)(nil),
   135  	}
   136  }
   137  
   138  // StaticCollectionConfig constitutes the configuration parameters of a
   139  // static collection object. Static collections are collections that are
   140  // known at chaincode instantiation time, and that cannot be changed.
   141  // Dynamic collections are deferred.
   142  //
   143  // Deprecated: Do not use.
   144  type StaticCollectionConfig struct {
   145  	// the name of the collection inside the denoted chaincode
   146  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   147  	// a reference to a policy residing / managed in the config block
   148  	// to define which orgs have access to this collection’s private data
   149  	MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"`
   150  	// The minimum number of peers private data will be sent to upon
   151  	// endorsement. The endorsement would fail if dissemination to at least
   152  	// this number of peers is not achieved.
   153  	RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"`
   154  	// The maximum number of peers that private data will be sent to
   155  	// upon endorsement. This number has to be bigger than required_peer_count.
   156  	MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"`
   157  	// The number of blocks after which the collection data expires.
   158  	// For instance if the value is set to 10, a key last modified by block number 100
   159  	// will be purged at block number 111. A zero value is treated same as MaxUint64
   160  	BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"`
   161  	// The member only read access denotes whether only collection member clients
   162  	// can read the private data (if set to true), or even non members can
   163  	// read the data (if set to false, for example if you want to implement more granular
   164  	// access logic in the chaincode)
   165  	MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"`
   166  	// The member only write access denotes whether only collection member clients
   167  	// can write the private data (if set to true), or even non members can
   168  	// write the data (if set to false, for example if you want to implement more granular
   169  	// access logic in the chaincode)
   170  	MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"`
   171  	// a reference to a policy residing / managed in the config block
   172  	// to define the endorsement policy for this collection
   173  	EndorsementPolicy    *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"`
   174  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
   175  	XXX_unrecognized     []byte             `json:"-"`
   176  	XXX_sizecache        int32              `json:"-"`
   177  }
   178  
   179  func (m *StaticCollectionConfig) Reset()         { *m = StaticCollectionConfig{} }
   180  func (m *StaticCollectionConfig) String() string { return proto.CompactTextString(m) }
   181  func (*StaticCollectionConfig) ProtoMessage()    {}
   182  func (*StaticCollectionConfig) Descriptor() ([]byte, []int) {
   183  	return fileDescriptor_89f245fc544906c7, []int{2}
   184  }
   185  
   186  func (m *StaticCollectionConfig) XXX_Unmarshal(b []byte) error {
   187  	return xxx_messageInfo_StaticCollectionConfig.Unmarshal(m, b)
   188  }
   189  func (m *StaticCollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   190  	return xxx_messageInfo_StaticCollectionConfig.Marshal(b, m, deterministic)
   191  }
   192  func (m *StaticCollectionConfig) XXX_Merge(src proto.Message) {
   193  	xxx_messageInfo_StaticCollectionConfig.Merge(m, src)
   194  }
   195  func (m *StaticCollectionConfig) XXX_Size() int {
   196  	return xxx_messageInfo_StaticCollectionConfig.Size(m)
   197  }
   198  func (m *StaticCollectionConfig) XXX_DiscardUnknown() {
   199  	xxx_messageInfo_StaticCollectionConfig.DiscardUnknown(m)
   200  }
   201  
   202  var xxx_messageInfo_StaticCollectionConfig proto.InternalMessageInfo
   203  
   204  func (m *StaticCollectionConfig) GetName() string {
   205  	if m != nil {
   206  		return m.Name
   207  	}
   208  	return ""
   209  }
   210  
   211  func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig {
   212  	if m != nil {
   213  		return m.MemberOrgsPolicy
   214  	}
   215  	return nil
   216  }
   217  
   218  func (m *StaticCollectionConfig) GetRequiredPeerCount() int32 {
   219  	if m != nil {
   220  		return m.RequiredPeerCount
   221  	}
   222  	return 0
   223  }
   224  
   225  func (m *StaticCollectionConfig) GetMaximumPeerCount() int32 {
   226  	if m != nil {
   227  		return m.MaximumPeerCount
   228  	}
   229  	return 0
   230  }
   231  
   232  func (m *StaticCollectionConfig) GetBlockToLive() uint64 {
   233  	if m != nil {
   234  		return m.BlockToLive
   235  	}
   236  	return 0
   237  }
   238  
   239  func (m *StaticCollectionConfig) GetMemberOnlyRead() bool {
   240  	if m != nil {
   241  		return m.MemberOnlyRead
   242  	}
   243  	return false
   244  }
   245  
   246  func (m *StaticCollectionConfig) GetMemberOnlyWrite() bool {
   247  	if m != nil {
   248  		return m.MemberOnlyWrite
   249  	}
   250  	return false
   251  }
   252  
   253  func (m *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy {
   254  	if m != nil {
   255  		return m.EndorsementPolicy
   256  	}
   257  	return nil
   258  }
   259  
   260  // Collection policy configuration. Initially, the configuration can only
   261  // contain a SignaturePolicy. In the future, the SignaturePolicy may be a
   262  // more general Policy. Instead of containing the actual policy, the
   263  // configuration may in the future contain a string reference to a policy.
   264  //
   265  // Deprecated: Do not use.
   266  type CollectionPolicyConfig struct {
   267  	// Types that are valid to be assigned to Payload:
   268  	//
   269  	//	*CollectionPolicyConfig_SignaturePolicy
   270  	Payload              isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"`
   271  	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
   272  	XXX_unrecognized     []byte                           `json:"-"`
   273  	XXX_sizecache        int32                            `json:"-"`
   274  }
   275  
   276  func (m *CollectionPolicyConfig) Reset()         { *m = CollectionPolicyConfig{} }
   277  func (m *CollectionPolicyConfig) String() string { return proto.CompactTextString(m) }
   278  func (*CollectionPolicyConfig) ProtoMessage()    {}
   279  func (*CollectionPolicyConfig) Descriptor() ([]byte, []int) {
   280  	return fileDescriptor_89f245fc544906c7, []int{3}
   281  }
   282  
   283  func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error {
   284  	return xxx_messageInfo_CollectionPolicyConfig.Unmarshal(m, b)
   285  }
   286  func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   287  	return xxx_messageInfo_CollectionPolicyConfig.Marshal(b, m, deterministic)
   288  }
   289  func (m *CollectionPolicyConfig) XXX_Merge(src proto.Message) {
   290  	xxx_messageInfo_CollectionPolicyConfig.Merge(m, src)
   291  }
   292  func (m *CollectionPolicyConfig) XXX_Size() int {
   293  	return xxx_messageInfo_CollectionPolicyConfig.Size(m)
   294  }
   295  func (m *CollectionPolicyConfig) XXX_DiscardUnknown() {
   296  	xxx_messageInfo_CollectionPolicyConfig.DiscardUnknown(m)
   297  }
   298  
   299  var xxx_messageInfo_CollectionPolicyConfig proto.InternalMessageInfo
   300  
   301  type isCollectionPolicyConfig_Payload interface {
   302  	isCollectionPolicyConfig_Payload()
   303  }
   304  
   305  type CollectionPolicyConfig_SignaturePolicy struct {
   306  	SignaturePolicy *SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"`
   307  }
   308  
   309  func (*CollectionPolicyConfig_SignaturePolicy) isCollectionPolicyConfig_Payload() {}
   310  
   311  func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload {
   312  	if m != nil {
   313  		return m.Payload
   314  	}
   315  	return nil
   316  }
   317  
   318  func (m *CollectionPolicyConfig) GetSignaturePolicy() *SignaturePolicyEnvelope {
   319  	if x, ok := m.GetPayload().(*CollectionPolicyConfig_SignaturePolicy); ok {
   320  		return x.SignaturePolicy
   321  	}
   322  	return nil
   323  }
   324  
   325  // XXX_OneofWrappers is for the internal use of the proto package.
   326  func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{} {
   327  	return []interface{}{
   328  		(*CollectionPolicyConfig_SignaturePolicy)(nil),
   329  	}
   330  }
   331  
   332  func init() {
   333  	proto.RegisterType((*CollectionConfigPackage)(nil), "common.CollectionConfigPackage")
   334  	proto.RegisterType((*CollectionConfig)(nil), "common.CollectionConfig")
   335  	proto.RegisterType((*StaticCollectionConfig)(nil), "common.StaticCollectionConfig")
   336  	proto.RegisterType((*CollectionPolicyConfig)(nil), "common.CollectionPolicyConfig")
   337  }
   338  
   339  func init() { proto.RegisterFile("common/collection.proto", fileDescriptor_89f245fc544906c7) }
   340  
   341  var fileDescriptor_89f245fc544906c7 = []byte{
   342  	// 479 bytes of a gzipped FileDescriptorProto
   343  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
   344  	0x14, 0xc6, 0x97, 0xb5, 0xeb, 0x36, 0x57, 0xb0, 0xd4, 0x88, 0x2e, 0x70, 0x80, 0xaa, 0xe2, 0x10,
   345  	0x21, 0x96, 0xa2, 0x71, 0xe3, 0xc6, 0x2a, 0xa4, 0x1e, 0x2a, 0xad, 0x0a, 0x08, 0xa4, 0x5d, 0x22,
   346  	0xc7, 0x79, 0xcb, 0xac, 0x39, 0x76, 0xb0, 0x9d, 0x42, 0x0e, 0xfc, 0x2f, 0xfc, 0xa9, 0xa8, 0x76,
   347  	0xd2, 0x74, 0x55, 0x6f, 0xed, 0xfb, 0x7e, 0xef, 0x7b, 0xcf, 0x9f, 0x5e, 0xd0, 0x25, 0x95, 0x45,
   348  	0x21, 0xc5, 0x8c, 0x4a, 0xce, 0x81, 0x1a, 0x26, 0x45, 0x54, 0x2a, 0x69, 0x24, 0x1e, 0x38, 0xe1,
   349  	0xf5, 0xcb, 0x06, 0x28, 0x25, 0x67, 0x94, 0x81, 0x76, 0xf2, 0xf4, 0x16, 0x5d, 0xce, 0xb7, 0x2d,
   350  	0x73, 0x29, 0xee, 0x59, 0xbe, 0x22, 0xf4, 0x91, 0xe4, 0x80, 0x3f, 0xa2, 0x01, 0xb5, 0x85, 0xc0,
   351  	0x9b, 0xf4, 0xc2, 0xe1, 0x75, 0x10, 0x39, 0x8b, 0x68, 0xbf, 0x21, 0x6e, 0xb8, 0xcf, 0xc7, 0x81,
   352  	0x37, 0xfd, 0x8b, 0xfc, 0x7d, 0x1d, 0xdf, 0xa1, 0x40, 0x1b, 0x62, 0x18, 0x4d, 0xba, 0xf5, 0x92,
   353  	0xad, 0xb7, 0x17, 0x0e, 0xaf, 0xdf, 0xb4, 0xde, 0xdf, 0x2c, 0xb7, 0xef, 0xb0, 0x38, 0x8a, 0xc7,
   354  	0xfa, 0xa0, 0xb2, 0x99, 0x79, 0x73, 0x8e, 0x4e, 0x4b, 0x52, 0x73, 0x49, 0xb2, 0xe9, 0xbf, 0x1e,
   355  	0x1a, 0x1f, 0xf6, 0xc0, 0x18, 0xf5, 0x05, 0x29, 0xc0, 0x4e, 0x3c, 0x8f, 0xed, 0x6f, 0xbc, 0x44,
   356  	0xb8, 0x80, 0x22, 0x05, 0x95, 0x48, 0x95, 0xeb, 0xc4, 0x86, 0x53, 0x07, 0xc7, 0x4f, 0x77, 0xea,
   357  	0x9c, 0x56, 0x56, 0x6f, 0x5e, 0xed, 0xbb, 0xce, 0x5b, 0x95, 0x6b, 0x57, 0xc7, 0x11, 0x7a, 0xa1,
   358  	0xe0, 0x57, 0xc5, 0x14, 0x64, 0x49, 0x09, 0xa0, 0x12, 0x2a, 0x2b, 0x61, 0x82, 0xde, 0xc4, 0x0b,
   359  	0x4f, 0xe2, 0x51, 0x2b, 0xad, 0x00, 0xd4, 0x7c, 0x23, 0xe0, 0x0f, 0x08, 0x17, 0xe4, 0x0f, 0x2b,
   360  	0xaa, 0x62, 0x17, 0xef, 0x5b, 0xdc, 0x6f, 0x94, 0x8e, 0x9e, 0xa2, 0x67, 0x29, 0x97, 0xf4, 0x31,
   361  	0x31, 0x32, 0xe1, 0x6c, 0x0d, 0xc1, 0xc9, 0xc4, 0x0b, 0xfb, 0xf1, 0xd0, 0x16, 0xbf, 0xcb, 0x25,
   362  	0x5b, 0x03, 0x0e, 0x91, 0xdf, 0xbe, 0x47, 0xf0, 0x3a, 0x51, 0x40, 0xb2, 0x60, 0x30, 0xf1, 0xc2,
   363  	0xb3, 0xf8, 0x79, 0xb3, 0xad, 0xe0, 0x75, 0x0c, 0x24, 0xc3, 0xef, 0xd1, 0x68, 0x97, 0xfc, 0xad,
   364  	0x98, 0x81, 0xe0, 0xd4, 0xa2, 0x17, 0x1d, 0xfa, 0x73, 0x53, 0xc6, 0x0b, 0x84, 0x41, 0x64, 0x52,
   365  	0x69, 0x28, 0x40, 0x98, 0x36, 0xa5, 0x33, 0x9b, 0xd2, 0xab, 0x36, 0xa5, 0x2f, 0x65, 0xc9, 0x19,
   366  	0x25, 0x5d, 0x4c, 0xf1, 0x68, 0xa7, 0xc9, 0x95, 0xec, 0x85, 0x54, 0x68, 0x7c, 0x38, 0x51, 0xbc,
   367  	0x44, 0xbe, 0x66, 0xb9, 0x20, 0xa6, 0x52, 0xd0, 0x4e, 0x71, 0xf7, 0xf1, 0x76, 0x7b, 0x1f, 0xad,
   368  	0xee, 0x1a, 0xbf, 0x8a, 0x35, 0x70, 0x59, 0xc2, 0xe2, 0x28, 0xbe, 0xd0, 0x4f, 0xa5, 0xbd, 0xcb,
   369  	0xb8, 0xf9, 0x81, 0xde, 0x49, 0x95, 0x47, 0x0f, 0x75, 0x09, 0x8a, 0x43, 0x96, 0x83, 0x8a, 0xee,
   370  	0x49, 0xaa, 0x18, 0x75, 0x5f, 0x82, 0x6e, 0x26, 0xdc, 0x45, 0x39, 0x33, 0x0f, 0x55, 0xba, 0xf9,
   371  	0x3b, 0xdb, 0x81, 0x67, 0x0e, 0xbe, 0x72, 0xf0, 0x55, 0x2e, 0x67, 0x8e, 0x4f, 0x07, 0xb6, 0xf2,
   372  	0xe9, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0x11, 0xe6, 0xd8, 0x82, 0x03, 0x00, 0x00,
   373  }