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.Descriptor
com.google.protobuf.Descriptors.Descriptor
IPBlock 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.boolean
IPBlock defines policy on a particular IPBlock.boolean
Selects Namespaces using cluster-scoped labels.boolean
This is a label selector which selects Pods.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
setField
public V1Networking.NetworkPolicyPeer.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
clearField
public V1Networking.NetworkPolicyPeer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
clearOneof
public V1Networking.NetworkPolicyPeer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
addRepeatedField
public V1Networking.NetworkPolicyPeer.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasPodSelector
in 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:
getPodSelector
in 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:
getPodSelectorOrBuilder
in 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:
hasNamespaceSelector
in 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:
getNamespaceSelector
in 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:
getNamespaceSelectorOrBuilder
in 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:
hasIpBlock
in 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:
getIpBlock
in 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:
getIpBlockOrBuilder
in interfaceV1Networking.NetworkPolicyPeerOrBuilder
-
setUnknownFields
public final V1Networking.NetworkPolicyPeer.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-
mergeUnknownFields
public final V1Networking.NetworkPolicyPeer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyPeer.Builder>
-