Interface HostAddressOrBuilder (1.71.0)

public interface HostAddressOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHostname()

public abstract String getHostname()

Required. Hostname for the connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hostname.

getHostnameBytes()

public abstract ByteString getHostnameBytes()

Required. Hostname for the connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hostname.

getPort()

public abstract int getPort()

Optional. Port for the connection.

int32 port = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The port.