Package zipkin2.proto3
Class Endpoint
- java.lang.Object
-
- com.squareup.wire.Message<Endpoint,Endpoint.Builder>
-
- zipkin2.proto3.Endpoint
-
- All Implemented Interfaces:
java.io.Serializable
public final class Endpoint extends com.squareup.wire.Message<Endpoint,Endpoint.Builder>
The network context of a node in the service graph. The next id is 5.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEndpoint.Builder
-
Field Summary
Fields Modifier and Type Field Description static com.squareup.wire.ProtoAdapter<Endpoint>ADAPTERstatic okio.ByteStringDEFAULT_IPV4static okio.ByteStringDEFAULT_IPV6static java.lang.IntegerDEFAULT_PORTstatic java.lang.StringDEFAULT_SERVICE_NAMEokio.ByteStringipv44 byte representation of the primary IPv4 address associated with this connection.okio.ByteStringipv616 byte representation of the primary IPv6 address associated with this connection.java.lang.IntegerportDepending on context, this could be a listen port or the client-side of a socket.java.lang.Stringservice_nameLower-case label of this node in the service graph, such as "favstar".
-
Constructor Summary
Constructors Constructor Description Endpoint(java.lang.String service_name, okio.ByteString ipv4, okio.ByteString ipv6, java.lang.Integer port)Endpoint(java.lang.String service_name, okio.ByteString ipv4, okio.ByteString ipv6, java.lang.Integer port, okio.ByteString unknownFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)inthashCode()Endpoint.BuildernewBuilder()java.lang.StringtoString()
-
-
-
Field Detail
-
ADAPTER
public static final com.squareup.wire.ProtoAdapter<Endpoint> ADAPTER
-
DEFAULT_SERVICE_NAME
public static final java.lang.String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_IPV4
public static final okio.ByteString DEFAULT_IPV4
-
DEFAULT_IPV6
public static final okio.ByteString DEFAULT_IPV6
-
DEFAULT_PORT
public static final java.lang.Integer DEFAULT_PORT
-
service_name
public final java.lang.String service_name
Lower-case label of this node in the service graph, such as "favstar". Leave absent if unknown. This is a primary label for trace lookup and aggregation, so it should be intuitive and consistent. Many use a name from service discovery.
-
ipv4
public final okio.ByteString ipv4
4 byte representation of the primary IPv4 address associated with this connection. Absent if unknown.
-
ipv6
public final okio.ByteString ipv6
16 byte representation of the primary IPv6 address associated with this connection. Absent if unknown. Prefer using the ipv4 field for mapped addresses.
-
port
public final java.lang.Integer port
Depending on context, this could be a listen port or the client-side of a socket. Absent if unknown.
-
-
Method Detail
-
newBuilder
public Endpoint.Builder newBuilder()
- Specified by:
newBuilderin classcom.squareup.wire.Message<Endpoint,Endpoint.Builder>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classcom.squareup.wire.Message<Endpoint,Endpoint.Builder>
-
-