Package io.kubernetes.client.proto
Class V2alpha1Batch.CronJobSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
io.kubernetes.client.proto.V2alpha1Batch.CronJobSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V2alpha1Batch.CronJobSpecOrBuilder
,Cloneable
- Enclosing class:
- V2alpha1Batch.CronJobSpec
public static final class V2alpha1Batch.CronJobSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
implements V2alpha1Batch.CronJobSpecOrBuilder
CronJobSpec describes how the job execution will look like and when it will actually run.Protobuf type
k8s.io.api.batch.v2alpha1.CronJobSpec
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Specifies how to treat concurrent executions of a Job.The number of failed finished jobs to retain.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Specifies the job that will be created when executing a CronJob.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.Optional deadline in seconds for starting the job if it misses scheduled time for any reason.The number of successful finished jobs to retain.This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.clone()
Specifies how to treat concurrent executions of a Job.com.google.protobuf.ByteString
Specifies how to treat concurrent executions of a Job.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
The number of failed finished jobs to retain.Specifies the job that will be created when executing a CronJob.Specifies the job that will be created when executing a CronJob.Specifies the job that will be created when executing a CronJob.The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.com.google.protobuf.ByteString
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.long
Optional deadline in seconds for starting the job if it misses scheduled time for any reason.int
The number of successful finished jobs to retain.boolean
This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.boolean
Specifies how to treat concurrent executions of a Job.boolean
The number of failed finished jobs to retain.boolean
Specifies the job that will be created when executing a CronJob.boolean
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.boolean
Optional deadline in seconds for starting the job if it misses scheduled time for any reason.boolean
The number of successful finished jobs to retain.boolean
This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.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) Specifies the job that will be created when executing a CronJob.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setConcurrencyPolicy
(String value) Specifies how to treat concurrent executions of a Job.setConcurrencyPolicyBytes
(com.google.protobuf.ByteString value) Specifies how to treat concurrent executions of a Job.setFailedJobsHistoryLimit
(int value) The number of failed finished jobs to retain.Specifies the job that will be created when executing a CronJob.setJobTemplate
(V2alpha1Batch.JobTemplateSpec.Builder builderForValue) Specifies the job that will be created when executing a CronJob.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSchedule
(String value) The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.setScheduleBytes
(com.google.protobuf.ByteString value) The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.setStartingDeadlineSeconds
(long value) Optional deadline in seconds for starting the job if it misses scheduled time for any reason.setSuccessfulJobsHistoryLimit
(int value) The number of successful finished jobs to retain.setSuspend
(boolean value) This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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<V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
setField
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
clearField
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
clearOneof
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
setRepeatedField
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
addRepeatedField
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V2alpha1Batch.CronJobSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
-
mergeFrom
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
- Throws:
IOException
-
hasSchedule
public boolean hasSchedule()The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
- Specified by:
hasSchedule
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getSchedule
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
- Specified by:
getSchedule
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getScheduleBytes
public com.google.protobuf.ByteString getScheduleBytes()The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
- Specified by:
getScheduleBytes
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
setSchedule
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
-
clearSchedule
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
-
setScheduleBytes
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
-
hasStartingDeadlineSeconds
public boolean hasStartingDeadlineSeconds()Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. +optional
optional int64 startingDeadlineSeconds = 2;
- Specified by:
hasStartingDeadlineSeconds
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getStartingDeadlineSeconds
public long getStartingDeadlineSeconds()Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. +optional
optional int64 startingDeadlineSeconds = 2;
- Specified by:
getStartingDeadlineSeconds
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
setStartingDeadlineSeconds
Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. +optional
optional int64 startingDeadlineSeconds = 2;
-
clearStartingDeadlineSeconds
Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. +optional
optional int64 startingDeadlineSeconds = 2;
-
hasConcurrencyPolicy
public boolean hasConcurrencyPolicy()Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one +optional
optional string concurrencyPolicy = 3;
- Specified by:
hasConcurrencyPolicy
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getConcurrencyPolicy
Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one +optional
optional string concurrencyPolicy = 3;
- Specified by:
getConcurrencyPolicy
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getConcurrencyPolicyBytes
public com.google.protobuf.ByteString getConcurrencyPolicyBytes()Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one +optional
optional string concurrencyPolicy = 3;
- Specified by:
getConcurrencyPolicyBytes
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
setConcurrencyPolicy
Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one +optional
optional string concurrencyPolicy = 3;
-
clearConcurrencyPolicy
Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one +optional
optional string concurrencyPolicy = 3;
-
setConcurrencyPolicyBytes
public V2alpha1Batch.CronJobSpec.Builder setConcurrencyPolicyBytes(com.google.protobuf.ByteString value) Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one +optional
optional string concurrencyPolicy = 3;
-
hasSuspend
public boolean hasSuspend()This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. +optional
optional bool suspend = 4;
- Specified by:
hasSuspend
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getSuspend
public boolean getSuspend()This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. +optional
optional bool suspend = 4;
- Specified by:
getSuspend
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
setSuspend
This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. +optional
optional bool suspend = 4;
-
clearSuspend
This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. +optional
optional bool suspend = 4;
-
hasJobTemplate
public boolean hasJobTemplate()Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
- Specified by:
hasJobTemplate
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getJobTemplate
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
- Specified by:
getJobTemplate
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
setJobTemplate
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
-
setJobTemplate
public V2alpha1Batch.CronJobSpec.Builder setJobTemplate(V2alpha1Batch.JobTemplateSpec.Builder builderForValue) Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
-
mergeJobTemplate
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
-
clearJobTemplate
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
-
getJobTemplateBuilder
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
-
getJobTemplateOrBuilder
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
- Specified by:
getJobTemplateOrBuilder
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
hasSuccessfulJobsHistoryLimit
public boolean hasSuccessfulJobsHistoryLimit()The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 successfulJobsHistoryLimit = 6;
- Specified by:
hasSuccessfulJobsHistoryLimit
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getSuccessfulJobsHistoryLimit
public int getSuccessfulJobsHistoryLimit()The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 successfulJobsHistoryLimit = 6;
- Specified by:
getSuccessfulJobsHistoryLimit
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
setSuccessfulJobsHistoryLimit
The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 successfulJobsHistoryLimit = 6;
-
clearSuccessfulJobsHistoryLimit
The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 successfulJobsHistoryLimit = 6;
-
hasFailedJobsHistoryLimit
public boolean hasFailedJobsHistoryLimit()The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 failedJobsHistoryLimit = 7;
- Specified by:
hasFailedJobsHistoryLimit
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getFailedJobsHistoryLimit
public int getFailedJobsHistoryLimit()The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 failedJobsHistoryLimit = 7;
- Specified by:
getFailedJobsHistoryLimit
in interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
setFailedJobsHistoryLimit
The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 failedJobsHistoryLimit = 7;
-
clearFailedJobsHistoryLimit
The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. +optional
optional int32 failedJobsHistoryLimit = 7;
-
setUnknownFields
public final V2alpha1Batch.CronJobSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
-
mergeUnknownFields
public final V2alpha1Batch.CronJobSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
-