Skip to main content

Class: MethodOptions

google.protobuf.MethodOptions

Represents a MethodOptions.

Implements#

Constructors#

constructor#

new MethodOptions(properties?)

Constructs a new MethodOptions.

Parameters#

NameType
properties?IMethodOptions

Properties#

deprecated#

deprecated: boolean

MethodOptions deprecated.

Implementation of#

IMethodOptions.deprecated


uninterpretedOption#

uninterpretedOption: IUninterpretedOption[]

MethodOptions uninterpretedOption.

Implementation of#

IMethodOptions.uninterpretedOption

Methods#

toJSON#

toJSON(): Object

Converts this MethodOptions to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): MethodOptions

Decodes a MethodOptions 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#

MethodOptions

MethodOptions


decodeDelimited#

Static decodeDelimited(reader): MethodOptions

Decodes a MethodOptions 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#

MethodOptions

MethodOptions


encode#

Static encode(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

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

Parameters#

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

Returns#

Writer

Writer


fromObject#

Static fromObject(object): MethodOptions

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

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

MethodOptions

MethodOptions


toObject#

Static toObject(message, options?): Object

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

Parameters#

NameTypeDescription
messageMethodOptionsMethodOptions
options?IConversionOptions-

Returns#

Object

Plain object