github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/p2p/protocol/identify/pb/identify.pb.go (about)

     1  // Code generated by protoc-gen-gogo.
     2  // source: identify.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package identify_pb is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	identify.proto
    10  
    11  It has these top-level messages:
    12  	Identify
    13  */
    14  package identify_pb
    15  
    16  import proto "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/gogo/protobuf/proto"
    17  import math "math"
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var _ = proto.Marshal
    21  var _ = math.Inf
    22  
    23  type Identify struct {
    24  	// protocolVersion determines compatibility between peers
    25  	ProtocolVersion *string `protobuf:"bytes,5,opt,name=protocolVersion" json:"protocolVersion,omitempty"`
    26  	// agentVersion is like a UserAgent string in browsers, or client version in bittorrent
    27  	// includes the client name and client.
    28  	AgentVersion *string `protobuf:"bytes,6,opt,name=agentVersion" json:"agentVersion,omitempty"`
    29  	// publicKey is this node's public key (which also gives its node.ID)
    30  	// - may not need to be sent, as secure channel implies it has been sent.
    31  	// - then again, if we change / disable secure channel, may still want it.
    32  	PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"`
    33  	// listenAddrs are the multiaddrs the sender node listens for open connections on
    34  	ListenAddrs [][]byte `protobuf:"bytes,2,rep,name=listenAddrs" json:"listenAddrs,omitempty"`
    35  	// oservedAddr is the multiaddr of the remote endpoint that the sender node perceives
    36  	// this is useful information to convey to the other side, as it helps the remote endpoint
    37  	// determine whether its connection to the local peer goes through NAT.
    38  	ObservedAddr []byte `protobuf:"bytes,4,opt,name=observedAddr" json:"observedAddr,omitempty"`
    39  	// protocols are the services this node is running
    40  	Protocols        []string `protobuf:"bytes,3,rep,name=protocols" json:"protocols,omitempty"`
    41  	XXX_unrecognized []byte   `json:"-"`
    42  }
    43  
    44  func (m *Identify) Reset()         { *m = Identify{} }
    45  func (m *Identify) String() string { return proto.CompactTextString(m) }
    46  func (*Identify) ProtoMessage()    {}
    47  
    48  func (m *Identify) GetProtocolVersion() string {
    49  	if m != nil && m.ProtocolVersion != nil {
    50  		return *m.ProtocolVersion
    51  	}
    52  	return ""
    53  }
    54  
    55  func (m *Identify) GetAgentVersion() string {
    56  	if m != nil && m.AgentVersion != nil {
    57  		return *m.AgentVersion
    58  	}
    59  	return ""
    60  }
    61  
    62  func (m *Identify) GetPublicKey() []byte {
    63  	if m != nil {
    64  		return m.PublicKey
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *Identify) GetListenAddrs() [][]byte {
    70  	if m != nil {
    71  		return m.ListenAddrs
    72  	}
    73  	return nil
    74  }
    75  
    76  func (m *Identify) GetObservedAddr() []byte {
    77  	if m != nil {
    78  		return m.ObservedAddr
    79  	}
    80  	return nil
    81  }
    82  
    83  func (m *Identify) GetProtocols() []string {
    84  	if m != nil {
    85  		return m.Protocols
    86  	}
    87  	return nil
    88  }
    89  
    90  func init() {
    91  }