/*
 * Copyright 2020 Google LLC
 *
 * 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
 *
 *     https://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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/run/v2/task.proto

package com.google.cloud.run.v2;

public interface TaskAttemptResultOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.TaskAttemptResult)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Output only. The status of this attempt.
   * If the status code is OK, then the attempt succeeded.
   * </pre>
   *
   * <code>.google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return Whether the status field is set.
   */
  boolean hasStatus();
  /**
   *
   *
   * <pre>
   * Output only. The status of this attempt.
   * If the status code is OK, then the attempt succeeded.
   * </pre>
   *
   * <code>.google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The status.
   */
  com.google.rpc.Status getStatus();
  /**
   *
   *
   * <pre>
   * Output only. The status of this attempt.
   * If the status code is OK, then the attempt succeeded.
   * </pre>
   *
   * <code>.google.rpc.Status status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   */
  com.google.rpc.StatusOrBuilder getStatusOrBuilder();

  /**
   *
   *
   * <pre>
   * Output only. The exit code of this attempt.
   * This may be unset if the container was unable to exit cleanly with a code
   * due to some other failure.
   * See status field for possible failure details.
   * </pre>
   *
   * <code>int32 exit_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The exitCode.
   */
  int getExitCode();
}
