Class: OneofDescriptorProto
google.protobuf.OneofDescriptorProto
Describes a oneof.
Implements
Constructors
constructor
• new OneofDescriptorProto(properties?): OneofDescriptorProto
Constructs a new OneofDescriptorProto.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IOneofDescriptorProto | Properties to set |
Returns
Properties
name
• name: string
OneofDescriptorProto name.
Implementation of
options
• Optional options: null | IOneofOptions
OneofDescriptorProto options.
Implementation of
Methods
toJSON
▸ toJSON(): Object
Converts this OneofDescriptorProto to JSON.
Returns
Object
JSON object
create
▸ create(properties?): OneofDescriptorProto
Creates a new OneofDescriptorProto instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IOneofDescriptorProto | Properties to set |
Returns
OneofDescriptorProto instance
decode
▸ decode(reader, length?): OneofDescriptorProto
Decodes an OneofDescriptorProto message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |