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

namespace Google\Cloud\VideoIntelligence\V1;

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

/**
 * Config for PERSON_DETECTION.
 *
 * Generated from protobuf message <code>google.cloud.videointelligence.v1.PersonDetectionConfig</code>
 */
class PersonDetectionConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Whether bounding boxes are included in the person detection annotation
     * output.
     *
     * Generated from protobuf field <code>bool include_bounding_boxes = 1;</code>
     */
    private $include_bounding_boxes = false;
    /**
     * Whether to enable pose landmarks detection. Ignored if
     * 'include_bounding_boxes' is set to false.
     *
     * Generated from protobuf field <code>bool include_pose_landmarks = 2;</code>
     */
    private $include_pose_landmarks = false;
    /**
     * Whether to enable person attributes detection, such as cloth color (black,
     * blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
     * etc.
     * Ignored if 'include_bounding_boxes' is set to false.
     *
     * Generated from protobuf field <code>bool include_attributes = 3;</code>
     */
    private $include_attributes = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $include_bounding_boxes
     *           Whether bounding boxes are included in the person detection annotation
     *           output.
     *     @type bool $include_pose_landmarks
     *           Whether to enable pose landmarks detection. Ignored if
     *           'include_bounding_boxes' is set to false.
     *     @type bool $include_attributes
     *           Whether to enable person attributes detection, such as cloth color (black,
     *           blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
     *           etc.
     *           Ignored if 'include_bounding_boxes' is set to false.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Videointelligence\V1\VideoIntelligence::initOnce();
        parent::__construct($data);
    }

    /**
     * Whether bounding boxes are included in the person detection annotation
     * output.
     *
     * Generated from protobuf field <code>bool include_bounding_boxes = 1;</code>
     * @return bool
     */
    public function getIncludeBoundingBoxes()
    {
        return $this->include_bounding_boxes;
    }

    /**
     * Whether bounding boxes are included in the person detection annotation
     * output.
     *
     * Generated from protobuf field <code>bool include_bounding_boxes = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setIncludeBoundingBoxes($var)
    {
        GPBUtil::checkBool($var);
        $this->include_bounding_boxes = $var;

        return $this;
    }

    /**
     * Whether to enable pose landmarks detection. Ignored if
     * 'include_bounding_boxes' is set to false.
     *
     * Generated from protobuf field <code>bool include_pose_landmarks = 2;</code>
     * @return bool
     */
    public function getIncludePoseLandmarks()
    {
        return $this->include_pose_landmarks;
    }

    /**
     * Whether to enable pose landmarks detection. Ignored if
     * 'include_bounding_boxes' is set to false.
     *
     * Generated from protobuf field <code>bool include_pose_landmarks = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setIncludePoseLandmarks($var)
    {
        GPBUtil::checkBool($var);
        $this->include_pose_landmarks = $var;

        return $this;
    }

    /**
     * Whether to enable person attributes detection, such as cloth color (black,
     * blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
     * etc.
     * Ignored if 'include_bounding_boxes' is set to false.
     *
     * Generated from protobuf field <code>bool include_attributes = 3;</code>
     * @return bool
     */
    public function getIncludeAttributes()
    {
        return $this->include_attributes;
    }

    /**
     * Whether to enable person attributes detection, such as cloth color (black,
     * blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
     * etc.
     * Ignored if 'include_bounding_boxes' is set to false.
     *
     * Generated from protobuf field <code>bool include_attributes = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setIncludeAttributes($var)
    {
        GPBUtil::checkBool($var);
        $this->include_attributes = $var;

        return $this;
    }

}

