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

namespace Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation;

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

/**
 * Instructions to remediate violation
 *
 * Generated from protobuf message <code>google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions</code>
 */
class Instructions extends \Google\Protobuf\Internal\Message
{
    /**
     * Remediation instructions to resolve violation via gcloud cli
     *
     * Generated from protobuf field <code>.google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1;</code>
     */
    protected $gcloud_instructions = null;
    /**
     * Remediation instructions to resolve violation via cloud console
     *
     * Generated from protobuf field <code>.google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2;</code>
     */
    protected $console_instructions = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $gcloud_instructions
     *           Remediation instructions to resolve violation via gcloud cli
     *     @type \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $console_instructions
     *           Remediation instructions to resolve violation via cloud console
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Cloudcontrolspartner\V1Beta\Violations::initOnce();
        parent::__construct($data);
    }

    /**
     * Remediation instructions to resolve violation via gcloud cli
     *
     * Generated from protobuf field <code>.google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1;</code>
     * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud|null
     */
    public function getGcloudInstructions()
    {
        return $this->gcloud_instructions;
    }

    public function hasGcloudInstructions()
    {
        return isset($this->gcloud_instructions);
    }

    public function clearGcloudInstructions()
    {
        unset($this->gcloud_instructions);
    }

    /**
     * Remediation instructions to resolve violation via gcloud cli
     *
     * Generated from protobuf field <code>.google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Gcloud gcloud_instructions = 1;</code>
     * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud $var
     * @return $this
     */
    public function setGcloudInstructions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Gcloud::class);
        $this->gcloud_instructions = $var;

        return $this;
    }

    /**
     * Remediation instructions to resolve violation via cloud console
     *
     * Generated from protobuf field <code>.google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2;</code>
     * @return \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console|null
     */
    public function getConsoleInstructions()
    {
        return $this->console_instructions;
    }

    public function hasConsoleInstructions()
    {
        return isset($this->console_instructions);
    }

    public function clearConsoleInstructions()
    {
        unset($this->console_instructions);
    }

    /**
     * Remediation instructions to resolve violation via cloud console
     *
     * Generated from protobuf field <code>.google.cloud.cloudcontrolspartner.v1beta.Violation.Remediation.Instructions.Console console_instructions = 2;</code>
     * @param \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console $var
     * @return $this
     */
    public function setConsoleInstructions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\CloudControlsPartner\V1beta\Violation\Remediation\Instructions\Console::class);
        $this->console_instructions = $var;

        return $this;
    }

}

