Package io.kubernetes.client.proto
Class V1Networking.IPBlock.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>
io.kubernetes.client.proto.V1Networking.IPBlock.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1Networking.IPBlockOrBuilder
,Cloneable
- Enclosing class:
- V1Networking.IPBlock
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","2001:db9::/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 type
k8s.io.api.networking.v1.IPBlock
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExcept
(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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionalExcept is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionaladdExceptBytes
(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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionaladdRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionalclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
getCidr()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"com.google.protobuf.ByteString
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionalcom.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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionalint
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionalcom.google.protobuf.ProtocolStringList
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionalboolean
hasCidr()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"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) mergeFrom
(V1Networking.IPBlock other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"setCidrBytes
(com.google.protobuf.ByteString value) CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optionalsetRepeatedField
(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.IPBlock.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.IPBlock.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.IPBlock.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.IPBlock.Builder>
-
setField
public V1Networking.IPBlock.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.IPBlock.Builder>
-
clearField
public V1Networking.IPBlock.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.IPBlock.Builder>
-
clearOneof
public V1Networking.IPBlock.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.IPBlock.Builder>
-
setRepeatedField
public V1Networking.IPBlock.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.IPBlock.Builder>
-
addRepeatedField
public V1Networking.IPBlock.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.IPBlock.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1Networking.IPBlock.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>
-
mergeFrom
public V1Networking.IPBlock.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.IPBlock.Builder>
- Throws:
IOException
-
hasCidr
public boolean hasCidr()CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"
optional string cidr = 1;
- Specified by:
hasCidr
in interfaceV1Networking.IPBlockOrBuilder
-
getCidr
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"
optional string cidr = 1;
- Specified by:
getCidr
in interfaceV1Networking.IPBlockOrBuilder
-
getCidrBytes
public com.google.protobuf.ByteString getCidrBytes()CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"
optional string cidr = 1;
- Specified by:
getCidrBytes
in interfaceV1Networking.IPBlockOrBuilder
-
setCidr
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"
optional string cidr = 1;
-
clearCidr
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"
optional string cidr = 1;
-
setCidrBytes
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64"
optional string cidr = 1;
-
getExceptList
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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
- Specified by:
getExceptList
in interfaceV1Networking.IPBlockOrBuilder
-
getExceptCount
public 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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
- Specified by:
getExceptCount
in interfaceV1Networking.IPBlockOrBuilder
-
getExcept
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
- Specified by:
getExcept
in interfaceV1Networking.IPBlockOrBuilder
-
getExceptBytes
public 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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
- Specified by:
getExceptBytes
in interfaceV1Networking.IPBlockOrBuilder
-
setExcept
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
-
addExcept
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
-
addAllExcept
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
-
clearExcept
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
-
addExceptBytes
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
repeated string except = 2;
-
setUnknownFields
public final V1Networking.IPBlock.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.IPBlock.Builder>
-
mergeUnknownFields
public final V1Networking.IPBlock.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.IPBlock.Builder>
-