Package io.kubernetes.client.proto
Class V2alpha1Batch.CronJobSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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.ByteStringSpecifies how to treat concurrent executions of a Job.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe 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.ByteStringThe schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.longOptional deadline in seconds for starting the job if it misses scheduled time for any reason.intThe number of successful finished jobs to retain.booleanThis flag tells the controller to suspend subsequent executions, it does not apply to already started executions.booleanSpecifies how to treat concurrent executions of a Job.booleanThe number of failed finished jobs to retain.booleanSpecifies the job that will be created when executing a CronJob.booleanThe schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.booleanOptional deadline in seconds for starting the job if it misses scheduled time for any reason.booleanThe number of successful finished jobs to retain.booleanThis flag tells the controller to suspend subsequent executions, it does not apply to already started executions.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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, 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<V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
setField
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
clearField
public V2alpha1Batch.CronJobSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
-
clearOneof
public V2alpha1Batch.CronJobSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
-
addRepeatedField
public V2alpha1Batch.CronJobSpec.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<V2alpha1Batch.CronJobSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V2alpha1Batch.CronJobSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasSchedulein interfaceV2alpha1Batch.CronJobSpecOrBuilder
-
getSchedule
The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
optional string schedule = 1;- Specified by:
getSchedulein 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:
getScheduleBytesin 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:
hasStartingDeadlineSecondsin 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:
getStartingDeadlineSecondsin 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:
hasConcurrencyPolicyin 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:
getConcurrencyPolicyin 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:
getConcurrencyPolicyBytesin 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:
hasSuspendin 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:
getSuspendin 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:
hasJobTemplatein 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:
getJobTemplatein 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:
getJobTemplateOrBuilderin 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:
hasSuccessfulJobsHistoryLimitin 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:
getSuccessfulJobsHistoryLimitin 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:
hasFailedJobsHistoryLimitin 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:
getFailedJobsHistoryLimitin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
-
mergeUnknownFields
public final V2alpha1Batch.CronJobSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2alpha1Batch.CronJobSpec.Builder>
-