Class: UninterpretedOption
google.protobuf.UninterpretedOption
A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.
Implements
Constructors
constructor
• new UninterpretedOption(properties?): UninterpretedOption
Constructs a new UninterpretedOption.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IUninterpretedOption | Properties to set |
Returns
Properties
aggregateValue
• aggregateValue: string
UninterpretedOption aggregateValue.
Implementation of
IUninterpretedOption.aggregateValue
doubleValue
• doubleValue: number
UninterpretedOption doubleValue.
Implementation of
IUninterpretedOption.doubleValue
identifierValue
• identifierValue: string
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
Implementation of
IUninterpretedOption.identifierValue
name
• name: INamePart[]
UninterpretedOption name.
Implementation of
negativeIntValue
• negativeIntValue: Long
UninterpretedOption negativeIntValue.
Implementation of
IUninterpretedOption.negativeIntValue
positiveIntValue
• positiveIntValue: Long
UninterpretedOption positiveIntValue.
Implementation of
IUninterpretedOption.positiveIntValue
stringValue
• stringValue: Uint8Array
UninterpretedOption stringValue.
Implementation of
IUninterpretedOption.stringValue
Methods
toJSON
▸ toJSON(): Object
Converts this UninterpretedOption to JSON.
Returns
Object
JSON object
create
▸ create(properties?): UninterpretedOption
Creates a new UninterpretedOption instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | IUninterpretedOption | Properties to set |
Returns
UninterpretedOption instance
decode
▸ decode(reader, length?): UninterpretedOption
Decodes an UninterpretedOption 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 |
Returns
UninterpretedOption
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader): UninterpretedOption
Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
UninterpretedOption
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode
▸ encode(message, writer?): Writer
Encodes the specified UninterpretedOption message. Does not implicitly google.protobuf.UninterpretedOption.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | IUninterpretedOption | UninterpretedOption message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message, writer?): Writer
Encodes the specified UninterpretedOption message, length delimited. Does not implicitly google.protobuf.UninterpretedOption.verify|verify messages.
Parameters
| Name | Type | Description |
|---|---|---|
message | IUninterpretedOption | UninterpretedOption message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object): UninterpretedOption
Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
UninterpretedOption
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?): string
Gets the default type url for UninterpretedOption
Parameters
| Name | Type | Description |
|---|---|---|
typeUrlPrefix? | string | your custom typeUrlPrefix(default "type.googleapis.com") |
Returns
string
The default type url
toObject
▸ toObject(message, options?): Object
Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | UninterpretedOption | UninterpretedOption |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object