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| Modifier and Type | Method and Description |
|---|---|
V1Scheduling.PriorityClass.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Scheduling.PriorityClass |
build() |
V1Scheduling.PriorityClass |
buildPartial() |
V1Scheduling.PriorityClass.Builder |
clear() |
V1Scheduling.PriorityClass.Builder |
clearDescription()
description is an arbitrary string that usually provides guidelines on
when this priority class should be used.
|
V1Scheduling.PriorityClass.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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.
|
V1Scheduling.PriorityClass.Builder |
clearMetadata()
Standard object's metadata.
|
V1Scheduling.PriorityClass.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Scheduling.PriorityClass.Builder |
clearPreemptionPolicy()
PreemptionPolicy is the Policy for preempting pods with lower priority.
|
V1Scheduling.PriorityClass.Builder |
clearValue()
The value of this priority class.
|
V1Scheduling.PriorityClass.Builder |
clone() |
V1Scheduling.PriorityClass |
getDefaultInstanceForType() |
String |
getDescription()
description is an arbitrary string that usually provides guidelines on
when this priority class should be used.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
description is an arbitrary string that usually provides guidelines on
when this priority class should be used.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getGlobalDefault()
globalDefault specifies whether this PriorityClass should be considered as
the default priority for pods that do not have any priority class.
|
Meta.ObjectMeta |
getMetadata()
Standard object's metadata.
|
Meta.ObjectMeta.Builder |
getMetadataBuilder()
Standard object's metadata.
|
Meta.ObjectMetaOrBuilder |
getMetadataOrBuilder()
Standard object's metadata.
|
String |
getPreemptionPolicy()
PreemptionPolicy is the Policy for preempting pods with lower priority.
|
com.google.protobuf.ByteString |
getPreemptionPolicyBytes()
PreemptionPolicy is the Policy for preempting pods with lower priority.
|
int |
getValue()
The value of this priority class.
|
boolean |
hasDescription()
description is an arbitrary string that usually provides guidelines on
when this priority class should be used.
|
boolean |
hasGlobalDefault()
globalDefault specifies whether this PriorityClass should be considered as
the default priority for pods that do not have any priority class.
|
boolean |
hasMetadata()
Standard object's metadata.
|
boolean |
hasPreemptionPolicy()
PreemptionPolicy is the Policy for preempting pods with lower priority.
|
boolean |
hasValue()
The value of this priority class.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Scheduling.PriorityClass.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Scheduling.PriorityClass.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Scheduling.PriorityClass.Builder |
mergeFrom(V1Scheduling.PriorityClass other) |
V1Scheduling.PriorityClass.Builder |
mergeMetadata(Meta.ObjectMeta value)
Standard object's metadata.
|
V1Scheduling.PriorityClass.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Scheduling.PriorityClass.Builder |
setDescription(String value)
description is an arbitrary string that usually provides guidelines on
when this priority class should be used.
|
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.
|
V1Scheduling.PriorityClass.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
V1Scheduling.PriorityClass.Builder |
setMetadata(Meta.ObjectMeta.Builder builderForValue)
Standard object's metadata.
|
V1Scheduling.PriorityClass.Builder |
setMetadata(Meta.ObjectMeta value)
Standard object's metadata.
|
V1Scheduling.PriorityClass.Builder |
setPreemptionPolicy(String value)
PreemptionPolicy is the Policy for preempting pods with lower priority.
|
V1Scheduling.PriorityClass.Builder |
setPreemptionPolicyBytes(com.google.protobuf.ByteString value)
PreemptionPolicy is the Policy for preempting pods with lower priority.
|
V1Scheduling.PriorityClass.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Scheduling.PriorityClass.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Scheduling.PriorityClass.Builder |
setValue(int value)
The value of this priority class.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Scheduling.PriorityClass build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Scheduling.PriorityClass buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Scheduling.PriorityClass.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder mergeFrom(V1Scheduling.PriorityClass other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public V1Scheduling.PriorityClass.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Scheduling.PriorityClass.Builder>IOExceptionpublic 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;hasMetadata in interface V1Scheduling.PriorityClassOrBuilderpublic 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;getMetadata in interface V1Scheduling.PriorityClassOrBuilderpublic V1Scheduling.PriorityClass.Builder setMetadata(Meta.ObjectMeta value)
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;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;public V1Scheduling.PriorityClass.Builder mergeMetadata(Meta.ObjectMeta value)
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;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;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;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;getMetadataOrBuilder in interface V1Scheduling.PriorityClassOrBuilderpublic 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;hasValue in interface V1Scheduling.PriorityClassOrBuilderpublic 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;getValue in interface V1Scheduling.PriorityClassOrBuilderpublic 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;public V1Scheduling.PriorityClass.Builder 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;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;hasGlobalDefault in interface V1Scheduling.PriorityClassOrBuilderpublic 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;getGlobalDefault in interface V1Scheduling.PriorityClassOrBuilderpublic 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;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;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;hasDescription in interface V1Scheduling.PriorityClassOrBuilderpublic String getDescription()
description is an arbitrary string that usually provides guidelines on when this priority class should be used. +optional
optional string description = 4;getDescription in interface V1Scheduling.PriorityClassOrBuilderpublic 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;getDescriptionBytes in interface V1Scheduling.PriorityClassOrBuilderpublic 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;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;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;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;hasPreemptionPolicy in interface V1Scheduling.PriorityClassOrBuilderpublic 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;getPreemptionPolicy in interface V1Scheduling.PriorityClassOrBuilderpublic 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;getPreemptionPolicyBytes in interface V1Scheduling.PriorityClassOrBuilderpublic 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;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;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;public final V1Scheduling.PriorityClass.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>public final V1Scheduling.PriorityClass.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>Copyright © 2023. All rights reserved.