Skip to main content

Class: ServiceOptions

google.protobuf.ServiceOptions

Represents a ServiceOptions.

Properties​

.grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag​

• Optional .grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag: null | $Properties

ServiceOptions .grpc.gateway.protoc_gen_openapiv2.options.openapiv2Tag


.nexusannotations.v1.service​

• Optional .nexusannotations.v1.service: null | $Properties

ServiceOptions .nexusannotations.v1.service


deprecated​

• deprecated: boolean

Is this service deprecated? Depending on the target platform, this can emit Deprecated annotations for the service, or it will be completely ignored; in the very least, this is a formalization for deprecating services.


features​

• Optional features: null | $Properties

Any features defined in the specific edition.


uninterpretedOption​

• uninterpretedOption: $Properties[]

The parser stores options it doesn't recognize here. See above.

Methods​

toJSON​

▸ toJSON(): Object

Converts this ServiceOptions to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): ServiceOptions & $Shape

Creates a new ServiceOptions instance using the specified properties.

Parameters​

NameTypeDescription
properties?$ShapeProperties to set

Returns​

ServiceOptions & $Shape

ServiceOptions instance

▸ create(properties?): ServiceOptions

Parameters​

NameType
properties?$Properties

Returns​

ServiceOptions


decode​

▸ decode(reader, length?): ServiceOptions & $Shape

Decodes a ServiceOptions message from the specified reader or buffer.

Parameters​

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

Returns​

ServiceOptions & $Shape

ServiceOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): ServiceOptions & $Shape

Decodes a ServiceOptions message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

ServiceOptions & $Shape

ServiceOptions

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 ServiceOptions message. Does not implicitly google.protobuf.ServiceOptions.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified ServiceOptions message, length delimited. Does not implicitly google.protobuf.ServiceOptions.verify|verify messages.

Parameters​

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

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): ServiceOptions

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

ServiceOptions

ServiceOptions


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageServiceOptionsServiceOptions
options?IConversionOptionsConversion options

Returns​

Object

Plain object