Class V1Scheduling.PriorityClass.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
io.kubernetes.client.proto.V1Scheduling.PriorityClass.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Scheduling.PriorityClassOrBuilder, Cloneable
Enclosing class:
V1Scheduling.PriorityClass

public static final class V1Scheduling.PriorityClass.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder> implements V1Scheduling.PriorityClassOrBuilder
 PriorityClass defines mapping from a priority class name to the priority
 integer value. The value can be any valid integer.
 
Protobuf type k8s.io.api.scheduling.v1.PriorityClass
  • 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<V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1Scheduling.PriorityClass 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<V1Scheduling.PriorityClass.Builder>
    • setField

      public V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • clearField

      public V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • clearOneof

      public V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • setRepeatedField

      public V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • addRepeatedField

      public V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • mergeFrom

      public V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • mergeFrom

      public V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
      Throws:
      IOException
    • hasMetadata

      public boolean hasMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      hasMetadata in interface V1Scheduling.PriorityClassOrBuilder
    • getMetadata

      public Meta.ObjectMeta getMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadata in interface V1Scheduling.PriorityClassOrBuilder
    • setMetadata

       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • setMetadata

      public V1Scheduling.PriorityClass.Builder setMetadata(Meta.ObjectMeta.Builder builderForValue)
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • mergeMetadata

       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • clearMetadata

      public V1Scheduling.PriorityClass.Builder clearMetadata()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataBuilder

      public Meta.ObjectMeta.Builder getMetadataBuilder()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
    • getMetadataOrBuilder

      public Meta.ObjectMetaOrBuilder getMetadataOrBuilder()
       Standard object's metadata.
       More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface V1Scheduling.PriorityClassOrBuilder
    • hasValue

      public boolean hasValue()
       The value of this priority class. This is the actual priority that pods
       receive when they have the name of this class in their pod spec.
       
      optional int32 value = 2;
      Specified by:
      hasValue in interface V1Scheduling.PriorityClassOrBuilder
    • getValue

      public int getValue()
       The value of this priority class. This is the actual priority that pods
       receive when they have the name of this class in their pod spec.
       
      optional int32 value = 2;
      Specified by:
      getValue in interface V1Scheduling.PriorityClassOrBuilder
    • setValue

      public V1Scheduling.PriorityClass.Builder setValue(int value)
       The value of this priority class. This is the actual priority that pods
       receive when they have the name of this class in their pod spec.
       
      optional int32 value = 2;
    • clearValue

       The value of this priority class. This is the actual priority that pods
       receive when they have the name of this class in their pod spec.
       
      optional int32 value = 2;
    • hasGlobalDefault

      public boolean hasGlobalDefault()
       globalDefault specifies whether this PriorityClass should be considered as
       the default priority for pods that do not have any priority class.
       Only one PriorityClass can be marked as `globalDefault`. However, if more than
       one PriorityClasses exists with their `globalDefault` field set to true,
       the smallest value of such global default PriorityClasses will be used as the default priority.
       +optional
       
      optional bool globalDefault = 3;
      Specified by:
      hasGlobalDefault in interface V1Scheduling.PriorityClassOrBuilder
    • getGlobalDefault

      public boolean getGlobalDefault()
       globalDefault specifies whether this PriorityClass should be considered as
       the default priority for pods that do not have any priority class.
       Only one PriorityClass can be marked as `globalDefault`. However, if more than
       one PriorityClasses exists with their `globalDefault` field set to true,
       the smallest value of such global default PriorityClasses will be used as the default priority.
       +optional
       
      optional bool globalDefault = 3;
      Specified by:
      getGlobalDefault in interface V1Scheduling.PriorityClassOrBuilder
    • setGlobalDefault

      public V1Scheduling.PriorityClass.Builder setGlobalDefault(boolean value)
       globalDefault specifies whether this PriorityClass should be considered as
       the default priority for pods that do not have any priority class.
       Only one PriorityClass can be marked as `globalDefault`. However, if more than
       one PriorityClasses exists with their `globalDefault` field set to true,
       the smallest value of such global default PriorityClasses will be used as the default priority.
       +optional
       
      optional bool globalDefault = 3;
    • clearGlobalDefault

      public V1Scheduling.PriorityClass.Builder clearGlobalDefault()
       globalDefault specifies whether this PriorityClass should be considered as
       the default priority for pods that do not have any priority class.
       Only one PriorityClass can be marked as `globalDefault`. However, if more than
       one PriorityClasses exists with their `globalDefault` field set to true,
       the smallest value of such global default PriorityClasses will be used as the default priority.
       +optional
       
      optional bool globalDefault = 3;
    • hasDescription

      public boolean hasDescription()
       description is an arbitrary string that usually provides guidelines on
       when this priority class should be used.
       +optional
       
      optional string description = 4;
      Specified by:
      hasDescription in interface V1Scheduling.PriorityClassOrBuilder
    • getDescription

      public String getDescription()
       description is an arbitrary string that usually provides guidelines on
       when this priority class should be used.
       +optional
       
      optional string description = 4;
      Specified by:
      getDescription in interface V1Scheduling.PriorityClassOrBuilder
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       description is an arbitrary string that usually provides guidelines on
       when this priority class should be used.
       +optional
       
      optional string description = 4;
      Specified by:
      getDescriptionBytes in interface V1Scheduling.PriorityClassOrBuilder
    • setDescription

      public V1Scheduling.PriorityClass.Builder setDescription(String value)
       description is an arbitrary string that usually provides guidelines on
       when this priority class should be used.
       +optional
       
      optional string description = 4;
    • clearDescription

      public V1Scheduling.PriorityClass.Builder clearDescription()
       description is an arbitrary string that usually provides guidelines on
       when this priority class should be used.
       +optional
       
      optional string description = 4;
    • setDescriptionBytes

      public V1Scheduling.PriorityClass.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       description is an arbitrary string that usually provides guidelines on
       when this priority class should be used.
       +optional
       
      optional string description = 4;
    • hasPreemptionPolicy

      public boolean hasPreemptionPolicy()
       PreemptionPolicy is the Policy for preempting pods with lower priority.
       One of Never, PreemptLowerPriority.
       Defaults to PreemptLowerPriority if unset.
       This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       +optional
       
      optional string preemptionPolicy = 5;
      Specified by:
      hasPreemptionPolicy in interface V1Scheduling.PriorityClassOrBuilder
    • getPreemptionPolicy

      public String getPreemptionPolicy()
       PreemptionPolicy is the Policy for preempting pods with lower priority.
       One of Never, PreemptLowerPriority.
       Defaults to PreemptLowerPriority if unset.
       This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       +optional
       
      optional string preemptionPolicy = 5;
      Specified by:
      getPreemptionPolicy in interface V1Scheduling.PriorityClassOrBuilder
    • getPreemptionPolicyBytes

      public com.google.protobuf.ByteString getPreemptionPolicyBytes()
       PreemptionPolicy is the Policy for preempting pods with lower priority.
       One of Never, PreemptLowerPriority.
       Defaults to PreemptLowerPriority if unset.
       This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       +optional
       
      optional string preemptionPolicy = 5;
      Specified by:
      getPreemptionPolicyBytes in interface V1Scheduling.PriorityClassOrBuilder
    • setPreemptionPolicy

      public V1Scheduling.PriorityClass.Builder setPreemptionPolicy(String value)
       PreemptionPolicy is the Policy for preempting pods with lower priority.
       One of Never, PreemptLowerPriority.
       Defaults to PreemptLowerPriority if unset.
       This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       +optional
       
      optional string preemptionPolicy = 5;
    • clearPreemptionPolicy

      public V1Scheduling.PriorityClass.Builder clearPreemptionPolicy()
       PreemptionPolicy is the Policy for preempting pods with lower priority.
       One of Never, PreemptLowerPriority.
       Defaults to PreemptLowerPriority if unset.
       This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       +optional
       
      optional string preemptionPolicy = 5;
    • setPreemptionPolicyBytes

      public V1Scheduling.PriorityClass.Builder setPreemptionPolicyBytes(com.google.protobuf.ByteString value)
       PreemptionPolicy is the Policy for preempting pods with lower priority.
       One of Never, PreemptLowerPriority.
       Defaults to PreemptLowerPriority if unset.
       This field is beta-level, gated by the NonPreemptingPriority feature-gate.
       +optional
       
      optional string preemptionPolicy = 5;
    • setUnknownFields

      public final V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>
    • mergeUnknownFields

      public final V1Scheduling.PriorityClass.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<V1Scheduling.PriorityClass.Builder>