Skip to main content

Class: OperationOptions

nexusannotations.v1.OperationOptions

Represents an OperationOptions.

Properties

name

name: string

Nexus operation name (defaults to proto method name).


tags

tags: string[]

Tags to attach to the operation. Used by code generators to include and exclude operations.

Methods

toJSON

toJSON(): Object

Converts this OperationOptions to JSON.

Returns

Object

JSON object


create

create(properties?): OperationOptions & $Properties

Creates a new OperationOptions instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

OperationOptions & $Properties

OperationOptions instance

create(properties?): OperationOptions

Parameters

NameType
properties?$Properties

Returns

OperationOptions


decode

decode(reader, length?): OperationOptions & $Properties

Decodes an OperationOptions message from the specified reader or buffer.

Parameters

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

Returns

OperationOptions & $Properties

OperationOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): OperationOptions & $Properties

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

OperationOptions & $Properties

OperationOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

Encodes the specified OperationOptions message. Does not implicitly nexusannotations.v1.OperationOptions.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesOperationOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified OperationOptions message, length delimited. Does not implicitly nexusannotations.v1.OperationOptions.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesOperationOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): OperationOptions

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

OperationOptions

OperationOptions


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageOperationOptionsOperationOptions
options?IConversionOptionsConversion options

Returns

Object

Plain object