|
@@ -23,8 +23,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string java_package = 1;</code>
|
|
* Generated from protobuf field <code>optional string java_package = 1;</code>
|
|
*/
|
|
*/
|
|
- protected $java_package = '';
|
|
|
|
- private $has_java_package = false;
|
|
|
|
|
|
+ protected $java_package = null;
|
|
/**
|
|
/**
|
|
* If set, all the classes from the .proto file are wrapped in a single
|
|
* 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
|
|
* outer class with the given name. This applies to both Proto1
|
|
@@ -34,8 +33,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
|
|
* Generated from protobuf field <code>optional string java_outer_classname = 8;</code>
|
|
*/
|
|
*/
|
|
- protected $java_outer_classname = '';
|
|
|
|
- private $has_java_outer_classname = false;
|
|
|
|
|
|
+ protected $java_outer_classname = null;
|
|
/**
|
|
/**
|
|
* If set true, then the Java code generator will generate a separate .java
|
|
* 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 for each top-level message, enum, and service defined in the .proto
|
|
@@ -46,15 +44,13 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool java_multiple_files = 10 [default = false];</code>
|
|
*/
|
|
*/
|
|
- protected $java_multiple_files = false;
|
|
|
|
- private $has_java_multiple_files = false;
|
|
|
|
|
|
+ protected $java_multiple_files = null;
|
|
/**
|
|
/**
|
|
* This option does nothing.
|
|
* This option does nothing.
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
|
|
* Generated from protobuf field <code>optional bool java_generate_equals_and_hash = 20 [deprecated = true];</code>
|
|
*/
|
|
*/
|
|
- protected $java_generate_equals_and_hash = false;
|
|
|
|
- private $has_java_generate_equals_and_hash = false;
|
|
|
|
|
|
+ protected $java_generate_equals_and_hash = null;
|
|
/**
|
|
/**
|
|
* If set true, then the Java2 code generator will generate code that
|
|
* 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
|
|
* throws an exception whenever an attempt is made to assign a non-UTF-8
|
|
@@ -65,13 +61,11 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool java_string_check_utf8 = 27 [default = false];</code>
|
|
*/
|
|
*/
|
|
- protected $java_string_check_utf8 = false;
|
|
|
|
- private $has_java_string_check_utf8 = false;
|
|
|
|
|
|
+ protected $java_string_check_utf8 = null;
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
|
|
* Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
|
|
*/
|
|
*/
|
|
- protected $optimize_for = 0;
|
|
|
|
- private $has_optimize_for = false;
|
|
|
|
|
|
+ protected $optimize_for = null;
|
|
/**
|
|
/**
|
|
* Sets the Go package where structs generated from this .proto will be
|
|
* Sets the Go package where structs generated from this .proto will be
|
|
* placed. If omitted, the Go package will be derived from the following:
|
|
* placed. If omitted, the Go package will be derived from the following:
|
|
@@ -81,8 +75,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string go_package = 11;</code>
|
|
* Generated from protobuf field <code>optional string go_package = 11;</code>
|
|
*/
|
|
*/
|
|
- protected $go_package = '';
|
|
|
|
- private $has_go_package = false;
|
|
|
|
|
|
+ protected $go_package = null;
|
|
/**
|
|
/**
|
|
* Should generic services be generated in each language? "Generic" services
|
|
* Should generic services be generated in each language? "Generic" services
|
|
* are not specific to any particular RPC system. They are generated by the
|
|
* are not specific to any particular RPC system. They are generated by the
|
|
@@ -96,23 +89,19 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool cc_generic_services = 16 [default = false];</code>
|
|
*/
|
|
*/
|
|
- protected $cc_generic_services = false;
|
|
|
|
- private $has_cc_generic_services = false;
|
|
|
|
|
|
+ protected $cc_generic_services = null;
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
|
|
*/
|
|
*/
|
|
- protected $java_generic_services = false;
|
|
|
|
- private $has_java_generic_services = false;
|
|
|
|
|
|
+ protected $java_generic_services = null;
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
|
|
*/
|
|
*/
|
|
- protected $py_generic_services = false;
|
|
|
|
- private $has_py_generic_services = false;
|
|
|
|
|
|
+ protected $py_generic_services = null;
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
|
|
*/
|
|
*/
|
|
- protected $php_generic_services = false;
|
|
|
|
- private $has_php_generic_services = false;
|
|
|
|
|
|
+ protected $php_generic_services = null;
|
|
/**
|
|
/**
|
|
* Is this file deprecated?
|
|
* Is this file deprecated?
|
|
* Depending on the target platform, this can emit Deprecated annotations
|
|
* Depending on the target platform, this can emit Deprecated annotations
|
|
@@ -121,31 +110,27 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool deprecated = 23 [default = false];</code>
|
|
*/
|
|
*/
|
|
- protected $deprecated = false;
|
|
|
|
- private $has_deprecated = false;
|
|
|
|
|
|
+ protected $deprecated = null;
|
|
/**
|
|
/**
|
|
* Enables the use of arenas for the proto messages in this file. This applies
|
|
* Enables the use of arenas for the proto messages in this file. This applies
|
|
* only to generated classes for C++.
|
|
* only to generated classes for C++.
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = true];</code>
|
|
* Generated from protobuf field <code>optional bool cc_enable_arenas = 31 [default = true];</code>
|
|
*/
|
|
*/
|
|
- protected $cc_enable_arenas = false;
|
|
|
|
- private $has_cc_enable_arenas = false;
|
|
|
|
|
|
+ protected $cc_enable_arenas = null;
|
|
/**
|
|
/**
|
|
* Sets the objective c class prefix which is prepended to all objective c
|
|
* Sets the objective c class prefix which is prepended to all objective c
|
|
* generated classes from this .proto. There is no default.
|
|
* generated classes from this .proto. There is no default.
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
|
|
* Generated from protobuf field <code>optional string objc_class_prefix = 36;</code>
|
|
*/
|
|
*/
|
|
- protected $objc_class_prefix = '';
|
|
|
|
- private $has_objc_class_prefix = false;
|
|
|
|
|
|
+ protected $objc_class_prefix = null;
|
|
/**
|
|
/**
|
|
* Namespace for generated classes; defaults to the package.
|
|
* Namespace for generated classes; defaults to the package.
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
|
|
* Generated from protobuf field <code>optional string csharp_namespace = 37;</code>
|
|
*/
|
|
*/
|
|
- protected $csharp_namespace = '';
|
|
|
|
- private $has_csharp_namespace = false;
|
|
|
|
|
|
+ protected $csharp_namespace = null;
|
|
/**
|
|
/**
|
|
* By default Swift generators will take the proto package and CamelCase it
|
|
* By default Swift generators will take the proto package and CamelCase it
|
|
* replacing '.' with underscore and use that to prefix the types/symbols
|
|
* replacing '.' with underscore and use that to prefix the types/symbols
|
|
@@ -154,16 +139,14 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string swift_prefix = 39;</code>
|
|
* Generated from protobuf field <code>optional string swift_prefix = 39;</code>
|
|
*/
|
|
*/
|
|
- protected $swift_prefix = '';
|
|
|
|
- private $has_swift_prefix = false;
|
|
|
|
|
|
+ protected $swift_prefix = null;
|
|
/**
|
|
/**
|
|
* Sets the php class prefix which is prepended to all php generated classes
|
|
* Sets the php class prefix which is prepended to all php generated classes
|
|
* from this .proto. Default is empty.
|
|
* from this .proto. Default is empty.
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
|
|
* Generated from protobuf field <code>optional string php_class_prefix = 40;</code>
|
|
*/
|
|
*/
|
|
- protected $php_class_prefix = '';
|
|
|
|
- private $has_php_class_prefix = false;
|
|
|
|
|
|
+ protected $php_class_prefix = null;
|
|
/**
|
|
/**
|
|
* Use this option to change the namespace of php generated classes. Default
|
|
* 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
|
|
* is empty. When this option is empty, the package name will be used for
|
|
@@ -171,8 +154,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string php_namespace = 41;</code>
|
|
* Generated from protobuf field <code>optional string php_namespace = 41;</code>
|
|
*/
|
|
*/
|
|
- protected $php_namespace = '';
|
|
|
|
- private $has_php_namespace = false;
|
|
|
|
|
|
+ protected $php_namespace = null;
|
|
/**
|
|
/**
|
|
* Use this option to change the namespace of php generated metadata classes.
|
|
* Use this option to change the namespace of php generated metadata classes.
|
|
* Default is empty. When this option is empty, the proto file name will be
|
|
* Default is empty. When this option is empty, the proto file name will be
|
|
@@ -180,8 +162,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
|
|
* Generated from protobuf field <code>optional string php_metadata_namespace = 44;</code>
|
|
*/
|
|
*/
|
|
- protected $php_metadata_namespace = '';
|
|
|
|
- private $has_php_metadata_namespace = false;
|
|
|
|
|
|
+ protected $php_metadata_namespace = null;
|
|
/**
|
|
/**
|
|
* Use this option to change the package of ruby generated classes. Default
|
|
* Use this option to change the package of ruby generated classes. Default
|
|
* is empty. When this option is not set, the package name will be used for
|
|
* is empty. When this option is not set, the package name will be used for
|
|
@@ -189,8 +170,7 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*
|
|
*
|
|
* Generated from protobuf field <code>optional string ruby_package = 45;</code>
|
|
* Generated from protobuf field <code>optional string ruby_package = 45;</code>
|
|
*/
|
|
*/
|
|
- protected $ruby_package = '';
|
|
|
|
- private $has_ruby_package = false;
|
|
|
|
|
|
+ protected $ruby_package = null;
|
|
/**
|
|
/**
|
|
* The parser stores options it doesn't recognize here.
|
|
* The parser stores options it doesn't recognize here.
|
|
* See the documentation for the "Options" section above.
|
|
* See the documentation for the "Options" section above.
|
|
@@ -198,7 +178,6 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
* Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
|
|
* Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
|
|
*/
|
|
*/
|
|
private $uninterpreted_option;
|
|
private $uninterpreted_option;
|
|
- private $has_uninterpreted_option = false;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* Constructor.
|
|
* Constructor.
|
|
@@ -307,7 +286,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getJavaPackage()
|
|
public function getJavaPackage()
|
|
{
|
|
{
|
|
- return $this->java_package;
|
|
|
|
|
|
+ return isset($this->java_package) ? $this->java_package : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasJavaPackage()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->java_package);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearJavaPackage()
|
|
|
|
+ {
|
|
|
|
+ unset($this->java_package);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -324,16 +313,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->java_package = $var;
|
|
$this->java_package = $var;
|
|
- $this->has_java_package = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasJavaPackage()
|
|
|
|
- {
|
|
|
|
- return $this->has_java_package;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* If set, all the classes from the .proto file are wrapped in a single
|
|
* 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
|
|
* outer class with the given name. This applies to both Proto1
|
|
@@ -346,7 +329,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getJavaOuterClassname()
|
|
public function getJavaOuterClassname()
|
|
{
|
|
{
|
|
- return $this->java_outer_classname;
|
|
|
|
|
|
+ return isset($this->java_outer_classname) ? $this->java_outer_classname : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasJavaOuterClassname()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->java_outer_classname);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearJavaOuterClassname()
|
|
|
|
+ {
|
|
|
|
+ unset($this->java_outer_classname);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -364,16 +357,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->java_outer_classname = $var;
|
|
$this->java_outer_classname = $var;
|
|
- $this->has_java_outer_classname = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasJavaOuterClassname()
|
|
|
|
- {
|
|
|
|
- return $this->has_java_outer_classname;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* If set true, then the Java code generator will generate a separate .java
|
|
* 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 for each top-level message, enum, and service defined in the .proto
|
|
@@ -387,7 +374,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getJavaMultipleFiles()
|
|
public function getJavaMultipleFiles()
|
|
{
|
|
{
|
|
- return $this->java_multiple_files;
|
|
|
|
|
|
+ return isset($this->java_multiple_files) ? $this->java_multiple_files : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasJavaMultipleFiles()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->java_multiple_files);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearJavaMultipleFiles()
|
|
|
|
+ {
|
|
|
|
+ unset($this->java_multiple_files);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -406,16 +403,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->java_multiple_files = $var;
|
|
$this->java_multiple_files = $var;
|
|
- $this->has_java_multiple_files = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasJavaMultipleFiles()
|
|
|
|
- {
|
|
|
|
- return $this->has_java_multiple_files;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* This option does nothing.
|
|
* This option does nothing.
|
|
*
|
|
*
|
|
@@ -424,7 +415,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getJavaGenerateEqualsAndHash()
|
|
public function getJavaGenerateEqualsAndHash()
|
|
{
|
|
{
|
|
- return $this->java_generate_equals_and_hash;
|
|
|
|
|
|
+ return isset($this->java_generate_equals_and_hash) ? $this->java_generate_equals_and_hash : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasJavaGenerateEqualsAndHash()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->java_generate_equals_and_hash);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearJavaGenerateEqualsAndHash()
|
|
|
|
+ {
|
|
|
|
+ unset($this->java_generate_equals_and_hash);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -438,16 +439,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->java_generate_equals_and_hash = $var;
|
|
$this->java_generate_equals_and_hash = $var;
|
|
- $this->has_java_generate_equals_and_hash = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasJavaGenerateEqualsAndHash()
|
|
|
|
- {
|
|
|
|
- return $this->has_java_generate_equals_and_hash;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* If set true, then the Java2 code generator will generate code that
|
|
* 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
|
|
* throws an exception whenever an attempt is made to assign a non-UTF-8
|
|
@@ -461,7 +456,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getJavaStringCheckUtf8()
|
|
public function getJavaStringCheckUtf8()
|
|
{
|
|
{
|
|
- return $this->java_string_check_utf8;
|
|
|
|
|
|
+ return isset($this->java_string_check_utf8) ? $this->java_string_check_utf8 : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasJavaStringCheckUtf8()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->java_string_check_utf8);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearJavaStringCheckUtf8()
|
|
|
|
+ {
|
|
|
|
+ unset($this->java_string_check_utf8);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -480,23 +485,27 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->java_string_check_utf8 = $var;
|
|
$this->java_string_check_utf8 = $var;
|
|
- $this->has_java_string_check_utf8 = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasJavaStringCheckUtf8()
|
|
|
|
- {
|
|
|
|
- return $this->has_java_string_check_utf8;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
|
|
* Generated from protobuf field <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code>
|
|
* @return int
|
|
* @return int
|
|
*/
|
|
*/
|
|
public function getOptimizeFor()
|
|
public function getOptimizeFor()
|
|
{
|
|
{
|
|
- return $this->optimize_for;
|
|
|
|
|
|
+ return isset($this->optimize_for) ? $this->optimize_for : 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasOptimizeFor()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->optimize_for);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearOptimizeFor()
|
|
|
|
+ {
|
|
|
|
+ unset($this->optimize_for);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -506,18 +515,12 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function setOptimizeFor($var)
|
|
public function setOptimizeFor($var)
|
|
{
|
|
{
|
|
- GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FileOptions_OptimizeMode::class);
|
|
|
|
|
|
+ GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FileOptions\OptimizeMode::class);
|
|
$this->optimize_for = $var;
|
|
$this->optimize_for = $var;
|
|
- $this->has_optimize_for = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasOptimizeFor()
|
|
|
|
- {
|
|
|
|
- return $this->has_optimize_for;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Sets the Go package where structs generated from this .proto will be
|
|
* Sets the Go package where structs generated from this .proto will be
|
|
* placed. If omitted, the Go package will be derived from the following:
|
|
* placed. If omitted, the Go package will be derived from the following:
|
|
@@ -530,7 +533,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getGoPackage()
|
|
public function getGoPackage()
|
|
{
|
|
{
|
|
- return $this->go_package;
|
|
|
|
|
|
+ return isset($this->go_package) ? $this->go_package : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasGoPackage()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->go_package);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearGoPackage()
|
|
|
|
+ {
|
|
|
|
+ unset($this->go_package);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -548,16 +561,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->go_package = $var;
|
|
$this->go_package = $var;
|
|
- $this->has_go_package = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasGoPackage()
|
|
|
|
- {
|
|
|
|
- return $this->has_go_package;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Should generic services be generated in each language? "Generic" services
|
|
* Should generic services be generated in each language? "Generic" services
|
|
* are not specific to any particular RPC system. They are generated by the
|
|
* are not specific to any particular RPC system. They are generated by the
|
|
@@ -574,7 +581,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getCcGenericServices()
|
|
public function getCcGenericServices()
|
|
{
|
|
{
|
|
- return $this->cc_generic_services;
|
|
|
|
|
|
+ return isset($this->cc_generic_services) ? $this->cc_generic_services : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasCcGenericServices()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->cc_generic_services);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearCcGenericServices()
|
|
|
|
+ {
|
|
|
|
+ unset($this->cc_generic_services);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -596,23 +613,27 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->cc_generic_services = $var;
|
|
$this->cc_generic_services = $var;
|
|
- $this->has_cc_generic_services = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasCcGenericServices()
|
|
|
|
- {
|
|
|
|
- return $this->has_cc_generic_services;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool java_generic_services = 17 [default = false];</code>
|
|
* @return bool
|
|
* @return bool
|
|
*/
|
|
*/
|
|
public function getJavaGenericServices()
|
|
public function getJavaGenericServices()
|
|
{
|
|
{
|
|
- return $this->java_generic_services;
|
|
|
|
|
|
+ return isset($this->java_generic_services) ? $this->java_generic_services : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasJavaGenericServices()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->java_generic_services);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearJavaGenericServices()
|
|
|
|
+ {
|
|
|
|
+ unset($this->java_generic_services);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -624,23 +645,27 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->java_generic_services = $var;
|
|
$this->java_generic_services = $var;
|
|
- $this->has_java_generic_services = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasJavaGenericServices()
|
|
|
|
- {
|
|
|
|
- return $this->has_java_generic_services;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool py_generic_services = 18 [default = false];</code>
|
|
* @return bool
|
|
* @return bool
|
|
*/
|
|
*/
|
|
public function getPyGenericServices()
|
|
public function getPyGenericServices()
|
|
{
|
|
{
|
|
- return $this->py_generic_services;
|
|
|
|
|
|
+ return isset($this->py_generic_services) ? $this->py_generic_services : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasPyGenericServices()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->py_generic_services);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearPyGenericServices()
|
|
|
|
+ {
|
|
|
|
+ unset($this->py_generic_services);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -652,23 +677,27 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->py_generic_services = $var;
|
|
$this->py_generic_services = $var;
|
|
- $this->has_py_generic_services = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasPyGenericServices()
|
|
|
|
- {
|
|
|
|
- return $this->has_py_generic_services;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
|
|
* Generated from protobuf field <code>optional bool php_generic_services = 42 [default = false];</code>
|
|
* @return bool
|
|
* @return bool
|
|
*/
|
|
*/
|
|
public function getPhpGenericServices()
|
|
public function getPhpGenericServices()
|
|
{
|
|
{
|
|
- return $this->php_generic_services;
|
|
|
|
|
|
+ return isset($this->php_generic_services) ? $this->php_generic_services : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasPhpGenericServices()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->php_generic_services);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearPhpGenericServices()
|
|
|
|
+ {
|
|
|
|
+ unset($this->php_generic_services);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -680,16 +709,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->php_generic_services = $var;
|
|
$this->php_generic_services = $var;
|
|
- $this->has_php_generic_services = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasPhpGenericServices()
|
|
|
|
- {
|
|
|
|
- return $this->has_php_generic_services;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Is this file deprecated?
|
|
* Is this file deprecated?
|
|
* Depending on the target platform, this can emit Deprecated annotations
|
|
* Depending on the target platform, this can emit Deprecated annotations
|
|
@@ -701,7 +724,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getDeprecated()
|
|
public function getDeprecated()
|
|
{
|
|
{
|
|
- return $this->deprecated;
|
|
|
|
|
|
+ return isset($this->deprecated) ? $this->deprecated : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasDeprecated()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->deprecated);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearDeprecated()
|
|
|
|
+ {
|
|
|
|
+ unset($this->deprecated);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -718,16 +751,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->deprecated = $var;
|
|
$this->deprecated = $var;
|
|
- $this->has_deprecated = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasDeprecated()
|
|
|
|
- {
|
|
|
|
- return $this->has_deprecated;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Enables the use of arenas for the proto messages in this file. This applies
|
|
* Enables the use of arenas for the proto messages in this file. This applies
|
|
* only to generated classes for C++.
|
|
* only to generated classes for C++.
|
|
@@ -737,7 +764,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getCcEnableArenas()
|
|
public function getCcEnableArenas()
|
|
{
|
|
{
|
|
- return $this->cc_enable_arenas;
|
|
|
|
|
|
+ return isset($this->cc_enable_arenas) ? $this->cc_enable_arenas : false;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasCcEnableArenas()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->cc_enable_arenas);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearCcEnableArenas()
|
|
|
|
+ {
|
|
|
|
+ unset($this->cc_enable_arenas);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -752,16 +789,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
GPBUtil::checkBool($var);
|
|
$this->cc_enable_arenas = $var;
|
|
$this->cc_enable_arenas = $var;
|
|
- $this->has_cc_enable_arenas = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasCcEnableArenas()
|
|
|
|
- {
|
|
|
|
- return $this->has_cc_enable_arenas;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Sets the objective c class prefix which is prepended to all objective c
|
|
* Sets the objective c class prefix which is prepended to all objective c
|
|
* generated classes from this .proto. There is no default.
|
|
* generated classes from this .proto. There is no default.
|
|
@@ -771,7 +802,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getObjcClassPrefix()
|
|
public function getObjcClassPrefix()
|
|
{
|
|
{
|
|
- return $this->objc_class_prefix;
|
|
|
|
|
|
+ return isset($this->objc_class_prefix) ? $this->objc_class_prefix : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasObjcClassPrefix()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->objc_class_prefix);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearObjcClassPrefix()
|
|
|
|
+ {
|
|
|
|
+ unset($this->objc_class_prefix);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -786,16 +827,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->objc_class_prefix = $var;
|
|
$this->objc_class_prefix = $var;
|
|
- $this->has_objc_class_prefix = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasObjcClassPrefix()
|
|
|
|
- {
|
|
|
|
- return $this->has_objc_class_prefix;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Namespace for generated classes; defaults to the package.
|
|
* Namespace for generated classes; defaults to the package.
|
|
*
|
|
*
|
|
@@ -804,7 +839,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getCsharpNamespace()
|
|
public function getCsharpNamespace()
|
|
{
|
|
{
|
|
- return $this->csharp_namespace;
|
|
|
|
|
|
+ return isset($this->csharp_namespace) ? $this->csharp_namespace : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasCsharpNamespace()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->csharp_namespace);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearCsharpNamespace()
|
|
|
|
+ {
|
|
|
|
+ unset($this->csharp_namespace);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -818,16 +863,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->csharp_namespace = $var;
|
|
$this->csharp_namespace = $var;
|
|
- $this->has_csharp_namespace = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasCsharpNamespace()
|
|
|
|
- {
|
|
|
|
- return $this->has_csharp_namespace;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* By default Swift generators will take the proto package and CamelCase it
|
|
* By default Swift generators will take the proto package and CamelCase it
|
|
* replacing '.' with underscore and use that to prefix the types/symbols
|
|
* replacing '.' with underscore and use that to prefix the types/symbols
|
|
@@ -839,7 +878,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getSwiftPrefix()
|
|
public function getSwiftPrefix()
|
|
{
|
|
{
|
|
- return $this->swift_prefix;
|
|
|
|
|
|
+ return isset($this->swift_prefix) ? $this->swift_prefix : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasSwiftPrefix()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->swift_prefix);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearSwiftPrefix()
|
|
|
|
+ {
|
|
|
|
+ unset($this->swift_prefix);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -856,16 +905,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->swift_prefix = $var;
|
|
$this->swift_prefix = $var;
|
|
- $this->has_swift_prefix = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasSwiftPrefix()
|
|
|
|
- {
|
|
|
|
- return $this->has_swift_prefix;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Sets the php class prefix which is prepended to all php generated classes
|
|
* Sets the php class prefix which is prepended to all php generated classes
|
|
* from this .proto. Default is empty.
|
|
* from this .proto. Default is empty.
|
|
@@ -875,7 +918,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getPhpClassPrefix()
|
|
public function getPhpClassPrefix()
|
|
{
|
|
{
|
|
- return $this->php_class_prefix;
|
|
|
|
|
|
+ return isset($this->php_class_prefix) ? $this->php_class_prefix : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasPhpClassPrefix()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->php_class_prefix);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearPhpClassPrefix()
|
|
|
|
+ {
|
|
|
|
+ unset($this->php_class_prefix);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -890,16 +943,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->php_class_prefix = $var;
|
|
$this->php_class_prefix = $var;
|
|
- $this->has_php_class_prefix = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasPhpClassPrefix()
|
|
|
|
- {
|
|
|
|
- return $this->has_php_class_prefix;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Use this option to change the namespace of php generated classes. Default
|
|
* 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
|
|
* is empty. When this option is empty, the package name will be used for
|
|
@@ -910,7 +957,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getPhpNamespace()
|
|
public function getPhpNamespace()
|
|
{
|
|
{
|
|
- return $this->php_namespace;
|
|
|
|
|
|
+ return isset($this->php_namespace) ? $this->php_namespace : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasPhpNamespace()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->php_namespace);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearPhpNamespace()
|
|
|
|
+ {
|
|
|
|
+ unset($this->php_namespace);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -926,16 +983,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->php_namespace = $var;
|
|
$this->php_namespace = $var;
|
|
- $this->has_php_namespace = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasPhpNamespace()
|
|
|
|
- {
|
|
|
|
- return $this->has_php_namespace;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Use this option to change the namespace of php generated metadata classes.
|
|
* Use this option to change the namespace of php generated metadata classes.
|
|
* Default is empty. When this option is empty, the proto file name will be
|
|
* Default is empty. When this option is empty, the proto file name will be
|
|
@@ -946,7 +997,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getPhpMetadataNamespace()
|
|
public function getPhpMetadataNamespace()
|
|
{
|
|
{
|
|
- return $this->php_metadata_namespace;
|
|
|
|
|
|
+ return isset($this->php_metadata_namespace) ? $this->php_metadata_namespace : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasPhpMetadataNamespace()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->php_metadata_namespace);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearPhpMetadataNamespace()
|
|
|
|
+ {
|
|
|
|
+ unset($this->php_metadata_namespace);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -962,16 +1023,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->php_metadata_namespace = $var;
|
|
$this->php_metadata_namespace = $var;
|
|
- $this->has_php_metadata_namespace = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasPhpMetadataNamespace()
|
|
|
|
- {
|
|
|
|
- return $this->has_php_metadata_namespace;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Use this option to change the package of ruby generated classes. Default
|
|
* Use this option to change the package of ruby generated classes. Default
|
|
* is empty. When this option is not set, the package name will be used for
|
|
* is empty. When this option is not set, the package name will be used for
|
|
@@ -982,7 +1037,17 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
*/
|
|
*/
|
|
public function getRubyPackage()
|
|
public function getRubyPackage()
|
|
{
|
|
{
|
|
- return $this->ruby_package;
|
|
|
|
|
|
+ return isset($this->ruby_package) ? $this->ruby_package : '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function hasRubyPackage()
|
|
|
|
+ {
|
|
|
|
+ return isset($this->ruby_package);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function clearRubyPackage()
|
|
|
|
+ {
|
|
|
|
+ unset($this->ruby_package);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -998,16 +1063,10 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
GPBUtil::checkString($var, True);
|
|
$this->ruby_package = $var;
|
|
$this->ruby_package = $var;
|
|
- $this->has_ruby_package = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasRubyPackage()
|
|
|
|
- {
|
|
|
|
- return $this->has_ruby_package;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* The parser stores options it doesn't recognize here.
|
|
* The parser stores options it doesn't recognize here.
|
|
* See the documentation for the "Options" section above.
|
|
* See the documentation for the "Options" section above.
|
|
@@ -1032,15 +1091,9 @@ class FileOptions extends \Google\Protobuf\Internal\Message
|
|
{
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
|
|
$this->uninterpreted_option = $arr;
|
|
$this->uninterpreted_option = $arr;
|
|
- $this->has_uninterpreted_option = true;
|
|
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
}
|
|
}
|
|
|
|
|
|
- public function hasUninterpretedOption()
|
|
|
|
- {
|
|
|
|
- return $this->has_uninterpreted_option;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|