Skip to main content

Class: OperationOptions

nexusannotations.v1.OperationOptions

Represents an OperationOptions.

Implements

Constructors

constructor

new OperationOptions(properties?): OperationOptions

Constructs a new OperationOptions.

Parameters

NameTypeDescription
properties?IOperationOptionsProperties to set

Returns

OperationOptions

Properties

name

name: string

Nexus operation name (defaults to proto method name).

Implementation of

IOperationOptions.name


tags

tags: string[]

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

Implementation of

IOperationOptions.tags

Methods

toJSON

toJSON(): Object

Converts this OperationOptions to JSON.

Returns

Object

JSON object


create

create(properties?): OperationOptions

Creates a new OperationOptions instance using the specified properties.

Parameters

NameTypeDescription
properties?IOperationOptionsProperties to set

Returns

OperationOptions

OperationOptions instance


decode

decode(reader, length?): OperationOptions

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

OperationOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): OperationOptions

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

OperationOptions

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
messageIOperationOptionsOperationOptions 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
messageIOperationOptionsOperationOptions 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for OperationOptions

Parameters

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

Returns

string

The default type url


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