Skip to main content

Class: 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.

Properties​

aggregateValue​

aggregateValue: string

UninterpretedOption aggregateValue.


doubleValue​

doubleValue: number

UninterpretedOption 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.


name​

name: $Properties[]

UninterpretedOption name.


negativeIntValue​

negativeIntValue: Long

UninterpretedOption negativeIntValue.


positiveIntValue​

positiveIntValue: Long

UninterpretedOption positiveIntValue.


stringValue​

stringValue: Uint8Array

UninterpretedOption stringValue.

Methods​

toJSON()​

toJSON(): object

Converts this UninterpretedOption to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): UninterpretedOption & $Properties

Creates a new UninterpretedOption instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

UninterpretedOption & $Properties

UninterpretedOption instance

Call Signature​

static create(properties?): UninterpretedOption

Creates a new UninterpretedOption instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

UninterpretedOption

UninterpretedOption instance


decode()​

static decode(reader, length?): UninterpretedOption & $Properties

Decodes an UninterpretedOption message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

UninterpretedOption & $Properties

UninterpretedOption

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): UninterpretedOption & $Properties

Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

UninterpretedOption & $Properties

UninterpretedOption

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified UninterpretedOption message. Does not implicitly google.protobuf.UninterpretedOption.verify|verify messages.

Parameters​

message​

$Properties

UninterpretedOption message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified UninterpretedOption message, length delimited. Does not implicitly google.protobuf.UninterpretedOption.verify|verify messages.

Parameters​

message​

$Properties

UninterpretedOption message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): UninterpretedOption

Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.

Parameters​

object​

{[k: string]: any; }

Plain object

Returns​

UninterpretedOption

UninterpretedOption


toObject()​

static toObject(message, options?): object

Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.

Parameters​

message​

UninterpretedOption

UninterpretedOption

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object