Class 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 type k8s.io.api.networking.v1.IPBlock
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      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
      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
      Generated.IPBlock.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Generated.IPBlock build()  
      Generated.IPBlock buildPartial()  
      Generated.IPBlock.Builder clear()  
      Generated.IPBlock.Builder clearCidr()
      cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
      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
      Generated.IPBlock.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Generated.IPBlock.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Generated.IPBlock.Builder clone()  
      String getCidr()
      cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
      com.google.protobuf.ByteString getCidrBytes()
      cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
      Generated.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 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
      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
      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
      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
      boolean hasCidr()
      cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Generated.IPBlock.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Generated.IPBlock.Builder mergeFrom​(com.google.protobuf.Message other)  
      Generated.IPBlock.Builder mergeFrom​(Generated.IPBlock other)  
      Generated.IPBlock.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      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"
      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"
      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
      Generated.IPBlock.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Generated.IPBlock.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      Generated.IPBlock.Builder 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, 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 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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • clear

        public Generated.IPBlock.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • getDefaultInstanceForType

        public Generated.IPBlock getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Generated.IPBlock build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.IPBlock buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Generated.IPBlock.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • setField

        public Generated.IPBlock.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • clearField

        public Generated.IPBlock.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • clearOneof

        public Generated.IPBlock.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • addRepeatedField

        public Generated.IPBlock.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • mergeFrom

        public Generated.IPBlock.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.IPBlock.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        hasCidr in interface Generated.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:
        getCidr in interface Generated.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:
        getCidrBytes in interface Generated.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:
        getExceptList in interface Generated.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:
        getExceptCount in interface Generated.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:
        getExcept in interface Generated.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:
        getExceptBytes in interface Generated.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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>
      • mergeUnknownFields

        public final Generated.IPBlock.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.IPBlock.Builder>