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
Modifier and Type | Method and Description |
---|---|
V2alpha1Batch.CronJobSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2alpha1Batch.CronJobSpec |
build() |
V2alpha1Batch.CronJobSpec |
buildPartial() |
V2alpha1Batch.CronJobSpec.Builder |
clear() |
V2alpha1Batch.CronJobSpec.Builder |
clearConcurrencyPolicy()
Specifies how to treat concurrent executions of a Job.
|
V2alpha1Batch.CronJobSpec.Builder |
clearFailedJobsHistoryLimit()
The number of failed finished jobs to retain.
|
V2alpha1Batch.CronJobSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V2alpha1Batch.CronJobSpec.Builder |
clearJobTemplate()
Specifies the job that will be created when executing a CronJob.
|
V2alpha1Batch.CronJobSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V2alpha1Batch.CronJobSpec.Builder |
clearSchedule()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
V2alpha1Batch.CronJobSpec.Builder |
clearStartingDeadlineSeconds()
Optional deadline in seconds for starting the job if it misses scheduled
time for any reason.
|
V2alpha1Batch.CronJobSpec.Builder |
clearSuccessfulJobsHistoryLimit()
The number of successful finished jobs to retain.
|
V2alpha1Batch.CronJobSpec.Builder |
clearSuspend()
This flag tells the controller to suspend subsequent executions, it does
not apply to already started executions.
|
V2alpha1Batch.CronJobSpec.Builder |
clone() |
String |
getConcurrencyPolicy()
Specifies how to treat concurrent executions of a Job.
|
com.google.protobuf.ByteString |
getConcurrencyPolicyBytes()
Specifies how to treat concurrent executions of a Job.
|
V2alpha1Batch.CronJobSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getFailedJobsHistoryLimit()
The number of failed finished jobs to retain.
|
V2alpha1Batch.JobTemplateSpec |
getJobTemplate()
Specifies the job that will be created when executing a CronJob.
|
V2alpha1Batch.JobTemplateSpec.Builder |
getJobTemplateBuilder()
Specifies the job that will be created when executing a CronJob.
|
V2alpha1Batch.JobTemplateSpecOrBuilder |
getJobTemplateOrBuilder()
Specifies the job that will be created when executing a CronJob.
|
String |
getSchedule()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
com.google.protobuf.ByteString |
getScheduleBytes()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
long |
getStartingDeadlineSeconds()
Optional deadline in seconds for starting the job if it misses scheduled
time for any reason.
|
int |
getSuccessfulJobsHistoryLimit()
The number of successful finished jobs to retain.
|
boolean |
getSuspend()
This flag tells the controller to suspend subsequent executions, it does
not apply to already started executions.
|
boolean |
hasConcurrencyPolicy()
Specifies how to treat concurrent executions of a Job.
|
boolean |
hasFailedJobsHistoryLimit()
The number of failed finished jobs to retain.
|
boolean |
hasJobTemplate()
Specifies the job that will be created when executing a CronJob.
|
boolean |
hasSchedule()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
boolean |
hasStartingDeadlineSeconds()
Optional deadline in seconds for starting the job if it misses scheduled
time for any reason.
|
boolean |
hasSuccessfulJobsHistoryLimit()
The number of successful finished jobs to retain.
|
boolean |
hasSuspend()
This flag tells the controller to suspend subsequent executions, it does
not apply to already started executions.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V2alpha1Batch.CronJobSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V2alpha1Batch.CronJobSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
V2alpha1Batch.CronJobSpec.Builder |
mergeFrom(V2alpha1Batch.CronJobSpec other) |
V2alpha1Batch.CronJobSpec.Builder |
mergeJobTemplate(V2alpha1Batch.JobTemplateSpec value)
Specifies the job that will be created when executing a CronJob.
|
V2alpha1Batch.CronJobSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V2alpha1Batch.CronJobSpec.Builder |
setConcurrencyPolicy(String value)
Specifies how to treat concurrent executions of a Job.
|
V2alpha1Batch.CronJobSpec.Builder |
setConcurrencyPolicyBytes(com.google.protobuf.ByteString value)
Specifies how to treat concurrent executions of a Job.
|
V2alpha1Batch.CronJobSpec.Builder |
setFailedJobsHistoryLimit(int value)
The number of failed finished jobs to retain.
|
V2alpha1Batch.CronJobSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2alpha1Batch.CronJobSpec.Builder |
setJobTemplate(V2alpha1Batch.JobTemplateSpec.Builder builderForValue)
Specifies the job that will be created when executing a CronJob.
|
V2alpha1Batch.CronJobSpec.Builder |
setJobTemplate(V2alpha1Batch.JobTemplateSpec value)
Specifies the job that will be created when executing a CronJob.
|
V2alpha1Batch.CronJobSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V2alpha1Batch.CronJobSpec.Builder |
setSchedule(String value)
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
V2alpha1Batch.CronJobSpec.Builder |
setScheduleBytes(com.google.protobuf.ByteString value)
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
V2alpha1Batch.CronJobSpec.Builder |
setStartingDeadlineSeconds(long value)
Optional deadline in seconds for starting the job if it misses scheduled
time for any reason.
|
V2alpha1Batch.CronJobSpec.Builder |
setSuccessfulJobsHistoryLimit(int value)
The number of successful finished jobs to retain.
|
V2alpha1Batch.CronJobSpec.Builder |
setSuspend(boolean value)
This flag tells the controller to suspend subsequent executions, it does
not apply to already started executions.
|
V2alpha1Batch.CronJobSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public V2alpha1Batch.CronJobSpec build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public V2alpha1Batch.CronJobSpec buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public V2alpha1Batch.CronJobSpec.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder mergeFrom(V2alpha1Batch.CronJobSpec other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public V2alpha1Batch.CronJobSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V2alpha1Batch.CronJobSpec.Builder>
IOException
public boolean hasSchedule()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
hasSchedule
in interface V2alpha1Batch.CronJobSpecOrBuilder
public String getSchedule()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
getSchedule
in interface V2alpha1Batch.CronJobSpecOrBuilder
public com.google.protobuf.ByteString getScheduleBytes()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
getScheduleBytes
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.CronJobSpec.Builder setSchedule(String value)
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
public V2alpha1Batch.CronJobSpec.Builder clearSchedule()
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
public V2alpha1Batch.CronJobSpec.Builder setScheduleBytes(com.google.protobuf.ByteString value)
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;
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;
hasStartingDeadlineSeconds
in interface V2alpha1Batch.CronJobSpecOrBuilder
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;
getStartingDeadlineSeconds
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.CronJobSpec.Builder setStartingDeadlineSeconds(long value)
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;
public V2alpha1Batch.CronJobSpec.Builder 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;
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;
hasConcurrencyPolicy
in interface V2alpha1Batch.CronJobSpecOrBuilder
public String 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;
getConcurrencyPolicy
in interface V2alpha1Batch.CronJobSpecOrBuilder
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;
getConcurrencyPolicyBytes
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.CronJobSpec.Builder setConcurrencyPolicy(String 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;
public V2alpha1Batch.CronJobSpec.Builder 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;
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;
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;
hasSuspend
in interface V2alpha1Batch.CronJobSpecOrBuilder
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;
getSuspend
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.CronJobSpec.Builder setSuspend(boolean value)
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;
public V2alpha1Batch.CronJobSpec.Builder 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;
public boolean hasJobTemplate()
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
hasJobTemplate
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.JobTemplateSpec getJobTemplate()
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
getJobTemplate
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.CronJobSpec.Builder setJobTemplate(V2alpha1Batch.JobTemplateSpec value)
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
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;
public V2alpha1Batch.CronJobSpec.Builder mergeJobTemplate(V2alpha1Batch.JobTemplateSpec value)
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
public V2alpha1Batch.CronJobSpec.Builder clearJobTemplate()
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
public V2alpha1Batch.JobTemplateSpec.Builder getJobTemplateBuilder()
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
public V2alpha1Batch.JobTemplateSpecOrBuilder getJobTemplateOrBuilder()
Specifies the job that will be created when executing a CronJob.
optional .k8s.io.api.batch.v2alpha1.JobTemplateSpec jobTemplate = 5;
getJobTemplateOrBuilder
in interface V2alpha1Batch.CronJobSpecOrBuilder
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;
hasSuccessfulJobsHistoryLimit
in interface V2alpha1Batch.CronJobSpecOrBuilder
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;
getSuccessfulJobsHistoryLimit
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.CronJobSpec.Builder setSuccessfulJobsHistoryLimit(int value)
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;
public V2alpha1Batch.CronJobSpec.Builder 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;
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;
hasFailedJobsHistoryLimit
in interface V2alpha1Batch.CronJobSpecOrBuilder
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;
getFailedJobsHistoryLimit
in interface V2alpha1Batch.CronJobSpecOrBuilder
public V2alpha1Batch.CronJobSpec.Builder setFailedJobsHistoryLimit(int value)
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;
public V2alpha1Batch.CronJobSpec.Builder 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;
public final V2alpha1Batch.CronJobSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
public final V2alpha1Batch.CronJobSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
Copyright © 2022. All rights reserved.