<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2beta1/dlp.proto

namespace Google\Cloud\Dlp\V2beta1;

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

/**
 * A collection that informs the user the number of times a particular
 * `TransformationResultCode` and error details occurred.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.TransformationSummary.SummaryResult</code>
 */
class TransformationSummary_SummaryResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 count = 1;</code>
     */
    private $count = 0;
    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
     */
    private $code = 0;
    /**
     * A place for warnings or errors to show up if a transformation didn't
     * work as expected.
     *
     * Generated from protobuf field <code>string details = 3;</code>
     */
    private $details = '';

    public function __construct() {
        \GPBMetadata\Google\Privacy\Dlp\V2Beta1\Dlp::initOnce();
        parent::__construct();
    }

    /**
     * Generated from protobuf field <code>int64 count = 1;</code>
     * @return int|string
     */
    public function getCount()
    {
        return $this->count;
    }

    /**
     * Generated from protobuf field <code>int64 count = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->count = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
     * @return int
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.TransformationSummary.TransformationResultCode code = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2beta1\TransformationSummary_TransformationResultCode::class);
        $this->code = $var;

        return $this;
    }

    /**
     * A place for warnings or errors to show up if a transformation didn't
     * work as expected.
     *
     * Generated from protobuf field <code>string details = 3;</code>
     * @return string
     */
    public function getDetails()
    {
        return $this->details;
    }

    /**
     * A place for warnings or errors to show up if a transformation didn't
     * work as expected.
     *
     * Generated from protobuf field <code>string details = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDetails($var)
    {
        GPBUtil::checkString($var, True);
        $this->details = $var;

        return $this;
    }

}

