public static final class V1Networking.NetworkPolicyPeer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder> implements V1Networking.NetworkPolicyPeerOrBuilder
NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowedProtobuf type
k8s.io.api.networking.v1.NetworkPolicyPeer
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public V1Networking.NetworkPolicyPeer build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public V1Networking.NetworkPolicyPeer buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public V1Networking.NetworkPolicyPeer.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder mergeFrom(V1Networking.NetworkPolicyPeer other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public V1Networking.NetworkPolicyPeer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyPeer.Builder>
IOException
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;
hasPodSelector
in interface V1Networking.NetworkPolicyPeerOrBuilder
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;
getPodSelector
in interface V1Networking.NetworkPolicyPeerOrBuilder
public V1Networking.NetworkPolicyPeer.Builder setPodSelector(Meta.LabelSelector value)
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;
public V1Networking.NetworkPolicyPeer.Builder setPodSelector(Meta.LabelSelector.Builder builderForValue)
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;
public V1Networking.NetworkPolicyPeer.Builder mergePodSelector(Meta.LabelSelector value)
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;
public V1Networking.NetworkPolicyPeer.Builder 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;
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;
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;
getPodSelectorOrBuilder
in interface V1Networking.NetworkPolicyPeerOrBuilder
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;
hasNamespaceSelector
in interface V1Networking.NetworkPolicyPeerOrBuilder
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;
getNamespaceSelector
in interface V1Networking.NetworkPolicyPeerOrBuilder
public V1Networking.NetworkPolicyPeer.Builder setNamespaceSelector(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;
public V1Networking.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;
public V1Networking.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;
public V1Networking.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;
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;
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;
getNamespaceSelectorOrBuilder
in interface V1Networking.NetworkPolicyPeerOrBuilder
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;
hasIpBlock
in interface V1Networking.NetworkPolicyPeerOrBuilder
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;
getIpBlock
in interface V1Networking.NetworkPolicyPeerOrBuilder
public V1Networking.NetworkPolicyPeer.Builder setIpBlock(V1Networking.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;
public V1Networking.NetworkPolicyPeer.Builder setIpBlock(V1Networking.IPBlock.Builder builderForValue)
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;
public V1Networking.NetworkPolicyPeer.Builder mergeIpBlock(V1Networking.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;
public V1Networking.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;
public V1Networking.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;
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;
getIpBlockOrBuilder
in interface V1Networking.NetworkPolicyPeerOrBuilder
public final V1Networking.NetworkPolicyPeer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
public final V1Networking.NetworkPolicyPeer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
Copyright © 2021. All rights reserved.