Class V1.LimitRangeItem

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.LimitRangeItem
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.LimitRangeItemOrBuilder, Serializable
Enclosing class:
V1

public static final class V1.LimitRangeItem extends com.google.protobuf.GeneratedMessageV3 implements V1.LimitRangeItemOrBuilder
 LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
 
Protobuf type k8s.io.api.core.v1.LimitRangeItem
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasType

      public boolean hasType()
       Type of resource that this limit applies to.
       
      optional string type = 1;
      Specified by:
      hasType in interface V1.LimitRangeItemOrBuilder
    • getType

      public String getType()
       Type of resource that this limit applies to.
       
      optional string type = 1;
      Specified by:
      getType in interface V1.LimitRangeItemOrBuilder
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Type of resource that this limit applies to.
       
      optional string type = 1;
      Specified by:
      getTypeBytes in interface V1.LimitRangeItemOrBuilder
    • getMaxCount

      public int getMaxCount()
      Description copied from interface: V1.LimitRangeItemOrBuilder
       Max usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2;
      Specified by:
      getMaxCount in interface V1.LimitRangeItemOrBuilder
    • containsMax

      public boolean containsMax(String key)
       Max usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2;
      Specified by:
      containsMax in interface V1.LimitRangeItemOrBuilder
    • getMax

      Deprecated.
      Use getMaxMap() instead.
      Specified by:
      getMax in interface V1.LimitRangeItemOrBuilder
    • getMaxMap

      public Map<String,Resource.Quantity> getMaxMap()
       Max usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2;
      Specified by:
      getMaxMap in interface V1.LimitRangeItemOrBuilder
    • getMaxOrDefault

      public Resource.Quantity getMaxOrDefault(String key, Resource.Quantity defaultValue)
       Max usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2;
      Specified by:
      getMaxOrDefault in interface V1.LimitRangeItemOrBuilder
    • getMaxOrThrow

      public Resource.Quantity getMaxOrThrow(String key)
       Max usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> max = 2;
      Specified by:
      getMaxOrThrow in interface V1.LimitRangeItemOrBuilder
    • getMinCount

      public int getMinCount()
      Description copied from interface: V1.LimitRangeItemOrBuilder
       Min usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3;
      Specified by:
      getMinCount in interface V1.LimitRangeItemOrBuilder
    • containsMin

      public boolean containsMin(String key)
       Min usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3;
      Specified by:
      containsMin in interface V1.LimitRangeItemOrBuilder
    • getMin

      Deprecated.
      Use getMinMap() instead.
      Specified by:
      getMin in interface V1.LimitRangeItemOrBuilder
    • getMinMap

      public Map<String,Resource.Quantity> getMinMap()
       Min usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3;
      Specified by:
      getMinMap in interface V1.LimitRangeItemOrBuilder
    • getMinOrDefault

      public Resource.Quantity getMinOrDefault(String key, Resource.Quantity defaultValue)
       Min usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3;
      Specified by:
      getMinOrDefault in interface V1.LimitRangeItemOrBuilder
    • getMinOrThrow

      public Resource.Quantity getMinOrThrow(String key)
       Min usage constraints on this kind by resource name.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> min = 3;
      Specified by:
      getMinOrThrow in interface V1.LimitRangeItemOrBuilder
    • getDefaultCount

      public int getDefaultCount()
      Description copied from interface: V1.LimitRangeItemOrBuilder
       Default resource requirement limit value by resource name if resource limit is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4;
      Specified by:
      getDefaultCount in interface V1.LimitRangeItemOrBuilder
    • containsDefault

      public boolean containsDefault(String key)
       Default resource requirement limit value by resource name if resource limit is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4;
      Specified by:
      containsDefault in interface V1.LimitRangeItemOrBuilder
    • getDefault

      @Deprecated public Map<String,Resource.Quantity> getDefault()
      Deprecated.
      Use getDefaultMap() instead.
      Specified by:
      getDefault in interface V1.LimitRangeItemOrBuilder
    • getDefaultMap

      public Map<String,Resource.Quantity> getDefaultMap()
       Default resource requirement limit value by resource name if resource limit is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4;
      Specified by:
      getDefaultMap in interface V1.LimitRangeItemOrBuilder
    • getDefaultOrDefault

      public Resource.Quantity getDefaultOrDefault(String key, Resource.Quantity defaultValue)
       Default resource requirement limit value by resource name if resource limit is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4;
      Specified by:
      getDefaultOrDefault in interface V1.LimitRangeItemOrBuilder
    • getDefaultOrThrow

      public Resource.Quantity getDefaultOrThrow(String key)
       Default resource requirement limit value by resource name if resource limit is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> default = 4;
      Specified by:
      getDefaultOrThrow in interface V1.LimitRangeItemOrBuilder
    • getDefaultRequestCount

      public int getDefaultRequestCount()
      Description copied from interface: V1.LimitRangeItemOrBuilder
       DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5;
      Specified by:
      getDefaultRequestCount in interface V1.LimitRangeItemOrBuilder
    • containsDefaultRequest

      public boolean containsDefaultRequest(String key)
       DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5;
      Specified by:
      containsDefaultRequest in interface V1.LimitRangeItemOrBuilder
    • getDefaultRequest

      @Deprecated public Map<String,Resource.Quantity> getDefaultRequest()
      Deprecated.
      Specified by:
      getDefaultRequest in interface V1.LimitRangeItemOrBuilder
    • getDefaultRequestMap

      public Map<String,Resource.Quantity> getDefaultRequestMap()
       DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5;
      Specified by:
      getDefaultRequestMap in interface V1.LimitRangeItemOrBuilder
    • getDefaultRequestOrDefault

      public Resource.Quantity getDefaultRequestOrDefault(String key, Resource.Quantity defaultValue)
       DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5;
      Specified by:
      getDefaultRequestOrDefault in interface V1.LimitRangeItemOrBuilder
    • getDefaultRequestOrThrow

      public Resource.Quantity getDefaultRequestOrThrow(String key)
       DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> defaultRequest = 5;
      Specified by:
      getDefaultRequestOrThrow in interface V1.LimitRangeItemOrBuilder
    • getMaxLimitRequestRatioCount

      public int getMaxLimitRequestRatioCount()
      Description copied from interface: V1.LimitRangeItemOrBuilder
       MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6;
      Specified by:
      getMaxLimitRequestRatioCount in interface V1.LimitRangeItemOrBuilder
    • containsMaxLimitRequestRatio

      public boolean containsMaxLimitRequestRatio(String key)
       MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6;
      Specified by:
      containsMaxLimitRequestRatio in interface V1.LimitRangeItemOrBuilder
    • getMaxLimitRequestRatio

      @Deprecated public Map<String,Resource.Quantity> getMaxLimitRequestRatio()
      Deprecated.
      Specified by:
      getMaxLimitRequestRatio in interface V1.LimitRangeItemOrBuilder
    • getMaxLimitRequestRatioMap

      public Map<String,Resource.Quantity> getMaxLimitRequestRatioMap()
       MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6;
      Specified by:
      getMaxLimitRequestRatioMap in interface V1.LimitRangeItemOrBuilder
    • getMaxLimitRequestRatioOrDefault

      public Resource.Quantity getMaxLimitRequestRatioOrDefault(String key, Resource.Quantity defaultValue)
       MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6;
      Specified by:
      getMaxLimitRequestRatioOrDefault in interface V1.LimitRangeItemOrBuilder
    • getMaxLimitRequestRatioOrThrow

      public Resource.Quantity getMaxLimitRequestRatioOrThrow(String key)
       MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> maxLimitRequestRatio = 6;
      Specified by:
      getMaxLimitRequestRatioOrThrow in interface V1.LimitRangeItemOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1.LimitRangeItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.LimitRangeItem parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.LimitRangeItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.LimitRangeItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1.LimitRangeItem.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1.LimitRangeItem.Builder newBuilder()
    • newBuilder

      public static V1.LimitRangeItem.Builder newBuilder(V1.LimitRangeItem prototype)
    • toBuilder

      public V1.LimitRangeItem.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1.LimitRangeItem.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1.LimitRangeItem getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1.LimitRangeItem> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1.LimitRangeItem> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1.LimitRangeItem getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder