Package zipkin2.proto3
Class Endpoint.Builder
- java.lang.Object
-
- com.squareup.wire.Message.Builder<Endpoint,Endpoint.Builder>
-
- zipkin2.proto3.Endpoint.Builder
-
- Enclosing class:
- Endpoint
public static final class Endpoint.Builder extends com.squareup.wire.Message.Builder<Endpoint,Endpoint.Builder>
-
-
Field Summary
Fields Modifier and Type Field Description okio.ByteString
ipv4
okio.ByteString
ipv6
java.lang.Integer
port
java.lang.String
service_name
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint
build()
Endpoint.Builder
ipv4(okio.ByteString ipv4)
4 byte representation of the primary IPv4 address associated with this connection.Endpoint.Builder
ipv6(okio.ByteString ipv6)
16 byte representation of the primary IPv6 address associated with this connection.Endpoint.Builder
port(java.lang.Integer port)
Depending on context, this could be a listen port or the client-side of a socket.Endpoint.Builder
service_name(java.lang.String service_name)
Lower-case label of this node in the service graph, such as "favstar".
-
-
-
Method Detail
-
service_name
public Endpoint.Builder service_name(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 Endpoint.Builder ipv4(okio.ByteString ipv4)
4 byte representation of the primary IPv4 address associated with this connection. Absent if unknown.
-
ipv6
public Endpoint.Builder ipv6(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 Endpoint.Builder port(java.lang.Integer port)
Depending on context, this could be a listen port or the client-side of a socket. Absent if unknown.
-
build
public Endpoint build()
- Specified by:
build
in classcom.squareup.wire.Message.Builder<Endpoint,Endpoint.Builder>
-
-