Skip to main content

Class: OneofOptions

google.protobuf.OneofOptions

Represents an OneofOptions.

Implements#

Constructors#

constructor#

new OneofOptions(properties?)

Constructs a new OneofOptions.

Parameters#

NameType
properties?IOneofOptions

Properties#

uninterpretedOption#

uninterpretedOption: IUninterpretedOption[]

OneofOptions uninterpretedOption.

Implementation of#

IOneofOptions.uninterpretedOption

Methods#

toJSON#

toJSON(): Object

Converts this OneofOptions to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): OneofOptions

Decodes an OneofOptions 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#

OneofOptions

OneofOptions


decodeDelimited#

Static decodeDelimited(reader): OneofOptions

Decodes an OneofOptions 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#

OneofOptions

OneofOptions


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): OneofOptions

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

OneofOptions

OneofOptions


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageOneofOptionsOneofOptions
options?IConversionOptions-

Returns#

Object

Plain object