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

namespace Google\Cloud\VideoIntelligence\V1beta2;

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

/**
 * Video segment.
 *
 * Generated from protobuf message <code>google.cloud.videointelligence.v1beta2.VideoSegment</code>
 */
class VideoSegment extends \Google\Protobuf\Internal\Message
{
    /**
     * Time-offset, relative to the beginning of the video,
     * corresponding to the start of the segment (inclusive).
     *
     * Generated from protobuf field <code>.google.protobuf.Duration start_time_offset = 1;</code>
     */
    private $start_time_offset = null;
    /**
     * Time-offset, relative to the beginning of the video,
     * corresponding to the end of the segment (inclusive).
     *
     * Generated from protobuf field <code>.google.protobuf.Duration end_time_offset = 2;</code>
     */
    private $end_time_offset = null;

    public function __construct() {
        \GPBMetadata\Google\Cloud\Videointelligence\V1Beta2\VideoIntelligence::initOnce();
        parent::__construct();
    }

    /**
     * Time-offset, relative to the beginning of the video,
     * corresponding to the start of the segment (inclusive).
     *
     * Generated from protobuf field <code>.google.protobuf.Duration start_time_offset = 1;</code>
     * @return \Google\Protobuf\Duration
     */
    public function getStartTimeOffset()
    {
        return $this->start_time_offset;
    }

    /**
     * Time-offset, relative to the beginning of the video,
     * corresponding to the start of the segment (inclusive).
     *
     * Generated from protobuf field <code>.google.protobuf.Duration start_time_offset = 1;</code>
     * @param \Google\Protobuf\Duration $var
     * @return $this
     */
    public function setStartTimeOffset($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
        $this->start_time_offset = $var;

        return $this;
    }

    /**
     * Time-offset, relative to the beginning of the video,
     * corresponding to the end of the segment (inclusive).
     *
     * Generated from protobuf field <code>.google.protobuf.Duration end_time_offset = 2;</code>
     * @return \Google\Protobuf\Duration
     */
    public function getEndTimeOffset()
    {
        return $this->end_time_offset;
    }

    /**
     * Time-offset, relative to the beginning of the video,
     * corresponding to the end of the segment (inclusive).
     *
     * Generated from protobuf field <code>.google.protobuf.Duration end_time_offset = 2;</code>
     * @param \Google\Protobuf\Duration $var
     * @return $this
     */
    public function setEndTimeOffset($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
        $this->end_time_offset = $var;

        return $this;
    }

}

