* Describes a message type.
*
*
* Protobuf type google.protobuf.DescriptorProto
*/
class DescriptorProto extends \Google\Protobuf\Internal\Message
{
/**
* optional string name = 1;
*/
private $name = '';
private $has_name = false;
/**
* repeated .google.protobuf.FieldDescriptorProto field = 2;
*/
private $field;
private $has_field = false;
/**
* repeated .google.protobuf.FieldDescriptorProto extension = 6;
*/
private $extension;
private $has_extension = false;
/**
* repeated .google.protobuf.DescriptorProto nested_type = 3;
*/
private $nested_type;
private $has_nested_type = false;
/**
* repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
*/
private $enum_type;
private $has_enum_type = false;
/**
* repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
*/
private $extension_range;
private $has_extension_range = false;
/**
* repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
*/
private $oneof_decl;
private $has_oneof_decl = false;
/**
* optional .google.protobuf.MessageOptions options = 7;
*/
private $options = null;
private $has_options = false;
/**
* 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;
*/
private $reserved_name;
private $has_reserved_name = false;
public function __construct() {
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
parent::__construct();
}
/**
* optional string name = 1;
*/
public function getName()
{
return $this->name;
}
/**
* 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;
}
/**
* repeated .google.protobuf.FieldDescriptorProto field = 2;
*/
public function getField()
{
return $this->field;
}
/**
* repeated .google.protobuf.FieldDescriptorProto field = 2;
*/
public function setField(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
$this->field = $var;
$this->has_field = true;
}
public function hasField()
{
return $this->has_field;
}
/**
* repeated .google.protobuf.FieldDescriptorProto extension = 6;
*/
public function getExtension()
{
return $this->extension;
}
/**
* repeated .google.protobuf.FieldDescriptorProto extension = 6;
*/
public function setExtension(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
$this->extension = $var;
$this->has_extension = true;
}
public function hasExtension()
{
return $this->has_extension;
}
/**
* repeated .google.protobuf.DescriptorProto nested_type = 3;
*/
public function getNestedType()
{
return $this->nested_type;
}
/**
* repeated .google.protobuf.DescriptorProto nested_type = 3;
*/
public function setNestedType(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto::class);
$this->nested_type = $var;
$this->has_nested_type = true;
}
public function hasNestedType()
{
return $this->has_nested_type;
}
/**
* repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
*/
public function getEnumType()
{
return $this->enum_type;
}
/**
* repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
*/
public function setEnumType(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\EnumDescriptorProto::class);
$this->enum_type = $var;
$this->has_enum_type = true;
}
public function hasEnumType()
{
return $this->has_enum_type;
}
/**
* repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
*/
public function getExtensionRange()
{
return $this->extension_range;
}
/**
* repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
*/
public function setExtensionRange(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto_ExtensionRange::class);
$this->extension_range = $var;
$this->has_extension_range = true;
}
public function hasExtensionRange()
{
return $this->has_extension_range;
}
/**
* repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
*/
public function getOneofDecl()
{
return $this->oneof_decl;
}
/**
* repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
*/
public function setOneofDecl(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\OneofDescriptorProto::class);
$this->oneof_decl = $var;
$this->has_oneof_decl = true;
}
public function hasOneofDecl()
{
return $this->has_oneof_decl;
}
/**
* optional .google.protobuf.MessageOptions options = 7;
*/
public function getOptions()
{
return $this->options;
}
/**
* optional .google.protobuf.MessageOptions options = 7;
*/
public function setOptions(&$var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MessageOptions::class);
$this->options = $var;
$this->has_options = true;
}
public function hasOptions()
{
return $this->has_options;
}
/**
* repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
*/
public function getReservedRange()
{
return $this->reserved_range;
}
/**
* repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
*/
public function setReservedRange(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class);
$this->reserved_range = $var;
$this->has_reserved_range = true;
}
public function hasReservedRange()
{
return $this->has_reserved_range;
}
/**
* * 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;
*/
public function getReservedName()
{
return $this->reserved_name;
}
/**
* * 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;
*/
public function setReservedName(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->reserved_name = $var;
$this->has_reserved_name = true;
}
public function hasReservedName()
{
return $this->has_reserved_name;
}
}