Method

interface Method(source)

Method represents a method of an API interface.

New usages of this message as an alternative to MethodDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.

Properties

Link copied to clipboard
abstract val edition: String

The source edition string, only valid when syntax is SYNTAX_EDITIONS.

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.