public static final class V1Networking.IPBlock.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder> implements V1Networking.IPBlockOrBuilder
IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.Protobuf type
k8s.io.api.networking.v1.IPBlock| Modifier and Type | Method and Description |
|---|---|
V1Networking.IPBlock.Builder |
addAllExcept(Iterable<String> values)
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
V1Networking.IPBlock.Builder |
addExcept(String value)
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
V1Networking.IPBlock.Builder |
addExceptBytes(com.google.protobuf.ByteString value)
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
V1Networking.IPBlock.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Networking.IPBlock |
build() |
V1Networking.IPBlock |
buildPartial() |
V1Networking.IPBlock.Builder |
clear() |
V1Networking.IPBlock.Builder |
clearCidr()
CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
|
V1Networking.IPBlock.Builder |
clearExcept()
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
V1Networking.IPBlock.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Networking.IPBlock.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Networking.IPBlock.Builder |
clone() |
String |
getCidr()
CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
|
com.google.protobuf.ByteString |
getCidrBytes()
CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
|
V1Networking.IPBlock |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExcept(int index)
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
com.google.protobuf.ByteString |
getExceptBytes(int index)
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
int |
getExceptCount()
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
com.google.protobuf.ProtocolStringList |
getExceptList()
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
boolean |
hasCidr()
CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Networking.IPBlock.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Networking.IPBlock.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Networking.IPBlock.Builder |
mergeFrom(V1Networking.IPBlock other) |
V1Networking.IPBlock.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Networking.IPBlock.Builder |
setCidr(String value)
CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
|
V1Networking.IPBlock.Builder |
setCidrBytes(com.google.protobuf.ByteString value)
CIDR is a string representing the IP Block
Valid examples are "192.168.1.1/24"
|
V1Networking.IPBlock.Builder |
setExcept(int index,
String value)
Except is a slice of CIDRs that should not be included within an IP Block
Valid examples are "192.168.1.1/24"
Except values will be rejected if they are outside the CIDR range
+optional
|
V1Networking.IPBlock.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Networking.IPBlock.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Networking.IPBlock.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Networking.IPBlock build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.IPBlock buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.IPBlock.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder mergeFrom(V1Networking.IPBlock other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public V1Networking.IPBlock.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Networking.IPBlock.Builder>IOExceptionpublic boolean hasCidr()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
optional string cidr = 1;hasCidr in interface V1Networking.IPBlockOrBuilderpublic String getCidr()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
optional string cidr = 1;getCidr in interface V1Networking.IPBlockOrBuilderpublic com.google.protobuf.ByteString getCidrBytes()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
optional string cidr = 1;getCidrBytes in interface V1Networking.IPBlockOrBuilderpublic V1Networking.IPBlock.Builder setCidr(String value)
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
optional string cidr = 1;public V1Networking.IPBlock.Builder clearCidr()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
optional string cidr = 1;public V1Networking.IPBlock.Builder setCidrBytes(com.google.protobuf.ByteString value)
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
optional string cidr = 1;public com.google.protobuf.ProtocolStringList getExceptList()
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;getExceptList in interface V1Networking.IPBlockOrBuilderpublic int getExceptCount()
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;getExceptCount in interface V1Networking.IPBlockOrBuilderpublic String getExcept(int index)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;getExcept in interface V1Networking.IPBlockOrBuilderpublic com.google.protobuf.ByteString getExceptBytes(int index)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;getExceptBytes in interface V1Networking.IPBlockOrBuilderpublic V1Networking.IPBlock.Builder setExcept(int index, String value)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;public V1Networking.IPBlock.Builder addExcept(String value)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;public V1Networking.IPBlock.Builder addAllExcept(Iterable<String> values)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;public V1Networking.IPBlock.Builder clearExcept()
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;public V1Networking.IPBlock.Builder addExceptBytes(com.google.protobuf.ByteString value)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;public final V1Networking.IPBlock.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>public final V1Networking.IPBlock.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>Copyright © 2020. All rights reserved.