/*
 * 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/alloydb/v1alpha/service.proto

package com.google.cloud.alloydb.v1alpha;

public interface BatchCreateInstanceStatusOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.alloydb.v1alpha.BatchCreateInstanceStatus)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * The current state of an instance involved in the batch create operation.
   * Once the operation is complete, the final state of the instances in the
   * LRO can be one of:
   *   1. ACTIVE, indicating that instances were created successfully
   *   2. FAILED, indicating that a particular instance failed creation
   *   3. ROLLED_BACK indicating that although the instance was created
   *      successfully, it had to be rolled back and deleted due to failure in
   *      other steps of the workflow.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.BatchCreateInstanceStatus.State state = 1;</code>
   *
   * @return The enum numeric value on the wire for state.
   */
  int getStateValue();
  /**
   *
   *
   * <pre>
   * The current state of an instance involved in the batch create operation.
   * Once the operation is complete, the final state of the instances in the
   * LRO can be one of:
   *   1. ACTIVE, indicating that instances were created successfully
   *   2. FAILED, indicating that a particular instance failed creation
   *   3. ROLLED_BACK indicating that although the instance was created
   *      successfully, it had to be rolled back and deleted due to failure in
   *      other steps of the workflow.
   * </pre>
   *
   * <code>.google.cloud.alloydb.v1alpha.BatchCreateInstanceStatus.State state = 1;</code>
   *
   * @return The state.
   */
  com.google.cloud.alloydb.v1alpha.BatchCreateInstanceStatus.State getState();

  /**
   *
   *
   * <pre>
   * DEPRECATED - Use the error field instead.
   * Error, if any error occurred and is available, during instance creation.
   * </pre>
   *
   * <code>string error_msg = 2;</code>
   *
   * @return The errorMsg.
   */
  java.lang.String getErrorMsg();
  /**
   *
   *
   * <pre>
   * DEPRECATED - Use the error field instead.
   * Error, if any error occurred and is available, during instance creation.
   * </pre>
   *
   * <code>string error_msg = 2;</code>
   *
   * @return The bytes for errorMsg.
   */
  com.google.protobuf.ByteString getErrorMsgBytes();

  /**
   *
   *
   * <pre>
   * The RPC status of the instance creation operation. This field will be
   * present if an error happened during the instance creation.
   * </pre>
   *
   * <code>.google.rpc.Status error = 4;</code>
   *
   * @return Whether the error field is set.
   */
  boolean hasError();
  /**
   *
   *
   * <pre>
   * The RPC status of the instance creation operation. This field will be
   * present if an error happened during the instance creation.
   * </pre>
   *
   * <code>.google.rpc.Status error = 4;</code>
   *
   * @return The error.
   */
  com.google.rpc.Status getError();
  /**
   *
   *
   * <pre>
   * The RPC status of the instance creation operation. This field will be
   * present if an error happened during the instance creation.
   * </pre>
   *
   * <code>.google.rpc.Status error = 4;</code>
   */
  com.google.rpc.StatusOrBuilder getErrorOrBuilder();

  /**
   * <code>.google.cloud.alloydb.v1alpha.Instance.InstanceType type = 3;</code>
   *
   * @return The enum numeric value on the wire for type.
   */
  int getTypeValue();
  /**
   * <code>.google.cloud.alloydb.v1alpha.Instance.InstanceType type = 3;</code>
   *
   * @return The type.
   */
  com.google.cloud.alloydb.v1alpha.Instance.InstanceType getType();
}
