* Describes a complete .proto file. * * * Protobuf type google.protobuf.FileDescriptorProto */ class FileDescriptorProto extends \Google\Protobuf\Internal\Message { /** *
     * file name, relative to root of source tree
     * 
* * optional string name = 1; */ private $name = ''; private $has_name = false; /** *
     * e.g. "foo", "foo.bar", etc.
     * 
* * optional string package = 2; */ private $package = ''; private $has_package = false; /** *
     * Names of files imported by this file.
     * 
* * 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; */ 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; */ private $weak_dependency; private $has_weak_dependency = false; /** *
     * All top-level definitions in this file.
     * 
* * repeated .google.protobuf.DescriptorProto message_type = 4; */ private $message_type; private $has_message_type = false; /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ private $enum_type; private $has_enum_type = false; /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ private $service; private $has_service = false; /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ private $extension; private $has_extension = false; /** * 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; */ 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; */ private $syntax = ''; private $has_syntax = false; public function __construct() { \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); parent::__construct(); } /** *
     * file name, relative to root of source tree
     * 
* * optional string name = 1; */ public function getName() { return $this->name; } /** *
     * file name, relative to root of source tree
     * 
* * optional string name = 1; */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; $this->has_name = true; } public function hasName() { return $this->has_name; } /** *
     * e.g. "foo", "foo.bar", etc.
     * 
* * optional string package = 2; */ public function getPackage() { return $this->package; } /** *
     * e.g. "foo", "foo.bar", etc.
     * 
* * optional string package = 2; */ public function setPackage($var) { GPBUtil::checkString($var, True); $this->package = $var; $this->has_package = true; } public function hasPackage() { return $this->has_package; } /** *
     * Names of files imported by this file.
     * 
* * repeated string dependency = 3; */ public function getDependency() { return $this->dependency; } /** *
     * Names of files imported by this file.
     * 
* * repeated string dependency = 3; */ public function setDependency(&$var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->dependency = $arr; $this->has_dependency = true; } public function hasDependency() { return $this->has_dependency; } /** *
     * Indexes of the public imported files in the dependency list above.
     * 
* * repeated int32 public_dependency = 10; */ public function getPublicDependency() { return $this->public_dependency; } /** *
     * Indexes of the public imported files in the dependency list above.
     * 
* * repeated int32 public_dependency = 10; */ public function setPublicDependency(&$var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); $this->public_dependency = $arr; $this->has_public_dependency = true; } public function hasPublicDependency() { return $this->has_public_dependency; } /** *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
* * repeated int32 weak_dependency = 11; */ public function getWeakDependency() { return $this->weak_dependency; } /** *
     * Indexes of the weak imported files in the dependency list.
     * For Google-internal migration only. Do not use.
     * 
* * repeated int32 weak_dependency = 11; */ public function setWeakDependency(&$var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); $this->weak_dependency = $arr; $this->has_weak_dependency = true; } public function hasWeakDependency() { return $this->has_weak_dependency; } /** *
     * All top-level definitions in this file.
     * 
* * repeated .google.protobuf.DescriptorProto message_type = 4; */ public function getMessageType() { return $this->message_type; } /** *
     * All top-level definitions in this file.
     * 
* * repeated .google.protobuf.DescriptorProto message_type = 4; */ public function setMessageType(&$var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto::class); $this->message_type = $arr; $this->has_message_type = true; } public function hasMessageType() { return $this->has_message_type; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public function getEnumType() { return $this->enum_type; } /** * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; */ public function setEnumType(&$var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\EnumDescriptorProto::class); $this->enum_type = $arr; $this->has_enum_type = true; } public function hasEnumType() { return $this->has_enum_type; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public function getService() { return $this->service; } /** * repeated .google.protobuf.ServiceDescriptorProto service = 6; */ public function setService(&$var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\ServiceDescriptorProto::class); $this->service = $arr; $this->has_service = true; } public function hasService() { return $this->has_service; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public function getExtension() { return $this->extension; } /** * repeated .google.protobuf.FieldDescriptorProto extension = 7; */ public function setExtension(&$var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class); $this->extension = $arr; $this->has_extension = true; } public function hasExtension() { return $this->has_extension; } /** * optional .google.protobuf.FileOptions options = 8; */ public function getOptions() { return $this->options; } /** * optional .google.protobuf.FileOptions options = 8; */ public function setOptions(&$var) { GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FileOptions::class); $this->options = $var; $this->has_options = true; } public function hasOptions() { return $this->has_options; } /** *
     * 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; */ public function getSourceCodeInfo() { return $this->source_code_info; } /** *
     * 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; */ public function setSourceCodeInfo(&$var) { GPBUtil::checkMessage($var, \Google\Protobuf\Internal\SourceCodeInfo::class); $this->source_code_info = $var; $this->has_source_code_info = true; } public function hasSourceCodeInfo() { return $this->has_source_code_info; } /** *
     * The syntax of the proto file.
     * The supported values are "proto2" and "proto3".
     * 
* * optional string syntax = 12; */ public function getSyntax() { return $this->syntax; } /** *
     * The syntax of the proto file.
     * The supported values are "proto2" and "proto3".
     * 
* * optional string syntax = 12; */ public function setSyntax($var) { GPBUtil::checkString($var, True); $this->syntax = $var; $this->has_syntax = true; } public function hasSyntax() { return $this->has_syntax; } }