-
public final class FileDescriptorProtoKt.Dsl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFileDescriptorProtoKt.Dsl.Companionpublic final classFileDescriptorProtoKt.Dsl.DependencyProxyAn uninstantiable, behaviorless type to represent the field in generics.
public final classFileDescriptorProtoKt.Dsl.PublicDependencyProxyAn uninstantiable, behaviorless type to represent the field in generics.
public final classFileDescriptorProtoKt.Dsl.WeakDependencyProxyAn uninstantiable, behaviorless type to represent the field in generics.
public final classFileDescriptorProtoKt.Dsl.MessageTypeProxyAn uninstantiable, behaviorless type to represent the field in generics.
public final classFileDescriptorProtoKt.Dsl.EnumTypeProxyAn uninstantiable, behaviorless type to represent the field in generics.
public final classFileDescriptorProtoKt.Dsl.ServiceProxyAn uninstantiable, behaviorless type to represent the field in generics.
public final classFileDescriptorProtoKt.Dsl.ExtensionProxyAn uninstantiable, behaviorless type to represent the field in generics.
-
Field Summary
Fields Modifier and Type Field Description private Stringnameprivate Stringpackage_private final DslList<String, FileDescriptorProtoKt.Dsl.DependencyProxy>dependencyprivate final DslList<Integer, FileDescriptorProtoKt.Dsl.PublicDependencyProxy>publicDependencyprivate final DslList<Integer, FileDescriptorProtoKt.Dsl.WeakDependencyProxy>weakDependencyprivate final DslList<DescriptorProtos.DescriptorProto, FileDescriptorProtoKt.Dsl.MessageTypeProxy>messageTypeprivate final DslList<DescriptorProtos.EnumDescriptorProto, FileDescriptorProtoKt.Dsl.EnumTypeProxy>enumTypeprivate final DslList<DescriptorProtos.ServiceDescriptorProto, FileDescriptorProtoKt.Dsl.ServiceProxy>serviceprivate final DslList<DescriptorProtos.FieldDescriptorProto, FileDescriptorProtoKt.Dsl.ExtensionProxy>extensionprivate DescriptorProtos.FileOptionsoptionsprivate final DescriptorProtos.FileOptionsoptionsOrNullprivate DescriptorProtos.SourceCodeInfosourceCodeInfoprivate final DescriptorProtos.SourceCodeInfosourceCodeInfoOrNullprivate Stringsyntax
-
Method Summary
Modifier and Type Method Description final StringgetName()final UnitsetName(String name)final StringgetPackage_()final UnitsetPackage_(String package_)final DescriptorProtos.FileOptionsgetOptions()final UnitsetOptions(DescriptorProtos.FileOptions options)final DescriptorProtos.FileOptionsgetOptionsOrNull(FileDescriptorProtoKt.Dsl $self)final DescriptorProtos.SourceCodeInfogetSourceCodeInfo()final UnitsetSourceCodeInfo(DescriptorProtos.SourceCodeInfo sourceCodeInfo)final DescriptorProtos.SourceCodeInfogetSourceCodeInfoOrNull(FileDescriptorProtoKt.Dsl $self)final StringgetSyntax()final UnitsetSyntax(String syntax)final UnitclearName()<pre> file name, relative to root of source tree </pre><code>optional string name = 1;</code> final BooleanhasName()<pre> file name, relative to root of source tree </pre><code>optional string name = 1;</code> final UnitclearPackage_()<pre> e.g. final BooleanhasPackage_()<pre> e.g. final UnitclearOptions()<code>optional .google.protobuf. final BooleanhasOptions()<code>optional .google.protobuf. final UnitclearSourceCodeInfo()<pre> This field contains optional information about the original source code. final BooleanhasSourceCodeInfo()<pre> This field contains optional information about the original source code. final UnitclearSyntax()<pre> The syntax of the proto file. final BooleanhasSyntax()<pre> The syntax of the proto file. -
-
Method Detail
-
getPackage_
final String getPackage_()
-
setPackage_
final Unit setPackage_(String package_)
-
getOptions
final DescriptorProtos.FileOptions getOptions()
-
setOptions
final Unit setOptions(DescriptorProtos.FileOptions options)
-
getOptionsOrNull
final DescriptorProtos.FileOptions getOptionsOrNull(FileDescriptorProtoKt.Dsl $self)
-
getSourceCodeInfo
final DescriptorProtos.SourceCodeInfo getSourceCodeInfo()
-
setSourceCodeInfo
final Unit setSourceCodeInfo(DescriptorProtos.SourceCodeInfo sourceCodeInfo)
-
getSourceCodeInfoOrNull
final DescriptorProtos.SourceCodeInfo getSourceCodeInfoOrNull(FileDescriptorProtoKt.Dsl $self)
-
clearName
final Unit clearName()
<pre> file name, relative to root of source tree </pre><code>optional string name = 1;</code>
-
hasName
final Boolean hasName()
<pre> file name, relative to root of source tree </pre><code>optional string name = 1;</code>
-
clearPackage_
final Unit clearPackage_()
<pre> e.g. "foo", "foo.bar", etc. </pre><code>optional string package = 2;</code>
-
hasPackage_
final Boolean hasPackage_()
<pre> e.g. "foo", "foo.bar", etc. </pre><code>optional string package = 2;</code>
-
clearOptions
final Unit clearOptions()
<code>optional .google.protobuf.FileOptions options = 8;</code>
-
hasOptions
final Boolean hasOptions()
<code>optional .google.protobuf.FileOptions options = 8;</code>
-
clearSourceCodeInfo
final Unit clearSourceCodeInfo()
<pre> This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools. </pre><code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>
-
hasSourceCodeInfo
final Boolean hasSourceCodeInfo()
<pre> This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools. </pre><code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code>
-
clearSyntax
final Unit clearSyntax()
<pre> The syntax of the proto file. The supported values are "proto2" and "proto3". </pre><code>optional string syntax = 12;</code>
-
-
-
-