<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/vision/v1/product_search_service.proto

namespace Google\Cloud\Vision\V1\BatchOperationMetadata;

/**
 * Enumerates the possible states that the batch request can be in.
 *
 * Protobuf type <code>google.cloud.vision.v1.BatchOperationMetadata.State</code>
 */
class State
{
    /**
     * Invalid.
     *
     * Generated from protobuf enum <code>STATE_UNSPECIFIED = 0;</code>
     */
    const STATE_UNSPECIFIED = 0;
    /**
     * Request is actively being processed.
     *
     * Generated from protobuf enum <code>PROCESSING = 1;</code>
     */
    const PROCESSING = 1;
    /**
     * The request is done and at least one item has been successfully
     * processed.
     *
     * Generated from protobuf enum <code>SUCCESSFUL = 2;</code>
     */
    const SUCCESSFUL = 2;
    /**
     * The request is done and no item has been successfully processed.
     *
     * Generated from protobuf enum <code>FAILED = 3;</code>
     */
    const FAILED = 3;
    /**
     * The request is done after the longrunning.Operations.CancelOperation has
     * been called by the user.  Any records that were processed before the
     * cancel command are output as specified in the request.
     *
     * Generated from protobuf enum <code>CANCELLED = 4;</code>
     */
    const CANCELLED = 4;
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(State::class, \Google\Cloud\Vision\V1\BatchOperationMetadata_State::class);

