All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.batch.v1.model.AgentTaskInfo Maven / Gradle / Ivy

There is a newer version: v1-rev20250122-2.0.0
Show newest version
/*
 * 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.batch.v1.model;

/**
 * Task Info
 *
 * 

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 Batch 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 AgentTaskInfo extends com.google.api.client.json.GenericJson { /** * The highest index of a runnable started by the agent for this task. The runnables are indexed * from 1. Value 0 is undefined. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long runnable; /** * ID of the Task * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String taskId; /** * The status of the Task. If we need agent specific fields we should fork the public TaskStatus * into an agent specific one. Or add them below. * The value may be {@code null}. */ @com.google.api.client.util.Key private TaskStatus taskStatus; /** * The highest index of a runnable started by the agent for this task. The runnables are indexed * from 1. Value 0 is undefined. * @return value or {@code null} for none */ public java.lang.Long getRunnable() { return runnable; } /** * The highest index of a runnable started by the agent for this task. The runnables are indexed * from 1. Value 0 is undefined. * @param runnable runnable or {@code null} for none */ public AgentTaskInfo setRunnable(java.lang.Long runnable) { this.runnable = runnable; return this; } /** * ID of the Task * @return value or {@code null} for none */ public java.lang.String getTaskId() { return taskId; } /** * ID of the Task * @param taskId taskId or {@code null} for none */ public AgentTaskInfo setTaskId(java.lang.String taskId) { this.taskId = taskId; return this; } /** * The status of the Task. If we need agent specific fields we should fork the public TaskStatus * into an agent specific one. Or add them below. * @return value or {@code null} for none */ public TaskStatus getTaskStatus() { return taskStatus; } /** * The status of the Task. If we need agent specific fields we should fork the public TaskStatus * into an agent specific one. Or add them below. * @param taskStatus taskStatus or {@code null} for none */ public AgentTaskInfo setTaskStatus(TaskStatus taskStatus) { this.taskStatus = taskStatus; return this; } @Override public AgentTaskInfo set(String fieldName, Object value) { return (AgentTaskInfo) super.set(fieldName, value); } @Override public AgentTaskInfo clone() { return (AgentTaskInfo) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy