mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
102 lines
2.6 KiB
PHP
102 lines
2.6 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: BasicTypes.proto
|
|
|
|
namespace Model\Messages\Gradido;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* An exact date and time. This is the same data structure as the protobuf Timestamp.proto (see the comments in https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto)
|
|
*
|
|
* Generated from protobuf message <code>model.messages.gradido.Timestamp</code>
|
|
*/
|
|
class Timestamp extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Number of complete seconds since the start of the epoch
|
|
*
|
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
|
*/
|
|
private $seconds = 0;
|
|
/**
|
|
* Number of nanoseconds since the start of the last second
|
|
*
|
|
* Generated from protobuf field <code>int32 nanos = 2;</code>
|
|
*/
|
|
private $nanos = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int|string $seconds
|
|
* Number of complete seconds since the start of the epoch
|
|
* @type int $nanos
|
|
* Number of nanoseconds since the start of the last second
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\BasicTypes::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Number of complete seconds since the start of the epoch
|
|
*
|
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
|
* @return int|string
|
|
*/
|
|
public function getSeconds()
|
|
{
|
|
return $this->seconds;
|
|
}
|
|
|
|
/**
|
|
* Number of complete seconds since the start of the epoch
|
|
*
|
|
* Generated from protobuf field <code>int64 seconds = 1;</code>
|
|
* @param int|string $var
|
|
* @return $this
|
|
*/
|
|
public function setSeconds($var)
|
|
{
|
|
GPBUtil::checkInt64($var);
|
|
$this->seconds = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Number of nanoseconds since the start of the last second
|
|
*
|
|
* Generated from protobuf field <code>int32 nanos = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getNanos()
|
|
{
|
|
return $this->nanos;
|
|
}
|
|
|
|
/**
|
|
* Number of nanoseconds since the start of the last second
|
|
*
|
|
* Generated from protobuf field <code>int32 nanos = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setNanos($var)
|
|
{
|
|
GPBUtil::checkInt32($var);
|
|
$this->nanos = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|