Class: DescriptorProto
google.protobuf.DescriptorProto
Represents a DescriptorProto.
Implements
Constructors
constructor
• new DescriptorProto(properties?
): DescriptorProto
Constructs a new DescriptorProto.
Parameters
Name | Type | Description |
---|---|---|
properties? | IDescriptorProto | Properties to set |
Returns
Properties
enumType
• enumType: IEnumDescriptorProto
[]
DescriptorProto enumType.
Implementation of
extension
• extension: IFieldDescriptorProto
[]
DescriptorProto extension.
Implementation of
extensionRange
• extensionRange: IExtensionRange
[]
DescriptorProto extensionRange.
Implementation of
IDescriptorProto.extensionRange
field
• field: IFieldDescriptorProto
[]
DescriptorProto field.
Implementation of
name
• name: string
DescriptorProto name.
Implementation of
nestedType
• nestedType: IDescriptorProto
[]
DescriptorProto nestedType.
Implementation of
oneofDecl
• oneofDecl: IOneofDescriptorProto
[]
DescriptorProto oneofDecl.
Implementation of
options
• Optional
options: null
| IMessageOptions
DescriptorProto options.
Implementation of
reservedName
• reservedName: string
[]
DescriptorProto reservedName.
Implementation of
reservedRange
• reservedRange: IReservedRange
[]
DescriptorProto reservedRange.
Implementation of
IDescriptorProto.reservedRange
Methods
toJSON
▸ toJSON(): Object
Converts this DescriptorProto to JSON.
Returns
Object
JSON object