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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: peer/configuration.proto
     3  
     4  package peer
     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  // AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
    24  type AnchorPeers struct {
    25  	AnchorPeers          []*AnchorPeer `protobuf:"bytes,1,rep,name=anchor_peers,json=anchorPeers,proto3" json:"anchor_peers,omitempty"`
    26  	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    27  	XXX_unrecognized     []byte        `json:"-"`
    28  	XXX_sizecache        int32         `json:"-"`
    29  }
    30  
    31  func (m *AnchorPeers) Reset()         { *m = AnchorPeers{} }
    32  func (m *AnchorPeers) String() string { return proto.CompactTextString(m) }
    33  func (*AnchorPeers) ProtoMessage()    {}
    34  func (*AnchorPeers) Descriptor() ([]byte, []int) {
    35  	return fileDescriptor_4978ae8738390a60, []int{0}
    36  }
    37  
    38  func (m *AnchorPeers) XXX_Unmarshal(b []byte) error {
    39  	return xxx_messageInfo_AnchorPeers.Unmarshal(m, b)
    40  }
    41  func (m *AnchorPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    42  	return xxx_messageInfo_AnchorPeers.Marshal(b, m, deterministic)
    43  }
    44  func (m *AnchorPeers) XXX_Merge(src proto.Message) {
    45  	xxx_messageInfo_AnchorPeers.Merge(m, src)
    46  }
    47  func (m *AnchorPeers) XXX_Size() int {
    48  	return xxx_messageInfo_AnchorPeers.Size(m)
    49  }
    50  func (m *AnchorPeers) XXX_DiscardUnknown() {
    51  	xxx_messageInfo_AnchorPeers.DiscardUnknown(m)
    52  }
    53  
    54  var xxx_messageInfo_AnchorPeers proto.InternalMessageInfo
    55  
    56  func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer {
    57  	if m != nil {
    58  		return m.AnchorPeers
    59  	}
    60  	return nil
    61  }
    62  
    63  // AnchorPeer message structure which provides information about anchor peer, it includes host name,
    64  // port number and peer certificate.
    65  type AnchorPeer struct {
    66  	Host                 string   `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
    67  	Port                 int32    `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
    68  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    69  	XXX_unrecognized     []byte   `json:"-"`
    70  	XXX_sizecache        int32    `json:"-"`
    71  }
    72  
    73  func (m *AnchorPeer) Reset()         { *m = AnchorPeer{} }
    74  func (m *AnchorPeer) String() string { return proto.CompactTextString(m) }
    75  func (*AnchorPeer) ProtoMessage()    {}
    76  func (*AnchorPeer) Descriptor() ([]byte, []int) {
    77  	return fileDescriptor_4978ae8738390a60, []int{1}
    78  }
    79  
    80  func (m *AnchorPeer) XXX_Unmarshal(b []byte) error {
    81  	return xxx_messageInfo_AnchorPeer.Unmarshal(m, b)
    82  }
    83  func (m *AnchorPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    84  	return xxx_messageInfo_AnchorPeer.Marshal(b, m, deterministic)
    85  }
    86  func (m *AnchorPeer) XXX_Merge(src proto.Message) {
    87  	xxx_messageInfo_AnchorPeer.Merge(m, src)
    88  }
    89  func (m *AnchorPeer) XXX_Size() int {
    90  	return xxx_messageInfo_AnchorPeer.Size(m)
    91  }
    92  func (m *AnchorPeer) XXX_DiscardUnknown() {
    93  	xxx_messageInfo_AnchorPeer.DiscardUnknown(m)
    94  }
    95  
    96  var xxx_messageInfo_AnchorPeer proto.InternalMessageInfo
    97  
    98  func (m *AnchorPeer) GetHost() string {
    99  	if m != nil {
   100  		return m.Host
   101  	}
   102  	return ""
   103  }
   104  
   105  func (m *AnchorPeer) GetPort() int32 {
   106  	if m != nil {
   107  		return m.Port
   108  	}
   109  	return 0
   110  }
   111  
   112  // APIResource represents an API resource in the peer whose ACL
   113  // is determined by the policy_ref field
   114  type APIResource struct {
   115  	PolicyRef            string   `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"`
   116  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   117  	XXX_unrecognized     []byte   `json:"-"`
   118  	XXX_sizecache        int32    `json:"-"`
   119  }
   120  
   121  func (m *APIResource) Reset()         { *m = APIResource{} }
   122  func (m *APIResource) String() string { return proto.CompactTextString(m) }
   123  func (*APIResource) ProtoMessage()    {}
   124  func (*APIResource) Descriptor() ([]byte, []int) {
   125  	return fileDescriptor_4978ae8738390a60, []int{2}
   126  }
   127  
   128  func (m *APIResource) XXX_Unmarshal(b []byte) error {
   129  	return xxx_messageInfo_APIResource.Unmarshal(m, b)
   130  }
   131  func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   132  	return xxx_messageInfo_APIResource.Marshal(b, m, deterministic)
   133  }
   134  func (m *APIResource) XXX_Merge(src proto.Message) {
   135  	xxx_messageInfo_APIResource.Merge(m, src)
   136  }
   137  func (m *APIResource) XXX_Size() int {
   138  	return xxx_messageInfo_APIResource.Size(m)
   139  }
   140  func (m *APIResource) XXX_DiscardUnknown() {
   141  	xxx_messageInfo_APIResource.DiscardUnknown(m)
   142  }
   143  
   144  var xxx_messageInfo_APIResource proto.InternalMessageInfo
   145  
   146  func (m *APIResource) GetPolicyRef() string {
   147  	if m != nil {
   148  		return m.PolicyRef
   149  	}
   150  	return ""
   151  }
   152  
   153  // ACLs provides mappings for resources in a channel. APIResource encapsulates
   154  // reference to a policy used to determine ACL for the resource
   155  type ACLs struct {
   156  	Acls                 map[string]*APIResource `protobuf:"bytes,1,rep,name=acls,proto3" json:"acls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   157  	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
   158  	XXX_unrecognized     []byte                  `json:"-"`
   159  	XXX_sizecache        int32                   `json:"-"`
   160  }
   161  
   162  func (m *ACLs) Reset()         { *m = ACLs{} }
   163  func (m *ACLs) String() string { return proto.CompactTextString(m) }
   164  func (*ACLs) ProtoMessage()    {}
   165  func (*ACLs) Descriptor() ([]byte, []int) {
   166  	return fileDescriptor_4978ae8738390a60, []int{3}
   167  }
   168  
   169  func (m *ACLs) XXX_Unmarshal(b []byte) error {
   170  	return xxx_messageInfo_ACLs.Unmarshal(m, b)
   171  }
   172  func (m *ACLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   173  	return xxx_messageInfo_ACLs.Marshal(b, m, deterministic)
   174  }
   175  func (m *ACLs) XXX_Merge(src proto.Message) {
   176  	xxx_messageInfo_ACLs.Merge(m, src)
   177  }
   178  func (m *ACLs) XXX_Size() int {
   179  	return xxx_messageInfo_ACLs.Size(m)
   180  }
   181  func (m *ACLs) XXX_DiscardUnknown() {
   182  	xxx_messageInfo_ACLs.DiscardUnknown(m)
   183  }
   184  
   185  var xxx_messageInfo_ACLs proto.InternalMessageInfo
   186  
   187  func (m *ACLs) GetAcls() map[string]*APIResource {
   188  	if m != nil {
   189  		return m.Acls
   190  	}
   191  	return nil
   192  }
   193  
   194  func init() {
   195  	proto.RegisterType((*AnchorPeers)(nil), "protos.AnchorPeers")
   196  	proto.RegisterType((*AnchorPeer)(nil), "protos.AnchorPeer")
   197  	proto.RegisterType((*APIResource)(nil), "protos.APIResource")
   198  	proto.RegisterType((*ACLs)(nil), "protos.ACLs")
   199  	proto.RegisterMapType((map[string]*APIResource)(nil), "protos.ACLs.AclsEntry")
   200  }
   201  
   202  func init() { proto.RegisterFile("peer/configuration.proto", fileDescriptor_4978ae8738390a60) }
   203  
   204  var fileDescriptor_4978ae8738390a60 = []byte{
   205  	// 296 bytes of a gzipped FileDescriptorProto
   206  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcd, 0x4b, 0xc3, 0x40,
   207  	0x10, 0xc5, 0x49, 0x3f, 0x84, 0x4e, 0x3c, 0xc8, 0x0a, 0x12, 0x04, 0xa1, 0xe4, 0x54, 0xa5, 0x4d,
   208  	0xa0, 0x2a, 0x88, 0xb7, 0x58, 0x3d, 0x08, 0x3d, 0x94, 0x3d, 0x7a, 0x29, 0xe9, 0x3a, 0xf9, 0xc0,
   209  	0x98, 0x09, 0xb3, 0x89, 0x90, 0x9b, 0x7f, 0xba, 0x64, 0xb7, 0x4d, 0x3c, 0xed, 0xdb, 0xb7, 0xbf,
   210  	0x37, 0x3c, 0x76, 0xc0, 0xab, 0x10, 0x39, 0x54, 0x54, 0x26, 0x79, 0xda, 0x70, 0x5c, 0xe7, 0x54,
   211  	0x06, 0x15, 0x53, 0x4d, 0xe2, 0xcc, 0x1c, 0xda, 0x7f, 0x05, 0x37, 0x2a, 0x55, 0x46, 0xbc, 0x43,
   212  	0x64, 0x2d, 0x1e, 0xe1, 0x3c, 0x36, 0xd7, 0x7d, 0x97, 0xd4, 0x9e, 0x33, 0x1f, 0x2f, 0xdc, 0xb5,
   213  	0xb0, 0x21, 0x1d, 0x0c, 0xa8, 0x74, 0xe3, 0x21, 0xe6, 0x3f, 0x00, 0x0c, 0x4f, 0x42, 0xc0, 0x24,
   214  	0x23, 0x5d, 0x7b, 0xce, 0xdc, 0x59, 0xcc, 0xa4, 0xd1, 0x9d, 0x57, 0x11, 0xd7, 0xde, 0x68, 0xee,
   215  	0x2c, 0xa6, 0xd2, 0x68, 0x7f, 0x09, 0x6e, 0xb4, 0x7b, 0x97, 0xa8, 0xa9, 0x61, 0x85, 0xe2, 0x06,
   216  	0xa0, 0xa2, 0x22, 0x57, 0xed, 0x9e, 0x31, 0x39, 0x86, 0x67, 0xd6, 0x91, 0x98, 0xf8, 0xbf, 0x0e,
   217  	0x4c, 0xa2, 0xcd, 0x56, 0x8b, 0x3b, 0x98, 0xc4, 0xaa, 0x38, 0x75, 0xbb, 0xea, 0xbb, 0x6d, 0xb6,
   218  	0x3a, 0x88, 0x54, 0xa1, 0xdf, 0xca, 0x9a, 0x5b, 0x69, 0x98, 0xeb, 0x2d, 0xcc, 0x7a, 0x4b, 0x5c,
   219  	0xc0, 0xf8, 0x0b, 0xdb, 0xe3, 0xe4, 0x4e, 0x8a, 0x5b, 0x98, 0xfe, 0xc4, 0x45, 0x83, 0xa6, 0x96,
   220  	0xbb, 0xbe, 0xec, 0x67, 0x0d, 0xb5, 0xa4, 0x25, 0x9e, 0x47, 0x4f, 0xce, 0x8b, 0x04, 0x9f, 0x38,
   221  	0x0d, 0xb2, 0xb6, 0x42, 0x2e, 0xf0, 0x33, 0x45, 0x0e, 0x92, 0xf8, 0xc0, 0xb9, 0x3a, 0xe5, 0xba,
   222  	0x4f, 0xfb, 0x58, 0xa6, 0x79, 0x9d, 0x35, 0x87, 0x40, 0xd1, 0x77, 0xf8, 0x0f, 0x0d, 0x2d, 0xba,
   223  	0xb2, 0xe8, 0x2a, 0xa5, 0xb0, 0xa3, 0x0f, 0x76, 0x11, 0xf7, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff,
   224  	0x10, 0x49, 0xdc, 0x44, 0xab, 0x01, 0x00, 0x00,
   225  }