Package io.kubernetes.client.proto
Class V1alpha1Scheduling.PriorityClass.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
io.kubernetes.client.proto.V1alpha1Scheduling.PriorityClass.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1alpha1Scheduling.PriorityClassOrBuilder
,Cloneable
- Enclosing class:
- V1alpha1Scheduling.PriorityClass
public static final class V1alpha1Scheduling.PriorityClass.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
implements V1alpha1Scheduling.PriorityClassOrBuilder
DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. 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.v1alpha1.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.ByteString
description is an arbitrary string that usually provides guidelines on when this priority class should be used.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
boolean
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.Standard object's metadata.Standard object's metadata.PreemptionPolicy is the Policy for preempting pods with lower priority.com.google.protobuf.ByteString
PreemptionPolicy is the Policy for preempting pods with lower priority.int
getValue()
The value of this priority class.boolean
description is an arbitrary string that usually provides guidelines on when this priority class should be used.boolean
globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class.boolean
Standard object's metadata.boolean
PreemptionPolicy is the Policy for preempting pods with lower priority.boolean
hasValue()
The value of this priority class.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) 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, 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 classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
setField
public V1alpha1Scheduling.PriorityClass.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
clearField
public V1alpha1Scheduling.PriorityClass.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
clearOneof
public V1alpha1Scheduling.PriorityClass.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
setRepeatedField
public V1alpha1Scheduling.PriorityClass.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
addRepeatedField
public V1alpha1Scheduling.PriorityClass.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
mergeFrom
public V1alpha1Scheduling.PriorityClass.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1alpha1Scheduling.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 interfaceV1alpha1Scheduling.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:
getMetadata
in interfaceV1alpha1Scheduling.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 V1alpha1Scheduling.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
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:
getMetadataOrBuilder
in interfaceV1alpha1Scheduling.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 interfaceV1alpha1Scheduling.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 interfaceV1alpha1Scheduling.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:
hasGlobalDefault
in interfaceV1alpha1Scheduling.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 interfaceV1alpha1Scheduling.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:
hasDescription
in interfaceV1alpha1Scheduling.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:
getDescription
in interfaceV1alpha1Scheduling.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 interfaceV1alpha1Scheduling.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
public V1alpha1Scheduling.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 interfaceV1alpha1Scheduling.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:
getPreemptionPolicy
in interfaceV1alpha1Scheduling.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 interfaceV1alpha1Scheduling.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 V1alpha1Scheduling.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 V1alpha1Scheduling.PriorityClass.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-
mergeUnknownFields
public final V1alpha1Scheduling.PriorityClass.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1alpha1Scheduling.PriorityClass.Builder>
-