Method

interface Method(source)

Method represents a method of an API interface.

Properties

Link copied to clipboard
abstract val name: String

The simple name of this method.

Link copied to clipboard
abstract val options: List<Option>

Any metadata attached to the method.

Link copied to clipboard

If true, the request is streamed.

Link copied to clipboard
abstract val requestTypeUrl: String

A URL of the input message type.

Link copied to clipboard

If true, the response is streamed.

Link copied to clipboard
abstract val responseTypeUrl: String

The URL of the output message type.

Link copied to clipboard
abstract val syntax: Syntax

The source syntax of this method.

Functions

Link copied to clipboard
fun Method.copy(body: ERROR CLASS: Symbol not found for Method.Builder.() -> Unit = {}): Method

Copies the original message, including unknown fields.