Skip to main content

Class: EnumValueOptions

google.protobuf.EnumValueOptions

Represents an EnumValueOptions.

Implements#

Constructors#

constructor#

new EnumValueOptions(properties?)

Constructs a new EnumValueOptions.

Parameters#

NameType
properties?IEnumValueOptions

Properties#

deprecated#

deprecated: boolean

EnumValueOptions deprecated.

Implementation of#

IEnumValueOptions.deprecated


uninterpretedOption#

uninterpretedOption: IUninterpretedOption[]

EnumValueOptions uninterpretedOption.

Implementation of#

IEnumValueOptions.uninterpretedOption

Methods#

toJSON#

toJSON(): Object

Converts this EnumValueOptions to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): EnumValueOptions

Decodes an EnumValueOptions message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

EnumValueOptions

EnumValueOptions


decodeDelimited#

Static decodeDelimited(reader): EnumValueOptions

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

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

EnumValueOptions

EnumValueOptions


encode#

Static encode(message, writer?): Writer

Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.

Parameters#

NameTypeDescription
messageIEnumValueOptionsEnumValueOptions message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.

Parameters#

NameTypeDescription
messageIEnumValueOptionsEnumValueOptions message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): EnumValueOptions

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

EnumValueOptions

EnumValueOptions


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageEnumValueOptionsEnumValueOptions
options?IConversionOptions-

Returns#

Object

Plain object