<?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 creating a feedback label.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.CreateFeedbackLabelRequest</code>
 */
class CreateFeedbackLabelRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The parent resource of the feedback label.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $parent = '';
    /**
     * Optional. The ID of the feedback label to create.
     * If one is not specified it will be generated by the server.
     *
     * Generated from protobuf field <code>string feedback_label_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $feedback_label_id = '';
    /**
     * Required. The feedback label to create.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.FeedbackLabel feedback_label = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $feedback_label = null;

    /**
     * @param string                                               $parent          Required. The parent resource of the feedback label. Please see
     *                                                                              {@see ContactCenterInsightsClient::conversationName()} for help formatting this field.
     * @param \Google\Cloud\ContactCenterInsights\V1\FeedbackLabel $feedbackLabel   Required. The feedback label to create.
     * @param string                                               $feedbackLabelId Optional. The ID of the feedback label to create.
     *                                                                              If one is not specified it will be generated by the server.
     *
     * @return \Google\Cloud\ContactCenterInsights\V1\CreateFeedbackLabelRequest
     *
     * @experimental
     */
    public static function build(string $parent, \Google\Cloud\ContactCenterInsights\V1\FeedbackLabel $feedbackLabel, string $feedbackLabelId): self
    {
        return (new self())
            ->setParent($parent)
            ->setFeedbackLabel($feedbackLabel)
            ->setFeedbackLabelId($feedbackLabelId);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The parent resource of the feedback label.
     *     @type string $feedback_label_id
     *           Optional. The ID of the feedback label to create.
     *           If one is not specified it will be generated by the server.
     *     @type \Google\Cloud\ContactCenterInsights\V1\FeedbackLabel $feedback_label
     *           Required. The feedback label to create.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The parent resource of the feedback label.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

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

        return $this;
    }

    /**
     * Optional. The ID of the feedback label to create.
     * If one is not specified it will be generated by the server.
     *
     * Generated from protobuf field <code>string feedback_label_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getFeedbackLabelId()
    {
        return $this->feedback_label_id;
    }

    /**
     * Optional. The ID of the feedback label to create.
     * If one is not specified it will be generated by the server.
     *
     * Generated from protobuf field <code>string feedback_label_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setFeedbackLabelId($var)
    {
        GPBUtil::checkString($var, True);
        $this->feedback_label_id = $var;

        return $this;
    }

    /**
     * Required. The feedback label to create.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.FeedbackLabel feedback_label = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\ContactCenterInsights\V1\FeedbackLabel|null
     */
    public function getFeedbackLabel()
    {
        return $this->feedback_label;
    }

    public function hasFeedbackLabel()
    {
        return isset($this->feedback_label);
    }

    public function clearFeedbackLabel()
    {
        unset($this->feedback_label);
    }

    /**
     * Required. The feedback label to create.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.FeedbackLabel feedback_label = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\ContactCenterInsights\V1\FeedbackLabel $var
     * @return $this
     */
    public function setFeedbackLabel($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\FeedbackLabel::class);
        $this->feedback_label = $var;

        return $this;
    }

}

