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

namespace Google\Cloud\AuditManager\V1;

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

/**
 * The `ReportGenerationProgress` is part of
 * [google.longrunning.Operation][google.longrunning.Operation] returned to the
 * client for every `GetOperation` request.
 *
 * Generated from protobuf message <code>google.cloud.auditmanager.v1.ReportGenerationProgress</code>
 */
class ReportGenerationProgress extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The current state of execution for report generation.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.OperationState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $state = 0;
    /**
     * Output only. States the reason of failure during the audit report
     * generation process. This field is set only if the state attribute is
     * OPERATION_STATE_FAILED.
     *
     * Generated from protobuf field <code>string failure_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $failure_reason = '';
    /**
     * Shows the progress of the CESS service evaluation process. The progress is
     * defined in terms of percentage complete and is being fetched from the CESS
     * service.
     *
     * Generated from protobuf field <code>double evaluation_percent_complete = 20;</code>
     */
    protected $evaluation_percent_complete = 0.0;
    /**
     * Shows the report generation progress of the CESS Result Processor Service.
     * The // progress is defined in terms of percentage complete and is being
     * fetched from the CESS service. If report_generation_in_progress is non zero
     * then evaluation_percent_complete will be 100%.
     *
     * Generated from protobuf field <code>double report_generation_percent_complete = 30;</code>
     */
    protected $report_generation_percent_complete = 0.0;
    /**
     * Shows the report uploading progress of the CESS Result Processor Service.
     * The progress is defined in terms of percentage complete and is being
     * fetched from the CESS service. If report_uploading_in_progress is non zero
     * then evaluation_percent_complete and report_generation_percent_complete
     * will be 100%.
     *
     * Generated from protobuf field <code>double report_uploading_percent_complete = 40;</code>
     */
    protected $report_uploading_percent_complete = 0.0;
    /**
     * Output only. The Cloud Storage bucket where the audit report will be
     * uploaded once the evaluation process is completed.
     *
     * Generated from protobuf field <code>string destination_gcs_bucket = 50 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $destination_gcs_bucket = '';
    /**
     * Output only. The name of the audit report.
     *
     * Generated from protobuf field <code>string audit_report = 51 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $audit_report = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $state
     *           Output only. The current state of execution for report generation.
     *     @type string $failure_reason
     *           Output only. States the reason of failure during the audit report
     *           generation process. This field is set only if the state attribute is
     *           OPERATION_STATE_FAILED.
     *     @type float $evaluation_percent_complete
     *           Shows the progress of the CESS service evaluation process. The progress is
     *           defined in terms of percentage complete and is being fetched from the CESS
     *           service.
     *     @type float $report_generation_percent_complete
     *           Shows the report generation progress of the CESS Result Processor Service.
     *           The // progress is defined in terms of percentage complete and is being
     *           fetched from the CESS service. If report_generation_in_progress is non zero
     *           then evaluation_percent_complete will be 100%.
     *     @type float $report_uploading_percent_complete
     *           Shows the report uploading progress of the CESS Result Processor Service.
     *           The progress is defined in terms of percentage complete and is being
     *           fetched from the CESS service. If report_uploading_in_progress is non zero
     *           then evaluation_percent_complete and report_generation_percent_complete
     *           will be 100%.
     *     @type string $destination_gcs_bucket
     *           Output only. The Cloud Storage bucket where the audit report will be
     *           uploaded once the evaluation process is completed.
     *     @type string $audit_report
     *           Output only. The name of the audit report.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Auditmanager\V1\Auditmanager::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The current state of execution for report generation.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.OperationState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Output only. The current state of execution for report generation.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.OperationState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\AuditManager\V1\OperationState::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Output only. States the reason of failure during the audit report
     * generation process. This field is set only if the state attribute is
     * OPERATION_STATE_FAILED.
     *
     * Generated from protobuf field <code>string failure_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getFailureReason()
    {
        return $this->failure_reason;
    }

    /**
     * Output only. States the reason of failure during the audit report
     * generation process. This field is set only if the state attribute is
     * OPERATION_STATE_FAILED.
     *
     * Generated from protobuf field <code>string failure_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setFailureReason($var)
    {
        GPBUtil::checkString($var, True);
        $this->failure_reason = $var;

        return $this;
    }

    /**
     * Shows the progress of the CESS service evaluation process. The progress is
     * defined in terms of percentage complete and is being fetched from the CESS
     * service.
     *
     * Generated from protobuf field <code>double evaluation_percent_complete = 20;</code>
     * @return float
     */
    public function getEvaluationPercentComplete()
    {
        return $this->evaluation_percent_complete;
    }

    /**
     * Shows the progress of the CESS service evaluation process. The progress is
     * defined in terms of percentage complete and is being fetched from the CESS
     * service.
     *
     * Generated from protobuf field <code>double evaluation_percent_complete = 20;</code>
     * @param float $var
     * @return $this
     */
    public function setEvaluationPercentComplete($var)
    {
        GPBUtil::checkDouble($var);
        $this->evaluation_percent_complete = $var;

        return $this;
    }

    /**
     * Shows the report generation progress of the CESS Result Processor Service.
     * The // progress is defined in terms of percentage complete and is being
     * fetched from the CESS service. If report_generation_in_progress is non zero
     * then evaluation_percent_complete will be 100%.
     *
     * Generated from protobuf field <code>double report_generation_percent_complete = 30;</code>
     * @return float
     */
    public function getReportGenerationPercentComplete()
    {
        return $this->report_generation_percent_complete;
    }

    /**
     * Shows the report generation progress of the CESS Result Processor Service.
     * The // progress is defined in terms of percentage complete and is being
     * fetched from the CESS service. If report_generation_in_progress is non zero
     * then evaluation_percent_complete will be 100%.
     *
     * Generated from protobuf field <code>double report_generation_percent_complete = 30;</code>
     * @param float $var
     * @return $this
     */
    public function setReportGenerationPercentComplete($var)
    {
        GPBUtil::checkDouble($var);
        $this->report_generation_percent_complete = $var;

        return $this;
    }

    /**
     * Shows the report uploading progress of the CESS Result Processor Service.
     * The progress is defined in terms of percentage complete and is being
     * fetched from the CESS service. If report_uploading_in_progress is non zero
     * then evaluation_percent_complete and report_generation_percent_complete
     * will be 100%.
     *
     * Generated from protobuf field <code>double report_uploading_percent_complete = 40;</code>
     * @return float
     */
    public function getReportUploadingPercentComplete()
    {
        return $this->report_uploading_percent_complete;
    }

    /**
     * Shows the report uploading progress of the CESS Result Processor Service.
     * The progress is defined in terms of percentage complete and is being
     * fetched from the CESS service. If report_uploading_in_progress is non zero
     * then evaluation_percent_complete and report_generation_percent_complete
     * will be 100%.
     *
     * Generated from protobuf field <code>double report_uploading_percent_complete = 40;</code>
     * @param float $var
     * @return $this
     */
    public function setReportUploadingPercentComplete($var)
    {
        GPBUtil::checkDouble($var);
        $this->report_uploading_percent_complete = $var;

        return $this;
    }

    /**
     * Output only. The Cloud Storage bucket where the audit report will be
     * uploaded once the evaluation process is completed.
     *
     * Generated from protobuf field <code>string destination_gcs_bucket = 50 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getDestinationGcsBucket()
    {
        return $this->destination_gcs_bucket;
    }

    /**
     * Output only. The Cloud Storage bucket where the audit report will be
     * uploaded once the evaluation process is completed.
     *
     * Generated from protobuf field <code>string destination_gcs_bucket = 50 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setDestinationGcsBucket($var)
    {
        GPBUtil::checkString($var, True);
        $this->destination_gcs_bucket = $var;

        return $this;
    }

    /**
     * Output only. The name of the audit report.
     *
     * Generated from protobuf field <code>string audit_report = 51 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getAuditReport()
    {
        return $this->audit_report;
    }

    /**
     * Output only. The name of the audit report.
     *
     * Generated from protobuf field <code>string audit_report = 51 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setAuditReport($var)
    {
        GPBUtil::checkString($var, True);
        $this->audit_report = $var;

        return $this;
    }

}

