Interface Generated.HostAliasOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Generated.HostAlias, Generated.HostAlias.Builder
    Enclosing class:
    Generated

    public static interface Generated.HostAliasOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getHostnames​(int index)
      Hostnames for the above IP address.
      com.google.protobuf.ByteString getHostnamesBytes​(int index)
      Hostnames for the above IP address.
      int getHostnamesCount()
      Hostnames for the above IP address.
      List<String> getHostnamesList()
      Hostnames for the above IP address.
      String getIp()
      IP address of the host file entry.
      com.google.protobuf.ByteString getIpBytes()
      IP address of the host file entry.
      boolean hasIp()
      IP address of the host file entry.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasIp

        boolean hasIp()
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Returns:
        Whether the ip field is set.
      • getIp

        String getIp()
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Returns:
        The ip.
      • getIpBytes

        com.google.protobuf.ByteString getIpBytes()
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Returns:
        The bytes for ip.
      • getHostnamesList

        List<String> getHostnamesList()
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Returns:
        A list containing the hostnames.
      • getHostnamesCount

        int getHostnamesCount()
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Returns:
        The count of hostnames.
      • getHostnames

        String getHostnames​(int index)
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 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)
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the hostnames at the given index.