diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-09-05 14:10:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 14:10:32 -0700 |
commit | 7f8b91f552e80964d995712c26306410854d8ad1 (patch) | |
tree | d00ef6869c14f07672f75e23988a3ab1db20dbf7 /php/src/GPBMetadata/Google/Protobuf | |
parent | 35b852f5b84c4bd3cd49652e9473a001aa00d295 (diff) | |
download | protobuf-7f8b91f552e80964d995712c26306410854d8ad1.tar.gz protobuf-7f8b91f552e80964d995712c26306410854d8ad1.tar.bz2 protobuf-7f8b91f552e80964d995712c26306410854d8ad1.zip |
Add native php support for Duration. (#3583)
Diffstat (limited to 'php/src/GPBMetadata/Google/Protobuf')
-rw-r--r-- | php/src/GPBMetadata/Google/Protobuf/Duration.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/php/src/GPBMetadata/Google/Protobuf/Duration.php b/php/src/GPBMetadata/Google/Protobuf/Duration.php new file mode 100644 index 00000000..b1c85ad8 --- /dev/null +++ b/php/src/GPBMetadata/Google/Protobuf/Duration.php @@ -0,0 +1,31 @@ +<?php +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/protobuf/duration.proto + +namespace GPBMetadata\Google\Protobuf; + +class Duration +{ + public static $is_initialized = false; + + public static function initOnce() { + $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool(); + + if (static::$is_initialized == true) { + return; + } + $pool->internalAddGeneratedFile(hex2bin( + "0ae3010a1e676f6f676c652f70726f746f6275662f6475726174696f6e2e" . + "70726f746f120f676f6f676c652e70726f746f627566222a0a0844757261" . + "74696f6e120f0a077365636f6e6473180120012803120d0a056e616e6f73" . + "180220012805427c0a13636f6d2e676f6f676c652e70726f746f62756642" . + "0d4475726174696f6e50726f746f50015a2a6769746875622e636f6d2f67" . + "6f6c616e672f70726f746f6275662f7074797065732f6475726174696f6e" . + "f80101a20203475042aa021e476f6f676c652e50726f746f6275662e5765" . + "6c6c4b6e6f776e5479706573620670726f746f33" + )); + + static::$is_initialized = true; + } +} + |