/*
 * 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/compute/v1/compute.proto

package com.google.cloud.compute.v1;

public interface ErrorsOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.compute.v1.Errors)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * [Output Only] The error type identifier for this error.
   * </pre>
   *
   * <code>optional string code = 3059181;</code>
   *
   * @return Whether the code field is set.
   */
  boolean hasCode();
  /**
   *
   *
   * <pre>
   * [Output Only] The error type identifier for this error.
   * </pre>
   *
   * <code>optional string code = 3059181;</code>
   *
   * @return The code.
   */
  java.lang.String getCode();
  /**
   *
   *
   * <pre>
   * [Output Only] The error type identifier for this error.
   * </pre>
   *
   * <code>optional string code = 3059181;</code>
   *
   * @return The bytes for code.
   */
  com.google.protobuf.ByteString getCodeBytes();

  /**
   *
   *
   * <pre>
   * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;</code>
   */
  java.util.List<com.google.cloud.compute.v1.ErrorDetails> getErrorDetailsList();
  /**
   *
   *
   * <pre>
   * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;</code>
   */
  com.google.cloud.compute.v1.ErrorDetails getErrorDetails(int index);
  /**
   *
   *
   * <pre>
   * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;</code>
   */
  int getErrorDetailsCount();
  /**
   *
   *
   * <pre>
   * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;</code>
   */
  java.util.List<? extends com.google.cloud.compute.v1.ErrorDetailsOrBuilder>
      getErrorDetailsOrBuilderList();
  /**
   *
   *
   * <pre>
   * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
   * </pre>
   *
   * <code>repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;</code>
   */
  com.google.cloud.compute.v1.ErrorDetailsOrBuilder getErrorDetailsOrBuilder(int index);

  /**
   *
   *
   * <pre>
   * [Output Only] Indicates the field in the request that caused the error. This property is optional.
   * </pre>
   *
   * <code>optional string location = 290430901;</code>
   *
   * @return Whether the location field is set.
   */
  boolean hasLocation();
  /**
   *
   *
   * <pre>
   * [Output Only] Indicates the field in the request that caused the error. This property is optional.
   * </pre>
   *
   * <code>optional string location = 290430901;</code>
   *
   * @return The location.
   */
  java.lang.String getLocation();
  /**
   *
   *
   * <pre>
   * [Output Only] Indicates the field in the request that caused the error. This property is optional.
   * </pre>
   *
   * <code>optional string location = 290430901;</code>
   *
   * @return The bytes for location.
   */
  com.google.protobuf.ByteString getLocationBytes();

  /**
   *
   *
   * <pre>
   * [Output Only] An optional, human-readable error message.
   * </pre>
   *
   * <code>optional string message = 418054151;</code>
   *
   * @return Whether the message field is set.
   */
  boolean hasMessage();
  /**
   *
   *
   * <pre>
   * [Output Only] An optional, human-readable error message.
   * </pre>
   *
   * <code>optional string message = 418054151;</code>
   *
   * @return The message.
   */
  java.lang.String getMessage();
  /**
   *
   *
   * <pre>
   * [Output Only] An optional, human-readable error message.
   * </pre>
   *
   * <code>optional string message = 418054151;</code>
   *
   * @return The bytes for message.
   */
  com.google.protobuf.ByteString getMessageBytes();
}
