proto library Client - Class DescriptorProto (v5.36.2)
Reference documentation and code samples for the proto library Client class DescriptorProto.
Describes a message type.
Generated from protobuf message google.protobuf.DescriptorProto
Namespace
Google \ Protobuf \ Internal
Methods
__construct
getName
Generated from protobuf field optional string name = 1;
| Returns |
| Type |
Description |
string |
|
hasName
clearName
setName
Generated from protobuf field optional string name = 1;
| Parameter |
| Name |
Description |
var |
string
|
| Returns |
| Type |
Description |
$this |
|
getField
Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto field = 2;
setField
Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto field = 2;
| Returns |
| Type |
Description |
$this |
|
getExtension
Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 6;
setExtension
Generated from protobuf field repeated .google.protobuf.FieldDescriptorProto extension = 6;
| Returns |
| Type |
Description |
$this |
|
getNestedType
Generated from protobuf field repeated .google.protobuf.DescriptorProto nested_type = 3;
setNestedType
Generated from protobuf field repeated .google.protobuf.DescriptorProto nested_type = 3;
| Returns |
| Type |
Description |
$this |
|
getEnumType
Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
setEnumType
Generated from protobuf field repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
| Returns |
| Type |
Description |
$this |
|
getExtensionRange
Generated from protobuf field repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
setExtensionRange
Generated from protobuf field repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
| Returns |
| Type |
Description |
$this |
|
getOneofDecl
Generated from protobuf field repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
setOneofDecl
Generated from protobuf field repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
| Returns |
| Type |
Description |
$this |
|
getOptions
Generated from protobuf field optional .google.protobuf.MessageOptions options = 7;
hasOptions
clearOptions
setOptions
Generated from protobuf field optional .google.protobuf.MessageOptions options = 7;
| Returns |
| Type |
Description |
$this |
|
getReservedRange
Generated from protobuf field repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
setReservedRange
Generated from protobuf field repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
| Returns |
| Type |
Description |
$this |
|
getReservedName
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
setReservedName
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
| Parameter |
| Name |
Description |
var |
string[]
|
| Returns |
| Type |
Description |
$this |
|
getVisibility
Support for export and local keywords on enums.
| Returns |
| Type |
Description |
int |
one of the values in {@see \Google\Protobuf\Internal\SymbolVisibility} |
hasVisibility
clearVisibility
setVisibility
Support for export and local keywords on enums.
| Returns |
| Type |
Description |
$this |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-01 UTC."],[],[]]