Interface NamedPortOrBuilder (1.22.0)

public interface NamedPortOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

public abstract String getName()

The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getPort()

public abstract int getPort()

The port number, which can be a value between 1 and 65535.

optional int32 port = 3446913;

Returns
TypeDescription
int

The port.

hasName()

public abstract boolean hasName()

The name for this named port. The name must be 1-63 characters long, and comply with RFC1035.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasPort()

public abstract boolean hasPort()

The port number, which can be a value between 1 and 65535.

optional int32 port = 3446913;

Returns
TypeDescription
boolean

Whether the port field is set.