Class Meta.APIVersions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Meta.APIVersions.Builder>
io.kubernetes.client.proto.Meta.APIVersions.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Meta.APIVersionsOrBuilder, Cloneable
Enclosing class:
Meta.APIVersions

public static final class Meta.APIVersions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.APIVersions.Builder> implements Meta.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 Details

    • 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<Meta.APIVersions.Builder>
    • clear

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

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

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

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

      public Meta.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<Meta.APIVersions.Builder>
    • setField

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

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

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

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

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

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

      public Meta.APIVersions.Builder mergeFrom(Meta.APIVersions other)
    • isInitialized

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

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

      public com.google.protobuf.ProtocolStringList getVersionsList()
       versions are the api versions that are available.
       
      repeated string versions = 1;
      Specified by:
      getVersionsList in interface Meta.APIVersionsOrBuilder
    • getVersionsCount

      public int getVersionsCount()
       versions are the api versions that are available.
       
      repeated string versions = 1;
      Specified by:
      getVersionsCount in interface Meta.APIVersionsOrBuilder
    • getVersions

      public String getVersions(int index)
       versions are the api versions that are available.
       
      repeated string versions = 1;
      Specified by:
      getVersions in interface Meta.APIVersionsOrBuilder
    • getVersionsBytes

      public com.google.protobuf.ByteString getVersionsBytes(int index)
       versions are the api versions that are available.
       
      repeated string versions = 1;
      Specified by:
      getVersionsBytes in interface Meta.APIVersionsOrBuilder
    • setVersions

      public Meta.APIVersions.Builder setVersions(int index, String value)
       versions are the api versions that are available.
       
      repeated string versions = 1;
    • addVersions

      public Meta.APIVersions.Builder addVersions(String value)
       versions are the api versions that are available.
       
      repeated string versions = 1;
    • addAllVersions

      public Meta.APIVersions.Builder addAllVersions(Iterable<String> values)
       versions are the api versions that are available.
       
      repeated string versions = 1;
    • clearVersions

      public Meta.APIVersions.Builder clearVersions()
       versions are the api versions that are available.
       
      repeated string versions = 1;
    • addVersionsBytes

      public Meta.APIVersions.Builder addVersionsBytes(com.google.protobuf.ByteString value)
       versions are the api versions that are available.
       
      repeated string versions = 1;
    • getServerAddressByClientCIDRsList

      public List<Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      Specified by:
      getServerAddressByClientCIDRsList in interface Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      Specified by:
      getServerAddressByClientCIDRsCount in interface Meta.APIVersionsOrBuilder
    • getServerAddressByClientCIDRs

      public Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      Specified by:
      getServerAddressByClientCIDRs in interface Meta.APIVersionsOrBuilder
    • setServerAddressByClientCIDRs

      public Meta.APIVersions.Builder setServerAddressByClientCIDRs(int index, Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • setServerAddressByClientCIDRs

      public Meta.APIVersions.Builder setServerAddressByClientCIDRs(int index, Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • addServerAddressByClientCIDRs

      public Meta.APIVersions.Builder addServerAddressByClientCIDRs(Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • addServerAddressByClientCIDRs

      public Meta.APIVersions.Builder addServerAddressByClientCIDRs(int index, Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • addServerAddressByClientCIDRs

      public Meta.APIVersions.Builder addServerAddressByClientCIDRs(Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • addServerAddressByClientCIDRs

      public Meta.APIVersions.Builder addServerAddressByClientCIDRs(int index, Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • addAllServerAddressByClientCIDRs

      public Meta.APIVersions.Builder addAllServerAddressByClientCIDRs(Iterable<? extends Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • clearServerAddressByClientCIDRs

      public Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • removeServerAddressByClientCIDRs

      public Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • getServerAddressByClientCIDRsBuilder

      public Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • getServerAddressByClientCIDRsOrBuilder

      public Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      Specified by:
      getServerAddressByClientCIDRsOrBuilder in interface Meta.APIVersionsOrBuilder
    • getServerAddressByClientCIDRsOrBuilderList

      public List<? extends Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
      Specified by:
      getServerAddressByClientCIDRsOrBuilderList in interface Meta.APIVersionsOrBuilder
    • addServerAddressByClientCIDRsBuilder

      public Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • addServerAddressByClientCIDRsBuilder

      public Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • getServerAddressByClientCIDRsBuilderList

      public List<Meta.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.
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR serverAddressByClientCIDRs = 2;
    • setUnknownFields

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

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