Skip to main content

Class: UninterpretedOption

google.protobuf.UninterpretedOption

Represents an UninterpretedOption.

Implements

Constructors

constructor

new UninterpretedOption(properties?)

Constructs a new UninterpretedOption.

Parameters

NameTypeDescription
properties?IUninterpretedOptionProperties to set

Properties

aggregateValue

aggregateValue: string

UninterpretedOption aggregateValue.

Implementation of

IUninterpretedOption.aggregateValue


doubleValue

doubleValue: number

UninterpretedOption doubleValue.

Implementation of

IUninterpretedOption.doubleValue


identifierValue

identifierValue: string

UninterpretedOption identifierValue.

Implementation of

IUninterpretedOption.identifierValue


name

name: INamePart[]

UninterpretedOption name.

Implementation of

IUninterpretedOption.name


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

Static create(properties?): UninterpretedOption

Creates a new UninterpretedOption instance using the specified properties.

Parameters

NameTypeDescription
properties?IUninterpretedOptionProperties to set

Returns

UninterpretedOption

UninterpretedOption instance


decode

Static decode(reader, length?): UninterpretedOption

Decodes an UninterpretedOption message from the specified reader or buffer.

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

UninterpretedOption

UninterpretedOption


decodeDelimited

Static decodeDelimited(reader): UninterpretedOption

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

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

UninterpretedOption

UninterpretedOption


encode

Static encode(message, writer?): Writer

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

Parameters

NameTypeDescription
messageIUninterpretedOptionUninterpretedOption message or plain object to encode
writer?WriterWriter 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

NameTypeDescription
messageIUninterpretedOptionUninterpretedOption message or plain object to encode
writer?WriterWriter 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

NameTypeDescription
objectObjectPlain object

Returns

UninterpretedOption

UninterpretedOption


getTypeUrl

Static getTypeUrl(typeUrlPrefix?): string

Gets the default type url for UninterpretedOption

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

Static toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageUninterpretedOptionUninterpretedOption
options?IConversionOptionsConversion options

Returns

Object

Plain object