Package k8s.io.api.networking.v1
Class Generated.IPBlock.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
-
- k8s.io.api.networking.v1.Generated.IPBlock.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.IPBlockOrBuilder
- Enclosing class:
- Generated.IPBlock
public static final class Generated.IPBlock.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder> implements Generated.IPBlockOrBuilder
IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") 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 typek8s.io.api.networking.v1.IPBlock
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.IPBlock.BuilderaddAllExcept(Iterable<String> values)except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomicGenerated.IPBlock.BuilderaddExcept(String value)except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomicGenerated.IPBlock.BuilderaddExceptBytes(com.google.protobuf.ByteString value)except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomicGenerated.IPBlock.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.IPBlockbuild()Generated.IPBlockbuildPartial()Generated.IPBlock.Builderclear()Generated.IPBlock.BuilderclearCidr()cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"Generated.IPBlock.BuilderclearExcept()except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomicGenerated.IPBlock.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.IPBlock.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.IPBlock.Builderclone()StringgetCidr()cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"com.google.protobuf.ByteStringgetCidrBytes()cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"Generated.IPBlockgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetExcept(int index)except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomiccom.google.protobuf.ByteStringgetExceptBytes(int index)except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomicintgetExceptCount()except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomiccom.google.protobuf.ProtocolStringListgetExceptList()except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomicbooleanhasCidr()cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.IPBlock.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.IPBlock.BuildermergeFrom(com.google.protobuf.Message other)Generated.IPBlock.BuildermergeFrom(Generated.IPBlock other)Generated.IPBlock.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.IPBlock.BuildersetCidr(String value)cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"Generated.IPBlock.BuildersetCidrBytes(com.google.protobuf.ByteString value)cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"Generated.IPBlock.BuildersetExcept(int index, String value)except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomicGenerated.IPBlock.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.IPBlock.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.IPBlock.BuildersetUnknownFields(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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
-
-
-
-
Method Detail
-
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<Generated.IPBlock.Builder>
-
clear
public Generated.IPBlock.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<Generated.IPBlock.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<Generated.IPBlock.Builder>
-
getDefaultInstanceForType
public Generated.IPBlock getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.IPBlock build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.IPBlock buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.IPBlock.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<Generated.IPBlock.Builder>
-
setField
public Generated.IPBlock.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<Generated.IPBlock.Builder>
-
clearField
public Generated.IPBlock.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
-
clearOneof
public Generated.IPBlock.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
-
setRepeatedField
public Generated.IPBlock.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<Generated.IPBlock.Builder>
-
addRepeatedField
public Generated.IPBlock.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<Generated.IPBlock.Builder>
-
mergeFrom
public Generated.IPBlock.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.IPBlock.Builder>
-
mergeFrom
public Generated.IPBlock.Builder mergeFrom(Generated.IPBlock other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
-
mergeFrom
public Generated.IPBlock.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<Generated.IPBlock.Builder>- Throws:
IOException
-
hasCidr
public boolean hasCidr()
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
optional string cidr = 1;- Specified by:
hasCidrin interfaceGenerated.IPBlockOrBuilder- Returns:
- Whether the cidr field is set.
-
getCidr
public String getCidr()
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
optional string cidr = 1;- Specified by:
getCidrin interfaceGenerated.IPBlockOrBuilder- Returns:
- The cidr.
-
getCidrBytes
public com.google.protobuf.ByteString getCidrBytes()
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
optional string cidr = 1;- Specified by:
getCidrBytesin interfaceGenerated.IPBlockOrBuilder- Returns:
- The bytes for cidr.
-
setCidr
public Generated.IPBlock.Builder setCidr(String value)
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
optional string cidr = 1;- Parameters:
value- The cidr to set.- Returns:
- This builder for chaining.
-
clearCidr
public Generated.IPBlock.Builder clearCidr()
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
optional string cidr = 1;- Returns:
- This builder for chaining.
-
setCidrBytes
public Generated.IPBlock.Builder setCidrBytes(com.google.protobuf.ByteString value)
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
optional string cidr = 1;- Parameters:
value- The bytes for cidr to set.- Returns:
- This builder for chaining.
-
getExceptList
public com.google.protobuf.ProtocolStringList getExceptList()
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Specified by:
getExceptListin interfaceGenerated.IPBlockOrBuilder- Returns:
- A list containing the except.
-
getExceptCount
public int getExceptCount()
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Specified by:
getExceptCountin interfaceGenerated.IPBlockOrBuilder- Returns:
- The count of except.
-
getExcept
public String getExcept(int index)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Specified by:
getExceptin interfaceGenerated.IPBlockOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The except at the given index.
-
getExceptBytes
public com.google.protobuf.ByteString getExceptBytes(int index)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Specified by:
getExceptBytesin interfaceGenerated.IPBlockOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the except at the given index.
-
setExcept
public Generated.IPBlock.Builder setExcept(int index, String value)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Parameters:
index- The index to set the value at.value- The except to set.- Returns:
- This builder for chaining.
-
addExcept
public Generated.IPBlock.Builder addExcept(String value)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Parameters:
value- The except to add.- Returns:
- This builder for chaining.
-
addAllExcept
public Generated.IPBlock.Builder addAllExcept(Iterable<String> values)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Parameters:
values- The except to add.- Returns:
- This builder for chaining.
-
clearExcept
public Generated.IPBlock.Builder clearExcept()
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Returns:
- This builder for chaining.
-
addExceptBytes
public Generated.IPBlock.Builder addExceptBytes(com.google.protobuf.ByteString value)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range +optional +listType=atomic
repeated string except = 2;- Parameters:
value- The bytes of the except to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.IPBlock.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
-
mergeUnknownFields
public final Generated.IPBlock.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
-
-