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

com.google.api.services.run.v1.model.StatusDetails Maven / Gradle / Ivy

There is a newer version: v2-rev20241213-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.run.v1.model;

/**
 * StatusDetails is a set of additional properties that MAY be set by the server to provide
 * additional information about a response. The Reason field of a Status object defines what
 * attributes will be set. Clients must ignore fields that do not match the defined type of each
 * attribute, and should assume that any attribute may be empty, invalid, or under defined.
 *
 * 

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 StatusDetails extends com.google.api.client.json.GenericJson { /** * The Causes array includes more details associated with the StatusReason failure. Not all * StatusReasons may provide detailed causes. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List causes; static { // hack to force ProGuard to consider StatusCause 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(StatusCause.class); } /** * The group attribute of the resource associated with the status StatusReason. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String group; /** * The kind attribute of the resource associated with the status StatusReason. On some operations * may differ from the requested resource Kind. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * The name attribute of the resource associated with the status StatusReason (when there is a * single name which can be described). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * If specified, the time in seconds before the operation should be retried. Some errors may * indicate the client must take an alternate action - for those errors this field may indicate * how long to wait before taking the alternate action. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer retryAfterSeconds; /** * UID of the resource. (when there is a single resource which can be described). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String uid; /** * The Causes array includes more details associated with the StatusReason failure. Not all * StatusReasons may provide detailed causes. * @return value or {@code null} for none */ public java.util.List getCauses() { return causes; } /** * The Causes array includes more details associated with the StatusReason failure. Not all * StatusReasons may provide detailed causes. * @param causes causes or {@code null} for none */ public StatusDetails setCauses(java.util.List causes) { this.causes = causes; return this; } /** * The group attribute of the resource associated with the status StatusReason. * @return value or {@code null} for none */ public java.lang.String getGroup() { return group; } /** * The group attribute of the resource associated with the status StatusReason. * @param group group or {@code null} for none */ public StatusDetails setGroup(java.lang.String group) { this.group = group; return this; } /** * The kind attribute of the resource associated with the status StatusReason. On some operations * may differ from the requested resource Kind. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * The kind attribute of the resource associated with the status StatusReason. On some operations * may differ from the requested resource Kind. * @param kind kind or {@code null} for none */ public StatusDetails setKind(java.lang.String kind) { this.kind = kind; return this; } /** * The name attribute of the resource associated with the status StatusReason (when there is a * single name which can be described). * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The name attribute of the resource associated with the status StatusReason (when there is a * single name which can be described). * @param name name or {@code null} for none */ public StatusDetails setName(java.lang.String name) { this.name = name; return this; } /** * If specified, the time in seconds before the operation should be retried. Some errors may * indicate the client must take an alternate action - for those errors this field may indicate * how long to wait before taking the alternate action. * @return value or {@code null} for none */ public java.lang.Integer getRetryAfterSeconds() { return retryAfterSeconds; } /** * If specified, the time in seconds before the operation should be retried. Some errors may * indicate the client must take an alternate action - for those errors this field may indicate * how long to wait before taking the alternate action. * @param retryAfterSeconds retryAfterSeconds or {@code null} for none */ public StatusDetails setRetryAfterSeconds(java.lang.Integer retryAfterSeconds) { this.retryAfterSeconds = retryAfterSeconds; return this; } /** * UID of the resource. (when there is a single resource which can be described). * @return value or {@code null} for none */ public java.lang.String getUid() { return uid; } /** * UID of the resource. (when there is a single resource which can be described). * @param uid uid or {@code null} for none */ public StatusDetails setUid(java.lang.String uid) { this.uid = uid; return this; } @Override public StatusDetails set(String fieldName, Object value) { return (StatusDetails) super.set(fieldName, value); } @Override public StatusDetails clone() { return (StatusDetails) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy