Class Generated.Endpoints.Builder

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

    public static final class Generated.Endpoints.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Endpoints.Builder>
    implements Generated.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 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.Endpoints.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public Generated.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<Generated.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 Generated.EndpointsOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public Generated.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 Generated.EndpointsOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public Generated.Endpoints.Builder setMetadata​(Generated.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 Generated.Endpoints.Builder setMetadata​(Generated.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 Generated.Endpoints.Builder mergeMetadata​(Generated.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 Generated.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 Generated.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;
      • getSubsetsList

        public List<Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
        Specified by:
        getSubsetsList in interface Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
        Specified by:
        getSubsetsCount in interface Generated.EndpointsOrBuilder
      • getSubsets

        public Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
        Specified by:
        getSubsets in interface Generated.EndpointsOrBuilder
      • setSubsets

        public Generated.Endpoints.Builder setSubsets​(int index,
                                                      Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • setSubsets

        public Generated.Endpoints.Builder setSubsets​(int index,
                                                      Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • addSubsets

        public Generated.Endpoints.Builder addSubsets​(Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • addSubsets

        public Generated.Endpoints.Builder addSubsets​(int index,
                                                      Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • addSubsets

        public Generated.Endpoints.Builder addSubsets​(Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • addSubsets

        public Generated.Endpoints.Builder addSubsets​(int index,
                                                      Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • addAllSubsets

        public Generated.Endpoints.Builder addAllSubsets​(Iterable<? extends Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • clearSubsets

        public Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • removeSubsets

        public Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • getSubsetsBuilder

        public Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • getSubsetsOrBuilder

        public Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
        Specified by:
        getSubsetsOrBuilder in interface Generated.EndpointsOrBuilder
      • getSubsetsOrBuilderList

        public List<? extends Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
        Specified by:
        getSubsetsOrBuilderList in interface Generated.EndpointsOrBuilder
      • addSubsetsBuilder

        public Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • addSubsetsBuilder

        public Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • getSubsetsBuilderList

        public List<Generated.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
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.EndpointSubset subsets = 2;
      • setUnknownFields

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

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