Package io.kubernetes.client.proto
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()description is an arbitrary string that usually provides guidelines on when this priority class should be used.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.Standard object's metadata.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) PreemptionPolicy is the Policy for preempting pods with lower priority.The value of this priority class.clone()description is an arbitrary string that usually provides guidelines on when this priority class should be used.com.google.protobuf.ByteStringdescription is an arbitrary string that usually provides guidelines on when this priority class should be used.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanglobalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.Standard object's metadata.Standard object's metadata.Standard object's metadata.PreemptionPolicy is the Policy for preempting pods with lower priority.com.google.protobuf.ByteStringPreemptionPolicy is the Policy for preempting pods with lower priority.intgetValue()The value of this priority class.booleandescription is an arbitrary string that usually provides guidelines on when this priority class should be used.booleanglobalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.booleanStandard object's metadata.booleanPreemptionPolicy is the Policy for preempting pods with lower priority.booleanhasValue()The value of this priority class.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMetadata(Meta.ObjectMeta value) Standard object's metadata.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDescription(String value) description is an arbitrary string that usually provides guidelines on when this priority class should be used.setDescriptionBytes(com.google.protobuf.ByteString value) description is an arbitrary string that usually provides guidelines on when this priority class should be used.setGlobalDefault(boolean value) globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.setMetadata(Meta.ObjectMeta value) Standard object's metadata.setMetadata(Meta.ObjectMeta.Builder builderForValue) Standard object's metadata.setPreemptionPolicy(String value) PreemptionPolicy is the Policy for preempting pods with lower priority.setPreemptionPolicyBytes(com.google.protobuf.ByteString value) PreemptionPolicy is the Policy for preempting pods with lower priority.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValue(int value) The value of this priority class.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
setField
public V1Scheduling.PriorityClass.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
clearField
public V1Scheduling.PriorityClass.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
clearOneof
public V1Scheduling.PriorityClass.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
addRepeatedField
public V1Scheduling.PriorityClass.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Scheduling.PriorityClass.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasMetadatain interfaceV1Scheduling.PriorityClassOrBuilder
-
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:
getMetadatain interfaceV1Scheduling.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
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
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
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
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:
getMetadataOrBuilderin interfaceV1Scheduling.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:
hasValuein interfaceV1Scheduling.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:
getValuein interfaceV1Scheduling.PriorityClassOrBuilder
-
setValue
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:
hasGlobalDefaultin interfaceV1Scheduling.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:
getGlobalDefaultin interfaceV1Scheduling.PriorityClassOrBuilder
-
setGlobalDefault
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
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:
hasDescriptionin interfaceV1Scheduling.PriorityClassOrBuilder
-
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:
getDescriptionin interfaceV1Scheduling.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:
getDescriptionBytesin interfaceV1Scheduling.PriorityClassOrBuilder
-
setDescription
description is an arbitrary string that usually provides guidelines on when this priority class should be used. +optional
optional string description = 4; -
clearDescription
description is an arbitrary string that usually provides guidelines on when this priority class should be used. +optional
optional string description = 4; -
setDescriptionBytes
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:
hasPreemptionPolicyin interfaceV1Scheduling.PriorityClassOrBuilder
-
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:
getPreemptionPolicyin interfaceV1Scheduling.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:
getPreemptionPolicyBytesin interfaceV1Scheduling.PriorityClassOrBuilder
-
setPreemptionPolicy
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-
mergeUnknownFields
public final V1Scheduling.PriorityClass.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Scheduling.PriorityClass.Builder>
-