Api

interface Api(source)

Api is a light-weight descriptor for an API Interface.

Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as "APIs" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.

Properties

Link copied to clipboard
abstract val methods: List<Method>

The methods of this interface, in unspecified order.

Link copied to clipboard
abstract val mixins: List<Mixin>

Included interfaces. See Mixin.

Link copied to clipboard
abstract val name: String

The fully qualified name of this interface, including package name followed by the interface's simple name.

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

Any metadata attached to the interface.

Link copied to clipboard

Returns the field-presence view for this com.google.protobuf.kotlin.Api instance.

Link copied to clipboard

Source context for the protocol buffer service represented by this message.

Link copied to clipboard
abstract val syntax: Syntax

The source syntax of the service.

Link copied to clipboard
abstract val version: String

A version string for this interface. If specified, must have the form major-version.minor-version, as in 1.10. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here.

Functions

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

Copies the original message, including unknown fields.