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

namespace Google\Cloud\ContactCenterInsights\V1;

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

/**
 * The request for updating a QaScorecard.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.UpdateQaScorecardRequest</code>
 */
class UpdateQaScorecardRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The QaScorecard to update.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.QaScorecard qa_scorecard = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $qa_scorecard = null;
    /**
     * Required. The list of fields to be updated. All possible fields can be
     * updated by passing `*`, or a subset of the following updateable fields can
     * be provided:
     * * `description`
     * * `display_name`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $update_mask = null;

    /**
     * @param \Google\Cloud\ContactCenterInsights\V1\QaScorecard $qaScorecard Required. The QaScorecard to update.
     * @param \Google\Protobuf\FieldMask                         $updateMask  Required. The list of fields to be updated. All possible fields can be
     *                                                                        updated by passing `*`, or a subset of the following updateable fields can
     *                                                                        be provided:
     *
     *                                                                        * `description`
     *                                                                        * `display_name`
     *
     * @return \Google\Cloud\ContactCenterInsights\V1\UpdateQaScorecardRequest
     *
     * @experimental
     */
    public static function build(\Google\Cloud\ContactCenterInsights\V1\QaScorecard $qaScorecard, \Google\Protobuf\FieldMask $updateMask): self
    {
        return (new self())
            ->setQaScorecard($qaScorecard)
            ->setUpdateMask($updateMask);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\ContactCenterInsights\V1\QaScorecard $qa_scorecard
     *           Required. The QaScorecard to update.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Required. The list of fields to be updated. All possible fields can be
     *           updated by passing `*`, or a subset of the following updateable fields can
     *           be provided:
     *           * `description`
     *           * `display_name`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The QaScorecard to update.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.QaScorecard qa_scorecard = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\ContactCenterInsights\V1\QaScorecard|null
     */
    public function getQaScorecard()
    {
        return $this->qa_scorecard;
    }

    public function hasQaScorecard()
    {
        return isset($this->qa_scorecard);
    }

    public function clearQaScorecard()
    {
        unset($this->qa_scorecard);
    }

    /**
     * Required. The QaScorecard to update.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.QaScorecard qa_scorecard = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\ContactCenterInsights\V1\QaScorecard $var
     * @return $this
     */
    public function setQaScorecard($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\QaScorecard::class);
        $this->qa_scorecard = $var;

        return $this;
    }

    /**
     * Required. The list of fields to be updated. All possible fields can be
     * updated by passing `*`, or a subset of the following updateable fields can
     * be provided:
     * * `description`
     * * `display_name`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * Required. The list of fields to be updated. All possible fields can be
     * updated by passing `*`, or a subset of the following updateable fields can
     * be provided:
     * * `description`
     * * `display_name`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

}

