Class V1beta1Extensions.NetworkPolicyPeer.Builder

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

public static final class V1beta1Extensions.NetworkPolicyPeer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyPeer.Builder> implements V1beta1Extensions.NetworkPolicyPeerOrBuilder
 DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer.
 
Protobuf type k8s.io.api.extensions.v1beta1.NetworkPolicyPeer
  • 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<V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • clearField

      public V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • clearOneof

      public V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • setRepeatedField

      public V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • addRepeatedField

      public V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • mergeFrom

      public V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • mergeFrom

    • isInitialized

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

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

      public boolean hasPodSelector()
       This 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 V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • getPodSelector

      public Meta.LabelSelector getPodSelector()
       This 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 V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • setPodSelector

       This 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

       This 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

       This 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

       This 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 Meta.LabelSelector.Builder getPodSelectorBuilder()
       This 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 Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder()
       This 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 V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • hasNamespaceSelector

      public boolean hasNamespaceSelector()
       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 V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • getNamespaceSelector

      public Meta.LabelSelector getNamespaceSelector()
       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 V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • setNamespaceSelector

       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 V1beta1Extensions.NetworkPolicyPeer.Builder setNamespaceSelector(Meta.LabelSelector.Builder builderForValue)
       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 V1beta1Extensions.NetworkPolicyPeer.Builder mergeNamespaceSelector(Meta.LabelSelector value)
       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 V1beta1Extensions.NetworkPolicyPeer.Builder clearNamespaceSelector()
       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 Meta.LabelSelector.Builder getNamespaceSelectorBuilder()
       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 Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder()
       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 V1beta1Extensions.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.extensions.v1beta1.IPBlock ipBlock = 3;
      Specified by:
      hasIpBlock in interface V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • getIpBlock

      public V1beta1Extensions.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.extensions.v1beta1.IPBlock ipBlock = 3;
      Specified by:
      getIpBlock in interface V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • setIpBlock

       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.extensions.v1beta1.IPBlock ipBlock = 3;
    • setIpBlock

       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.extensions.v1beta1.IPBlock ipBlock = 3;
    • mergeIpBlock

       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.extensions.v1beta1.IPBlock ipBlock = 3;
    • 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.extensions.v1beta1.IPBlock ipBlock = 3;
    • getIpBlockBuilder

      public V1beta1Extensions.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.extensions.v1beta1.IPBlock ipBlock = 3;
    • getIpBlockOrBuilder

      public V1beta1Extensions.IPBlockOrBuilder getIpBlockOrBuilder()
       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.extensions.v1beta1.IPBlock ipBlock = 3;
      Specified by:
      getIpBlockOrBuilder in interface V1beta1Extensions.NetworkPolicyPeerOrBuilder
    • setUnknownFields

      public final V1beta1Extensions.NetworkPolicyPeer.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<V1beta1Extensions.NetworkPolicyPeer.Builder>
    • mergeUnknownFields

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