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

namespace Google\Cloud\Ces\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Settings to describe how errors should be handled in the app.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.ErrorHandlingSettings</code>
 */
class ErrorHandlingSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The strategy to use for error handling.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $error_handling_strategy = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $error_handling_strategy
     *           Optional. The strategy to use for error handling.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\App::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The strategy to use for error handling.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getErrorHandlingStrategy()
    {
        return $this->error_handling_strategy;
    }

    /**
     * Optional. The strategy to use for error handling.
     *
     * Generated from protobuf field <code>.google.cloud.ces.v1.ErrorHandlingSettings.ErrorHandlingStrategy error_handling_strategy = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setErrorHandlingStrategy($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Ces\V1\ErrorHandlingSettings\ErrorHandlingStrategy::class);
        $this->error_handling_strategy = $var;

        return $this;
    }

}

