Interface HostsEntryOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HostsEntry,HostsEntry.Builder
public interface HostsEntryOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetHostNames(int index)List of host names / aliases.com.google.protobuf.ByteStringgetHostNamesBytes(int index)List of host names / aliases.intgetHostNamesCount()List of host names / aliases.List<String>getHostNamesList()List of host names / aliases.StringgetIp()IP (raw, IPv4/6 agnostic).com.google.protobuf.ByteStringgetIpBytes()IP (raw, IPv4/6 agnostic).-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getIp
String getIp()
IP (raw, IPv4/6 agnostic).
string ip = 1;- Returns:
- The ip.
-
getIpBytes
com.google.protobuf.ByteString getIpBytes()
IP (raw, IPv4/6 agnostic).
string ip = 1;- Returns:
- The bytes for ip.
-
getHostNamesList
List<String> getHostNamesList()
List of host names / aliases.
repeated string host_names = 2;- Returns:
- A list containing the hostNames.
-
getHostNamesCount
int getHostNamesCount()
List of host names / aliases.
repeated string host_names = 2;- Returns:
- The count of hostNames.
-
getHostNames
String getHostNames(int index)
List of host names / aliases.
repeated string host_names = 2;- Parameters:
index- The index of the element to return.- Returns:
- The hostNames at the given index.
-
getHostNamesBytes
com.google.protobuf.ByteString getHostNamesBytes(int index)
List of host names / aliases.
repeated string host_names = 2;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the hostNames at the given index.
-
-