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
| Name | Type | Description |
|---|---|---|
properties? | $Shape | Properties to set |
Returns
ServiceOptions instance
▸ create(properties?): ServiceOptions
Parameters
| Name | Type |
|---|---|
properties? | $Properties |
Returns
decode
▸ decode(reader, length?): ServiceOptions & $Shape
Decodes a ServiceOptions message from the specified reader or buffer.
Parameters
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
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
| Name | Type | Description |
|---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
| Name | Type | Description |
|---|---|---|
message | $Properties | ServiceOptions message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
message | $Properties | ServiceOptions message or plain object to encode |
writer? | Writer | Writer 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
| Name | Type | Description |
|---|---|---|
object | Object | Plain object |
Returns
ServiceOptions
toObject
▸ toObject(message, options?): Object
Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
Parameters
| Name | Type | Description |
|---|---|---|
message | ServiceOptions | ServiceOptions |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object