github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/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 proto "github.com/golang/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  // Reference imports to suppress errors if they are not otherwise used.
    11  var _ = proto.Marshal
    12  var _ = fmt.Errorf
    13  var _ = math.Inf
    14  
    15  // AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
    16  type AnchorPeers struct {
    17  	AnchorPeers []*AnchorPeer `protobuf:"bytes,1,rep,name=anchor_peers,json=anchorPeers" json:"anchor_peers,omitempty"`
    18  }
    19  
    20  func (m *AnchorPeers) Reset()                    { *m = AnchorPeers{} }
    21  func (m *AnchorPeers) String() string            { return proto.CompactTextString(m) }
    22  func (*AnchorPeers) ProtoMessage()               {}
    23  func (*AnchorPeers) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
    24  
    25  func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer {
    26  	if m != nil {
    27  		return m.AnchorPeers
    28  	}
    29  	return nil
    30  }
    31  
    32  // AnchorPeer message structure which provides information about anchor peer, it includes host name,
    33  // port number and peer certificate.
    34  type AnchorPeer struct {
    35  	// DNS host name of the anchor peer
    36  	Host string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"`
    37  	// The port number
    38  	Port int32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
    39  }
    40  
    41  func (m *AnchorPeer) Reset()                    { *m = AnchorPeer{} }
    42  func (m *AnchorPeer) String() string            { return proto.CompactTextString(m) }
    43  func (*AnchorPeer) ProtoMessage()               {}
    44  func (*AnchorPeer) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
    45  
    46  func (m *AnchorPeer) GetHost() string {
    47  	if m != nil {
    48  		return m.Host
    49  	}
    50  	return ""
    51  }
    52  
    53  func (m *AnchorPeer) GetPort() int32 {
    54  	if m != nil {
    55  		return m.Port
    56  	}
    57  	return 0
    58  }
    59  
    60  func init() {
    61  	proto.RegisterType((*AnchorPeers)(nil), "protos.AnchorPeers")
    62  	proto.RegisterType((*AnchorPeer)(nil), "protos.AnchorPeer")
    63  }
    64  
    65  func init() { proto.RegisterFile("peer/configuration.proto", fileDescriptor4) }
    66  
    67  var fileDescriptor4 = []byte{
    68  	// 192 bytes of a gzipped FileDescriptorProto
    69  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x4c, 0x8f, 0x3d, 0x8f, 0xc3, 0x20,
    70  	0x0c, 0x86, 0xc5, 0x7d, 0x49, 0x47, 0x6e, 0x62, 0x62, 0x8c, 0x32, 0xe5, 0x16, 0x90, 0xee, 0xe3,
    71  	0x07, 0xb4, 0xea, 0xde, 0x2a, 0x63, 0x97, 0x8a, 0x50, 0x02, 0x48, 0x6d, 0x8c, 0x0c, 0x19, 0xfa,
    72  	0xef, 0x2b, 0x40, 0x55, 0x3a, 0xf1, 0x62, 0x3f, 0x8f, 0x6c, 0x53, 0x1e, 0x8c, 0x41, 0xa9, 0x61,
    73  	0x9e, 0xbc, 0x5d, 0x50, 0x25, 0x0f, 0xb3, 0x08, 0x08, 0x09, 0xd8, 0x47, 0x79, 0x62, 0xb7, 0xa3,
    74  	0xcd, 0x66, 0xd6, 0x0e, 0xf0, 0x60, 0x0c, 0x46, 0xf6, 0x4f, 0xbf, 0x54, 0xf9, 0x9e, 0xb2, 0x19,
    75  	0x39, 0x69, 0x5f, 0xfb, 0xe6, 0x87, 0x55, 0x29, 0x8a, 0x15, 0x1d, 0x1a, 0xb5, 0x6a, 0xdd, 0x1f,
    76  	0xa5, 0x6b, 0x8b, 0x31, 0xfa, 0xe6, 0x20, 0x26, 0x4e, 0x5a, 0xd2, 0x7f, 0x0e, 0x25, 0xe7, 0x5a,
    77  	0x00, 0x4c, 0xfc, 0xa5, 0x25, 0xfd, 0xfb, 0x50, 0xf2, 0x76, 0x4f, 0x3b, 0x40, 0x2b, 0xdc, 0x2d,
    78  	0x18, 0xbc, 0x98, 0xb3, 0x35, 0x28, 0x26, 0x35, 0xa2, 0xd7, 0x8f, 0x71, 0x79, 0x87, 0xe3, 0xb7,
    79  	0xf5, 0xc9, 0x2d, 0xa3, 0xd0, 0x70, 0x95, 0x4f, 0xa8, 0xac, 0xa8, 0xac, 0xa8, 0xcc, 0xe8, 0x58,
    80  	0x8f, 0xfa, 0xbd, 0x07, 0x00, 0x00, 0xff, 0xff, 0x6d, 0xf2, 0x7b, 0x6f, 0xf7, 0x00, 0x00, 0x00,
    81  }