Class V1Batch.CronJobSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
io.kubernetes.client.proto.V1Batch.CronJobSpec.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Batch.CronJobSpecOrBuilder, Cloneable
Enclosing class:
V1Batch.CronJobSpec

public static final class V1Batch.CronJobSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder> implements V1Batch.CronJobSpecOrBuilder
 CronJobSpec describes how the job execution will look like and when it will actually run.
 
Protobuf type k8s.io.api.batch.v1.CronJobSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • getDefaultInstanceForType

      public V1Batch.CronJobSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public V1Batch.CronJobSpec build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1Batch.CronJobSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • setField

      public V1Batch.CronJobSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • clearField

      public V1Batch.CronJobSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • clearOneof

      public V1Batch.CronJobSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • setRepeatedField

      public V1Batch.CronJobSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • addRepeatedField

      public V1Batch.CronJobSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • mergeFrom

      public V1Batch.CronJobSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Batch.CronJobSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • mergeFrom

      public V1Batch.CronJobSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Batch.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 interface V1Batch.CronJobSpecOrBuilder
    • getSchedule

      public String getSchedule()
       The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
       
      optional string schedule = 1;
      Specified by:
      getSchedule in interface V1Batch.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 interface V1Batch.CronJobSpecOrBuilder
    • setSchedule

      public V1Batch.CronJobSpec.Builder setSchedule(String value)
       The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
       
      optional string schedule = 1;
    • clearSchedule

      public V1Batch.CronJobSpec.Builder clearSchedule()
       The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
       
      optional string schedule = 1;
    • setScheduleBytes

      public V1Batch.CronJobSpec.Builder setScheduleBytes(com.google.protobuf.ByteString value)
       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 interface V1Batch.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 interface V1Batch.CronJobSpecOrBuilder
    • setStartingDeadlineSeconds

      public V1Batch.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;
    • clearStartingDeadlineSeconds

      public V1Batch.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;
    • 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 interface V1Batch.CronJobSpecOrBuilder
    • getConcurrencyPolicy

      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;
      Specified by:
      getConcurrencyPolicy in interface V1Batch.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 interface V1Batch.CronJobSpecOrBuilder
    • setConcurrencyPolicy

      public V1Batch.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;
    • clearConcurrencyPolicy

      public V1Batch.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;
    • setConcurrencyPolicyBytes

      public V1Batch.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 interface V1Batch.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 interface V1Batch.CronJobSpecOrBuilder
    • setSuspend

      public V1Batch.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;
    • clearSuspend

      public V1Batch.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;
    • hasJobTemplate

      public boolean hasJobTemplate()
       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
      Specified by:
      hasJobTemplate in interface V1Batch.CronJobSpecOrBuilder
    • getJobTemplate

      public V1Batch.JobTemplateSpec getJobTemplate()
       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
      Specified by:
      getJobTemplate in interface V1Batch.CronJobSpecOrBuilder
    • setJobTemplate

       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
    • setJobTemplate

      public V1Batch.CronJobSpec.Builder setJobTemplate(V1Batch.JobTemplateSpec.Builder builderForValue)
       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
    • mergeJobTemplate

      public V1Batch.CronJobSpec.Builder mergeJobTemplate(V1Batch.JobTemplateSpec value)
       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
    • clearJobTemplate

      public V1Batch.CronJobSpec.Builder clearJobTemplate()
       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
    • getJobTemplateBuilder

      public V1Batch.JobTemplateSpec.Builder getJobTemplateBuilder()
       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
    • getJobTemplateOrBuilder

      public V1Batch.JobTemplateSpecOrBuilder getJobTemplateOrBuilder()
       Specifies the job that will be created when executing a CronJob.
       
      optional .k8s.io.api.batch.v1.JobTemplateSpec jobTemplate = 5;
      Specified by:
      getJobTemplateOrBuilder in interface V1Batch.CronJobSpecOrBuilder
    • hasSuccessfulJobsHistoryLimit

      public boolean hasSuccessfulJobsHistoryLimit()
       The number of successful finished jobs to retain. Value must be non-negative integer.
       Defaults to 3.
       +optional
       
      optional int32 successfulJobsHistoryLimit = 6;
      Specified by:
      hasSuccessfulJobsHistoryLimit in interface V1Batch.CronJobSpecOrBuilder
    • getSuccessfulJobsHistoryLimit

      public int getSuccessfulJobsHistoryLimit()
       The number of successful finished jobs to retain. Value must be non-negative integer.
       Defaults to 3.
       +optional
       
      optional int32 successfulJobsHistoryLimit = 6;
      Specified by:
      getSuccessfulJobsHistoryLimit in interface V1Batch.CronJobSpecOrBuilder
    • setSuccessfulJobsHistoryLimit

      public V1Batch.CronJobSpec.Builder setSuccessfulJobsHistoryLimit(int value)
       The number of successful finished jobs to retain. Value must be non-negative integer.
       Defaults to 3.
       +optional
       
      optional int32 successfulJobsHistoryLimit = 6;
    • clearSuccessfulJobsHistoryLimit

      public V1Batch.CronJobSpec.Builder clearSuccessfulJobsHistoryLimit()
       The number of successful finished jobs to retain. Value must be non-negative integer.
       Defaults to 3.
       +optional
       
      optional int32 successfulJobsHistoryLimit = 6;
    • hasFailedJobsHistoryLimit

      public boolean hasFailedJobsHistoryLimit()
       The number of failed finished jobs to retain. Value must be non-negative integer.
       Defaults to 1.
       +optional
       
      optional int32 failedJobsHistoryLimit = 7;
      Specified by:
      hasFailedJobsHistoryLimit in interface V1Batch.CronJobSpecOrBuilder
    • getFailedJobsHistoryLimit

      public int getFailedJobsHistoryLimit()
       The number of failed finished jobs to retain. Value must be non-negative integer.
       Defaults to 1.
       +optional
       
      optional int32 failedJobsHistoryLimit = 7;
      Specified by:
      getFailedJobsHistoryLimit in interface V1Batch.CronJobSpecOrBuilder
    • setFailedJobsHistoryLimit

      public V1Batch.CronJobSpec.Builder setFailedJobsHistoryLimit(int value)
       The number of failed finished jobs to retain. Value must be non-negative integer.
       Defaults to 1.
       +optional
       
      optional int32 failedJobsHistoryLimit = 7;
    • clearFailedJobsHistoryLimit

      public V1Batch.CronJobSpec.Builder clearFailedJobsHistoryLimit()
       The number of failed finished jobs to retain. Value must be non-negative integer.
       Defaults to 1.
       +optional
       
      optional int32 failedJobsHistoryLimit = 7;
    • setUnknownFields

      public final V1Batch.CronJobSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>
    • mergeUnknownFields

      public final V1Batch.CronJobSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Batch.CronJobSpec.Builder>