Interface HostsEntryOrBuilder (0.37.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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of hostNames.

getHostNamesList()

public abstract List<String> getHostNamesList()

List of host names / aliases.

repeated string host_names = 2;

Returns
Type Description
List<String>

A list containing the hostNames.

getIp()

public abstract String getIp()

IP (raw, IPv4/6 agnostic).

string ip = 1;

Returns
Type Description
String

The ip.

getIpBytes()

public abstract ByteString getIpBytes()

IP (raw, IPv4/6 agnostic).

string ip = 1;

Returns
Type Description
ByteString

The bytes for ip.