Class V1Batch.CronJobSpec

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

public static final class V1Batch.CronJobSpec extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

    • SCHEDULE_FIELD_NUMBER

      public static final int SCHEDULE_FIELD_NUMBER
      See Also:
    • STARTINGDEADLINESECONDS_FIELD_NUMBER

      public static final int STARTINGDEADLINESECONDS_FIELD_NUMBER
      See Also:
    • CONCURRENCYPOLICY_FIELD_NUMBER

      public static final int CONCURRENCYPOLICY_FIELD_NUMBER
      See Also:
    • SUSPEND_FIELD_NUMBER

      public static final int SUSPEND_FIELD_NUMBER
      See Also:
    • JOBTEMPLATE_FIELD_NUMBER

      public static final int JOBTEMPLATE_FIELD_NUMBER
      See Also:
    • SUCCESSFULJOBSHISTORYLIMIT_FIELD_NUMBER

      public static final int SUCCESSFULJOBSHISTORYLIMIT_FIELD_NUMBER
      See Also:
    • FAILEDJOBSHISTORYLIMIT_FIELD_NUMBER

      public static final int FAILEDJOBSHISTORYLIMIT_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<V1Batch.CronJobSpec> PARSER
      Deprecated.
  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Batch.CronJobSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1Batch.CronJobSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1Batch.CronJobSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static V1Batch.CronJobSpec.Builder newBuilder()
    • newBuilder

      public static V1Batch.CronJobSpec.Builder newBuilder(V1Batch.CronJobSpec prototype)
    • toBuilder

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

      protected V1Batch.CronJobSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1Batch.CronJobSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1Batch.CronJobSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1Batch.CronJobSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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