Class Generated.HostAlias.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.HostAliasOrBuilder
    Enclosing class:
    Generated.HostAlias

    public static final class Generated.HostAlias.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
    implements Generated.HostAliasOrBuilder
     HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the
     pod's hosts file.
     
    Protobuf type k8s.io.api.core.v1.HostAlias
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • clear

        public Generated.HostAlias.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.GeneratedMessageV3.Builder<Generated.HostAlias.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.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.HostAlias buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Generated.HostAlias.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • setField

        public Generated.HostAlias.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • clearField

        public Generated.HostAlias.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • clearOneof

        public Generated.HostAlias.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • setRepeatedField

        public Generated.HostAlias.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • addRepeatedField

        public Generated.HostAlias.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • mergeFrom

        public Generated.HostAlias.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<Generated.HostAlias.Builder>
      • isInitialized

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

        public Generated.HostAlias.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<Generated.HostAlias.Builder>
        Throws:
        IOException
      • hasIp

        public boolean hasIp()
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Specified by:
        hasIp in interface Generated.HostAliasOrBuilder
        Returns:
        Whether the ip field is set.
      • getIpBytes

        public com.google.protobuf.ByteString getIpBytes()
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Specified by:
        getIpBytes in interface Generated.HostAliasOrBuilder
        Returns:
        The bytes for ip.
      • setIp

        public Generated.HostAlias.Builder setIp​(String value)
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Parameters:
        value - The ip to set.
        Returns:
        This builder for chaining.
      • clearIp

        public Generated.HostAlias.Builder clearIp()
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Returns:
        This builder for chaining.
      • setIpBytes

        public Generated.HostAlias.Builder setIpBytes​(com.google.protobuf.ByteString value)
         IP address of the host file entry.
         +required
         
        optional string ip = 1;
        Parameters:
        value - The bytes for ip to set.
        Returns:
        This builder for chaining.
      • getHostnamesList

        public com.google.protobuf.ProtocolStringList getHostnamesList()
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Specified by:
        getHostnamesList in interface Generated.HostAliasOrBuilder
        Returns:
        A list containing the hostnames.
      • getHostnamesCount

        public int getHostnamesCount()
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Specified by:
        getHostnamesCount in interface Generated.HostAliasOrBuilder
        Returns:
        The count of hostnames.
      • getHostnames

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

        public Generated.HostAlias.Builder setHostnames​(int index,
                                                        String value)
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Parameters:
        index - The index to set the value at.
        value - The hostnames to set.
        Returns:
        This builder for chaining.
      • addHostnames

        public Generated.HostAlias.Builder addHostnames​(String value)
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Parameters:
        value - The hostnames to add.
        Returns:
        This builder for chaining.
      • addAllHostnames

        public Generated.HostAlias.Builder addAllHostnames​(Iterable<String> values)
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Parameters:
        values - The hostnames to add.
        Returns:
        This builder for chaining.
      • clearHostnames

        public Generated.HostAlias.Builder clearHostnames()
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Returns:
        This builder for chaining.
      • addHostnamesBytes

        public Generated.HostAlias.Builder addHostnamesBytes​(com.google.protobuf.ByteString value)
         Hostnames for the above IP address.
         +listType=atomic
         
        repeated string hostnames = 2;
        Parameters:
        value - The bytes of the hostnames to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.HostAlias.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>
      • mergeUnknownFields

        public final Generated.HostAlias.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.HostAlias.Builder>