Class HostsEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HostsEntry.Builder>
com.google.cloud.migrationcenter.v1.HostsEntry.Builder
All Implemented Interfaces:
HostsEntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HostsEntry

public static final class HostsEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<HostsEntry.Builder> implements HostsEntryOrBuilder
 Single /etc/hosts entry.
 
Protobuf type google.cloud.migrationcenter.v1.HostsEntry
  • Method Summary

    Modifier and Type
    Method
    Description
    List of host names / aliases.
    List of host names / aliases.
    addHostNamesBytes(com.google.protobuf.ByteString value)
    List of host names / aliases.
     
     
     
    List of host names / aliases.
    IP (raw, IPv4/6 agnostic).
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getHostNames(int index)
    List of host names / aliases.
    com.google.protobuf.ByteString
    getHostNamesBytes(int index)
    List of host names / aliases.
    int
    List of host names / aliases.
    com.google.protobuf.ProtocolStringList
    List of host names / aliases.
    IP (raw, IPv4/6 agnostic).
    com.google.protobuf.ByteString
    IP (raw, IPv4/6 agnostic).
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setHostNames(int index, String value)
    List of host names / aliases.
    setIp(String value)
    IP (raw, IPv4/6 agnostic).
    setIpBytes(com.google.protobuf.ByteString value)
    IP (raw, IPv4/6 agnostic).

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HostsEntry.Builder>
    • clear

      public HostsEntry.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HostsEntry.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HostsEntry.Builder>
    • getDefaultInstanceForType

      public HostsEntry getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public HostsEntry build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HostsEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public HostsEntry.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HostsEntry.Builder>
    • mergeFrom

      public HostsEntry.Builder mergeFrom(HostsEntry other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HostsEntry.Builder>
    • mergeFrom

      public HostsEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HostsEntry.Builder>
      Throws:
      IOException
    • getIp

      public String getIp()
       IP (raw, IPv4/6 agnostic).
       
      string ip = 1;
      Specified by:
      getIp in interface HostsEntryOrBuilder
      Returns:
      The ip.
    • getIpBytes

      public com.google.protobuf.ByteString getIpBytes()
       IP (raw, IPv4/6 agnostic).
       
      string ip = 1;
      Specified by:
      getIpBytes in interface HostsEntryOrBuilder
      Returns:
      The bytes for ip.
    • setIp

      public HostsEntry.Builder setIp(String value)
       IP (raw, IPv4/6 agnostic).
       
      string ip = 1;
      Parameters:
      value - The ip to set.
      Returns:
      This builder for chaining.
    • clearIp

      public HostsEntry.Builder clearIp()
       IP (raw, IPv4/6 agnostic).
       
      string ip = 1;
      Returns:
      This builder for chaining.
    • setIpBytes

      public HostsEntry.Builder setIpBytes(com.google.protobuf.ByteString value)
       IP (raw, IPv4/6 agnostic).
       
      string ip = 1;
      Parameters:
      value - The bytes for ip to set.
      Returns:
      This builder for chaining.
    • getHostNamesList

      public com.google.protobuf.ProtocolStringList getHostNamesList()
       List of host names / aliases.
       
      repeated string host_names = 2;
      Specified by:
      getHostNamesList in interface HostsEntryOrBuilder
      Returns:
      A list containing the hostNames.
    • getHostNamesCount

      public int getHostNamesCount()
       List of host names / aliases.
       
      repeated string host_names = 2;
      Specified by:
      getHostNamesCount in interface HostsEntryOrBuilder
      Returns:
      The count of hostNames.
    • getHostNames

      public String getHostNames(int index)
       List of host names / aliases.
       
      repeated string host_names = 2;
      Specified by:
      getHostNames in interface HostsEntryOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The hostNames at the given index.
    • getHostNamesBytes

      public com.google.protobuf.ByteString getHostNamesBytes(int index)
       List of host names / aliases.
       
      repeated string host_names = 2;
      Specified by:
      getHostNamesBytes in interface HostsEntryOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the hostNames at the given index.
    • setHostNames

      public HostsEntry.Builder setHostNames(int index, String value)
       List of host names / aliases.
       
      repeated string host_names = 2;
      Parameters:
      index - The index to set the value at.
      value - The hostNames to set.
      Returns:
      This builder for chaining.
    • addHostNames

      public HostsEntry.Builder addHostNames(String value)
       List of host names / aliases.
       
      repeated string host_names = 2;
      Parameters:
      value - The hostNames to add.
      Returns:
      This builder for chaining.
    • addAllHostNames

      public HostsEntry.Builder addAllHostNames(Iterable<String> values)
       List of host names / aliases.
       
      repeated string host_names = 2;
      Parameters:
      values - The hostNames to add.
      Returns:
      This builder for chaining.
    • clearHostNames

      public HostsEntry.Builder clearHostNames()
       List of host names / aliases.
       
      repeated string host_names = 2;
      Returns:
      This builder for chaining.
    • addHostNamesBytes

      public HostsEntry.Builder addHostNamesBytes(com.google.protobuf.ByteString value)
       List of host names / aliases.
       
      repeated string host_names = 2;
      Parameters:
      value - The bytes of the hostNames to add.
      Returns:
      This builder for chaining.