Class Generated.NetworkPolicyPeer.Builder

    • 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.NetworkPolicyPeer.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.NetworkPolicyPeer.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.NetworkPolicyPeer buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.NetworkPolicyPeer.Builder>
      • mergeFrom

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

        public boolean hasPodSelector()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
        Specified by:
        hasPodSelector in interface Generated.NetworkPolicyPeerOrBuilder
        Returns:
        Whether the podSelector field is set.
      • getPodSelector

        public Generated.LabelSelector getPodSelector()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
        Specified by:
        getPodSelector in interface Generated.NetworkPolicyPeerOrBuilder
        Returns:
        The podSelector.
      • setPodSelector

        public Generated.NetworkPolicyPeer.Builder setPodSelector​(Generated.LabelSelector value)
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
      • setPodSelector

        public Generated.NetworkPolicyPeer.Builder setPodSelector​(Generated.LabelSelector.Builder builderForValue)
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
      • mergePodSelector

        public Generated.NetworkPolicyPeer.Builder mergePodSelector​(Generated.LabelSelector value)
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
      • clearPodSelector

        public Generated.NetworkPolicyPeer.Builder clearPodSelector()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
      • getPodSelectorBuilder

        public Generated.LabelSelector.Builder getPodSelectorBuilder()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
      • getPodSelectorOrBuilder

        public Generated.LabelSelectorOrBuilder getPodSelectorOrBuilder()
         podSelector is a label selector which selects pods. This field follows standard label
         selector semantics; if present but empty, it selects all pods.
        
         If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the Namespaces selected by NamespaceSelector.
         Otherwise it selects the pods matching podSelector in the policy's own namespace.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
        Specified by:
        getPodSelectorOrBuilder in interface Generated.NetworkPolicyPeerOrBuilder
      • hasNamespaceSelector

        public boolean hasNamespaceSelector()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
        Specified by:
        hasNamespaceSelector in interface Generated.NetworkPolicyPeerOrBuilder
        Returns:
        Whether the namespaceSelector field is set.
      • getNamespaceSelector

        public Generated.LabelSelector getNamespaceSelector()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
        Specified by:
        getNamespaceSelector in interface Generated.NetworkPolicyPeerOrBuilder
        Returns:
        The namespaceSelector.
      • setNamespaceSelector

        public Generated.NetworkPolicyPeer.Builder setNamespaceSelector​(Generated.LabelSelector value)
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
      • setNamespaceSelector

        public Generated.NetworkPolicyPeer.Builder setNamespaceSelector​(Generated.LabelSelector.Builder builderForValue)
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
      • mergeNamespaceSelector

        public Generated.NetworkPolicyPeer.Builder mergeNamespaceSelector​(Generated.LabelSelector value)
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
      • clearNamespaceSelector

        public Generated.NetworkPolicyPeer.Builder clearNamespaceSelector()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
      • getNamespaceSelectorBuilder

        public Generated.LabelSelector.Builder getNamespaceSelectorBuilder()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
      • getNamespaceSelectorOrBuilder

        public Generated.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder()
         namespaceSelector selects namespaces using cluster-scoped labels. This field follows
         standard label selector semantics; if present but empty, it selects all namespaces.
        
         If podSelector is also set, then the NetworkPolicyPeer as a whole selects
         the pods matching podSelector in the namespaces selected by namespaceSelector.
         Otherwise it selects all pods in the namespaces selected by namespaceSelector.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
        Specified by:
        getNamespaceSelectorOrBuilder in interface Generated.NetworkPolicyPeerOrBuilder
      • hasIpBlock

        public boolean hasIpBlock()
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
        Specified by:
        hasIpBlock in interface Generated.NetworkPolicyPeerOrBuilder
        Returns:
        Whether the ipBlock field is set.
      • getIpBlock

        public Generated.IPBlock getIpBlock()
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
        Specified by:
        getIpBlock in interface Generated.NetworkPolicyPeerOrBuilder
        Returns:
        The ipBlock.
      • setIpBlock

        public Generated.NetworkPolicyPeer.Builder setIpBlock​(Generated.IPBlock value)
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
      • mergeIpBlock

        public Generated.NetworkPolicyPeer.Builder mergeIpBlock​(Generated.IPBlock value)
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
      • clearIpBlock

        public Generated.NetworkPolicyPeer.Builder clearIpBlock()
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
      • getIpBlockBuilder

        public Generated.IPBlock.Builder getIpBlockBuilder()
         ipBlock defines policy on a particular IPBlock. If this field is set then
         neither of the other fields can be.
         +optional
         
        optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3;
      • mergeUnknownFields

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