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

namespace Google\Cloud\SecureSourceManager\V1\BranchRule;

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

/**
 * Check is a type for status check.
 *
 * Generated from protobuf message <code>google.cloud.securesourcemanager.v1.BranchRule.Check</code>
 */
class Check extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The context of the check.
     *
     * Generated from protobuf field <code>string context = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $context = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $context
     *           Required. The context of the check.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securesourcemanager\V1\SecureSourceManager::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The context of the check.
     *
     * Generated from protobuf field <code>string context = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getContext()
    {
        return $this->context;
    }

    /**
     * Required. The context of the check.
     *
     * Generated from protobuf field <code>string context = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setContext($var)
    {
        GPBUtil::checkString($var, True);
        $this->context = $var;

        return $this;
    }

}


