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

namespace Google\Cloud\Datastream\V1;

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

/**
 * Oracle SCN position
 *
 * Generated from protobuf message <code>google.cloud.datastream.v1.OracleScnPosition</code>
 */
class OracleScnPosition extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. SCN number from where Logs will be read
     *
     * Generated from protobuf field <code>int64 scn = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $scn = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $scn
     *           Required. SCN number from where Logs will be read
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datastream\V1\DatastreamResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. SCN number from where Logs will be read
     *
     * Generated from protobuf field <code>int64 scn = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int|string
     */
    public function getScn()
    {
        return $this->scn;
    }

    /**
     * Required. SCN number from where Logs will be read
     *
     * Generated from protobuf field <code>int64 scn = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int|string $var
     * @return $this
     */
    public function setScn($var)
    {
        GPBUtil::checkInt64($var);
        $this->scn = $var;

        return $this;
    }

}

