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

namespace Google\Cloud\Deploy\V1\Release;

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

/**
 * ReleaseCondition contains all conditions relevant to a Release.
 *
 * Generated from protobuf message <code>google.cloud.deploy.v1.Release.ReleaseCondition</code>
 */
class ReleaseCondition extends \Google\Protobuf\Internal\Message
{
    /**
     * Details around the Releases's overall status.
     *
     * Generated from protobuf field <code>.google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;</code>
     */
    private $release_ready_condition = null;
    /**
     * Details around the support state of the release's Skaffold
     * version.
     *
     * Generated from protobuf field <code>.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;</code>
     */
    private $skaffold_supported_condition = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $release_ready_condition
     *           Details around the Releases's overall status.
     *     @type \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $skaffold_supported_condition
     *           Details around the support state of the release's Skaffold
     *           version.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce();
        parent::__construct($data);
    }

    /**
     * Details around the Releases's overall status.
     *
     * Generated from protobuf field <code>.google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;</code>
     * @return \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition|null
     */
    public function getReleaseReadyCondition()
    {
        return $this->release_ready_condition;
    }

    public function hasReleaseReadyCondition()
    {
        return isset($this->release_ready_condition);
    }

    public function clearReleaseReadyCondition()
    {
        unset($this->release_ready_condition);
    }

    /**
     * Details around the Releases's overall status.
     *
     * Generated from protobuf field <code>.google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;</code>
     * @param \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $var
     * @return $this
     */
    public function setReleaseReadyCondition($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition::class);
        $this->release_ready_condition = $var;

        return $this;
    }

    /**
     * Details around the support state of the release's Skaffold
     * version.
     *
     * Generated from protobuf field <code>.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;</code>
     * @return \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition|null
     */
    public function getSkaffoldSupportedCondition()
    {
        return $this->skaffold_supported_condition;
    }

    public function hasSkaffoldSupportedCondition()
    {
        return isset($this->skaffold_supported_condition);
    }

    public function clearSkaffoldSupportedCondition()
    {
        unset($this->skaffold_supported_condition);
    }

    /**
     * Details around the support state of the release's Skaffold
     * version.
     *
     * Generated from protobuf field <code>.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;</code>
     * @param \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $var
     * @return $this
     */
    public function setSkaffoldSupportedCondition($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition::class);
        $this->skaffold_supported_condition = $var;

        return $this;
    }

}


