--- a/lib/Protobuf-PHP/library/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php +++ b/lib/Protobuf-PHP/library/DrSlump/Protobuf/Compiler/protos/descriptor.pb.php @@ -1,1 +1,4780 @@ - +number = 1; + $f->name = "file"; + $f->nameOrig = "file"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\FileDescriptorProto"; + $descriptor->addField($f); + + foreach (self::$__extensions as $cb) { + $descriptor->addField($cb(), true); + } + + self::$__descriptor = $descriptor; + } + + return self::$__descriptor; + } + + /** @var \google\protobuf\FileDescriptorProto[] */ + public $file = array(); + + + /** + * Check if has a value + * + * @return boolean + */ + public function hasFile(){ + return $this->_has(1); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorSet + */ + public function clearFile(){ + return $this->_clear(1); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\FileDescriptorProto + */ + public function getFile($idx = NULL){ + return $this->_get(1, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\FileDescriptorProto $value + * @return \google\protobuf\FileDescriptorSet + */ + public function setFile(\google\protobuf\FileDescriptorProto $value, $idx = NULL){ + return $this->_set(1, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\FileDescriptorProto[] + */ + public function getFileList(){ + return $this->_get(1); + } + + /** + * Add a new element to + * + * @param \google\protobuf\FileDescriptorProto $value + * @return \google\protobuf\FileDescriptorSet + */ + public function addFile(\google\protobuf\FileDescriptorProto $value){ + return $this->_add(1, $value); + } + + } +} + +namespace google\protobuf { + + class FileDescriptorProto extends \DrSlump\Protobuf\Message { + + /** @var \DrSlump\Protobuf\Descriptor */ + protected static $__descriptor; + /** @var \Closure[] */ + protected static $__extensions = array(); + + public static function descriptor(\DrSlump\Protobuf\Descriptor $descriptor = NULL) + { + if (NULL !== $descriptor) { + self::$__descriptor = $descriptor; + return self::$__descriptor; + } + + if (!self::$__descriptor) { + $descriptor = new \DrSlump\Protobuf\Descriptor("\google\protobuf\FileDescriptorProto"); + + // optional name = 1 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 1; + $f->name = "name"; + $f->nameOrig = "name"; + $f->type = 9; + $f->rule = 1; + $descriptor->addField($f); + + // optional package = 2 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 2; + $f->name = "package"; + $f->nameOrig = "package"; + $f->type = 9; + $f->rule = 1; + $descriptor->addField($f); + + // repeated dependency = 3 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 3; + $f->name = "dependency"; + $f->nameOrig = "dependency"; + $f->type = 9; + $f->rule = 3; + $descriptor->addField($f); + + // repeated .google.protobuf.DescriptorProto message_type = 4 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 4; + $f->name = "message_type"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\DescriptorProto"; + $descriptor->addField($f); + + // repeated .google.protobuf.EnumDescriptorProto enum_type = 5 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 5; + $f->name = "enum_type"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\EnumDescriptorProto"; + $descriptor->addField($f); + + // repeated .google.protobuf.ServiceDescriptorProto service = 6 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 6; + $f->name = "service"; + $f->nameOrig = "service"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\ServiceDescriptorProto"; + $descriptor->addField($f); + + // repeated .google.protobuf.FieldDescriptorProto extension = 7 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 7; + $f->name = "extension"; + $f->nameOrig = "extension"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\FieldDescriptorProto"; + $descriptor->addField($f); + + // optional .google.protobuf.FileOptions options = 8 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 8; + $f->name = "options"; + $f->nameOrig = "options"; + $f->type = 11; + $f->rule = 1; + $f->reference = "\google\protobuf\FileOptions"; + $descriptor->addField($f); + + // optional .google.protobuf.SourceCodeInfo source_code_info = 9 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 9; + $f->name = "source_code_info"; + $f->type = 11; + $f->rule = 1; + $f->reference = "\google\protobuf\SourceCodeInfo"; + $descriptor->addField($f); + + foreach (self::$__extensions as $cb) { + $descriptor->addField($cb(), true); + } + + self::$__descriptor = $descriptor; + } + + return self::$__descriptor; + } + + /** @var string */ + public $name = null; + + /** @var string */ + public $package = null; + + /** @var string[] */ + public $dependency = array(); + + /** @var \google\protobuf\DescriptorProto[] */ + public $message_type = array(); + + /** @var \google\protobuf\EnumDescriptorProto[] */ + public $enum_type = array(); + + /** @var \google\protobuf\ServiceDescriptorProto[] */ + public $service = array(); + + /** @var \google\protobuf\FieldDescriptorProto[] */ + public $extension = array(); + + /** @var \google\protobuf\FileOptions */ + public $options = null; + + /** @var \google\protobuf\SourceCodeInfo */ + public $source_code_info = null; + + + /** + * Check if has a value + * + * @return boolean + */ + public function hasName(){ + return $this->_has(1); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearName(){ + return $this->_clear(1); + } + + /** + * Get value + * + * @return string + */ + public function getName(){ + return $this->_get(1); + } + + /** + * Set value + * + * @param string $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setName( $value){ + return $this->_set(1, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasPackage(){ + return $this->_has(2); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearPackage(){ + return $this->_clear(2); + } + + /** + * Get value + * + * @return string + */ + public function getPackage(){ + return $this->_get(2); + } + + /** + * Set value + * + * @param string $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setPackage( $value){ + return $this->_set(2, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasDependency(){ + return $this->_has(3); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearDependency(){ + return $this->_clear(3); + } + + /** + * Get value + * + * @param int $idx + * @return string + */ + public function getDependency($idx = NULL){ + return $this->_get(3, $idx); + } + + /** + * Set value + * + * @param string $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setDependency( $value, $idx = NULL){ + return $this->_set(3, $value, $idx); + } + + /** + * Get all elements of + * + * @return string[] + */ + public function getDependencyList(){ + return $this->_get(3); + } + + /** + * Add a new element to + * + * @param string $value + * @return \google\protobuf\FileDescriptorProto + */ + public function addDependency( $value){ + return $this->_add(3, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasMessageType(){ + return $this->_has(4); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearMessageType(){ + return $this->_clear(4); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\DescriptorProto + */ + public function getMessageType($idx = NULL){ + return $this->_get(4, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\DescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setMessageType(\google\protobuf\DescriptorProto $value, $idx = NULL){ + return $this->_set(4, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\DescriptorProto[] + */ + public function getMessageTypeList(){ + return $this->_get(4); + } + + /** + * Add a new element to + * + * @param \google\protobuf\DescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function addMessageType(\google\protobuf\DescriptorProto $value){ + return $this->_add(4, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasEnumType(){ + return $this->_has(5); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearEnumType(){ + return $this->_clear(5); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\EnumDescriptorProto + */ + public function getEnumType($idx = NULL){ + return $this->_get(5, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\EnumDescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setEnumType(\google\protobuf\EnumDescriptorProto $value, $idx = NULL){ + return $this->_set(5, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\EnumDescriptorProto[] + */ + public function getEnumTypeList(){ + return $this->_get(5); + } + + /** + * Add a new element to + * + * @param \google\protobuf\EnumDescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function addEnumType(\google\protobuf\EnumDescriptorProto $value){ + return $this->_add(5, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasService(){ + return $this->_has(6); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearService(){ + return $this->_clear(6); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\ServiceDescriptorProto + */ + public function getService($idx = NULL){ + return $this->_get(6, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\ServiceDescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setService(\google\protobuf\ServiceDescriptorProto $value, $idx = NULL){ + return $this->_set(6, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\ServiceDescriptorProto[] + */ + public function getServiceList(){ + return $this->_get(6); + } + + /** + * Add a new element to + * + * @param \google\protobuf\ServiceDescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function addService(\google\protobuf\ServiceDescriptorProto $value){ + return $this->_add(6, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasExtension(){ + return $this->_has(7); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearExtension(){ + return $this->_clear(7); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\FieldDescriptorProto + */ + public function getExtension($idx = NULL){ + return $this->_get(7, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\FieldDescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setExtension(\google\protobuf\FieldDescriptorProto $value, $idx = NULL){ + return $this->_set(7, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\FieldDescriptorProto[] + */ + public function getExtensionList(){ + return $this->_get(7); + } + + /** + * Add a new element to + * + * @param \google\protobuf\FieldDescriptorProto $value + * @return \google\protobuf\FileDescriptorProto + */ + public function addExtension(\google\protobuf\FieldDescriptorProto $value){ + return $this->_add(7, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasOptions(){ + return $this->_has(8); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearOptions(){ + return $this->_clear(8); + } + + /** + * Get value + * + * @return \google\protobuf\FileOptions + */ + public function getOptions(){ + return $this->_get(8); + } + + /** + * Set value + * + * @param \google\protobuf\FileOptions $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setOptions(\google\protobuf\FileOptions $value){ + return $this->_set(8, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasSourceCodeInfo(){ + return $this->_has(9); + } + + /** + * Clear value + * + * @return \google\protobuf\FileDescriptorProto + */ + public function clearSourceCodeInfo(){ + return $this->_clear(9); + } + + /** + * Get value + * + * @return \google\protobuf\SourceCodeInfo + */ + public function getSourceCodeInfo(){ + return $this->_get(9); + } + + /** + * Set value + * + * @param \google\protobuf\SourceCodeInfo $value + * @return \google\protobuf\FileDescriptorProto + */ + public function setSourceCodeInfo(\google\protobuf\SourceCodeInfo $value){ + return $this->_set(9, $value); + } + + } +} + +namespace google\protobuf { + + class DescriptorProto extends \DrSlump\Protobuf\Message { + + /** @var \DrSlump\Protobuf\Descriptor */ + protected static $__descriptor; + /** @var \Closure[] */ + protected static $__extensions = array(); + + public static function descriptor(\DrSlump\Protobuf\Descriptor $descriptor = NULL) + { + if (NULL !== $descriptor) { + self::$__descriptor = $descriptor; + return self::$__descriptor; + } + + if (!self::$__descriptor) { + $descriptor = new \DrSlump\Protobuf\Descriptor("\google\protobuf\DescriptorProto"); + + // optional name = 1 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 1; + $f->name = "name"; + $f->nameOrig = "name"; + $f->type = 9; + $f->rule = 1; + $descriptor->addField($f); + + // repeated .google.protobuf.FieldDescriptorProto field = 2 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 2; + $f->name = "field"; + $f->nameOrig = "field"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\FieldDescriptorProto"; + $descriptor->addField($f); + + // repeated .google.protobuf.FieldDescriptorProto extension = 6 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 6; + $f->name = "extension"; + $f->nameOrig = "extension"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\FieldDescriptorProto"; + $descriptor->addField($f); + + // repeated .google.protobuf.DescriptorProto nested_type = 3 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 3; + $f->name = "nested_type"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\DescriptorProto"; + $descriptor->addField($f); + + // repeated .google.protobuf.EnumDescriptorProto enum_type = 4 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 4; + $f->name = "enum_type"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\EnumDescriptorProto"; + $descriptor->addField($f); + + // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 5; + $f->name = "extension_range"; + $f->type = 11; + $f->rule = 3; + $f->reference = "\google\protobuf\DescriptorProto\ExtensionRange"; + $descriptor->addField($f); + + // optional .google.protobuf.MessageOptions options = 7 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 7; + $f->name = "options"; + $f->nameOrig = "options"; + $f->type = 11; + $f->rule = 1; + $f->reference = "\google\protobuf\MessageOptions"; + $descriptor->addField($f); + + foreach (self::$__extensions as $cb) { + $descriptor->addField($cb(), true); + } + + self::$__descriptor = $descriptor; + } + + return self::$__descriptor; + } + + /** @var string */ + public $name = null; + + /** @var \google\protobuf\FieldDescriptorProto[] */ + public $field = array(); + + /** @var \google\protobuf\FieldDescriptorProto[] */ + public $extension = array(); + + /** @var \google\protobuf\DescriptorProto[] */ + public $nested_type = array(); + + /** @var \google\protobuf\EnumDescriptorProto[] */ + public $enum_type = array(); + + /** @var \google\protobuf\DescriptorProto\ExtensionRange[] */ + public $extension_range = array(); + + /** @var \google\protobuf\MessageOptions */ + public $options = null; + + + /** + * Check if has a value + * + * @return boolean + */ + public function hasName(){ + return $this->_has(1); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto + */ + public function clearName(){ + return $this->_clear(1); + } + + /** + * Get value + * + * @return string + */ + public function getName(){ + return $this->_get(1); + } + + /** + * Set value + * + * @param string $value + * @return \google\protobuf\DescriptorProto + */ + public function setName( $value){ + return $this->_set(1, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasField(){ + return $this->_has(2); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto + */ + public function clearField(){ + return $this->_clear(2); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\FieldDescriptorProto + */ + public function getField($idx = NULL){ + return $this->_get(2, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\FieldDescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function setField(\google\protobuf\FieldDescriptorProto $value, $idx = NULL){ + return $this->_set(2, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\FieldDescriptorProto[] + */ + public function getFieldList(){ + return $this->_get(2); + } + + /** + * Add a new element to + * + * @param \google\protobuf\FieldDescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function addField(\google\protobuf\FieldDescriptorProto $value){ + return $this->_add(2, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasExtension(){ + return $this->_has(6); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto + */ + public function clearExtension(){ + return $this->_clear(6); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\FieldDescriptorProto + */ + public function getExtension($idx = NULL){ + return $this->_get(6, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\FieldDescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function setExtension(\google\protobuf\FieldDescriptorProto $value, $idx = NULL){ + return $this->_set(6, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\FieldDescriptorProto[] + */ + public function getExtensionList(){ + return $this->_get(6); + } + + /** + * Add a new element to + * + * @param \google\protobuf\FieldDescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function addExtension(\google\protobuf\FieldDescriptorProto $value){ + return $this->_add(6, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasNestedType(){ + return $this->_has(3); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto + */ + public function clearNestedType(){ + return $this->_clear(3); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\DescriptorProto + */ + public function getNestedType($idx = NULL){ + return $this->_get(3, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\DescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function setNestedType(\google\protobuf\DescriptorProto $value, $idx = NULL){ + return $this->_set(3, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\DescriptorProto[] + */ + public function getNestedTypeList(){ + return $this->_get(3); + } + + /** + * Add a new element to + * + * @param \google\protobuf\DescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function addNestedType(\google\protobuf\DescriptorProto $value){ + return $this->_add(3, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasEnumType(){ + return $this->_has(4); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto + */ + public function clearEnumType(){ + return $this->_clear(4); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\EnumDescriptorProto + */ + public function getEnumType($idx = NULL){ + return $this->_get(4, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\EnumDescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function setEnumType(\google\protobuf\EnumDescriptorProto $value, $idx = NULL){ + return $this->_set(4, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\EnumDescriptorProto[] + */ + public function getEnumTypeList(){ + return $this->_get(4); + } + + /** + * Add a new element to + * + * @param \google\protobuf\EnumDescriptorProto $value + * @return \google\protobuf\DescriptorProto + */ + public function addEnumType(\google\protobuf\EnumDescriptorProto $value){ + return $this->_add(4, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasExtensionRange(){ + return $this->_has(5); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto + */ + public function clearExtensionRange(){ + return $this->_clear(5); + } + + /** + * Get value + * + * @param int $idx + * @return \google\protobuf\DescriptorProto\ExtensionRange + */ + public function getExtensionRange($idx = NULL){ + return $this->_get(5, $idx); + } + + /** + * Set value + * + * @param \google\protobuf\DescriptorProto\ExtensionRange $value + * @return \google\protobuf\DescriptorProto + */ + public function setExtensionRange(\google\protobuf\DescriptorProto\ExtensionRange $value, $idx = NULL){ + return $this->_set(5, $value, $idx); + } + + /** + * Get all elements of + * + * @return \google\protobuf\DescriptorProto\ExtensionRange[] + */ + public function getExtensionRangeList(){ + return $this->_get(5); + } + + /** + * Add a new element to + * + * @param \google\protobuf\DescriptorProto\ExtensionRange $value + * @return \google\protobuf\DescriptorProto + */ + public function addExtensionRange(\google\protobuf\DescriptorProto\ExtensionRange $value){ + return $this->_add(5, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasOptions(){ + return $this->_has(7); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto + */ + public function clearOptions(){ + return $this->_clear(7); + } + + /** + * Get value + * + * @return \google\protobuf\MessageOptions + */ + public function getOptions(){ + return $this->_get(7); + } + + /** + * Set value + * + * @param \google\protobuf\MessageOptions $value + * @return \google\protobuf\DescriptorProto + */ + public function setOptions(\google\protobuf\MessageOptions $value){ + return $this->_set(7, $value); + } + + } +} + +namespace google\protobuf\DescriptorProto { + + class ExtensionRange extends \DrSlump\Protobuf\Message { + + /** @var \DrSlump\Protobuf\Descriptor */ + protected static $__descriptor; + /** @var \Closure[] */ + protected static $__extensions = array(); + + public static function descriptor(\DrSlump\Protobuf\Descriptor $descriptor = NULL) + { + if (NULL !== $descriptor) { + self::$__descriptor = $descriptor; + return self::$__descriptor; + } + + if (!self::$__descriptor) { + $descriptor = new \DrSlump\Protobuf\Descriptor("\google\protobuf\DescriptorProto\ExtensionRange"); + + // optional start = 1 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 1; + $f->name = "start"; + $f->nameOrig = "start"; + $f->type = 5; + $f->rule = 1; + $descriptor->addField($f); + + // optional end = 2 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 2; + $f->name = "end"; + $f->nameOrig = "end"; + $f->type = 5; + $f->rule = 1; + $descriptor->addField($f); + + foreach (self::$__extensions as $cb) { + $descriptor->addField($cb(), true); + } + + self::$__descriptor = $descriptor; + } + + return self::$__descriptor; + } + + /** @var int */ + public $start = null; + + /** @var int */ + public $end = null; + + + /** + * Check if has a value + * + * @return boolean + */ + public function hasStart(){ + return $this->_has(1); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto\ExtensionRange + */ + public function clearStart(){ + return $this->_clear(1); + } + + /** + * Get value + * + * @return int + */ + public function getStart(){ + return $this->_get(1); + } + + /** + * Set value + * + * @param int $value + * @return \google\protobuf\DescriptorProto\ExtensionRange + */ + public function setStart( $value){ + return $this->_set(1, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasEnd(){ + return $this->_has(2); + } + + /** + * Clear value + * + * @return \google\protobuf\DescriptorProto\ExtensionRange + */ + public function clearEnd(){ + return $this->_clear(2); + } + + /** + * Get value + * + * @return int + */ + public function getEnd(){ + return $this->_get(2); + } + + /** + * Set value + * + * @param int $value + * @return \google\protobuf\DescriptorProto\ExtensionRange + */ + public function setEnd( $value){ + return $this->_set(2, $value); + } + + } +} + +namespace google\protobuf { + + class FieldDescriptorProto extends \DrSlump\Protobuf\Message { + + /** @var \DrSlump\Protobuf\Descriptor */ + protected static $__descriptor; + /** @var \Closure[] */ + protected static $__extensions = array(); + + public static function descriptor(\DrSlump\Protobuf\Descriptor $descriptor = NULL) + { + if (NULL !== $descriptor) { + self::$__descriptor = $descriptor; + return self::$__descriptor; + } + + if (!self::$__descriptor) { + $descriptor = new \DrSlump\Protobuf\Descriptor("\google\protobuf\FieldDescriptorProto"); + + // optional name = 1 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 1; + $f->name = "name"; + $f->nameOrig = "name"; + $f->type = 9; + $f->rule = 1; + $descriptor->addField($f); + + // optional number = 3 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 3; + $f->name = "number"; + $f->nameOrig = "number"; + $f->type = 5; + $f->rule = 1; + $descriptor->addField($f); + + // optional .google.protobuf.FieldDescriptorProto.Label label = 4 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 4; + $f->name = "label"; + $f->nameOrig = "label"; + $f->type = 14; + $f->rule = 1; + $f->reference = "\google\protobuf\FieldDescriptorProto\Label"; + $descriptor->addField($f); + + // optional .google.protobuf.FieldDescriptorProto.Type type = 5 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 5; + $f->name = "type"; + $f->nameOrig = "type"; + $f->type = 14; + $f->rule = 1; + $f->reference = "\google\protobuf\FieldDescriptorProto\Type"; + $descriptor->addField($f); + + // optional type_name = 6 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 6; + $f->name = "type_name"; + $f->type = 9; + $f->rule = 1; + $descriptor->addField($f); + + // optional extendee = 2 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 2; + $f->name = "extendee"; + $f->nameOrig = "extendee"; + $f->type = 9; + $f->rule = 1; + $descriptor->addField($f); + + // optional default_value = 7 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 7; + $f->name = "default_value"; + $f->type = 9; + $f->rule = 1; + $descriptor->addField($f); + + // optional .google.protobuf.FieldOptions options = 8 + $f = new \DrSlump\Protobuf\Field(); + $f->number = 8; + $f->name = "options"; + $f->nameOrig = "options"; + $f->type = 11; + $f->rule = 1; + $f->reference = "\google\protobuf\FieldOptions"; + $descriptor->addField($f); + + foreach (self::$__extensions as $cb) { + $descriptor->addField($cb(), true); + } + + self::$__descriptor = $descriptor; + } + + return self::$__descriptor; + } + + /** @var string */ + public $name = null; + + /** @var int */ + public $number = null; + + /** @var int - \google\protobuf\FieldDescriptorProto\Label */ + public $label = null; + + /** @var int - \google\protobuf\FieldDescriptorProto\Type */ + public $type = null; + + /** @var string */ + public $type_name = null; + + /** @var string */ + public $extendee = null; + + /** @var string */ + public $default_value = null; + + /** @var \google\protobuf\FieldOptions */ + public $options = null; + + + /** + * Check if has a value + * + * @return boolean + */ + public function hasName(){ + return $this->_has(1); + } + + /** + * Clear value + * + * @return \google\protobuf\FieldDescriptorProto + */ + public function clearName(){ + return $this->_clear(1); + } + + /** + * Get value + * + * @return string + */ + public function getName(){ + return $this->_get(1); + } + + /** + * Set value + * + * @param string $value + * @return \google\protobuf\FieldDescriptorProto + */ + public function setName( $value){ + return $this->_set(1, $value); + } + + /** + * Check if has a value + * + * @return boolean + */ + public function hasNumber(){ + return $this->_has(3); + } + + /** + * Clear value + * + * @return \google\protobuf\FieldDescriptorProto + */ + public function clearNumber(){ + return $this->_clear(3); + } + + /** + * Get value + * + * @return int + */ + public function getNumber(){ + return $this->_get(3); + } + + /** + * Set value + * + * @param int $value + * @return \google\protobuf\FieldDescriptorProto + */ + public function setNumber( $value){ + return $this->_set(3, $value); + } + + /** + * Check if