-
public final class ApiKt.Dsl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ApiKt.Dsl.Companion
public final class
ApiKt.Dsl.MethodsProxy
An uninstantiable, behaviorless type to represent the field in generics.
public final class
ApiKt.Dsl.OptionsProxy
An uninstantiable, behaviorless type to represent the field in generics.
public final class
ApiKt.Dsl.MixinsProxy
An uninstantiable, behaviorless type to represent the field in generics.
-
Field Summary
Fields Modifier and Type Field Description private String
name
private final DslList<Method, ApiKt.Dsl.MethodsProxy>
methods
private final DslList<Option, ApiKt.Dsl.OptionsProxy>
options
private String
version
private SourceContext
sourceContext
private final DslList<Mixin, ApiKt.Dsl.MixinsProxy>
mixins
private Syntax
syntax
-
Method Summary
Modifier and Type Method Description final String
getName()
final Unit
setName(String name)
final String
getVersion()
final Unit
setVersion(String version)
final SourceContext
getSourceContext()
final Unit
setSourceContext(SourceContext sourceContext)
final Syntax
getSyntax()
final Unit
setSyntax(Syntax syntax)
final Unit
clearName()
<pre> The fully qualified name of this interface, including package name followed by the interface's simple name. final Unit
clearVersion()
<pre> A version string for this interface. final Unit
clearSourceContext()
<pre> Source context for the protocol buffer service represented by this message. final Boolean
hasSourceContext()
<pre> Source context for the protocol buffer service represented by this message. final Unit
clearSyntax()
<pre> The source syntax of the service. -
-
Method Detail
-
getVersion
final String getVersion()
-
setVersion
final Unit setVersion(String version)
-
getSourceContext
final SourceContext getSourceContext()
-
setSourceContext
final Unit setSourceContext(SourceContext sourceContext)
-
getSyntax
final Syntax getSyntax()
-
clearName
final Unit clearName()
<pre> The fully qualified name of this interface, including package name followed by the interface's simple name. </pre><code>string name = 1;</code>
-
clearVersion
final Unit clearVersion()
<pre> 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. The versioning schema uses [semantic * versioning](http://semver.org) where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the interface, which must end in `v<major-version>`, as in `google.feature.v1`. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, non-GA interfaces. </pre><code>string version = 4;</code>
-
clearSourceContext
final Unit clearSourceContext()
<pre> Source context for the protocol buffer service represented by this message. </pre><code>.google.protobuf.SourceContext source_context = 5;</code>
-
hasSourceContext
final Boolean hasSourceContext()
<pre> Source context for the protocol buffer service represented by this message. </pre><code>.google.protobuf.SourceContext source_context = 5;</code>
-
clearSyntax
final Unit clearSyntax()
<pre> The source syntax of the service. </pre><code>.google.protobuf.Syntax syntax = 7;</code>
-
-
-
-