Class V1.Endpoints.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.Endpoints.Builder>
io.kubernetes.client.proto.V1.Endpoints.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.EndpointsOrBuilder, Cloneable
Enclosing class:
V1.Endpoints

public static final class V1.Endpoints.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.Endpoints.Builder> implements V1.EndpointsOrBuilder
 Endpoints is a collection of endpoints that implement the actual service. Example:
   Name: "mysvc",
   Subsets: [
     {
       Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],
       Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]
     },
     {
       Addresses: [{"ip": "10.10.3.3"}],
       Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]
     },
  ]
 
Protobuf type k8s.io.api.core.v1.Endpoints
  • 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<V1.Endpoints.Builder>
    • clear

      public V1.Endpoints.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<V1.Endpoints.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<V1.Endpoints.Builder>
    • getDefaultInstanceForType

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

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

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

      public V1.Endpoints.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<V1.Endpoints.Builder>
    • setField

      public V1.Endpoints.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<V1.Endpoints.Builder>
    • clearField

      public V1.Endpoints.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<V1.Endpoints.Builder>
    • clearOneof

      public V1.Endpoints.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<V1.Endpoints.Builder>
    • setRepeatedField

      public V1.Endpoints.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<V1.Endpoints.Builder>
    • addRepeatedField

      public V1.Endpoints.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<V1.Endpoints.Builder>
    • mergeFrom

      public V1.Endpoints.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<V1.Endpoints.Builder>
    • mergeFrom

      public V1.Endpoints.Builder mergeFrom(V1.Endpoints other)
    • isInitialized

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

      public V1.Endpoints.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<V1.Endpoints.Builder>
      Throws:
      IOException
    • hasMetadata

      public boolean hasMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      hasMetadata in interface V1.EndpointsOrBuilder
    • getMetadata

      public Meta.ObjectMeta getMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadata in interface V1.EndpointsOrBuilder
    • setMetadata

      public V1.Endpoints.Builder setMetadata(Meta.ObjectMeta value)
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • setMetadata

      public V1.Endpoints.Builder setMetadata(Meta.ObjectMeta.Builder builderForValue)
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • mergeMetadata

      public V1.Endpoints.Builder mergeMetadata(Meta.ObjectMeta value)
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • clearMetadata

      public V1.Endpoints.Builder clearMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataBuilder

      public Meta.ObjectMeta.Builder getMetadataBuilder()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataOrBuilder

      public Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface V1.EndpointsOrBuilder
    • getSubsetsList

      public List<V1.EndpointSubset> getSubsetsList()
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      Specified by:
      getSubsetsList in interface V1.EndpointsOrBuilder
    • getSubsetsCount

      public int getSubsetsCount()
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      Specified by:
      getSubsetsCount in interface V1.EndpointsOrBuilder
    • getSubsets

      public V1.EndpointSubset getSubsets(int index)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      Specified by:
      getSubsets in interface V1.EndpointsOrBuilder
    • setSubsets

      public V1.Endpoints.Builder setSubsets(int index, V1.EndpointSubset value)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • setSubsets

      public V1.Endpoints.Builder setSubsets(int index, V1.EndpointSubset.Builder builderForValue)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • addSubsets

      public V1.Endpoints.Builder addSubsets(V1.EndpointSubset value)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • addSubsets

      public V1.Endpoints.Builder addSubsets(int index, V1.EndpointSubset value)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • addSubsets

      public V1.Endpoints.Builder addSubsets(V1.EndpointSubset.Builder builderForValue)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • addSubsets

      public V1.Endpoints.Builder addSubsets(int index, V1.EndpointSubset.Builder builderForValue)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • addAllSubsets

      public V1.Endpoints.Builder addAllSubsets(Iterable<? extends V1.EndpointSubset> values)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • clearSubsets

      public V1.Endpoints.Builder clearSubsets()
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • removeSubsets

      public V1.Endpoints.Builder removeSubsets(int index)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • getSubsetsBuilder

      public V1.EndpointSubset.Builder getSubsetsBuilder(int index)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • getSubsetsOrBuilder

      public V1.EndpointSubsetOrBuilder getSubsetsOrBuilder(int index)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      Specified by:
      getSubsetsOrBuilder in interface V1.EndpointsOrBuilder
    • getSubsetsOrBuilderList

      public List<? extends V1.EndpointSubsetOrBuilder> getSubsetsOrBuilderList()
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      Specified by:
      getSubsetsOrBuilderList in interface V1.EndpointsOrBuilder
    • addSubsetsBuilder

      public V1.EndpointSubset.Builder addSubsetsBuilder()
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • addSubsetsBuilder

      public V1.EndpointSubset.Builder addSubsetsBuilder(int index)
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • getSubsetsBuilderList

      public List<V1.EndpointSubset.Builder> getSubsetsBuilderList()
       The set of all endpoints is the union of all subsets. Addresses are placed into
       subsets according to the IPs they share. A single address with multiple ports,
       some of which are ready and some of which are not (because they come from
       different containers) will result in the address being displayed in different
       subsets for the different ports. No address will appear in both Addresses and
       NotReadyAddresses in the same subset.
       Sets of addresses and ports that comprise a service.
       +optional
       
      repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
    • setUnknownFields

      public final V1.Endpoints.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<V1.Endpoints.Builder>
    • mergeUnknownFields

      public final V1.Endpoints.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<V1.Endpoints.Builder>