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 Type
    Method
    Description
    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
    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
    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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object 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 +optional
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
     
    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 +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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
    int
    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
    com.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 +optional
    boolean
    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)
     
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setCidr(String value)
    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"
    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" or "2001:db9::/64" Except values will be rejected if they are outside the CIDR range +optional
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    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 class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.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<V1Networking.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<V1Networking.IPBlock.Builder>
    • getDefaultInstanceForType

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

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

      public V1Networking.IPBlock buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<V1Networking.IPBlock.Builder>
    • setField

      public V1Networking.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<V1Networking.IPBlock.Builder>
    • clearField

      public V1Networking.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<V1Networking.IPBlock.Builder>
    • clearOneof

      public V1Networking.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<V1Networking.IPBlock.Builder>
    • setRepeatedField

      public V1Networking.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<V1Networking.IPBlock.Builder>
    • addRepeatedField

      public V1Networking.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<V1Networking.IPBlock.Builder>
    • mergeFrom

      public V1Networking.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<V1Networking.IPBlock.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<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 interface V1Networking.IPBlockOrBuilder
    • getCidr

      public String 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 interface V1Networking.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 interface V1Networking.IPBlockOrBuilder
    • setCidr

      public V1Networking.IPBlock.Builder setCidr(String value)
       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

      public V1Networking.IPBlock.Builder 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

      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" 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 interface V1Networking.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 interface V1Networking.IPBlockOrBuilder
    • getExcept

      public 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" 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 interface V1Networking.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 interface V1Networking.IPBlockOrBuilder
    • setExcept

      public 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" or "2001:db9::/64"
       Except values will be rejected if they are outside the CIDR range
       +optional
       
      repeated string except = 2;
    • addExcept

      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" or "2001:db9::/64"
       Except values will be rejected if they are outside the CIDR range
       +optional
       
      repeated string except = 2;
    • addAllExcept

      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" or "2001:db9::/64"
       Except values will be rejected if they are outside the CIDR range
       +optional
       
      repeated string except = 2;
    • clearExcept

      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" or "2001:db9::/64"
       Except values will be rejected if they are outside the CIDR range
       +optional
       
      repeated string except = 2;
    • addExceptBytes

      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" 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.IPBlock.Builder>
    • mergeUnknownFields

      public final V1Networking.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<V1Networking.IPBlock.Builder>