Interface HostsEntryOrBuilder (0.19.0)

public interface HostsEntryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHostNames(int index)

public abstract String getHostNames(int index)

List of host names / aliases.

repeated string host_names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The hostNames at the given index.

getHostNamesBytes(int index)

public abstract ByteString getHostNamesBytes(int index)

List of host names / aliases.

repeated string host_names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the hostNames at the given index.

getHostNamesCount()

public abstract int getHostNamesCount()

List of host names / aliases.

repeated string host_names = 2;

Returns
TypeDescription
int

The count of hostNames.

getHostNamesList()

public abstract List<String> getHostNamesList()

List of host names / aliases.

repeated string host_names = 2;

Returns
TypeDescription
List<String>

A list containing the hostNames.

getIp()

public abstract String getIp()

IP (raw, IPv4/6 agnostic).

string ip = 1;

Returns
TypeDescription
String

The ip.

getIpBytes()

public abstract ByteString getIpBytes()

IP (raw, IPv4/6 agnostic).

string ip = 1;

Returns
TypeDescription
ByteString

The bytes for ip.