Interface NamedPortOrBuilder (1.56.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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the port field is set.