Class Generated.APIVersions.Builder

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

    public static final class Generated.APIVersions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.APIVersions.Builder>
    implements Generated.APIVersionsOrBuilder
     APIVersions lists the versions that are available, to allow clients to
     discover the API at /api, which is the root path of the legacy v1 API.
    
     +protobuf.options.(gogoproto.goproto_stringer)=false
     +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
     
    Protobuf type k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions
    • 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.APIVersions.Builder>
      • clear

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

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

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

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

        public Generated.APIVersions.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.APIVersions.Builder>
      • clearField

        public Generated.APIVersions.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.APIVersions.Builder>
      • clearOneof

        public Generated.APIVersions.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.APIVersions.Builder>
      • setRepeatedField

        public Generated.APIVersions.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.APIVersions.Builder>
      • addRepeatedField

        public Generated.APIVersions.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.APIVersions.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.APIVersions.Builder>
      • mergeFrom

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

        public com.google.protobuf.ProtocolStringList getVersionsList()
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Specified by:
        getVersionsList in interface Generated.APIVersionsOrBuilder
        Returns:
        A list containing the versions.
      • getVersionsCount

        public int getVersionsCount()
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Specified by:
        getVersionsCount in interface Generated.APIVersionsOrBuilder
        Returns:
        The count of versions.
      • getVersions

        public String getVersions​(int index)
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Specified by:
        getVersions in interface Generated.APIVersionsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The versions at the given index.
      • getVersionsBytes

        public com.google.protobuf.ByteString getVersionsBytes​(int index)
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Specified by:
        getVersionsBytes in interface Generated.APIVersionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the versions at the given index.
      • setVersions

        public Generated.APIVersions.Builder setVersions​(int index,
                                                         String value)
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Parameters:
        index - The index to set the value at.
        value - The versions to set.
        Returns:
        This builder for chaining.
      • addVersions

        public Generated.APIVersions.Builder addVersions​(String value)
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Parameters:
        value - The versions to add.
        Returns:
        This builder for chaining.
      • addAllVersions

        public Generated.APIVersions.Builder addAllVersions​(Iterable<String> values)
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Parameters:
        values - The versions to add.
        Returns:
        This builder for chaining.
      • clearVersions

        public Generated.APIVersions.Builder clearVersions()
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Returns:
        This builder for chaining.
      • addVersionsBytes

        public Generated.APIVersions.Builder addVersionsBytes​(com.google.protobuf.ByteString value)
         versions are the api versions that are available.
         +listType=atomic
         
        repeated string versions = 1;
        Parameters:
        value - The bytes of the versions to add.
        Returns:
        This builder for chaining.
      • getServerAddressByClientCIDRsList

        public List<Generated.ServerAddressByClientCIDR> getServerAddressByClientCIDRsList()
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
        Specified by:
        getServerAddressByClientCIDRsList in interface Generated.APIVersionsOrBuilder
      • getServerAddressByClientCIDRsCount

        public int getServerAddressByClientCIDRsCount()
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
        Specified by:
        getServerAddressByClientCIDRsCount in interface Generated.APIVersionsOrBuilder
      • getServerAddressByClientCIDRs

        public Generated.ServerAddressByClientCIDR getServerAddressByClientCIDRs​(int index)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
        Specified by:
        getServerAddressByClientCIDRs in interface Generated.APIVersionsOrBuilder
      • setServerAddressByClientCIDRs

        public Generated.APIVersions.Builder setServerAddressByClientCIDRs​(int index,
                                                                           Generated.ServerAddressByClientCIDR value)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • setServerAddressByClientCIDRs

        public Generated.APIVersions.Builder setServerAddressByClientCIDRs​(int index,
                                                                           Generated.ServerAddressByClientCIDR.Builder builderForValue)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • addServerAddressByClientCIDRs

        public Generated.APIVersions.Builder addServerAddressByClientCIDRs​(Generated.ServerAddressByClientCIDR value)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • addServerAddressByClientCIDRs

        public Generated.APIVersions.Builder addServerAddressByClientCIDRs​(int index,
                                                                           Generated.ServerAddressByClientCIDR value)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • addServerAddressByClientCIDRs

        public Generated.APIVersions.Builder addServerAddressByClientCIDRs​(Generated.ServerAddressByClientCIDR.Builder builderForValue)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • addServerAddressByClientCIDRs

        public Generated.APIVersions.Builder addServerAddressByClientCIDRs​(int index,
                                                                           Generated.ServerAddressByClientCIDR.Builder builderForValue)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • addAllServerAddressByClientCIDRs

        public Generated.APIVersions.Builder addAllServerAddressByClientCIDRs​(Iterable<? extends Generated.ServerAddressByClientCIDR> values)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • clearServerAddressByClientCIDRs

        public Generated.APIVersions.Builder clearServerAddressByClientCIDRs()
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • removeServerAddressByClientCIDRs

        public Generated.APIVersions.Builder removeServerAddressByClientCIDRs​(int index)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • getServerAddressByClientCIDRsBuilder

        public Generated.ServerAddressByClientCIDR.Builder getServerAddressByClientCIDRsBuilder​(int index)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • getServerAddressByClientCIDRsOrBuilder

        public Generated.ServerAddressByClientCIDROrBuilder getServerAddressByClientCIDRsOrBuilder​(int index)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
        Specified by:
        getServerAddressByClientCIDRsOrBuilder in interface Generated.APIVersionsOrBuilder
      • getServerAddressByClientCIDRsOrBuilderList

        public List<? extends Generated.ServerAddressByClientCIDROrBuilder> getServerAddressByClientCIDRsOrBuilderList()
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
        Specified by:
        getServerAddressByClientCIDRsOrBuilderList in interface Generated.APIVersionsOrBuilder
      • addServerAddressByClientCIDRsBuilder

        public Generated.ServerAddressByClientCIDR.Builder addServerAddressByClientCIDRsBuilder()
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • addServerAddressByClientCIDRsBuilder

        public Generated.ServerAddressByClientCIDR.Builder addServerAddressByClientCIDRsBuilder​(int index)
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • getServerAddressByClientCIDRsBuilderList

        public List<Generated.ServerAddressByClientCIDR.Builder> getServerAddressByClientCIDRsBuilderList()
         a map of client CIDR to server address that is serving this group.
         This is to help clients reach servers in the most network-efficient way possible.
         Clients can use the appropriate server address as per the CIDR that they match.
         In case of multiple matches, clients should use the longest matching CIDR.
         The server returns only those CIDRs that it thinks that the client can match.
         For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
         Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
         +listType=atomic
         
        repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      • setUnknownFields

        public final Generated.APIVersions.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.APIVersions.Builder>
      • mergeUnknownFields

        public final Generated.APIVersions.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.APIVersions.Builder>