diff options
author | Brent Shaffer <betterbrent@google.com> | 2018-05-23 16:43:30 -0700 |
---|---|---|
committer | Paul Yang <TeBoring@users.noreply.github.com> | 2018-05-24 13:39:41 -0700 |
commit | 6737954661ed26105dd87a4c78fe3f333c978961 (patch) | |
tree | a0bd8f91dfde4576790961e6896a5fa20ceba019 /php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php | |
parent | 839f71e30567498284061ea92a9f1a5216b46e14 (diff) | |
download | protobuf-6737954661ed26105dd87a4c78fe3f333c978961.tar.gz protobuf-6737954661ed26105dd87a4c78fe3f333c978961.tar.bz2 protobuf-6737954661ed26105dd87a4c78fe3f333c978961.zip |
PHP namespaces for nested messages and enums (#4536)
* uses namespaces for nested messages and enums
* fixes namespaces for PHP dist
* fixes namespace for Descriptors, adds Cardinality and Kind
* fixes nested namespaces for reserved words and adds tests
* adds tests and generator fix for php class prefixes
* fixes escaping of protobuf packages, enum comments, misc others
* nice refactor of generated code
* adds class files for backwards compatibility
* simplifies code with templates
* adds compatibility files to makefile
* cleanup of generator and fixes nested namespace bug
* regenerates proto types
* remove internal BC classes
* adds deprecated warning, adds methods back
* simplifies if statement
* fixes dist files
* addresses review comments
* adds back TYPE_URL_PREFIX constant
* adds @deprecated to old nested class files
* skips tests which require a separate process when protobuf.so is enabled
* Adds tests for legacy nested classes that do not require separate processes to test
* uses legacy names for GPBUtil message check
* adds block for IDE @deprecated message
* Namespace for nested message/enum in c extension
* Remove unused code
Diffstat (limited to 'php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php')
-rw-r--r-- | php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php b/php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php deleted file mode 100644 index d4369fda..00000000 --- a/php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php +++ /dev/null @@ -1,107 +0,0 @@ -<?php -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/protobuf/descriptor.proto - -namespace Google\Protobuf\Internal; - -use Google\Protobuf\Internal\GPBType; -use Google\Protobuf\Internal\GPBWire; -use Google\Protobuf\Internal\RepeatedField; -use Google\Protobuf\Internal\InputStream; -use Google\Protobuf\Internal\GPBUtil; - -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - * "foo.(bar.baz).qux". - * - * Generated from protobuf message <code>google.protobuf.UninterpretedOption.NamePart</code> - */ -class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field <code>required string name_part = 1;</code> - */ - private $name_part = ''; - private $has_name_part = false; - /** - * Generated from protobuf field <code>required bool is_extension = 2;</code> - */ - private $is_extension = false; - private $has_is_extension = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name_part - * @type bool $is_extension - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field <code>required string name_part = 1;</code> - * @return string - */ - public function getNamePart() - { - return $this->name_part; - } - - /** - * Generated from protobuf field <code>required string name_part = 1;</code> - * @param string $var - * @return $this - */ - public function setNamePart($var) - { - GPBUtil::checkString($var, True); - $this->name_part = $var; - $this->has_name_part = true; - - return $this; - } - - public function hasNamePart() - { - return $this->has_name_part; - } - - /** - * Generated from protobuf field <code>required bool is_extension = 2;</code> - * @return bool - */ - public function getIsExtension() - { - return $this->is_extension; - } - - /** - * Generated from protobuf field <code>required bool is_extension = 2;</code> - * @param bool $var - * @return $this - */ - public function setIsExtension($var) - { - GPBUtil::checkBool($var); - $this->is_extension = $var; - $this->has_is_extension = true; - - return $this; - } - - public function hasIsExtension() - { - return $this->has_is_extension; - } - -} - |