From 2b49f678a7dfaf27afc0e44ed7a65b00ec06d413 Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Wed, 26 Apr 2017 15:37:42 +0200 Subject: Update third_party/protobuf to pre-release 3.2.0 Update protobuf to @laszlocsomor's fork of protobuf. This is essentially the development version of protobuf 3.2.0 and windows specific fixes from laszlo. Those fixes will be merged into protobuf soon: https://github.com/google/protobuf/pull/2969. Change-Id: Id88cd7e5b2c27ab74f3ecfa1e127e5a863f2deb3 --- .../Google/Protobuf/Internal/EnumValueOptions.php | 115 +++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 third_party/protobuf/3.2.0/php/src/Google/Protobuf/Internal/EnumValueOptions.php (limited to 'third_party/protobuf/3.2.0/php/src/Google/Protobuf/Internal/EnumValueOptions.php') diff --git a/third_party/protobuf/3.2.0/php/src/Google/Protobuf/Internal/EnumValueOptions.php b/third_party/protobuf/3.2.0/php/src/Google/Protobuf/Internal/EnumValueOptions.php new file mode 100644 index 0000000000..232a6738a6 --- /dev/null +++ b/third_party/protobuf/3.2.0/php/src/Google/Protobuf/Internal/EnumValueOptions.php @@ -0,0 +1,115 @@ +google.protobuf.EnumValueOptions + */ +class EnumValueOptions extends \Google\Protobuf\Internal\Message +{ + /** + *
+     * Is this enum value deprecated?
+     * Depending on the target platform, this can emit Deprecated annotations
+     * for the enum value, or it will be completely ignored; in the very least,
+     * this is a formalization for deprecating enum values.
+     * 
+ * + * optional bool deprecated = 1 [default = false]; + */ + private $deprecated = false; + private $has_deprecated = false; + /** + *
+     * The parser stores options it doesn't recognize here. See above.
+     * 
+ * + * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + private $uninterpreted_option; + private $has_uninterpreted_option = false; + + public function __construct() { + \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); + parent::__construct(); + } + + /** + *
+     * Is this enum value deprecated?
+     * Depending on the target platform, this can emit Deprecated annotations
+     * for the enum value, or it will be completely ignored; in the very least,
+     * this is a formalization for deprecating enum values.
+     * 
+ * + * optional bool deprecated = 1 [default = false]; + */ + public function getDeprecated() + { + return $this->deprecated; + } + + /** + *
+     * Is this enum value deprecated?
+     * Depending on the target platform, this can emit Deprecated annotations
+     * for the enum value, or it will be completely ignored; in the very least,
+     * this is a formalization for deprecating enum values.
+     * 
+ * + * optional bool deprecated = 1 [default = false]; + */ + public function setDeprecated($var) + { + GPBUtil::checkBool($var); + $this->deprecated = $var; + $this->has_deprecated = true; + } + + public function hasDeprecated() + { + return $this->has_deprecated; + } + + /** + *
+     * The parser stores options it doesn't recognize here. See above.
+     * 
+ * + * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + public function getUninterpretedOption() + { + return $this->uninterpreted_option; + } + + /** + *
+     * The parser stores options it doesn't recognize here. See above.
+     * 
+ * + * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + */ + public function setUninterpretedOption(&$var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class); + $this->uninterpreted_option = $arr; + $this->has_uninterpreted_option = true; + } + + public function hasUninterpretedOption() + { + return $this->has_uninterpreted_option; + } + +} + -- cgit v1.2.3