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

namespace Google\Cloud\GkeHub\ConfigManagement\V1;

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

/**
 * State information for ConfigSync
 *
 * Generated from protobuf message <code>google.cloud.gkehub.configmanagement.v1.ConfigSyncState</code>
 */
class ConfigSyncState extends \Google\Protobuf\Internal\Message
{
    /**
     * The version of ConfigSync deployed
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;</code>
     */
    private $version = null;
    /**
     * Information about the deployment of ConfigSync, including the version
     * of the various Pods deployed
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;</code>
     */
    private $deployment_state = null;
    /**
     * The state of ConfigSync's process to sync configs to a cluster
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;</code>
     */
    private $sync_state = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $version
     *           The version of ConfigSync deployed
     *     @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $deployment_state
     *           Information about the deployment of ConfigSync, including the version
     *           of the various Pods deployed
     *     @type \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $sync_state
     *           The state of ConfigSync's process to sync configs to a cluster
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
        parent::__construct($data);
    }

    /**
     * The version of ConfigSync deployed
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;</code>
     * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion|null
     */
    public function getVersion()
    {
        return $this->version;
    }

    public function hasVersion()
    {
        return isset($this->version);
    }

    public function clearVersion()
    {
        unset($this->version);
    }

    /**
     * The version of ConfigSync deployed
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;</code>
     * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion::class);
        $this->version = $var;

        return $this;
    }

    /**
     * Information about the deployment of ConfigSync, including the version
     * of the various Pods deployed
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;</code>
     * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState|null
     */
    public function getDeploymentState()
    {
        return $this->deployment_state;
    }

    public function hasDeploymentState()
    {
        return isset($this->deployment_state);
    }

    public function clearDeploymentState()
    {
        unset($this->deployment_state);
    }

    /**
     * Information about the deployment of ConfigSync, including the version
     * of the various Pods deployed
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;</code>
     * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $var
     * @return $this
     */
    public function setDeploymentState($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState::class);
        $this->deployment_state = $var;

        return $this;
    }

    /**
     * The state of ConfigSync's process to sync configs to a cluster
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;</code>
     * @return \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState|null
     */
    public function getSyncState()
    {
        return $this->sync_state;
    }

    public function hasSyncState()
    {
        return isset($this->sync_state);
    }

    public function clearSyncState()
    {
        unset($this->sync_state);
    }

    /**
     * The state of ConfigSync's process to sync configs to a cluster
     *
     * Generated from protobuf field <code>.google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;</code>
     * @param \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $var
     * @return $this
     */
    public function setSyncState($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState::class);
        $this->sync_state = $var;

        return $this;
    }

}

