diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-08-31 10:35:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 10:35:31 -0700 |
commit | b70e0fdf09506fcf53af951d64a3ae47309fa245 (patch) | |
tree | 5daf2049946d001b8868f3a8c6e94c2c9cb9acd3 /php/src/GPBMetadata/Google | |
parent | c7457ef65a7a8584b1e3bd396c401ccf8e275ffa (diff) | |
download | protobuf-b70e0fdf09506fcf53af951d64a3ae47309fa245.tar.gz protobuf-b70e0fdf09506fcf53af951d64a3ae47309fa245.tar.bz2 protobuf-b70e0fdf09506fcf53af951d64a3ae47309fa245.zip |
Add php support for Timestamp. (#3575)
* Add php support for Timestamp.
* Fix comments
Diffstat (limited to 'php/src/GPBMetadata/Google')
-rw-r--r-- | php/src/GPBMetadata/Google/Protobuf/Timestamp.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/php/src/GPBMetadata/Google/Protobuf/Timestamp.php b/php/src/GPBMetadata/Google/Protobuf/Timestamp.php new file mode 100644 index 00000000..373665c9 --- /dev/null +++ b/php/src/GPBMetadata/Google/Protobuf/Timestamp.php @@ -0,0 +1,31 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/protobuf/timestamp.proto + +namespace GPBMetadata\Google\Protobuf; + +class Timestamp +{ + public static $is_initialized = false; + + public static function initOnce() { + $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool(); + + if (static::$is_initialized == true) { + return; + } + $pool->internalAddGeneratedFile(hex2bin( + "0ae7010a1f676f6f676c652f70726f746f6275662f74696d657374616d70" . + "2e70726f746f120f676f6f676c652e70726f746f627566222b0a0954696d" . + "657374616d70120f0a077365636f6e6473180120012803120d0a056e616e" . + "6f73180220012805427e0a13636f6d2e676f6f676c652e70726f746f6275" . + "66420e54696d657374616d7050726f746f50015a2b6769746875622e636f" . + "6d2f676f6c616e672f70726f746f6275662f7074797065732f74696d6573" . + "74616d70f80101a20203475042aa021e476f6f676c652e50726f746f6275" . + "662e57656c6c4b6e6f776e5479706573620670726f746f33" + )); + + static::$is_initialized = true; + } +} + |