Package io.kubernetes.client.proto
Class V1Networking.NetworkPolicyPeer.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Networking.NetworkPolicyPeerOrBuilder,Cloneable
- Enclosing class:
- V1Networking.NetworkPolicyPeer
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 to/from. Only certain combinations of fields are allowedProtobuf type
k8s.io.api.networking.v1.NetworkPolicyPeer-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) IPBlock defines policy on a particular IPBlock.Selects Namespaces using cluster-scoped labels.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) This is a label selector which selects Pods.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIPBlock defines policy on a particular IPBlock.IPBlock defines policy on a particular IPBlock.IPBlock defines policy on a particular IPBlock.Selects Namespaces using cluster-scoped labels.Selects Namespaces using cluster-scoped labels.Selects Namespaces using cluster-scoped labels.This is a label selector which selects Pods.This is a label selector which selects Pods.This is a label selector which selects Pods.booleanIPBlock defines policy on a particular IPBlock.booleanSelects Namespaces using cluster-scoped labels.booleanThis is a label selector which selects Pods.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeIpBlock(V1Networking.IPBlock value) IPBlock defines policy on a particular IPBlock.Selects Namespaces using cluster-scoped labels.This is a label selector which selects Pods.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setIpBlock(V1Networking.IPBlock value) IPBlock defines policy on a particular IPBlock.setIpBlock(V1Networking.IPBlock.Builder builderForValue) IPBlock defines policy on a particular IPBlock.Selects Namespaces using cluster-scoped labels.setNamespaceSelector(Meta.LabelSelector.Builder builderForValue) Selects Namespaces using cluster-scoped labels.setPodSelector(Meta.LabelSelector value) This is a label selector which selects Pods.setPodSelector(Meta.LabelSelector.Builder builderForValue) This is a label selector which selects Pods.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
setField
public V1Networking.NetworkPolicyPeer.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
clearField
public V1Networking.NetworkPolicyPeer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
clearOneof
public V1Networking.NetworkPolicyPeer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
setRepeatedField
public V1Networking.NetworkPolicyPeer.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
addRepeatedField
public V1Networking.NetworkPolicyPeer.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
mergeFrom
public V1Networking.NetworkPolicyPeer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Networking.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:
hasPodSelectorin interfaceV1Networking.NetworkPolicyPeerOrBuilder
-
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:
getPodSelectorin interfaceV1Networking.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
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; -
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
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
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:
getPodSelectorOrBuilderin interfaceV1Networking.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:
hasNamespaceSelectorin interfaceV1Networking.NetworkPolicyPeerOrBuilder
-
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:
getNamespaceSelectorin interfaceV1Networking.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 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; -
mergeNamespaceSelector
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
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
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
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:
getNamespaceSelectorOrBuilderin interfaceV1Networking.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:
hasIpBlockin interfaceV1Networking.NetworkPolicyPeerOrBuilder
-
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:
getIpBlockin interfaceV1Networking.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.networking.v1.IPBlock ipBlock = 3; -
setIpBlock
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; -
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.networking.v1.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.networking.v1.IPBlock ipBlock = 3; -
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; -
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:
getIpBlockOrBuilderin interfaceV1Networking.NetworkPolicyPeerOrBuilder
-
setUnknownFields
public final V1Networking.NetworkPolicyPeer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
mergeUnknownFields
public final V1Networking.NetworkPolicyPeer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-