<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * An audit report.
 *
 * Generated from protobuf message <code>google.cloud.auditmanager.v1.AuditReport</code>
 */
class AuditReport extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The name of this Audit Report, in the format of scope given in
     * request.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Output only. Report summary with compliance, violation counts etc.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.ReportSummary report_summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $report_summary = null;
    /**
     * Output only. ClientOperationId
     *
     * Generated from protobuf field <code>string operation_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $operation_id = '';
    /**
     * Output only. The location where the generated report will be uploaded.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.DestinationDetails destination_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $destination_details = null;
    /**
     * Output only. Compliance Standard.
     *
     * Generated from protobuf field <code>string compliance_standard = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $compliance_standard = '';
    /**
     * Output only. The parent scope on which the report was generated.
     *
     * Generated from protobuf field <code>string scope = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $scope = '';
    /**
     * Output only. Creation time of the audit report.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $create_time = null;
    /**
     * Output only. The overall status of controls
     *
     * Generated from protobuf field <code>repeated .google.cloud.auditmanager.v1.ControlDetails control_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $control_details;
    /**
     * Output only. The state of Audit Report Generation.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.AuditReport.ReportGenerationState report_generation_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $report_generation_state = 0;
    /**
     * Output only. Compliance Framework of Audit Report
     *
     * Generated from protobuf field <code>string compliance_framework = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $compliance_framework = '';
    /**
     * Output only. The ID/ Number for the scope on which the audit report was
     * generated.
     *
     * Generated from protobuf field <code>string scope_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $scope_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The name of this Audit Report, in the format of scope given in
     *           request.
     *     @type \Google\Cloud\AuditManager\V1\ReportSummary $report_summary
     *           Output only. Report summary with compliance, violation counts etc.
     *     @type string $operation_id
     *           Output only. ClientOperationId
     *     @type \Google\Cloud\AuditManager\V1\DestinationDetails $destination_details
     *           Output only. The location where the generated report will be uploaded.
     *     @type string $compliance_standard
     *           Output only. Compliance Standard.
     *     @type string $scope
     *           Output only. The parent scope on which the report was generated.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. Creation time of the audit report.
     *     @type \Google\Cloud\AuditManager\V1\ControlDetails[] $control_details
     *           Output only. The overall status of controls
     *     @type int $report_generation_state
     *           Output only. The state of Audit Report Generation.
     *     @type string $compliance_framework
     *           Output only. Compliance Framework of Audit Report
     *     @type string $scope_id
     *           Output only. The ID/ Number for the scope on which the audit report was
     *           generated.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Auditmanager\V1\Auditmanager::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The name of this Audit Report, in the format of scope given in
     * request.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The name of this Audit Report, in the format of scope given in
     * request.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. Report summary with compliance, violation counts etc.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.ReportSummary report_summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\AuditManager\V1\ReportSummary|null
     */
    public function getReportSummary()
    {
        return $this->report_summary;
    }

    public function hasReportSummary()
    {
        return isset($this->report_summary);
    }

    public function clearReportSummary()
    {
        unset($this->report_summary);
    }

    /**
     * Output only. Report summary with compliance, violation counts etc.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.ReportSummary report_summary = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\AuditManager\V1\ReportSummary $var
     * @return $this
     */
    public function setReportSummary($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AuditManager\V1\ReportSummary::class);
        $this->report_summary = $var;

        return $this;
    }

    /**
     * Output only. ClientOperationId
     *
     * Generated from protobuf field <code>string operation_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getOperationId()
    {
        return $this->operation_id;
    }

    /**
     * Output only. ClientOperationId
     *
     * Generated from protobuf field <code>string operation_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setOperationId($var)
    {
        GPBUtil::checkString($var, True);
        $this->operation_id = $var;

        return $this;
    }

    /**
     * Output only. The location where the generated report will be uploaded.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.DestinationDetails destination_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\AuditManager\V1\DestinationDetails|null
     */
    public function getDestinationDetails()
    {
        return $this->destination_details;
    }

    public function hasDestinationDetails()
    {
        return isset($this->destination_details);
    }

    public function clearDestinationDetails()
    {
        unset($this->destination_details);
    }

    /**
     * Output only. The location where the generated report will be uploaded.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.DestinationDetails destination_details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\AuditManager\V1\DestinationDetails $var
     * @return $this
     */
    public function setDestinationDetails($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AuditManager\V1\DestinationDetails::class);
        $this->destination_details = $var;

        return $this;
    }

    /**
     * Output only. Compliance Standard.
     *
     * Generated from protobuf field <code>string compliance_standard = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getComplianceStandard()
    {
        return $this->compliance_standard;
    }

    /**
     * Output only. Compliance Standard.
     *
     * Generated from protobuf field <code>string compliance_standard = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setComplianceStandard($var)
    {
        GPBUtil::checkString($var, True);
        $this->compliance_standard = $var;

        return $this;
    }

    /**
     * Output only. The parent scope on which the report was generated.
     *
     * Generated from protobuf field <code>string scope = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getScope()
    {
        return $this->scope;
    }

    /**
     * Output only. The parent scope on which the report was generated.
     *
     * Generated from protobuf field <code>string scope = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setScope($var)
    {
        GPBUtil::checkString($var, True);
        $this->scope = $var;

        return $this;
    }

    /**
     * Output only. Creation time of the audit report.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. Creation time of the audit report.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. The overall status of controls
     *
     * Generated from protobuf field <code>repeated .google.cloud.auditmanager.v1.ControlDetails control_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Cloud\AuditManager\V1\ControlDetails>
     */
    public function getControlDetails()
    {
        return $this->control_details;
    }

    /**
     * Output only. The overall status of controls
     *
     * Generated from protobuf field <code>repeated .google.cloud.auditmanager.v1.ControlDetails control_details = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\AuditManager\V1\ControlDetails[] $var
     * @return $this
     */
    public function setControlDetails($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AuditManager\V1\ControlDetails::class);
        $this->control_details = $arr;

        return $this;
    }

    /**
     * Output only. The state of Audit Report Generation.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.AuditReport.ReportGenerationState report_generation_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getReportGenerationState()
    {
        return $this->report_generation_state;
    }

    /**
     * Output only. The state of Audit Report Generation.
     *
     * Generated from protobuf field <code>.google.cloud.auditmanager.v1.AuditReport.ReportGenerationState report_generation_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setReportGenerationState($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\AuditManager\V1\AuditReport\ReportGenerationState::class);
        $this->report_generation_state = $var;

        return $this;
    }

    /**
     * Output only. Compliance Framework of Audit Report
     *
     * Generated from protobuf field <code>string compliance_framework = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getComplianceFramework()
    {
        return $this->compliance_framework;
    }

    /**
     * Output only. Compliance Framework of Audit Report
     *
     * Generated from protobuf field <code>string compliance_framework = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setComplianceFramework($var)
    {
        GPBUtil::checkString($var, True);
        $this->compliance_framework = $var;

        return $this;
    }

    /**
     * Output only. The ID/ Number for the scope on which the audit report was
     * generated.
     *
     * Generated from protobuf field <code>string scope_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getScopeId()
    {
        return $this->scope_id;
    }

    /**
     * Output only. The ID/ Number for the scope on which the audit report was
     * generated.
     *
     * Generated from protobuf field <code>string scope_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setScopeId($var)
    {
        GPBUtil::checkString($var, True);
        $this->scope_id = $var;

        return $this;
    }

}

