Class V1Networking.NetworkPolicyPeer

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Networking.NetworkPolicyPeerOrBuilder, Serializable
Enclosing class:
V1Networking

public static final class V1Networking.NetworkPolicyPeer extends com.google.protobuf.GeneratedMessageV3 implements V1Networking.NetworkPolicyPeerOrBuilder
 NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of
 fields are allowed
 
Protobuf type k8s.io.api.networking.v1.NetworkPolicyPeer
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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 V1Networking.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 V1Networking.NetworkPolicyPeerOrBuilder
    • 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 V1Networking.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 V1Networking.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 V1Networking.NetworkPolicyPeerOrBuilder
    • 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 V1Networking.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 V1Networking.NetworkPolicyPeerOrBuilder
    • getIpBlock

      public V1Networking.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 V1Networking.NetworkPolicyPeerOrBuilder
    • getIpBlockOrBuilder

      public V1Networking.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.networking.v1.IPBlock ipBlock = 3;
      Specified by:
      getIpBlockOrBuilder in interface V1Networking.NetworkPolicyPeerOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Networking.NetworkPolicyPeer parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Networking.NetworkPolicyPeer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Networking.NetworkPolicyPeer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1Networking.NetworkPolicyPeer.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1Networking.NetworkPolicyPeer.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1Networking.NetworkPolicyPeer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1Networking.NetworkPolicyPeer getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1Networking.NetworkPolicyPeer> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1Networking.NetworkPolicyPeer> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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