From 12acbc2678073c3439b427be0b713b97e2074bfb Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 27 Jun 2017 16:28:28 -0700 Subject: adds PHPDoc @return and @param for getters and setters respectively (#3131) * adds PHPDoc @return and @param for getters and setters respectively * addresses changes in PR review * adds documentation tests * Update php_generator: - Prepend \ to names where required - Remove
 tags
- Update protobuf field comments

* Updates class files with the protobuf changes

* Addresses review comments

* removes Protobuf Type line from PHP generated classes

* fixes phpdoc test

* adds array types to phpdoc
---
 .../Google/Protobuf/Internal/DescriptorProto.php   | 100 ++++----
 .../Internal/DescriptorProto_ExtensionRange.php    |  20 +-
 .../Internal/DescriptorProto_ReservedRange.php     |  34 ++-
 .../Protobuf/Internal/EnumDescriptorProto.php      |  31 ++-
 php/src/Google/Protobuf/Internal/EnumOptions.php   |  47 ++--
 .../Protobuf/Internal/EnumValueDescriptorProto.php |  31 ++-
 .../Google/Protobuf/Internal/EnumValueOptions.php  |  32 ++-
 .../Protobuf/Internal/FieldDescriptorProto.php     | 136 ++++++-----
 .../Internal/FieldDescriptorProto_Label.php        |  10 +-
 .../Internal/FieldDescriptorProto_Type.php         |  54 ++---
 php/src/Google/Protobuf/Internal/FieldOptions.php  | 107 ++++-----
 .../Protobuf/Internal/FieldOptions_CType.php       |  10 +-
 .../Protobuf/Internal/FieldOptions_JSType.php      |  14 +-
 .../Protobuf/Internal/FileDescriptorProto.php      | 160 ++++++-------
 .../Google/Protobuf/Internal/FileDescriptorSet.php |  13 +-
 php/src/Google/Protobuf/Internal/FileOptions.php   | 254 +++++++++------------
 .../Protobuf/Internal/FileOptions_OptimizeMode.php |  16 +-
 .../Google/Protobuf/Internal/GeneratedCodeInfo.php |  19 +-
 .../Internal/GeneratedCodeInfo_Annotation.php      |  62 ++---
 .../Google/Protobuf/Internal/MessageOptions.php    |  83 +++----
 .../Protobuf/Internal/MethodDescriptorProto.php    |  76 +++---
 php/src/Google/Protobuf/Internal/MethodOptions.php |  41 ++--
 .../Internal/MethodOptions_IdempotencyLevel.php    |  14 +-
 .../Protobuf/Internal/OneofDescriptorProto.php     |  22 +-
 php/src/Google/Protobuf/Internal/OneofOptions.php  |  17 +-
 .../Protobuf/Internal/ServiceDescriptorProto.php   |  31 ++-
 .../Google/Protobuf/Internal/ServiceOptions.php    |  32 ++-
 .../Google/Protobuf/Internal/SourceCodeInfo.php    |  19 +-
 .../Protobuf/Internal/SourceCodeInfo_Location.php  |  65 +++---
 .../Protobuf/Internal/UninterpretedOption.php      |  73 +++---
 .../Internal/UninterpretedOption_NamePart.php      |  22 +-
 31 files changed, 760 insertions(+), 885 deletions(-)

(limited to 'php/src')

diff --git a/php/src/Google/Protobuf/Internal/DescriptorProto.php b/php/src/Google/Protobuf/Internal/DescriptorProto.php
index c72c0962..0fdaecfc 100644
--- a/php/src/Google/Protobuf/Internal/DescriptorProto.php
+++ b/php/src/Google/Protobuf/Internal/DescriptorProto.php
@@ -12,66 +12,62 @@ use Google\Protobuf\Internal\InputStream;
 use Google\Protobuf\Internal\GPBUtil;
 
 /**
- * 
  * Describes a message type.
- * 
* - * Protobuf type google.protobuf.DescriptorProto + * Generated from protobuf message google.protobuf.DescriptorProto */ class DescriptorProto extends \Google\Protobuf\Internal\Message { /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto field = 2; */ private $field; private $has_field = false; /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 6; */ private $extension; private $has_extension = false; /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto nested_type = 3; */ private $nested_type; private $has_nested_type = false; /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; + * Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 4; */ private $enum_type; private $has_enum_type = false; /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ private $extension_range; private $has_extension_range = false; /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; + * Generated from protobuf field repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; */ private $oneof_decl; private $has_oneof_decl = false; /** - * optional .google.protobuf.MessageOptions options = 7; + * Generated from protobuf field optional .google.protobuf.MessageOptions options = 7; */ private $options = null; private $has_options = false; /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */ private $reserved_range; private $has_reserved_range = false; /** - *
      * Reserved field names, which may not be used by fields in the same message.
      * A given name may only be reserved once.
-     * 
* - * repeated string reserved_name = 10; + * Generated from protobuf field repeated string reserved_name = 10; */ private $reserved_name; private $has_reserved_name = false; @@ -82,7 +78,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -90,7 +87,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -107,7 +106,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto field = 2; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getField() { @@ -115,7 +115,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto field = 2; + * @param \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setField(&$var) { @@ -132,7 +134,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 6; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getExtension() { @@ -140,7 +143,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 6; + * @param \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setExtension(&$var) { @@ -157,7 +162,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto nested_type = 3; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getNestedType() { @@ -165,7 +171,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto nested_type = 3; + * @param \Google\Protobuf\Internal\DescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setNestedType(&$var) { @@ -182,7 +190,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; + * Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 4; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getEnumType() { @@ -190,7 +199,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; + * Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 4; + * @param \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setEnumType(&$var) { @@ -207,7 +218,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getExtensionRange() { @@ -215,7 +227,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + * @param \Google\Protobuf\Internal\DescriptorProto_ExtensionRange[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setExtensionRange(&$var) { @@ -232,7 +246,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; + * Generated from protobuf field repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getOneofDecl() { @@ -240,7 +255,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; + * Generated from protobuf field repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; + * @param \Google\Protobuf\Internal\OneofDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setOneofDecl(&$var) { @@ -257,7 +274,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.MessageOptions options = 7; + * Generated from protobuf field optional .google.protobuf.MessageOptions options = 7; + * @return \Google\Protobuf\Internal\MessageOptions */ public function getOptions() { @@ -265,7 +283,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.MessageOptions options = 7; + * Generated from protobuf field optional .google.protobuf.MessageOptions options = 7; + * @param \Google\Protobuf\Internal\MessageOptions $var + * @return $this */ public function setOptions(&$var) { @@ -282,7 +302,8 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getReservedRange() { @@ -290,7 +311,9 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + * @param \Google\Protobuf\Internal\DescriptorProto_ReservedRange[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setReservedRange(&$var) { @@ -307,12 +330,11 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Reserved field names, which may not be used by fields in the same message.
      * A given name may only be reserved once.
-     * 
* - * repeated string reserved_name = 10; + * Generated from protobuf field repeated string reserved_name = 10; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getReservedName() { @@ -320,12 +342,12 @@ class DescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Reserved field names, which may not be used by fields in the same message.
      * A given name may only be reserved once.
-     * 
* - * repeated string reserved_name = 10; + * Generated from protobuf field repeated string reserved_name = 10; + * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setReservedName(&$var) { diff --git a/php/src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php b/php/src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php index b5e5453e..bbd34824 100644 --- a/php/src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php +++ b/php/src/Google/Protobuf/Internal/DescriptorProto_ExtensionRange.php @@ -12,17 +12,17 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.DescriptorProto.ExtensionRange + * Generated from protobuf message google.protobuf.DescriptorProto.ExtensionRange */ class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message { /** - * optional int32 start = 1; + * Generated from protobuf field optional int32 start = 1; */ private $start = 0; private $has_start = false; /** - * optional int32 end = 2; + * Generated from protobuf field optional int32 end = 2; */ private $end = 0; private $has_end = false; @@ -33,7 +33,8 @@ class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message } /** - * optional int32 start = 1; + * Generated from protobuf field optional int32 start = 1; + * @return int */ public function getStart() { @@ -41,7 +42,9 @@ class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message } /** - * optional int32 start = 1; + * Generated from protobuf field optional int32 start = 1; + * @param int $var + * @return $this */ public function setStart($var) { @@ -58,7 +61,8 @@ class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message } /** - * optional int32 end = 2; + * Generated from protobuf field optional int32 end = 2; + * @return int */ public function getEnd() { @@ -66,7 +70,9 @@ class DescriptorProto_ExtensionRange extends \Google\Protobuf\Internal\Message } /** - * optional int32 end = 2; + * Generated from protobuf field optional int32 end = 2; + * @param int $var + * @return $this */ public function setEnd($var) { diff --git a/php/src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php b/php/src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php index e5b7b05a..3d613133 100644 --- a/php/src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php +++ b/php/src/Google/Protobuf/Internal/DescriptorProto_ReservedRange.php @@ -12,31 +12,25 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Range of reserved tag numbers. Reserved tag numbers may not be used by
  * fields or extension ranges in the same message. Reserved ranges may
  * not overlap.
- * 
* - * Protobuf type google.protobuf.DescriptorProto.ReservedRange + * Generated from protobuf message google.protobuf.DescriptorProto.ReservedRange */ class DescriptorProto_ReservedRange extends \Google\Protobuf\Internal\Message { /** - *
      * Inclusive.
-     * 
* - * optional int32 start = 1; + * Generated from protobuf field optional int32 start = 1; */ private $start = 0; private $has_start = false; /** - *
      * Exclusive.
-     * 
* - * optional int32 end = 2; + * Generated from protobuf field optional int32 end = 2; */ private $end = 0; private $has_end = false; @@ -47,11 +41,10 @@ class DescriptorProto_ReservedRange extends \Google\Protobuf\Internal\Message } /** - *
      * Inclusive.
-     * 
* - * optional int32 start = 1; + * Generated from protobuf field optional int32 start = 1; + * @return int */ public function getStart() { @@ -59,11 +52,11 @@ class DescriptorProto_ReservedRange extends \Google\Protobuf\Internal\Message } /** - *
      * Inclusive.
-     * 
* - * optional int32 start = 1; + * Generated from protobuf field optional int32 start = 1; + * @param int $var + * @return $this */ public function setStart($var) { @@ -80,11 +73,10 @@ class DescriptorProto_ReservedRange extends \Google\Protobuf\Internal\Message } /** - *
      * Exclusive.
-     * 
* - * optional int32 end = 2; + * Generated from protobuf field optional int32 end = 2; + * @return int */ public function getEnd() { @@ -92,11 +84,11 @@ class DescriptorProto_ReservedRange extends \Google\Protobuf\Internal\Message } /** - *
      * Exclusive.
-     * 
* - * optional int32 end = 2; + * Generated from protobuf field optional int32 end = 2; + * @param int $var + * @return $this */ public function setEnd($var) { diff --git a/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php b/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php index bf597436..6cdaf2df 100644 --- a/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php @@ -12,26 +12,24 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes an enum type.
- * 
* - * Protobuf type google.protobuf.EnumDescriptorProto + * Generated from protobuf message google.protobuf.EnumDescriptorProto */ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message { /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - * repeated .google.protobuf.EnumValueDescriptorProto value = 2; + * Generated from protobuf field repeated .google.protobuf.EnumValueDescriptorProto value = 2; */ private $value; private $has_value = false; /** - * optional .google.protobuf.EnumOptions options = 3; + * Generated from protobuf field optional .google.protobuf.EnumOptions options = 3; */ private $options = null; private $has_options = false; @@ -42,7 +40,8 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -50,7 +49,9 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -67,7 +68,8 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.EnumValueDescriptorProto value = 2; + * Generated from protobuf field repeated .google.protobuf.EnumValueDescriptorProto value = 2; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getValue() { @@ -75,7 +77,9 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.EnumValueDescriptorProto value = 2; + * Generated from protobuf field repeated .google.protobuf.EnumValueDescriptorProto value = 2; + * @param \Google\Protobuf\Internal\EnumValueDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setValue(&$var) { @@ -92,7 +96,8 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.EnumOptions options = 3; + * Generated from protobuf field optional .google.protobuf.EnumOptions options = 3; + * @return \Google\Protobuf\Internal\EnumOptions */ public function getOptions() { @@ -100,7 +105,9 @@ class EnumDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.EnumOptions options = 3; + * Generated from protobuf field optional .google.protobuf.EnumOptions options = 3; + * @param \Google\Protobuf\Internal\EnumOptions $var + * @return $this */ public function setOptions(&$var) { diff --git a/php/src/Google/Protobuf/Internal/EnumOptions.php b/php/src/Google/Protobuf/Internal/EnumOptions.php index cfa0cb3e..3c3a9e22 100644 --- a/php/src/Google/Protobuf/Internal/EnumOptions.php +++ b/php/src/Google/Protobuf/Internal/EnumOptions.php @@ -12,38 +12,32 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.EnumOptions + * Generated from protobuf message google.protobuf.EnumOptions */ class EnumOptions extends \Google\Protobuf\Internal\Message { /** - *
      * Set this option to true to allow mapping different tag names to the same
      * value.
-     * 
* - * optional bool allow_alias = 2; + * Generated from protobuf field optional bool allow_alias = 2; */ private $allow_alias = false; private $has_allow_alias = false; /** - *
      * Is this enum deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the enum, or it will be completely ignored; in the very least, this
      * is a formalization for deprecating enums.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [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; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -54,12 +48,11 @@ class EnumOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Set this option to true to allow mapping different tag names to the same
      * value.
-     * 
* - * optional bool allow_alias = 2; + * Generated from protobuf field optional bool allow_alias = 2; + * @return bool */ public function getAllowAlias() { @@ -67,12 +60,12 @@ class EnumOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Set this option to true to allow mapping different tag names to the same
      * value.
-     * 
* - * optional bool allow_alias = 2; + * Generated from protobuf field optional bool allow_alias = 2; + * @param bool $var + * @return $this */ public function setAllowAlias($var) { @@ -89,14 +82,13 @@ class EnumOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this enum deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the enum, or it will be completely ignored; in the very least, this
      * is a formalization for deprecating enums.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; + * @return bool */ public function getDeprecated() { @@ -104,14 +96,14 @@ class EnumOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this enum deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the enum, or it will be completely ignored; in the very least, this
      * is a formalization for deprecating enums.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; + * @param bool $var + * @return $this */ public function setDeprecated($var) { @@ -128,11 +120,10 @@ class EnumOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -140,11 +131,11 @@ class EnumOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php b/php/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php index 43eee73f..89d6707f 100644 --- a/php/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/EnumValueDescriptorProto.php @@ -12,26 +12,24 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes a value within an enum.
- * 
* - * Protobuf type google.protobuf.EnumValueDescriptorProto + * Generated from protobuf message google.protobuf.EnumValueDescriptorProto */ class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message { /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - * optional int32 number = 2; + * Generated from protobuf field optional int32 number = 2; */ private $number = 0; private $has_number = false; /** - * optional .google.protobuf.EnumValueOptions options = 3; + * Generated from protobuf field optional .google.protobuf.EnumValueOptions options = 3; */ private $options = null; private $has_options = false; @@ -42,7 +40,8 @@ class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -50,7 +49,9 @@ class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -67,7 +68,8 @@ class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional int32 number = 2; + * Generated from protobuf field optional int32 number = 2; + * @return int */ public function getNumber() { @@ -75,7 +77,9 @@ class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional int32 number = 2; + * Generated from protobuf field optional int32 number = 2; + * @param int $var + * @return $this */ public function setNumber($var) { @@ -92,7 +96,8 @@ class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.EnumValueOptions options = 3; + * Generated from protobuf field optional .google.protobuf.EnumValueOptions options = 3; + * @return \Google\Protobuf\Internal\EnumValueOptions */ public function getOptions() { @@ -100,7 +105,9 @@ class EnumValueDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.EnumValueOptions options = 3; + * Generated from protobuf field optional .google.protobuf.EnumValueOptions options = 3; + * @param \Google\Protobuf\Internal\EnumValueOptions $var + * @return $this */ public function setOptions(&$var) { diff --git a/php/src/Google/Protobuf/Internal/EnumValueOptions.php b/php/src/Google/Protobuf/Internal/EnumValueOptions.php index d66c7684..3b5c58e4 100644 --- a/php/src/Google/Protobuf/Internal/EnumValueOptions.php +++ b/php/src/Google/Protobuf/Internal/EnumValueOptions.php @@ -12,28 +12,24 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.EnumValueOptions + * Generated from protobuf message 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]; + * Generated from protobuf field 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; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -44,14 +40,13 @@ 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]; + * Generated from protobuf field optional bool deprecated = 1 [default = false]; + * @return bool */ public function getDeprecated() { @@ -59,14 +54,14 @@ 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]; + * Generated from protobuf field optional bool deprecated = 1 [default = false]; + * @param bool $var + * @return $this */ public function setDeprecated($var) { @@ -83,11 +78,10 @@ class EnumValueOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -95,11 +89,11 @@ class EnumValueOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/FieldDescriptorProto.php b/php/src/Google/Protobuf/Internal/FieldDescriptorProto.php index 2af9c0a0..ae61be47 100644 --- a/php/src/Google/Protobuf/Internal/FieldDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/FieldDescriptorProto.php @@ -12,99 +12,85 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes a field within a message.
- * 
* - * Protobuf type google.protobuf.FieldDescriptorProto + * Generated from protobuf message google.protobuf.FieldDescriptorProto */ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message { /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - * optional int32 number = 3; + * Generated from protobuf field optional int32 number = 3; */ private $number = 0; private $has_number = false; /** - * optional .google.protobuf.FieldDescriptorProto.Label label = 4; + * Generated from protobuf field optional .google.protobuf.FieldDescriptorProto.Label label = 4; */ private $label = 0; private $has_label = false; /** - *
      * If type_name is set, this need not be set.  If both this and type_name
      * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
-     * 
* - * optional .google.protobuf.FieldDescriptorProto.Type type = 5; + * Generated from protobuf field optional .google.protobuf.FieldDescriptorProto.Type type = 5; */ private $type = 0; private $has_type = false; /** - *
      * For message and enum types, this is the name of the type.  If the name
      * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
      * rules are used to find the type (i.e. first the nested types within this
      * message are searched, then within the parent, on up to the root
      * namespace).
-     * 
* - * optional string type_name = 6; + * Generated from protobuf field optional string type_name = 6; */ private $type_name = ''; private $has_type_name = false; /** - *
      * For extensions, this is the name of the type being extended.  It is
      * resolved in the same manner as type_name.
-     * 
* - * optional string extendee = 2; + * Generated from protobuf field optional string extendee = 2; */ private $extendee = ''; private $has_extendee = false; /** - *
      * For numeric types, contains the original text representation of the value.
      * For booleans, "true" or "false".
      * For strings, contains the default text contents (not escaped in any way).
-     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
+     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
      * TODO(kenton):  Base-64 encode?
-     * 
* - * optional string default_value = 7; + * Generated from protobuf field optional string default_value = 7; */ private $default_value = ''; private $has_default_value = false; /** - *
      * If set, gives the index of a oneof in the containing type's oneof_decl
      * list.  This field is a member of that oneof.
-     * 
* - * optional int32 oneof_index = 9; + * Generated from protobuf field optional int32 oneof_index = 9; */ private $oneof_index = 0; private $has_oneof_index = false; /** - *
      * JSON name of this field. The value is set by protocol compiler. If the
      * user has set a "json_name" option on this field, that option's value
      * will be used. Otherwise, it's deduced from the field's name by converting
      * it to camelCase.
-     * 
* - * optional string json_name = 10; + * Generated from protobuf field optional string json_name = 10; */ private $json_name = ''; private $has_json_name = false; /** - * optional .google.protobuf.FieldOptions options = 8; + * Generated from protobuf field optional .google.protobuf.FieldOptions options = 8; */ private $options = null; private $has_options = false; @@ -115,7 +101,8 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -123,7 +110,9 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -140,7 +129,8 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional int32 number = 3; + * Generated from protobuf field optional int32 number = 3; + * @return int */ public function getNumber() { @@ -148,7 +138,9 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional int32 number = 3; + * Generated from protobuf field optional int32 number = 3; + * @param int $var + * @return $this */ public function setNumber($var) { @@ -165,7 +157,8 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FieldDescriptorProto.Label label = 4; + * Generated from protobuf field optional .google.protobuf.FieldDescriptorProto.Label label = 4; + * @return int */ public function getLabel() { @@ -173,7 +166,9 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FieldDescriptorProto.Label label = 4; + * Generated from protobuf field optional .google.protobuf.FieldDescriptorProto.Label label = 4; + * @param int $var + * @return $this */ public function setLabel($var) { @@ -190,12 +185,11 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * If type_name is set, this need not be set.  If both this and type_name
      * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
-     * 
* - * optional .google.protobuf.FieldDescriptorProto.Type type = 5; + * Generated from protobuf field optional .google.protobuf.FieldDescriptorProto.Type type = 5; + * @return int */ public function getType() { @@ -203,12 +197,12 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * If type_name is set, this need not be set.  If both this and type_name
      * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
-     * 
* - * optional .google.protobuf.FieldDescriptorProto.Type type = 5; + * Generated from protobuf field optional .google.protobuf.FieldDescriptorProto.Type type = 5; + * @param int $var + * @return $this */ public function setType($var) { @@ -225,15 +219,14 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * For message and enum types, this is the name of the type.  If the name
      * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
      * rules are used to find the type (i.e. first the nested types within this
      * message are searched, then within the parent, on up to the root
      * namespace).
-     * 
* - * optional string type_name = 6; + * Generated from protobuf field optional string type_name = 6; + * @return string */ public function getTypeName() { @@ -241,15 +234,15 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * For message and enum types, this is the name of the type.  If the name
      * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
      * rules are used to find the type (i.e. first the nested types within this
      * message are searched, then within the parent, on up to the root
      * namespace).
-     * 
* - * optional string type_name = 6; + * Generated from protobuf field optional string type_name = 6; + * @param string $var + * @return $this */ public function setTypeName($var) { @@ -266,12 +259,11 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * For extensions, this is the name of the type being extended.  It is
      * resolved in the same manner as type_name.
-     * 
* - * optional string extendee = 2; + * Generated from protobuf field optional string extendee = 2; + * @return string */ public function getExtendee() { @@ -279,12 +271,12 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * For extensions, this is the name of the type being extended.  It is
      * resolved in the same manner as type_name.
-     * 
* - * optional string extendee = 2; + * Generated from protobuf field optional string extendee = 2; + * @param string $var + * @return $this */ public function setExtendee($var) { @@ -301,15 +293,14 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * For numeric types, contains the original text representation of the value.
      * For booleans, "true" or "false".
      * For strings, contains the default text contents (not escaped in any way).
-     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
+     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
      * TODO(kenton):  Base-64 encode?
-     * 
* - * optional string default_value = 7; + * Generated from protobuf field optional string default_value = 7; + * @return string */ public function getDefaultValue() { @@ -317,15 +308,15 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * For numeric types, contains the original text representation of the value.
      * For booleans, "true" or "false".
      * For strings, contains the default text contents (not escaped in any way).
-     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
+     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
      * TODO(kenton):  Base-64 encode?
-     * 
* - * optional string default_value = 7; + * Generated from protobuf field optional string default_value = 7; + * @param string $var + * @return $this */ public function setDefaultValue($var) { @@ -342,12 +333,11 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * If set, gives the index of a oneof in the containing type's oneof_decl
      * list.  This field is a member of that oneof.
-     * 
* - * optional int32 oneof_index = 9; + * Generated from protobuf field optional int32 oneof_index = 9; + * @return int */ public function getOneofIndex() { @@ -355,12 +345,12 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * If set, gives the index of a oneof in the containing type's oneof_decl
      * list.  This field is a member of that oneof.
-     * 
* - * optional int32 oneof_index = 9; + * Generated from protobuf field optional int32 oneof_index = 9; + * @param int $var + * @return $this */ public function setOneofIndex($var) { @@ -377,14 +367,13 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * JSON name of this field. The value is set by protocol compiler. If the
      * user has set a "json_name" option on this field, that option's value
      * will be used. Otherwise, it's deduced from the field's name by converting
      * it to camelCase.
-     * 
* - * optional string json_name = 10; + * Generated from protobuf field optional string json_name = 10; + * @return string */ public function getJsonName() { @@ -392,14 +381,14 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * JSON name of this field. The value is set by protocol compiler. If the
      * user has set a "json_name" option on this field, that option's value
      * will be used. Otherwise, it's deduced from the field's name by converting
      * it to camelCase.
-     * 
* - * optional string json_name = 10; + * Generated from protobuf field optional string json_name = 10; + * @param string $var + * @return $this */ public function setJsonName($var) { @@ -416,7 +405,8 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FieldOptions options = 8; + * Generated from protobuf field optional .google.protobuf.FieldOptions options = 8; + * @return \Google\Protobuf\Internal\FieldOptions */ public function getOptions() { @@ -424,7 +414,9 @@ class FieldDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FieldOptions options = 8; + * Generated from protobuf field optional .google.protobuf.FieldOptions options = 8; + * @param \Google\Protobuf\Internal\FieldOptions $var + * @return $this */ public function setOptions(&$var) { diff --git a/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php b/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php index a3cd8ef9..f2a32fdf 100644 --- a/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php +++ b/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Label.php @@ -5,24 +5,22 @@ namespace Google\Protobuf\Internal; /** - * Protobuf enum google.protobuf.FieldDescriptorProto.Label + * Protobuf enum Google\Protobuf\Internal */ class FieldDescriptorProto_Label { /** - *
      * 0 is reserved for errors
-     * 
* - * LABEL_OPTIONAL = 1; + * Generated from protobuf enum LABEL_OPTIONAL = 1; */ const LABEL_OPTIONAL = 1; /** - * LABEL_REQUIRED = 2; + * Generated from protobuf enum LABEL_REQUIRED = 2; */ const LABEL_REQUIRED = 2; /** - * LABEL_REPEATED = 3; + * Generated from protobuf enum LABEL_REPEATED = 3; */ const LABEL_REPEATED = 3; } diff --git a/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php b/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php index 8335f9b1..1b022deb 100644 --- a/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php +++ b/php/src/Google/Protobuf/Internal/FieldDescriptorProto_Type.php @@ -5,118 +5,102 @@ namespace Google\Protobuf\Internal; /** - * Protobuf enum google.protobuf.FieldDescriptorProto.Type + * Protobuf enum Google\Protobuf\Internal */ class FieldDescriptorProto_Type { /** - *
      * 0 is reserved for errors.
      * Order is weird for historical reasons.
-     * 
* - * TYPE_DOUBLE = 1; + * Generated from protobuf enum TYPE_DOUBLE = 1; */ const TYPE_DOUBLE = 1; /** - * TYPE_FLOAT = 2; + * Generated from protobuf enum TYPE_FLOAT = 2; */ const TYPE_FLOAT = 2; /** - *
      * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
      * negative values are likely.
-     * 
* - * TYPE_INT64 = 3; + * Generated from protobuf enum TYPE_INT64 = 3; */ const TYPE_INT64 = 3; /** - * TYPE_UINT64 = 4; + * Generated from protobuf enum TYPE_UINT64 = 4; */ const TYPE_UINT64 = 4; /** - *
      * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
      * negative values are likely.
-     * 
* - * TYPE_INT32 = 5; + * Generated from protobuf enum TYPE_INT32 = 5; */ const TYPE_INT32 = 5; /** - * TYPE_FIXED64 = 6; + * Generated from protobuf enum TYPE_FIXED64 = 6; */ const TYPE_FIXED64 = 6; /** - * TYPE_FIXED32 = 7; + * Generated from protobuf enum TYPE_FIXED32 = 7; */ const TYPE_FIXED32 = 7; /** - * TYPE_BOOL = 8; + * Generated from protobuf enum TYPE_BOOL = 8; */ const TYPE_BOOL = 8; /** - * TYPE_STRING = 9; + * Generated from protobuf enum TYPE_STRING = 9; */ const TYPE_STRING = 9; /** - *
      * Tag-delimited aggregate.
      * Group type is deprecated and not supported in proto3. However, Proto3
      * implementations should still be able to parse the group wire format and
      * treat group fields as unknown fields.
-     * 
* - * TYPE_GROUP = 10; + * Generated from protobuf enum TYPE_GROUP = 10; */ const TYPE_GROUP = 10; /** - *
      * Length-delimited aggregate.
-     * 
* - * TYPE_MESSAGE = 11; + * Generated from protobuf enum TYPE_MESSAGE = 11; */ const TYPE_MESSAGE = 11; /** - *
      * New in version 2.
-     * 
* - * TYPE_BYTES = 12; + * Generated from protobuf enum TYPE_BYTES = 12; */ const TYPE_BYTES = 12; /** - * TYPE_UINT32 = 13; + * Generated from protobuf enum TYPE_UINT32 = 13; */ const TYPE_UINT32 = 13; /** - * TYPE_ENUM = 14; + * Generated from protobuf enum TYPE_ENUM = 14; */ const TYPE_ENUM = 14; /** - * TYPE_SFIXED32 = 15; + * Generated from protobuf enum TYPE_SFIXED32 = 15; */ const TYPE_SFIXED32 = 15; /** - * TYPE_SFIXED64 = 16; + * Generated from protobuf enum TYPE_SFIXED64 = 16; */ const TYPE_SFIXED64 = 16; /** - *
      * Uses ZigZag encoding.
-     * 
* - * TYPE_SINT32 = 17; + * Generated from protobuf enum TYPE_SINT32 = 17; */ const TYPE_SINT32 = 17; /** - *
      * Uses ZigZag encoding.
-     * 
* - * TYPE_SINT64 = 18; + * Generated from protobuf enum TYPE_SINT64 = 18; */ const TYPE_SINT64 = 18; } diff --git a/php/src/Google/Protobuf/Internal/FieldOptions.php b/php/src/Google/Protobuf/Internal/FieldOptions.php index b30caa75..157c0f82 100644 --- a/php/src/Google/Protobuf/Internal/FieldOptions.php +++ b/php/src/Google/Protobuf/Internal/FieldOptions.php @@ -12,37 +12,32 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.FieldOptions + * Generated from protobuf message google.protobuf.FieldOptions */ class FieldOptions extends \Google\Protobuf\Internal\Message { /** - *
      * The ctype option instructs the C++ code generator to use a different
      * representation of the field than it normally would.  See the specific
      * options below.  This option is not yet implemented in the open source
      * release -- sorry, we'll try to include it in a future version!
-     * 
* - * optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; + * Generated from protobuf field optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; */ private $ctype = 0; private $has_ctype = false; /** - *
      * The packed option can be enabled for repeated primitive fields to enable
      * a more efficient representation on the wire. Rather than repeatedly
      * writing the tag and type for each element, the entire array is encoded as
      * a single length-delimited blob. In proto3, only explicit setting it to
      * false will avoid using packed encoding.
-     * 
* - * optional bool packed = 2; + * Generated from protobuf field optional bool packed = 2; */ private $packed = false; private $has_packed = false; /** - *
      * The jstype option determines the JavaScript type used for values of the
      * field.  The option is permitted only for 64 bit integral and fixed types
      * (int64, uint64, sint64, fixed64, sfixed64).  By default these types are
@@ -52,14 +47,12 @@ class FieldOptions extends \Google\Protobuf\Internal\Message
      * JavaScript code to use the JavaScript "number" type instead of strings.
      * This option is an enum to permit additional types to be added,
      * e.g. goog.math.Integer.
-     * 
* - * optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; + * Generated from protobuf field optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; */ private $jstype = 0; private $has_jstype = false; /** - *
      * Should this field be parsed lazily?  Lazy applies only to message-type
      * fields.  It means that when the outer message is initially parsed, the
      * inner message's contents will not be parsed but instead stored in encoded
@@ -84,39 +77,32 @@ class FieldOptions extends \Google\Protobuf\Internal\Message
      * implementation must either *always* check its required fields, or *never*
      * check its required fields, regardless of whether or not the message has
      * been parsed.
-     * 
* - * optional bool lazy = 5 [default = false]; + * Generated from protobuf field optional bool lazy = 5 [default = false]; */ private $lazy = false; private $has_lazy = false; /** - *
      * Is this field deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for accessors, or it will be completely ignored; in the very least, this
      * is a formalization for deprecating fields.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; */ private $deprecated = false; private $has_deprecated = false; /** - *
      * For Google-internal migration only. Do not use.
-     * 
* - * optional bool weak = 10 [default = false]; + * Generated from protobuf field optional bool weak = 10 [default = false]; */ private $weak = false; private $has_weak = false; /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -127,14 +113,13 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The ctype option instructs the C++ code generator to use a different
      * representation of the field than it normally would.  See the specific
      * options below.  This option is not yet implemented in the open source
      * release -- sorry, we'll try to include it in a future version!
-     * 
* - * optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; + * Generated from protobuf field optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; + * @return int */ public function getCtype() { @@ -142,14 +127,14 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The ctype option instructs the C++ code generator to use a different
      * representation of the field than it normally would.  See the specific
      * options below.  This option is not yet implemented in the open source
      * release -- sorry, we'll try to include it in a future version!
-     * 
* - * optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; + * Generated from protobuf field optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; + * @param int $var + * @return $this */ public function setCtype($var) { @@ -166,15 +151,14 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The packed option can be enabled for repeated primitive fields to enable
      * a more efficient representation on the wire. Rather than repeatedly
      * writing the tag and type for each element, the entire array is encoded as
      * a single length-delimited blob. In proto3, only explicit setting it to
      * false will avoid using packed encoding.
-     * 
* - * optional bool packed = 2; + * Generated from protobuf field optional bool packed = 2; + * @return bool */ public function getPacked() { @@ -182,15 +166,15 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The packed option can be enabled for repeated primitive fields to enable
      * a more efficient representation on the wire. Rather than repeatedly
      * writing the tag and type for each element, the entire array is encoded as
      * a single length-delimited blob. In proto3, only explicit setting it to
      * false will avoid using packed encoding.
-     * 
* - * optional bool packed = 2; + * Generated from protobuf field optional bool packed = 2; + * @param bool $var + * @return $this */ public function setPacked($var) { @@ -207,7 +191,6 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The jstype option determines the JavaScript type used for values of the
      * field.  The option is permitted only for 64 bit integral and fixed types
      * (int64, uint64, sint64, fixed64, sfixed64).  By default these types are
@@ -217,9 +200,9 @@ class FieldOptions extends \Google\Protobuf\Internal\Message
      * JavaScript code to use the JavaScript "number" type instead of strings.
      * This option is an enum to permit additional types to be added,
      * e.g. goog.math.Integer.
-     * 
* - * optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; + * Generated from protobuf field optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; + * @return int */ public function getJstype() { @@ -227,7 +210,6 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The jstype option determines the JavaScript type used for values of the
      * field.  The option is permitted only for 64 bit integral and fixed types
      * (int64, uint64, sint64, fixed64, sfixed64).  By default these types are
@@ -237,9 +219,10 @@ class FieldOptions extends \Google\Protobuf\Internal\Message
      * JavaScript code to use the JavaScript "number" type instead of strings.
      * This option is an enum to permit additional types to be added,
      * e.g. goog.math.Integer.
-     * 
* - * optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; + * Generated from protobuf field optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; + * @param int $var + * @return $this */ public function setJstype($var) { @@ -256,7 +239,6 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Should this field be parsed lazily?  Lazy applies only to message-type
      * fields.  It means that when the outer message is initially parsed, the
      * inner message's contents will not be parsed but instead stored in encoded
@@ -281,9 +263,9 @@ class FieldOptions extends \Google\Protobuf\Internal\Message
      * implementation must either *always* check its required fields, or *never*
      * check its required fields, regardless of whether or not the message has
      * been parsed.
-     * 
* - * optional bool lazy = 5 [default = false]; + * Generated from protobuf field optional bool lazy = 5 [default = false]; + * @return bool */ public function getLazy() { @@ -291,7 +273,6 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Should this field be parsed lazily?  Lazy applies only to message-type
      * fields.  It means that when the outer message is initially parsed, the
      * inner message's contents will not be parsed but instead stored in encoded
@@ -316,9 +297,10 @@ class FieldOptions extends \Google\Protobuf\Internal\Message
      * implementation must either *always* check its required fields, or *never*
      * check its required fields, regardless of whether or not the message has
      * been parsed.
-     * 
* - * optional bool lazy = 5 [default = false]; + * Generated from protobuf field optional bool lazy = 5 [default = false]; + * @param bool $var + * @return $this */ public function setLazy($var) { @@ -335,14 +317,13 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this field deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for accessors, or it will be completely ignored; in the very least, this
      * is a formalization for deprecating fields.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; + * @return bool */ public function getDeprecated() { @@ -350,14 +331,14 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this field deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for accessors, or it will be completely ignored; in the very least, this
      * is a formalization for deprecating fields.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; + * @param bool $var + * @return $this */ public function setDeprecated($var) { @@ -374,11 +355,10 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * For Google-internal migration only. Do not use.
-     * 
* - * optional bool weak = 10 [default = false]; + * Generated from protobuf field optional bool weak = 10 [default = false]; + * @return bool */ public function getWeak() { @@ -386,11 +366,11 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * For Google-internal migration only. Do not use.
-     * 
* - * optional bool weak = 10 [default = false]; + * Generated from protobuf field optional bool weak = 10 [default = false]; + * @param bool $var + * @return $this */ public function setWeak($var) { @@ -407,11 +387,10 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -419,11 +398,11 @@ class FieldOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/FieldOptions_CType.php b/php/src/Google/Protobuf/Internal/FieldOptions_CType.php index f59f20be..0f33072d 100644 --- a/php/src/Google/Protobuf/Internal/FieldOptions_CType.php +++ b/php/src/Google/Protobuf/Internal/FieldOptions_CType.php @@ -5,24 +5,22 @@ namespace Google\Protobuf\Internal; /** - * Protobuf enum google.protobuf.FieldOptions.CType + * Protobuf enum Google\Protobuf\Internal */ class FieldOptions_CType { /** - *
      * Default mode.
-     * 
* - * STRING = 0; + * Generated from protobuf enum STRING = 0; */ const STRING = 0; /** - * CORD = 1; + * Generated from protobuf enum CORD = 1; */ const CORD = 1; /** - * STRING_PIECE = 2; + * Generated from protobuf enum STRING_PIECE = 2; */ const STRING_PIECE = 2; } diff --git a/php/src/Google/Protobuf/Internal/FieldOptions_JSType.php b/php/src/Google/Protobuf/Internal/FieldOptions_JSType.php index 0c6995b7..73bdf3f2 100644 --- a/php/src/Google/Protobuf/Internal/FieldOptions_JSType.php +++ b/php/src/Google/Protobuf/Internal/FieldOptions_JSType.php @@ -5,32 +5,26 @@ namespace Google\Protobuf\Internal; /** - * Protobuf enum google.protobuf.FieldOptions.JSType + * Protobuf enum Google\Protobuf\Internal */ class FieldOptions_JSType { /** - *
      * Use the default type.
-     * 
* - * JS_NORMAL = 0; + * Generated from protobuf enum JS_NORMAL = 0; */ const JS_NORMAL = 0; /** - *
      * Use JavaScript strings.
-     * 
* - * JS_STRING = 1; + * Generated from protobuf enum JS_STRING = 1; */ const JS_STRING = 1; /** - *
      * Use JavaScript numbers.
-     * 
* - * JS_NUMBER = 2; + * Generated from protobuf enum JS_NUMBER = 2; */ const JS_NUMBER = 2; } diff --git a/php/src/Google/Protobuf/Internal/FileDescriptorProto.php b/php/src/Google/Protobuf/Internal/FileDescriptorProto.php index b229522a..3b1567d1 100644 --- a/php/src/Google/Protobuf/Internal/FileDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/FileDescriptorProto.php @@ -12,108 +12,90 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes a complete .proto file.
- * 
* - * Protobuf type google.protobuf.FileDescriptorProto + * Generated from protobuf message google.protobuf.FileDescriptorProto */ class FileDescriptorProto extends \Google\Protobuf\Internal\Message { /** - *
      * file name, relative to root of source tree
-     * 
* - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - *
      * e.g. "foo", "foo.bar", etc.
-     * 
* - * optional string package = 2; + * Generated from protobuf field optional string package = 2; */ private $package = ''; private $has_package = false; /** - *
      * Names of files imported by this file.
-     * 
* - * repeated string dependency = 3; + * Generated from protobuf field repeated string dependency = 3; */ private $dependency; private $has_dependency = false; /** - *
      * Indexes of the public imported files in the dependency list above.
-     * 
* - * repeated int32 public_dependency = 10; + * Generated from protobuf field repeated int32 public_dependency = 10; */ private $public_dependency; private $has_public_dependency = false; /** - *
      * Indexes of the weak imported files in the dependency list.
      * For Google-internal migration only. Do not use.
-     * 
* - * repeated int32 weak_dependency = 11; + * Generated from protobuf field repeated int32 weak_dependency = 11; */ private $weak_dependency; private $has_weak_dependency = false; /** - *
      * All top-level definitions in this file.
-     * 
* - * repeated .google.protobuf.DescriptorProto message_type = 4; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto message_type = 4; */ private $message_type; private $has_message_type = false; /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; + * Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ private $enum_type; private $has_enum_type = false; /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; + * Generated from protobuf field repeated .google.protobuf.ServiceDescriptorProto service = 6; */ private $service; private $has_service = false; /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 7; */ private $extension; private $has_extension = false; /** - * optional .google.protobuf.FileOptions options = 8; + * Generated from protobuf field optional .google.protobuf.FileOptions options = 8; */ private $options = null; private $has_options = false; /** - *
      * This field contains optional information about the original source code.
      * You may safely remove this entire field without harming runtime
      * functionality of the descriptors -- the information is needed only by
      * development tools.
-     * 
* - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; + * Generated from protobuf field optional .google.protobuf.SourceCodeInfo source_code_info = 9; */ private $source_code_info = null; private $has_source_code_info = false; /** - *
      * The syntax of the proto file.
      * The supported values are "proto2" and "proto3".
-     * 
* - * optional string syntax = 12; + * Generated from protobuf field optional string syntax = 12; */ private $syntax = ''; private $has_syntax = false; @@ -124,11 +106,10 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * file name, relative to root of source tree
-     * 
* - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -136,11 +117,11 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * file name, relative to root of source tree
-     * 
* - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -157,11 +138,10 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * e.g. "foo", "foo.bar", etc.
-     * 
* - * optional string package = 2; + * Generated from protobuf field optional string package = 2; + * @return string */ public function getPackage() { @@ -169,11 +149,11 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * e.g. "foo", "foo.bar", etc.
-     * 
* - * optional string package = 2; + * Generated from protobuf field optional string package = 2; + * @param string $var + * @return $this */ public function setPackage($var) { @@ -190,11 +170,10 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Names of files imported by this file.
-     * 
* - * repeated string dependency = 3; + * Generated from protobuf field repeated string dependency = 3; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getDependency() { @@ -202,11 +181,11 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Names of files imported by this file.
-     * 
* - * repeated string dependency = 3; + * Generated from protobuf field repeated string dependency = 3; + * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setDependency(&$var) { @@ -223,11 +202,10 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Indexes of the public imported files in the dependency list above.
-     * 
* - * repeated int32 public_dependency = 10; + * Generated from protobuf field repeated int32 public_dependency = 10; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getPublicDependency() { @@ -235,11 +213,11 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Indexes of the public imported files in the dependency list above.
-     * 
* - * repeated int32 public_dependency = 10; + * Generated from protobuf field repeated int32 public_dependency = 10; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setPublicDependency(&$var) { @@ -256,12 +234,11 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Indexes of the weak imported files in the dependency list.
      * For Google-internal migration only. Do not use.
-     * 
* - * repeated int32 weak_dependency = 11; + * Generated from protobuf field repeated int32 weak_dependency = 11; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getWeakDependency() { @@ -269,12 +246,12 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Indexes of the weak imported files in the dependency list.
      * For Google-internal migration only. Do not use.
-     * 
* - * repeated int32 weak_dependency = 11; + * Generated from protobuf field repeated int32 weak_dependency = 11; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setWeakDependency(&$var) { @@ -291,11 +268,10 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * All top-level definitions in this file.
-     * 
* - * repeated .google.protobuf.DescriptorProto message_type = 4; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto message_type = 4; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getMessageType() { @@ -303,11 +279,11 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * All top-level definitions in this file.
-     * 
* - * repeated .google.protobuf.DescriptorProto message_type = 4; + * Generated from protobuf field repeated .google.protobuf.DescriptorProto message_type = 4; + * @param \Google\Protobuf\Internal\DescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setMessageType(&$var) { @@ -324,7 +300,8 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; + * Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 5; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getEnumType() { @@ -332,7 +309,9 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; + * Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 5; + * @param \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setEnumType(&$var) { @@ -349,7 +328,8 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; + * Generated from protobuf field repeated .google.protobuf.ServiceDescriptorProto service = 6; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getService() { @@ -357,7 +337,9 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; + * Generated from protobuf field repeated .google.protobuf.ServiceDescriptorProto service = 6; + * @param \Google\Protobuf\Internal\ServiceDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setService(&$var) { @@ -374,7 +356,8 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 7; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getExtension() { @@ -382,7 +365,9 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; + * Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 7; + * @param \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setExtension(&$var) { @@ -399,7 +384,8 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FileOptions options = 8; + * Generated from protobuf field optional .google.protobuf.FileOptions options = 8; + * @return \Google\Protobuf\Internal\FileOptions */ public function getOptions() { @@ -407,7 +393,9 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FileOptions options = 8; + * Generated from protobuf field optional .google.protobuf.FileOptions options = 8; + * @param \Google\Protobuf\Internal\FileOptions $var + * @return $this */ public function setOptions(&$var) { @@ -424,14 +412,13 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * This field contains optional information about the original source code.
      * You may safely remove this entire field without harming runtime
      * functionality of the descriptors -- the information is needed only by
      * development tools.
-     * 
* - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; + * Generated from protobuf field optional .google.protobuf.SourceCodeInfo source_code_info = 9; + * @return \Google\Protobuf\Internal\SourceCodeInfo */ public function getSourceCodeInfo() { @@ -439,14 +426,14 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * This field contains optional information about the original source code.
      * You may safely remove this entire field without harming runtime
      * functionality of the descriptors -- the information is needed only by
      * development tools.
-     * 
* - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; + * Generated from protobuf field optional .google.protobuf.SourceCodeInfo source_code_info = 9; + * @param \Google\Protobuf\Internal\SourceCodeInfo $var + * @return $this */ public function setSourceCodeInfo(&$var) { @@ -463,12 +450,11 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * The syntax of the proto file.
      * The supported values are "proto2" and "proto3".
-     * 
* - * optional string syntax = 12; + * Generated from protobuf field optional string syntax = 12; + * @return string */ public function getSyntax() { @@ -476,12 +462,12 @@ class FileDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * The syntax of the proto file.
      * The supported values are "proto2" and "proto3".
-     * 
* - * optional string syntax = 12; + * Generated from protobuf field optional string syntax = 12; + * @param string $var + * @return $this */ public function setSyntax($var) { diff --git a/php/src/Google/Protobuf/Internal/FileDescriptorSet.php b/php/src/Google/Protobuf/Internal/FileDescriptorSet.php index 8271ee66..591e2a81 100644 --- a/php/src/Google/Protobuf/Internal/FileDescriptorSet.php +++ b/php/src/Google/Protobuf/Internal/FileDescriptorSet.php @@ -12,17 +12,15 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * The protocol compiler can output a FileDescriptorSet containing the .proto
  * files it parses.
- * 
* - * Protobuf type google.protobuf.FileDescriptorSet + * Generated from protobuf message google.protobuf.FileDescriptorSet */ class FileDescriptorSet extends \Google\Protobuf\Internal\Message { /** - * repeated .google.protobuf.FileDescriptorProto file = 1; + * Generated from protobuf field repeated .google.protobuf.FileDescriptorProto file = 1; */ private $file; private $has_file = false; @@ -33,7 +31,8 @@ class FileDescriptorSet extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FileDescriptorProto file = 1; + * Generated from protobuf field repeated .google.protobuf.FileDescriptorProto file = 1; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getFile() { @@ -41,7 +40,9 @@ class FileDescriptorSet extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.FileDescriptorProto file = 1; + * Generated from protobuf field repeated .google.protobuf.FileDescriptorProto file = 1; + * @param \Google\Protobuf\Internal\FileDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setFile(&$var) { diff --git a/php/src/Google/Protobuf/Internal/FileOptions.php b/php/src/Google/Protobuf/Internal/FileOptions.php index 332da3dc..2202102b 100644 --- a/php/src/Google/Protobuf/Internal/FileOptions.php +++ b/php/src/Google/Protobuf/Internal/FileOptions.php @@ -12,92 +12,79 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.FileOptions + * Generated from protobuf message google.protobuf.FileOptions */ class FileOptions extends \Google\Protobuf\Internal\Message { /** - *
      * Sets the Java package where classes generated from this .proto will be
      * placed.  By default, the proto package is used, but this is often
      * inappropriate because proto packages do not normally start with backwards
      * domain names.
-     * 
* - * optional string java_package = 1; + * Generated from protobuf field optional string java_package = 1; */ private $java_package = ''; private $has_java_package = false; /** - *
      * If set, all the classes from the .proto file are wrapped in a single
      * outer class with the given name.  This applies to both Proto1
      * (equivalent to the old "--one_java_file" option) and Proto2 (where
      * a .proto always translates to a single class, but you may want to
      * explicitly choose the class name).
-     * 
* - * optional string java_outer_classname = 8; + * Generated from protobuf field optional string java_outer_classname = 8; */ private $java_outer_classname = ''; private $has_java_outer_classname = false; /** - *
      * If set true, then the Java code generator will generate a separate .java
      * file for each top-level message, enum, and service defined in the .proto
      * file.  Thus, these types will *not* be nested inside the outer class
      * named by java_outer_classname.  However, the outer class will still be
      * generated to contain the file's getDescriptor() method as well as any
      * top-level extensions defined in the file.
-     * 
* - * optional bool java_multiple_files = 10 [default = false]; + * Generated from protobuf field optional bool java_multiple_files = 10 [default = false]; */ private $java_multiple_files = false; private $has_java_multiple_files = false; /** - *
      * This option does nothing.
-     * 
* - * optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + * Generated from protobuf field optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */ private $java_generate_equals_and_hash = false; private $has_java_generate_equals_and_hash = false; /** - *
      * If set true, then the Java2 code generator will generate code that
      * throws an exception whenever an attempt is made to assign a non-UTF-8
      * byte sequence to a string field.
      * Message reflection will do the same.
      * However, an extension field still accepts non-UTF-8 byte sequences.
      * This option has no effect on when used with the lite runtime.
-     * 
* - * optional bool java_string_check_utf8 = 27 [default = false]; + * Generated from protobuf field optional bool java_string_check_utf8 = 27 [default = false]; */ private $java_string_check_utf8 = false; private $has_java_string_check_utf8 = false; /** - * optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; + * Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; */ private $optimize_for = 0; private $has_optimize_for = false; /** - *
      * Sets the Go package where structs generated from this .proto will be
      * placed. If omitted, the Go package will be derived from the following:
      *   - The basename of the package import path, if provided.
      *   - Otherwise, the package statement in the .proto file, if present.
      *   - Otherwise, the basename of the .proto file, without extension.
-     * 
* - * optional string go_package = 11; + * Generated from protobuf field optional string go_package = 11; */ private $go_package = ''; private $has_go_package = false; /** - *
      * Should generic services be generated in each language?  "Generic" services
      * are not specific to any particular RPC system.  They are generated by the
      * main code generators in each language (without additional plugins).
@@ -107,102 +94,85 @@ class FileOptions extends \Google\Protobuf\Internal\Message
      * that generate code specific to your particular RPC system.  Therefore,
      * these default to false.  Old code which depends on generic services should
      * explicitly set them to true.
-     * 
* - * optional bool cc_generic_services = 16 [default = false]; + * Generated from protobuf field optional bool cc_generic_services = 16 [default = false]; */ private $cc_generic_services = false; private $has_cc_generic_services = false; /** - * optional bool java_generic_services = 17 [default = false]; + * Generated from protobuf field optional bool java_generic_services = 17 [default = false]; */ private $java_generic_services = false; private $has_java_generic_services = false; /** - * optional bool py_generic_services = 18 [default = false]; + * Generated from protobuf field optional bool py_generic_services = 18 [default = false]; */ private $py_generic_services = false; private $has_py_generic_services = false; /** - *
      * Is this file deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for everything in the file, or it will be completely ignored; in the very
      * least, this is a formalization for deprecating files.
-     * 
* - * optional bool deprecated = 23 [default = false]; + * Generated from protobuf field optional bool deprecated = 23 [default = false]; */ private $deprecated = false; private $has_deprecated = false; /** - *
      * Enables the use of arenas for the proto messages in this file. This applies
      * only to generated classes for C++.
-     * 
* - * optional bool cc_enable_arenas = 31 [default = false]; + * Generated from protobuf field optional bool cc_enable_arenas = 31 [default = false]; */ private $cc_enable_arenas = false; private $has_cc_enable_arenas = false; /** - *
      * Sets the objective c class prefix which is prepended to all objective c
      * generated classes from this .proto. There is no default.
-     * 
* - * optional string objc_class_prefix = 36; + * Generated from protobuf field optional string objc_class_prefix = 36; */ private $objc_class_prefix = ''; private $has_objc_class_prefix = false; /** - *
      * Namespace for generated classes; defaults to the package.
-     * 
* - * optional string csharp_namespace = 37; + * Generated from protobuf field optional string csharp_namespace = 37; */ private $csharp_namespace = ''; private $has_csharp_namespace = false; /** - *
      * By default Swift generators will take the proto package and CamelCase it
      * replacing '.' with underscore and use that to prefix the types/symbols
      * defined. When this options is provided, they will use this value instead
      * to prefix the types/symbols defined.
-     * 
* - * optional string swift_prefix = 39; + * Generated from protobuf field optional string swift_prefix = 39; */ private $swift_prefix = ''; private $has_swift_prefix = false; /** - *
      * Sets the php class prefix which is prepended to all php generated classes
      * from this .proto. Default is empty.
-     * 
* - * optional string php_class_prefix = 40; + * Generated from protobuf field optional string php_class_prefix = 40; */ private $php_class_prefix = ''; private $has_php_class_prefix = false; /** - *
      * Use this option to change the namespace of php generated classes. Default
      * is empty. When this option is empty, the package name will be used for
      * determining the namespace.
-     * 
* - * optional string php_namespace = 41; + * Generated from protobuf field optional string php_namespace = 41; */ private $php_namespace = ''; private $has_php_namespace = false; /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -213,14 +183,13 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the Java package where classes generated from this .proto will be
      * placed.  By default, the proto package is used, but this is often
      * inappropriate because proto packages do not normally start with backwards
      * domain names.
-     * 
* - * optional string java_package = 1; + * Generated from protobuf field optional string java_package = 1; + * @return string */ public function getJavaPackage() { @@ -228,14 +197,14 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the Java package where classes generated from this .proto will be
      * placed.  By default, the proto package is used, but this is often
      * inappropriate because proto packages do not normally start with backwards
      * domain names.
-     * 
* - * optional string java_package = 1; + * Generated from protobuf field optional string java_package = 1; + * @param string $var + * @return $this */ public function setJavaPackage($var) { @@ -252,15 +221,14 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * If set, all the classes from the .proto file are wrapped in a single
      * outer class with the given name.  This applies to both Proto1
      * (equivalent to the old "--one_java_file" option) and Proto2 (where
      * a .proto always translates to a single class, but you may want to
      * explicitly choose the class name).
-     * 
* - * optional string java_outer_classname = 8; + * Generated from protobuf field optional string java_outer_classname = 8; + * @return string */ public function getJavaOuterClassname() { @@ -268,15 +236,15 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * If set, all the classes from the .proto file are wrapped in a single
      * outer class with the given name.  This applies to both Proto1
      * (equivalent to the old "--one_java_file" option) and Proto2 (where
      * a .proto always translates to a single class, but you may want to
      * explicitly choose the class name).
-     * 
* - * optional string java_outer_classname = 8; + * Generated from protobuf field optional string java_outer_classname = 8; + * @param string $var + * @return $this */ public function setJavaOuterClassname($var) { @@ -293,16 +261,15 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * If set true, then the Java code generator will generate a separate .java
      * file for each top-level message, enum, and service defined in the .proto
      * file.  Thus, these types will *not* be nested inside the outer class
      * named by java_outer_classname.  However, the outer class will still be
      * generated to contain the file's getDescriptor() method as well as any
      * top-level extensions defined in the file.
-     * 
* - * optional bool java_multiple_files = 10 [default = false]; + * Generated from protobuf field optional bool java_multiple_files = 10 [default = false]; + * @return bool */ public function getJavaMultipleFiles() { @@ -310,16 +277,16 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * If set true, then the Java code generator will generate a separate .java
      * file for each top-level message, enum, and service defined in the .proto
      * file.  Thus, these types will *not* be nested inside the outer class
      * named by java_outer_classname.  However, the outer class will still be
      * generated to contain the file's getDescriptor() method as well as any
      * top-level extensions defined in the file.
-     * 
* - * optional bool java_multiple_files = 10 [default = false]; + * Generated from protobuf field optional bool java_multiple_files = 10 [default = false]; + * @param bool $var + * @return $this */ public function setJavaMultipleFiles($var) { @@ -336,11 +303,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * This option does nothing.
-     * 
* - * optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + * Generated from protobuf field optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + * @return bool */ public function getJavaGenerateEqualsAndHash() { @@ -348,11 +314,11 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * This option does nothing.
-     * 
* - * optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + * Generated from protobuf field optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + * @param bool $var + * @return $this */ public function setJavaGenerateEqualsAndHash($var) { @@ -369,16 +335,15 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * If set true, then the Java2 code generator will generate code that
      * throws an exception whenever an attempt is made to assign a non-UTF-8
      * byte sequence to a string field.
      * Message reflection will do the same.
      * However, an extension field still accepts non-UTF-8 byte sequences.
      * This option has no effect on when used with the lite runtime.
-     * 
* - * optional bool java_string_check_utf8 = 27 [default = false]; + * Generated from protobuf field optional bool java_string_check_utf8 = 27 [default = false]; + * @return bool */ public function getJavaStringCheckUtf8() { @@ -386,16 +351,16 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * If set true, then the Java2 code generator will generate code that
      * throws an exception whenever an attempt is made to assign a non-UTF-8
      * byte sequence to a string field.
      * Message reflection will do the same.
      * However, an extension field still accepts non-UTF-8 byte sequences.
      * This option has no effect on when used with the lite runtime.
-     * 
* - * optional bool java_string_check_utf8 = 27 [default = false]; + * Generated from protobuf field optional bool java_string_check_utf8 = 27 [default = false]; + * @param bool $var + * @return $this */ public function setJavaStringCheckUtf8($var) { @@ -412,7 +377,8 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; + * Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; + * @return int */ public function getOptimizeFor() { @@ -420,7 +386,9 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; + * Generated from protobuf field optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; + * @param int $var + * @return $this */ public function setOptimizeFor($var) { @@ -437,15 +405,14 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the Go package where structs generated from this .proto will be
      * placed. If omitted, the Go package will be derived from the following:
      *   - The basename of the package import path, if provided.
      *   - Otherwise, the package statement in the .proto file, if present.
      *   - Otherwise, the basename of the .proto file, without extension.
-     * 
* - * optional string go_package = 11; + * Generated from protobuf field optional string go_package = 11; + * @return string */ public function getGoPackage() { @@ -453,15 +420,15 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the Go package where structs generated from this .proto will be
      * placed. If omitted, the Go package will be derived from the following:
      *   - The basename of the package import path, if provided.
      *   - Otherwise, the package statement in the .proto file, if present.
      *   - Otherwise, the basename of the .proto file, without extension.
-     * 
* - * optional string go_package = 11; + * Generated from protobuf field optional string go_package = 11; + * @param string $var + * @return $this */ public function setGoPackage($var) { @@ -478,7 +445,6 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Should generic services be generated in each language?  "Generic" services
      * are not specific to any particular RPC system.  They are generated by the
      * main code generators in each language (without additional plugins).
@@ -488,9 +454,9 @@ class FileOptions extends \Google\Protobuf\Internal\Message
      * that generate code specific to your particular RPC system.  Therefore,
      * these default to false.  Old code which depends on generic services should
      * explicitly set them to true.
-     * 
* - * optional bool cc_generic_services = 16 [default = false]; + * Generated from protobuf field optional bool cc_generic_services = 16 [default = false]; + * @return bool */ public function getCcGenericServices() { @@ -498,7 +464,6 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Should generic services be generated in each language?  "Generic" services
      * are not specific to any particular RPC system.  They are generated by the
      * main code generators in each language (without additional plugins).
@@ -508,9 +473,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
      * that generate code specific to your particular RPC system.  Therefore,
      * these default to false.  Old code which depends on generic services should
      * explicitly set them to true.
-     * 
* - * optional bool cc_generic_services = 16 [default = false]; + * Generated from protobuf field optional bool cc_generic_services = 16 [default = false]; + * @param bool $var + * @return $this */ public function setCcGenericServices($var) { @@ -527,7 +493,8 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - * optional bool java_generic_services = 17 [default = false]; + * Generated from protobuf field optional bool java_generic_services = 17 [default = false]; + * @return bool */ public function getJavaGenericServices() { @@ -535,7 +502,9 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - * optional bool java_generic_services = 17 [default = false]; + * Generated from protobuf field optional bool java_generic_services = 17 [default = false]; + * @param bool $var + * @return $this */ public function setJavaGenericServices($var) { @@ -552,7 +521,8 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - * optional bool py_generic_services = 18 [default = false]; + * Generated from protobuf field optional bool py_generic_services = 18 [default = false]; + * @return bool */ public function getPyGenericServices() { @@ -560,7 +530,9 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - * optional bool py_generic_services = 18 [default = false]; + * Generated from protobuf field optional bool py_generic_services = 18 [default = false]; + * @param bool $var + * @return $this */ public function setPyGenericServices($var) { @@ -577,14 +549,13 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this file deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for everything in the file, or it will be completely ignored; in the very
      * least, this is a formalization for deprecating files.
-     * 
* - * optional bool deprecated = 23 [default = false]; + * Generated from protobuf field optional bool deprecated = 23 [default = false]; + * @return bool */ public function getDeprecated() { @@ -592,14 +563,14 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this file deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for everything in the file, or it will be completely ignored; in the very
      * least, this is a formalization for deprecating files.
-     * 
* - * optional bool deprecated = 23 [default = false]; + * Generated from protobuf field optional bool deprecated = 23 [default = false]; + * @param bool $var + * @return $this */ public function setDeprecated($var) { @@ -616,12 +587,11 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Enables the use of arenas for the proto messages in this file. This applies
      * only to generated classes for C++.
-     * 
* - * optional bool cc_enable_arenas = 31 [default = false]; + * Generated from protobuf field optional bool cc_enable_arenas = 31 [default = false]; + * @return bool */ public function getCcEnableArenas() { @@ -629,12 +599,12 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Enables the use of arenas for the proto messages in this file. This applies
      * only to generated classes for C++.
-     * 
* - * optional bool cc_enable_arenas = 31 [default = false]; + * Generated from protobuf field optional bool cc_enable_arenas = 31 [default = false]; + * @param bool $var + * @return $this */ public function setCcEnableArenas($var) { @@ -651,12 +621,11 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the objective c class prefix which is prepended to all objective c
      * generated classes from this .proto. There is no default.
-     * 
* - * optional string objc_class_prefix = 36; + * Generated from protobuf field optional string objc_class_prefix = 36; + * @return string */ public function getObjcClassPrefix() { @@ -664,12 +633,12 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the objective c class prefix which is prepended to all objective c
      * generated classes from this .proto. There is no default.
-     * 
* - * optional string objc_class_prefix = 36; + * Generated from protobuf field optional string objc_class_prefix = 36; + * @param string $var + * @return $this */ public function setObjcClassPrefix($var) { @@ -686,11 +655,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Namespace for generated classes; defaults to the package.
-     * 
* - * optional string csharp_namespace = 37; + * Generated from protobuf field optional string csharp_namespace = 37; + * @return string */ public function getCsharpNamespace() { @@ -698,11 +666,11 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Namespace for generated classes; defaults to the package.
-     * 
* - * optional string csharp_namespace = 37; + * Generated from protobuf field optional string csharp_namespace = 37; + * @param string $var + * @return $this */ public function setCsharpNamespace($var) { @@ -719,14 +687,13 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * By default Swift generators will take the proto package and CamelCase it
      * replacing '.' with underscore and use that to prefix the types/symbols
      * defined. When this options is provided, they will use this value instead
      * to prefix the types/symbols defined.
-     * 
* - * optional string swift_prefix = 39; + * Generated from protobuf field optional string swift_prefix = 39; + * @return string */ public function getSwiftPrefix() { @@ -734,14 +701,14 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * By default Swift generators will take the proto package and CamelCase it
      * replacing '.' with underscore and use that to prefix the types/symbols
      * defined. When this options is provided, they will use this value instead
      * to prefix the types/symbols defined.
-     * 
* - * optional string swift_prefix = 39; + * Generated from protobuf field optional string swift_prefix = 39; + * @param string $var + * @return $this */ public function setSwiftPrefix($var) { @@ -758,12 +725,11 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the php class prefix which is prepended to all php generated classes
      * from this .proto. Default is empty.
-     * 
* - * optional string php_class_prefix = 40; + * Generated from protobuf field optional string php_class_prefix = 40; + * @return string */ public function getPhpClassPrefix() { @@ -771,12 +737,12 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Sets the php class prefix which is prepended to all php generated classes
      * from this .proto. Default is empty.
-     * 
* - * optional string php_class_prefix = 40; + * Generated from protobuf field optional string php_class_prefix = 40; + * @param string $var + * @return $this */ public function setPhpClassPrefix($var) { @@ -793,13 +759,12 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Use this option to change the namespace of php generated classes. Default
      * is empty. When this option is empty, the package name will be used for
      * determining the namespace.
-     * 
* - * optional string php_namespace = 41; + * Generated from protobuf field optional string php_namespace = 41; + * @return string */ public function getPhpNamespace() { @@ -807,13 +772,13 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Use this option to change the namespace of php generated classes. Default
      * is empty. When this option is empty, the package name will be used for
      * determining the namespace.
-     * 
* - * optional string php_namespace = 41; + * Generated from protobuf field optional string php_namespace = 41; + * @param string $var + * @return $this */ public function setPhpNamespace($var) { @@ -830,11 +795,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -842,11 +806,11 @@ class FileOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php b/php/src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php index b550e7f1..4dd56ef8 100644 --- a/php/src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php +++ b/php/src/Google/Protobuf/Internal/FileOptions_OptimizeMode.php @@ -5,36 +5,28 @@ namespace Google\Protobuf\Internal; /** - *
  * Generated classes can be optimized for speed or code size.
- * 
* - * Protobuf enum google.protobuf.FileOptions.OptimizeMode + * Protobuf enum Google\Protobuf\Internal */ class FileOptions_OptimizeMode { /** - *
      * Generate complete code for parsing, serialization,
-     * 
* - * SPEED = 1; + * Generated from protobuf enum SPEED = 1; */ const SPEED = 1; /** - *
      * etc.
-     * 
* - * CODE_SIZE = 2; + * Generated from protobuf enum CODE_SIZE = 2; */ const CODE_SIZE = 2; /** - *
      * Generate code using MessageLite and the lite runtime.
-     * 
* - * LITE_RUNTIME = 3; + * Generated from protobuf enum LITE_RUNTIME = 3; */ const LITE_RUNTIME = 3; } diff --git a/php/src/Google/Protobuf/Internal/GeneratedCodeInfo.php b/php/src/Google/Protobuf/Internal/GeneratedCodeInfo.php index 1e666f31..35b47526 100644 --- a/php/src/Google/Protobuf/Internal/GeneratedCodeInfo.php +++ b/php/src/Google/Protobuf/Internal/GeneratedCodeInfo.php @@ -12,23 +12,19 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes the relationship between generated code and its original source
  * file. A GeneratedCodeInfo message is associated with only one generated
  * source file, but may contain references to different source .proto files.
- * 
* - * Protobuf type google.protobuf.GeneratedCodeInfo + * Generated from protobuf message google.protobuf.GeneratedCodeInfo */ class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message { /** - *
      * An Annotation connects some span of text in generated code to an element
      * of its generating .proto file.
-     * 
* - * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + * Generated from protobuf field repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */ private $annotation; private $has_annotation = false; @@ -39,12 +35,11 @@ class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message } /** - *
      * An Annotation connects some span of text in generated code to an element
      * of its generating .proto file.
-     * 
* - * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + * Generated from protobuf field repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getAnnotation() { @@ -52,12 +47,12 @@ class GeneratedCodeInfo extends \Google\Protobuf\Internal\Message } /** - *
      * An Annotation connects some span of text in generated code to an element
      * of its generating .proto file.
-     * 
* - * repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + * Generated from protobuf field repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + * @param \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setAnnotation(&$var) { diff --git a/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php b/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php index 8d227e1c..c2e22e89 100644 --- a/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php +++ b/php/src/Google/Protobuf/Internal/GeneratedCodeInfo_Annotation.php @@ -12,47 +12,39 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.GeneratedCodeInfo.Annotation + * Generated from protobuf message google.protobuf.GeneratedCodeInfo.Annotation */ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message { /** - *
      * Identifies the element in the original source .proto file. This field
      * is formatted the same as SourceCodeInfo.Location.path.
-     * 
* - * repeated int32 path = 1 [packed = true]; + * Generated from protobuf field repeated int32 path = 1 [packed = true]; */ private $path; private $has_path = false; /** - *
      * Identifies the filesystem path to the original source .proto.
-     * 
* - * optional string source_file = 2; + * Generated from protobuf field optional string source_file = 2; */ private $source_file = ''; private $has_source_file = false; /** - *
      * Identifies the starting offset in bytes in the generated code
      * that relates to the identified object.
-     * 
* - * optional int32 begin = 3; + * Generated from protobuf field optional int32 begin = 3; */ private $begin = 0; private $has_begin = false; /** - *
      * Identifies the ending offset in bytes in the generated code that
      * relates to the identified offset. The end offset should be one past
      * the last relevant byte (so the length of the text = end - begin).
-     * 
* - * optional int32 end = 4; + * Generated from protobuf field optional int32 end = 4; */ private $end = 0; private $has_end = false; @@ -63,12 +55,11 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the element in the original source .proto file. This field
      * is formatted the same as SourceCodeInfo.Location.path.
-     * 
* - * repeated int32 path = 1 [packed = true]; + * Generated from protobuf field repeated int32 path = 1 [packed = true]; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getPath() { @@ -76,12 +67,12 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the element in the original source .proto file. This field
      * is formatted the same as SourceCodeInfo.Location.path.
-     * 
* - * repeated int32 path = 1 [packed = true]; + * Generated from protobuf field repeated int32 path = 1 [packed = true]; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setPath(&$var) { @@ -98,11 +89,10 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the filesystem path to the original source .proto.
-     * 
* - * optional string source_file = 2; + * Generated from protobuf field optional string source_file = 2; + * @return string */ public function getSourceFile() { @@ -110,11 +100,11 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the filesystem path to the original source .proto.
-     * 
* - * optional string source_file = 2; + * Generated from protobuf field optional string source_file = 2; + * @param string $var + * @return $this */ public function setSourceFile($var) { @@ -131,12 +121,11 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the starting offset in bytes in the generated code
      * that relates to the identified object.
-     * 
* - * optional int32 begin = 3; + * Generated from protobuf field optional int32 begin = 3; + * @return int */ public function getBegin() { @@ -144,12 +133,12 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the starting offset in bytes in the generated code
      * that relates to the identified object.
-     * 
* - * optional int32 begin = 3; + * Generated from protobuf field optional int32 begin = 3; + * @param int $var + * @return $this */ public function setBegin($var) { @@ -166,13 +155,12 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the ending offset in bytes in the generated code that
      * relates to the identified offset. The end offset should be one past
      * the last relevant byte (so the length of the text = end - begin).
-     * 
* - * optional int32 end = 4; + * Generated from protobuf field optional int32 end = 4; + * @return int */ public function getEnd() { @@ -180,13 +168,13 @@ class GeneratedCodeInfo_Annotation extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies the ending offset in bytes in the generated code that
      * relates to the identified offset. The end offset should be one past
      * the last relevant byte (so the length of the text = end - begin).
-     * 
* - * optional int32 end = 4; + * Generated from protobuf field optional int32 end = 4; + * @param int $var + * @return $this */ public function setEnd($var) { diff --git a/php/src/Google/Protobuf/Internal/MessageOptions.php b/php/src/Google/Protobuf/Internal/MessageOptions.php index a5835358..3677ca38 100644 --- a/php/src/Google/Protobuf/Internal/MessageOptions.php +++ b/php/src/Google/Protobuf/Internal/MessageOptions.php @@ -12,12 +12,11 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.MessageOptions + * Generated from protobuf message google.protobuf.MessageOptions */ class MessageOptions extends \Google\Protobuf\Internal\Message { /** - *
      * Set true to use the old proto1 MessageSet wire format for extensions.
      * This is provided for backwards-compatibility with the MessageSet wire
      * format.  You should not use this for any other reason:  It's less
@@ -33,41 +32,35 @@ class MessageOptions extends \Google\Protobuf\Internal\Message
      * be int32s, enums, or repeated messages.
      * Because this is an option, the above two restrictions are not enforced by
      * the protocol compiler.
-     * 
* - * optional bool message_set_wire_format = 1 [default = false]; + * Generated from protobuf field optional bool message_set_wire_format = 1 [default = false]; */ private $message_set_wire_format = false; private $has_message_set_wire_format = false; /** - *
      * Disables the generation of the standard "descriptor()" accessor, which can
      * conflict with a field of the same name.  This is meant to make migration
      * from proto1 easier; new code should avoid fields named "descriptor".
-     * 
* - * optional bool no_standard_descriptor_accessor = 2 [default = false]; + * Generated from protobuf field optional bool no_standard_descriptor_accessor = 2 [default = false]; */ private $no_standard_descriptor_accessor = false; private $has_no_standard_descriptor_accessor = false; /** - *
      * Is this message deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the message, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating messages.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; */ private $deprecated = false; private $has_deprecated = false; /** - *
      * Whether the message is an automatically generated map entry type for the
      * maps field.
      * For maps fields:
-     *     map<KeyType, ValueType> map_field = 1;
+     *     map map_field = 1;
      * The parsed descriptor looks like:
      *     message MapFieldEntry {
      *         option map_entry = true;
@@ -82,18 +75,15 @@ class MessageOptions extends \Google\Protobuf\Internal\Message
      * NOTE: Do not set the option in .proto files. Always use the maps syntax
      * instead. The option should only be implicitly set by the proto compiler
      * parser.
-     * 
* - * optional bool map_entry = 7; + * Generated from protobuf field optional bool map_entry = 7; */ private $map_entry = false; private $has_map_entry = false; /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -104,7 +94,6 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Set true to use the old proto1 MessageSet wire format for extensions.
      * This is provided for backwards-compatibility with the MessageSet wire
      * format.  You should not use this for any other reason:  It's less
@@ -120,9 +109,9 @@ class MessageOptions extends \Google\Protobuf\Internal\Message
      * be int32s, enums, or repeated messages.
      * Because this is an option, the above two restrictions are not enforced by
      * the protocol compiler.
-     * 
* - * optional bool message_set_wire_format = 1 [default = false]; + * Generated from protobuf field optional bool message_set_wire_format = 1 [default = false]; + * @return bool */ public function getMessageSetWireFormat() { @@ -130,7 +119,6 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Set true to use the old proto1 MessageSet wire format for extensions.
      * This is provided for backwards-compatibility with the MessageSet wire
      * format.  You should not use this for any other reason:  It's less
@@ -146,9 +134,10 @@ class MessageOptions extends \Google\Protobuf\Internal\Message
      * be int32s, enums, or repeated messages.
      * Because this is an option, the above two restrictions are not enforced by
      * the protocol compiler.
-     * 
* - * optional bool message_set_wire_format = 1 [default = false]; + * Generated from protobuf field optional bool message_set_wire_format = 1 [default = false]; + * @param bool $var + * @return $this */ public function setMessageSetWireFormat($var) { @@ -165,13 +154,12 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Disables the generation of the standard "descriptor()" accessor, which can
      * conflict with a field of the same name.  This is meant to make migration
      * from proto1 easier; new code should avoid fields named "descriptor".
-     * 
* - * optional bool no_standard_descriptor_accessor = 2 [default = false]; + * Generated from protobuf field optional bool no_standard_descriptor_accessor = 2 [default = false]; + * @return bool */ public function getNoStandardDescriptorAccessor() { @@ -179,13 +167,13 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Disables the generation of the standard "descriptor()" accessor, which can
      * conflict with a field of the same name.  This is meant to make migration
      * from proto1 easier; new code should avoid fields named "descriptor".
-     * 
* - * optional bool no_standard_descriptor_accessor = 2 [default = false]; + * Generated from protobuf field optional bool no_standard_descriptor_accessor = 2 [default = false]; + * @param bool $var + * @return $this */ public function setNoStandardDescriptorAccessor($var) { @@ -202,14 +190,13 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this message deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the message, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating messages.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; + * @return bool */ public function getDeprecated() { @@ -217,14 +204,14 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this message deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the message, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating messages.
-     * 
* - * optional bool deprecated = 3 [default = false]; + * Generated from protobuf field optional bool deprecated = 3 [default = false]; + * @param bool $var + * @return $this */ public function setDeprecated($var) { @@ -241,11 +228,10 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Whether the message is an automatically generated map entry type for the
      * maps field.
      * For maps fields:
-     *     map<KeyType, ValueType> map_field = 1;
+     *     map map_field = 1;
      * The parsed descriptor looks like:
      *     message MapFieldEntry {
      *         option map_entry = true;
@@ -260,9 +246,9 @@ class MessageOptions extends \Google\Protobuf\Internal\Message
      * NOTE: Do not set the option in .proto files. Always use the maps syntax
      * instead. The option should only be implicitly set by the proto compiler
      * parser.
-     * 
* - * optional bool map_entry = 7; + * Generated from protobuf field optional bool map_entry = 7; + * @return bool */ public function getMapEntry() { @@ -270,11 +256,10 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Whether the message is an automatically generated map entry type for the
      * maps field.
      * For maps fields:
-     *     map<KeyType, ValueType> map_field = 1;
+     *     map map_field = 1;
      * The parsed descriptor looks like:
      *     message MapFieldEntry {
      *         option map_entry = true;
@@ -289,9 +274,10 @@ class MessageOptions extends \Google\Protobuf\Internal\Message
      * NOTE: Do not set the option in .proto files. Always use the maps syntax
      * instead. The option should only be implicitly set by the proto compiler
      * parser.
-     * 
* - * optional bool map_entry = 7; + * Generated from protobuf field optional bool map_entry = 7; + * @param bool $var + * @return $this */ public function setMapEntry($var) { @@ -308,11 +294,10 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -320,11 +305,11 @@ class MessageOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/MethodDescriptorProto.php b/php/src/Google/Protobuf/Internal/MethodDescriptorProto.php index c3f9f064..69c25b69 100644 --- a/php/src/Google/Protobuf/Internal/MethodDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/MethodDescriptorProto.php @@ -12,54 +12,46 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes a method of a service.
- * 
* - * Protobuf type google.protobuf.MethodDescriptorProto + * Generated from protobuf message google.protobuf.MethodDescriptorProto */ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message { /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - *
      * Input and output type names.  These are resolved in the same way as
      * FieldDescriptorProto.type_name, but must refer to a message type.
-     * 
* - * optional string input_type = 2; + * Generated from protobuf field optional string input_type = 2; */ private $input_type = ''; private $has_input_type = false; /** - * optional string output_type = 3; + * Generated from protobuf field optional string output_type = 3; */ private $output_type = ''; private $has_output_type = false; /** - * optional .google.protobuf.MethodOptions options = 4; + * Generated from protobuf field optional .google.protobuf.MethodOptions options = 4; */ private $options = null; private $has_options = false; /** - *
      * Identifies if client streams multiple client messages
-     * 
* - * optional bool client_streaming = 5 [default = false]; + * Generated from protobuf field optional bool client_streaming = 5 [default = false]; */ private $client_streaming = false; private $has_client_streaming = false; /** - *
      * Identifies if server streams multiple server messages
-     * 
* - * optional bool server_streaming = 6 [default = false]; + * Generated from protobuf field optional bool server_streaming = 6 [default = false]; */ private $server_streaming = false; private $has_server_streaming = false; @@ -70,7 +62,8 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -78,7 +71,9 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -95,12 +90,11 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Input and output type names.  These are resolved in the same way as
      * FieldDescriptorProto.type_name, but must refer to a message type.
-     * 
* - * optional string input_type = 2; + * Generated from protobuf field optional string input_type = 2; + * @return string */ public function getInputType() { @@ -108,12 +102,12 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Input and output type names.  These are resolved in the same way as
      * FieldDescriptorProto.type_name, but must refer to a message type.
-     * 
* - * optional string input_type = 2; + * Generated from protobuf field optional string input_type = 2; + * @param string $var + * @return $this */ public function setInputType($var) { @@ -130,7 +124,8 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string output_type = 3; + * Generated from protobuf field optional string output_type = 3; + * @return string */ public function getOutputType() { @@ -138,7 +133,9 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string output_type = 3; + * Generated from protobuf field optional string output_type = 3; + * @param string $var + * @return $this */ public function setOutputType($var) { @@ -155,7 +152,8 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.MethodOptions options = 4; + * Generated from protobuf field optional .google.protobuf.MethodOptions options = 4; + * @return \Google\Protobuf\Internal\MethodOptions */ public function getOptions() { @@ -163,7 +161,9 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.MethodOptions options = 4; + * Generated from protobuf field optional .google.protobuf.MethodOptions options = 4; + * @param \Google\Protobuf\Internal\MethodOptions $var + * @return $this */ public function setOptions(&$var) { @@ -180,11 +180,10 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies if client streams multiple client messages
-     * 
* - * optional bool client_streaming = 5 [default = false]; + * Generated from protobuf field optional bool client_streaming = 5 [default = false]; + * @return bool */ public function getClientStreaming() { @@ -192,11 +191,11 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies if client streams multiple client messages
-     * 
* - * optional bool client_streaming = 5 [default = false]; + * Generated from protobuf field optional bool client_streaming = 5 [default = false]; + * @param bool $var + * @return $this */ public function setClientStreaming($var) { @@ -213,11 +212,10 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies if server streams multiple server messages
-     * 
* - * optional bool server_streaming = 6 [default = false]; + * Generated from protobuf field optional bool server_streaming = 6 [default = false]; + * @return bool */ public function getServerStreaming() { @@ -225,11 +223,11 @@ class MethodDescriptorProto extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies if server streams multiple server messages
-     * 
* - * optional bool server_streaming = 6 [default = false]; + * Generated from protobuf field optional bool server_streaming = 6 [default = false]; + * @param bool $var + * @return $this */ public function setServerStreaming($var) { diff --git a/php/src/Google/Protobuf/Internal/MethodOptions.php b/php/src/Google/Protobuf/Internal/MethodOptions.php index e8d36d3c..5b2db776 100644 --- a/php/src/Google/Protobuf/Internal/MethodOptions.php +++ b/php/src/Google/Protobuf/Internal/MethodOptions.php @@ -12,33 +12,29 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.MethodOptions + * Generated from protobuf message google.protobuf.MethodOptions */ class MethodOptions extends \Google\Protobuf\Internal\Message { /** - *
      * Is this method deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the method, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating methods.
-     * 
* - * optional bool deprecated = 33 [default = false]; + * Generated from protobuf field optional bool deprecated = 33 [default = false]; */ private $deprecated = false; private $has_deprecated = false; /** - * optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + * Generated from protobuf field optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; */ private $idempotency_level = 0; private $has_idempotency_level = false; /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -49,14 +45,13 @@ class MethodOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this method deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the method, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating methods.
-     * 
* - * optional bool deprecated = 33 [default = false]; + * Generated from protobuf field optional bool deprecated = 33 [default = false]; + * @return bool */ public function getDeprecated() { @@ -64,14 +59,14 @@ class MethodOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this method deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the method, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating methods.
-     * 
* - * optional bool deprecated = 33 [default = false]; + * Generated from protobuf field optional bool deprecated = 33 [default = false]; + * @param bool $var + * @return $this */ public function setDeprecated($var) { @@ -88,7 +83,8 @@ class MethodOptions extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + * Generated from protobuf field optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + * @return int */ public function getIdempotencyLevel() { @@ -96,7 +92,9 @@ class MethodOptions extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + * Generated from protobuf field optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + * @param int $var + * @return $this */ public function setIdempotencyLevel($var) { @@ -113,11 +111,10 @@ class MethodOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -125,11 +122,11 @@ class MethodOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php b/php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php index ce4adfe7..9e06d8ee 100644 --- a/php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php +++ b/php/src/Google/Protobuf/Internal/MethodOptions_IdempotencyLevel.php @@ -5,34 +5,28 @@ namespace Google\Protobuf\Internal; /** - *
  * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
  * or neither? HTTP based RPC implementation may choose GET verb for safe
  * methods, and PUT verb for idempotent methods instead of the default POST.
- * 
* - * Protobuf enum google.protobuf.MethodOptions.IdempotencyLevel + * Protobuf enum Google\Protobuf\Internal */ class MethodOptions_IdempotencyLevel { /** - * IDEMPOTENCY_UNKNOWN = 0; + * Generated from protobuf enum IDEMPOTENCY_UNKNOWN = 0; */ const IDEMPOTENCY_UNKNOWN = 0; /** - *
      * implies idempotent
-     * 
* - * NO_SIDE_EFFECTS = 1; + * Generated from protobuf enum NO_SIDE_EFFECTS = 1; */ const NO_SIDE_EFFECTS = 1; /** - *
      * idempotent, but may have side effects
-     * 
* - * IDEMPOTENT = 2; + * Generated from protobuf enum IDEMPOTENT = 2; */ const IDEMPOTENT = 2; } diff --git a/php/src/Google/Protobuf/Internal/OneofDescriptorProto.php b/php/src/Google/Protobuf/Internal/OneofDescriptorProto.php index 744ca638..0d4f3bdc 100644 --- a/php/src/Google/Protobuf/Internal/OneofDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/OneofDescriptorProto.php @@ -12,21 +12,19 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes a oneof.
- * 
* - * Protobuf type google.protobuf.OneofDescriptorProto + * Generated from protobuf message google.protobuf.OneofDescriptorProto */ class OneofDescriptorProto extends \Google\Protobuf\Internal\Message { /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - * optional .google.protobuf.OneofOptions options = 2; + * Generated from protobuf field optional .google.protobuf.OneofOptions options = 2; */ private $options = null; private $has_options = false; @@ -37,7 +35,8 @@ class OneofDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -45,7 +44,9 @@ class OneofDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -62,7 +63,8 @@ class OneofDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.OneofOptions options = 2; + * Generated from protobuf field optional .google.protobuf.OneofOptions options = 2; + * @return \Google\Protobuf\Internal\OneofOptions */ public function getOptions() { @@ -70,7 +72,9 @@ class OneofDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.OneofOptions options = 2; + * Generated from protobuf field optional .google.protobuf.OneofOptions options = 2; + * @param \Google\Protobuf\Internal\OneofOptions $var + * @return $this */ public function setOptions(&$var) { diff --git a/php/src/Google/Protobuf/Internal/OneofOptions.php b/php/src/Google/Protobuf/Internal/OneofOptions.php index b3cd51ed..aa8c934c 100644 --- a/php/src/Google/Protobuf/Internal/OneofOptions.php +++ b/php/src/Google/Protobuf/Internal/OneofOptions.php @@ -12,16 +12,14 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.OneofOptions + * Generated from protobuf message google.protobuf.OneofOptions */ class OneofOptions extends \Google\Protobuf\Internal\Message { /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -32,11 +30,10 @@ class OneofOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -44,11 +41,11 @@ class OneofOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/ServiceDescriptorProto.php b/php/src/Google/Protobuf/Internal/ServiceDescriptorProto.php index 7c85728a..963cd650 100644 --- a/php/src/Google/Protobuf/Internal/ServiceDescriptorProto.php +++ b/php/src/Google/Protobuf/Internal/ServiceDescriptorProto.php @@ -12,26 +12,24 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Describes a service.
- * 
* - * Protobuf type google.protobuf.ServiceDescriptorProto + * Generated from protobuf message google.protobuf.ServiceDescriptorProto */ class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message { /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; */ private $name = ''; private $has_name = false; /** - * repeated .google.protobuf.MethodDescriptorProto method = 2; + * Generated from protobuf field repeated .google.protobuf.MethodDescriptorProto method = 2; */ private $method; private $has_method = false; /** - * optional .google.protobuf.ServiceOptions options = 3; + * Generated from protobuf field optional .google.protobuf.ServiceOptions options = 3; */ private $options = null; private $has_options = false; @@ -42,7 +40,8 @@ class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @return string */ public function getName() { @@ -50,7 +49,9 @@ class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional string name = 1; + * Generated from protobuf field optional string name = 1; + * @param string $var + * @return $this */ public function setName($var) { @@ -67,7 +68,8 @@ class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.MethodDescriptorProto method = 2; + * Generated from protobuf field repeated .google.protobuf.MethodDescriptorProto method = 2; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getMethod() { @@ -75,7 +77,9 @@ class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.MethodDescriptorProto method = 2; + * Generated from protobuf field repeated .google.protobuf.MethodDescriptorProto method = 2; + * @param \Google\Protobuf\Internal\MethodDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setMethod(&$var) { @@ -92,7 +96,8 @@ class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.ServiceOptions options = 3; + * Generated from protobuf field optional .google.protobuf.ServiceOptions options = 3; + * @return \Google\Protobuf\Internal\ServiceOptions */ public function getOptions() { @@ -100,7 +105,9 @@ class ServiceDescriptorProto extends \Google\Protobuf\Internal\Message } /** - * optional .google.protobuf.ServiceOptions options = 3; + * Generated from protobuf field optional .google.protobuf.ServiceOptions options = 3; + * @param \Google\Protobuf\Internal\ServiceOptions $var + * @return $this */ public function setOptions(&$var) { diff --git a/php/src/Google/Protobuf/Internal/ServiceOptions.php b/php/src/Google/Protobuf/Internal/ServiceOptions.php index 0f3a8d74..ea649865 100644 --- a/php/src/Google/Protobuf/Internal/ServiceOptions.php +++ b/php/src/Google/Protobuf/Internal/ServiceOptions.php @@ -12,28 +12,24 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.ServiceOptions + * Generated from protobuf message google.protobuf.ServiceOptions */ class ServiceOptions extends \Google\Protobuf\Internal\Message { /** - *
      * Is this service deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the service, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating services.
-     * 
* - * optional bool deprecated = 33 [default = false]; + * Generated from protobuf field optional bool deprecated = 33 [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; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; */ private $uninterpreted_option; private $has_uninterpreted_option = false; @@ -44,14 +40,13 @@ class ServiceOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this service deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the service, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating services.
-     * 
* - * optional bool deprecated = 33 [default = false]; + * Generated from protobuf field optional bool deprecated = 33 [default = false]; + * @return bool */ public function getDeprecated() { @@ -59,14 +54,14 @@ class ServiceOptions extends \Google\Protobuf\Internal\Message } /** - *
      * Is this service deprecated?
      * Depending on the target platform, this can emit Deprecated annotations
      * for the service, or it will be completely ignored; in the very least,
      * this is a formalization for deprecating services.
-     * 
* - * optional bool deprecated = 33 [default = false]; + * Generated from protobuf field optional bool deprecated = 33 [default = false]; + * @param bool $var + * @return $this */ public function setDeprecated($var) { @@ -83,11 +78,10 @@ class ServiceOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getUninterpretedOption() { @@ -95,11 +89,11 @@ class ServiceOptions extends \Google\Protobuf\Internal\Message } /** - *
      * The parser stores options it doesn't recognize here. See above.
-     * 
* - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setUninterpretedOption(&$var) { diff --git a/php/src/Google/Protobuf/Internal/SourceCodeInfo.php b/php/src/Google/Protobuf/Internal/SourceCodeInfo.php index 7eef3424..65530586 100644 --- a/php/src/Google/Protobuf/Internal/SourceCodeInfo.php +++ b/php/src/Google/Protobuf/Internal/SourceCodeInfo.php @@ -12,17 +12,14 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * Encapsulates information about the original source file from which a
  * FileDescriptorProto was generated.
- * 
* - * Protobuf type google.protobuf.SourceCodeInfo + * Generated from protobuf message google.protobuf.SourceCodeInfo */ class SourceCodeInfo extends \Google\Protobuf\Internal\Message { /** - *
      * A Location identifies a piece of source code in a .proto file which
      * corresponds to a particular definition.  This information is intended
      * to be useful to IDEs, code indexers, documentation generators, and similar
@@ -64,9 +61,8 @@ class SourceCodeInfo extends \Google\Protobuf\Internal\Message
      * - Code which tries to interpret locations should probably be designed to
      *   ignore those that it doesn't understand, as more types of locations could
      *   be recorded in the future.
-     * 
* - * repeated .google.protobuf.SourceCodeInfo.Location location = 1; + * Generated from protobuf field repeated .google.protobuf.SourceCodeInfo.Location location = 1; */ private $location; private $has_location = false; @@ -77,7 +73,6 @@ class SourceCodeInfo extends \Google\Protobuf\Internal\Message } /** - *
      * A Location identifies a piece of source code in a .proto file which
      * corresponds to a particular definition.  This information is intended
      * to be useful to IDEs, code indexers, documentation generators, and similar
@@ -119,9 +114,9 @@ class SourceCodeInfo extends \Google\Protobuf\Internal\Message
      * - Code which tries to interpret locations should probably be designed to
      *   ignore those that it doesn't understand, as more types of locations could
      *   be recorded in the future.
-     * 
* - * repeated .google.protobuf.SourceCodeInfo.Location location = 1; + * Generated from protobuf field repeated .google.protobuf.SourceCodeInfo.Location location = 1; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getLocation() { @@ -129,7 +124,6 @@ class SourceCodeInfo extends \Google\Protobuf\Internal\Message } /** - *
      * A Location identifies a piece of source code in a .proto file which
      * corresponds to a particular definition.  This information is intended
      * to be useful to IDEs, code indexers, documentation generators, and similar
@@ -171,9 +165,10 @@ class SourceCodeInfo extends \Google\Protobuf\Internal\Message
      * - Code which tries to interpret locations should probably be designed to
      *   ignore those that it doesn't understand, as more types of locations could
      *   be recorded in the future.
-     * 
* - * repeated .google.protobuf.SourceCodeInfo.Location location = 1; + * Generated from protobuf field repeated .google.protobuf.SourceCodeInfo.Location location = 1; + * @param \Google\Protobuf\Internal\SourceCodeInfo_Location[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setLocation(&$var) { diff --git a/php/src/Google/Protobuf/Internal/SourceCodeInfo_Location.php b/php/src/Google/Protobuf/Internal/SourceCodeInfo_Location.php index cf23e38b..b33013b8 100644 --- a/php/src/Google/Protobuf/Internal/SourceCodeInfo_Location.php +++ b/php/src/Google/Protobuf/Internal/SourceCodeInfo_Location.php @@ -12,12 +12,11 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - * Protobuf type google.protobuf.SourceCodeInfo.Location + * Generated from protobuf message google.protobuf.SourceCodeInfo.Location */ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message { /** - *
      * Identifies which part of the FileDescriptorProto was defined at this
      * location.
      * Each element is a field number or an index.  They form a path from
@@ -39,27 +38,23 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message
      *   [ 4, 3, 2, 7 ]
      * this path refers to the whole field declaration (from the beginning
      * of the label to the terminating semicolon).
-     * 
* - * repeated int32 path = 1 [packed = true]; + * Generated from protobuf field repeated int32 path = 1 [packed = true]; */ private $path; private $has_path = false; /** - *
      * Always has exactly three or four elements: start line, start column,
      * end line (optional, otherwise assumed same as start line), end column.
      * These are packed into a single field for efficiency.  Note that line
      * and column numbers are zero-based -- typically you will want to add
      * 1 to each before displaying to a user.
-     * 
* - * repeated int32 span = 2 [packed = true]; + * Generated from protobuf field repeated int32 span = 2 [packed = true]; */ private $span; private $has_span = false; /** - *
      * If this SourceCodeInfo represents a complete declaration, these are any
      * comments appearing before and after the declaration which appear to be
      * attached to the declaration.
@@ -96,19 +91,18 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message
      *    * grault. */
      *   optional int32 grault = 6;
      *   // ignored detached comments.
-     * 
* - * optional string leading_comments = 3; + * Generated from protobuf field optional string leading_comments = 3; */ private $leading_comments = ''; private $has_leading_comments = false; /** - * optional string trailing_comments = 4; + * Generated from protobuf field optional string trailing_comments = 4; */ private $trailing_comments = ''; private $has_trailing_comments = false; /** - * repeated string leading_detached_comments = 6; + * Generated from protobuf field repeated string leading_detached_comments = 6; */ private $leading_detached_comments; private $has_leading_detached_comments = false; @@ -119,7 +113,6 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies which part of the FileDescriptorProto was defined at this
      * location.
      * Each element is a field number or an index.  They form a path from
@@ -141,9 +134,9 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message
      *   [ 4, 3, 2, 7 ]
      * this path refers to the whole field declaration (from the beginning
      * of the label to the terminating semicolon).
-     * 
* - * repeated int32 path = 1 [packed = true]; + * Generated from protobuf field repeated int32 path = 1 [packed = true]; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getPath() { @@ -151,7 +144,6 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - *
      * Identifies which part of the FileDescriptorProto was defined at this
      * location.
      * Each element is a field number or an index.  They form a path from
@@ -173,9 +165,10 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message
      *   [ 4, 3, 2, 7 ]
      * this path refers to the whole field declaration (from the beginning
      * of the label to the terminating semicolon).
-     * 
* - * repeated int32 path = 1 [packed = true]; + * Generated from protobuf field repeated int32 path = 1 [packed = true]; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setPath(&$var) { @@ -192,15 +185,14 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - *
      * Always has exactly three or four elements: start line, start column,
      * end line (optional, otherwise assumed same as start line), end column.
      * These are packed into a single field for efficiency.  Note that line
      * and column numbers are zero-based -- typically you will want to add
      * 1 to each before displaying to a user.
-     * 
* - * repeated int32 span = 2 [packed = true]; + * Generated from protobuf field repeated int32 span = 2 [packed = true]; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getSpan() { @@ -208,15 +200,15 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - *
      * Always has exactly three or four elements: start line, start column,
      * end line (optional, otherwise assumed same as start line), end column.
      * These are packed into a single field for efficiency.  Note that line
      * and column numbers are zero-based -- typically you will want to add
      * 1 to each before displaying to a user.
-     * 
* - * repeated int32 span = 2 [packed = true]; + * Generated from protobuf field repeated int32 span = 2 [packed = true]; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setSpan(&$var) { @@ -233,7 +225,6 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - *
      * If this SourceCodeInfo represents a complete declaration, these are any
      * comments appearing before and after the declaration which appear to be
      * attached to the declaration.
@@ -270,9 +261,9 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message
      *    * grault. */
      *   optional int32 grault = 6;
      *   // ignored detached comments.
-     * 
* - * optional string leading_comments = 3; + * Generated from protobuf field optional string leading_comments = 3; + * @return string */ public function getLeadingComments() { @@ -280,7 +271,6 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - *
      * If this SourceCodeInfo represents a complete declaration, these are any
      * comments appearing before and after the declaration which appear to be
      * attached to the declaration.
@@ -317,9 +307,10 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message
      *    * grault. */
      *   optional int32 grault = 6;
      *   // ignored detached comments.
-     * 
* - * optional string leading_comments = 3; + * Generated from protobuf field optional string leading_comments = 3; + * @param string $var + * @return $this */ public function setLeadingComments($var) { @@ -336,7 +327,8 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - * optional string trailing_comments = 4; + * Generated from protobuf field optional string trailing_comments = 4; + * @return string */ public function getTrailingComments() { @@ -344,7 +336,9 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - * optional string trailing_comments = 4; + * Generated from protobuf field optional string trailing_comments = 4; + * @param string $var + * @return $this */ public function setTrailingComments($var) { @@ -361,7 +355,8 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - * repeated string leading_detached_comments = 6; + * Generated from protobuf field repeated string leading_detached_comments = 6; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getLeadingDetachedComments() { @@ -369,7 +364,9 @@ class SourceCodeInfo_Location extends \Google\Protobuf\Internal\Message } /** - * repeated string leading_detached_comments = 6; + * Generated from protobuf field repeated string leading_detached_comments = 6; + * @param string[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setLeadingDetachedComments(&$var) { diff --git a/php/src/Google/Protobuf/Internal/UninterpretedOption.php b/php/src/Google/Protobuf/Internal/UninterpretedOption.php index 08e071d4..a4fab343 100644 --- a/php/src/Google/Protobuf/Internal/UninterpretedOption.php +++ b/php/src/Google/Protobuf/Internal/UninterpretedOption.php @@ -12,56 +12,52 @@ use Google\Protobuf\Internal\InputStream; use Google\Protobuf\Internal\GPBUtil; /** - *
  * A message representing a option the parser does not recognize. This only
  * appears in options protos created by the compiler::Parser class.
  * DescriptorPool resolves these when building Descriptor objects. Therefore,
  * options protos in descriptor objects (e.g. returned by Descriptor::options(),
  * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
  * in them.
- * 
* - * Protobuf type google.protobuf.UninterpretedOption + * Generated from protobuf message google.protobuf.UninterpretedOption */ class UninterpretedOption extends \Google\Protobuf\Internal\Message { /** - * repeated .google.protobuf.UninterpretedOption.NamePart name = 2; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption.NamePart name = 2; */ private $name; private $has_name = false; /** - *
      * The value of the uninterpreted option, in whatever type the tokenizer
      * identified it as during parsing. Exactly one of these should be set.
-     * 
* - * optional string identifier_value = 3; + * Generated from protobuf field optional string identifier_value = 3; */ private $identifier_value = ''; private $has_identifier_value = false; /** - * optional uint64 positive_int_value = 4; + * Generated from protobuf field optional uint64 positive_int_value = 4; */ private $positive_int_value = 0; private $has_positive_int_value = false; /** - * optional int64 negative_int_value = 5; + * Generated from protobuf field optional int64 negative_int_value = 5; */ private $negative_int_value = 0; private $has_negative_int_value = false; /** - * optional double double_value = 6; + * Generated from protobuf field optional double double_value = 6; */ private $double_value = 0.0; private $has_double_value = false; /** - * optional bytes string_value = 7; + * Generated from protobuf field optional bytes string_value = 7; */ private $string_value = ''; private $has_string_value = false; /** - * optional string aggregate_value = 8; + * Generated from protobuf field optional string aggregate_value = 8; */ private $aggregate_value = ''; private $has_aggregate_value = false; @@ -72,7 +68,8 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.UninterpretedOption.NamePart name = 2; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption.NamePart name = 2; + * @return \Google\Protobuf\Internal\RepeatedField */ public function getName() { @@ -80,7 +77,9 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * repeated .google.protobuf.UninterpretedOption.NamePart name = 2; + * Generated from protobuf field repeated .google.protobuf.UninterpretedOption.NamePart name = 2; + * @param \Google\Protobuf\Internal\UninterpretedOption_NamePart[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this */ public function setName(&$var) { @@ -97,12 +96,11 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - *
      * The value of the uninterpreted option, in whatever type the tokenizer
      * identified it as during parsing. Exactly one of these should be set.
-     * 
* - * optional string identifier_value = 3; + * Generated from protobuf field optional string identifier_value = 3; + * @return string */ public function getIdentifierValue() { @@ -110,12 +108,12 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - *
      * The value of the uninterpreted option, in whatever type the tokenizer
      * identified it as during parsing. Exactly one of these should be set.
-     * 
* - * optional string identifier_value = 3; + * Generated from protobuf field optional string identifier_value = 3; + * @param string $var + * @return $this */ public function setIdentifierValue($var) { @@ -132,7 +130,8 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional uint64 positive_int_value = 4; + * Generated from protobuf field optional uint64 positive_int_value = 4; + * @return int|string */ public function getPositiveIntValue() { @@ -140,7 +139,9 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional uint64 positive_int_value = 4; + * Generated from protobuf field optional uint64 positive_int_value = 4; + * @param int|string $var + * @return $this */ public function setPositiveIntValue($var) { @@ -157,7 +158,8 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional int64 negative_int_value = 5; + * Generated from protobuf field optional int64 negative_int_value = 5; + * @return int|string */ public function getNegativeIntValue() { @@ -165,7 +167,9 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional int64 negative_int_value = 5; + * Generated from protobuf field optional int64 negative_int_value = 5; + * @param int|string $var + * @return $this */ public function setNegativeIntValue($var) { @@ -182,7 +186,8 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional double double_value = 6; + * Generated from protobuf field optional double double_value = 6; + * @return float */ public function getDoubleValue() { @@ -190,7 +195,9 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional double double_value = 6; + * Generated from protobuf field optional double double_value = 6; + * @param float $var + * @return $this */ public function setDoubleValue($var) { @@ -207,7 +214,8 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional bytes string_value = 7; + * Generated from protobuf field optional bytes string_value = 7; + * @return string */ public function getStringValue() { @@ -215,7 +223,9 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional bytes string_value = 7; + * Generated from protobuf field optional bytes string_value = 7; + * @param string $var + * @return $this */ public function setStringValue($var) { @@ -232,7 +242,8 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional string aggregate_value = 8; + * Generated from protobuf field optional string aggregate_value = 8; + * @return string */ public function getAggregateValue() { @@ -240,7 +251,9 @@ class UninterpretedOption extends \Google\Protobuf\Internal\Message } /** - * optional string aggregate_value = 8; + * Generated from protobuf field optional string aggregate_value = 8; + * @param string $var + * @return $this */ public function setAggregateValue($var) { diff --git a/php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php b/php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php index eb27754c..69a96d45 100644 --- a/php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php +++ b/php/src/Google/Protobuf/Internal/UninterpretedOption_NamePart.php @@ -12,25 +12,23 @@ 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".
- * 
* - * Protobuf type google.protobuf.UninterpretedOption.NamePart + * Generated from protobuf message google.protobuf.UninterpretedOption.NamePart */ class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message { /** - * required string name_part = 1; + * Generated from protobuf field required string name_part = 1; */ private $name_part = ''; private $has_name_part = false; /** - * required bool is_extension = 2; + * Generated from protobuf field required bool is_extension = 2; */ private $is_extension = false; private $has_is_extension = false; @@ -41,7 +39,8 @@ class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message } /** - * required string name_part = 1; + * Generated from protobuf field required string name_part = 1; + * @return string */ public function getNamePart() { @@ -49,7 +48,9 @@ class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message } /** - * required string name_part = 1; + * Generated from protobuf field required string name_part = 1; + * @param string $var + * @return $this */ public function setNamePart($var) { @@ -66,7 +67,8 @@ class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message } /** - * required bool is_extension = 2; + * Generated from protobuf field required bool is_extension = 2; + * @return bool */ public function getIsExtension() { @@ -74,7 +76,9 @@ class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message } /** - * required bool is_extension = 2; + * Generated from protobuf field required bool is_extension = 2; + * @param bool $var + * @return $this */ public function setIsExtension($var) { -- cgit v1.2.3