com.google.api.services.run.v1.model.JobStatus Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.run.v1.model;
/**
* JobStatus represents the current state of a Job.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class JobStatus extends com.google.api.client.json.GenericJson {
/**
* Conditions communicate information about ongoing/complete reconciliation processes that bring
* the "spec" inline with the observed state of the world. Job-specific conditions include: *
* `Ready`: `True` when the job is ready to be executed.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List conditions;
static {
// hack to force ProGuard to consider GoogleCloudRunV1Condition used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(GoogleCloudRunV1Condition.class);
}
/**
* Number of executions created for this job.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer executionCount;
/**
* A pointer to the most recently created execution for this job. This is set regardless of the
* eventual state of the execution.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ExecutionReference latestCreatedExecution;
/**
* The 'generation' of the job that was last processed by the controller.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer observedGeneration;
/**
* Conditions communicate information about ongoing/complete reconciliation processes that bring
* the "spec" inline with the observed state of the world. Job-specific conditions include: *
* `Ready`: `True` when the job is ready to be executed.
* @return value or {@code null} for none
*/
public java.util.List getConditions() {
return conditions;
}
/**
* Conditions communicate information about ongoing/complete reconciliation processes that bring
* the "spec" inline with the observed state of the world. Job-specific conditions include: *
* `Ready`: `True` when the job is ready to be executed.
* @param conditions conditions or {@code null} for none
*/
public JobStatus setConditions(java.util.List conditions) {
this.conditions = conditions;
return this;
}
/**
* Number of executions created for this job.
* @return value or {@code null} for none
*/
public java.lang.Integer getExecutionCount() {
return executionCount;
}
/**
* Number of executions created for this job.
* @param executionCount executionCount or {@code null} for none
*/
public JobStatus setExecutionCount(java.lang.Integer executionCount) {
this.executionCount = executionCount;
return this;
}
/**
* A pointer to the most recently created execution for this job. This is set regardless of the
* eventual state of the execution.
* @return value or {@code null} for none
*/
public ExecutionReference getLatestCreatedExecution() {
return latestCreatedExecution;
}
/**
* A pointer to the most recently created execution for this job. This is set regardless of the
* eventual state of the execution.
* @param latestCreatedExecution latestCreatedExecution or {@code null} for none
*/
public JobStatus setLatestCreatedExecution(ExecutionReference latestCreatedExecution) {
this.latestCreatedExecution = latestCreatedExecution;
return this;
}
/**
* The 'generation' of the job that was last processed by the controller.
* @return value or {@code null} for none
*/
public java.lang.Integer getObservedGeneration() {
return observedGeneration;
}
/**
* The 'generation' of the job that was last processed by the controller.
* @param observedGeneration observedGeneration or {@code null} for none
*/
public JobStatus setObservedGeneration(java.lang.Integer observedGeneration) {
this.observedGeneration = observedGeneration;
return this;
}
@Override
public JobStatus set(String fieldName, Object value) {
return (JobStatus) super.set(fieldName, value);
}
@Override
public JobStatus clone() {
return (JobStatus) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy