-
public final class CodeGeneratorResponseKt.Dsl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CodeGeneratorResponseKt.Dsl.Companion
public final class
CodeGeneratorResponseKt.Dsl.FileProxy
An uninstantiable, behaviorless type to represent the field in generics.
-
Field Summary
Fields Modifier and Type Field Description private String
error
private Long
supportedFeatures
private final DslList<PluginProtos.CodeGeneratorResponse.File, CodeGeneratorResponseKt.Dsl.FileProxy>
file
-
Method Summary
Modifier and Type Method Description final String
getError()
final Unit
setError(String error)
final Long
getSupportedFeatures()
final Unit
setSupportedFeatures(Long supportedFeatures)
final Unit
clearError()
<pre> Error message. final Boolean
hasError()
<pre> Error message. final Unit
clearSupportedFeatures()
<pre> A bitmask of supported features that the code generator supports. final Boolean
hasSupportedFeatures()
<pre> A bitmask of supported features that the code generator supports. -
-
Method Detail
-
getSupportedFeatures
final Long getSupportedFeatures()
-
setSupportedFeatures
final Unit setSupportedFeatures(Long supportedFeatures)
-
clearError
final Unit clearError()
<pre> Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code. </pre><code>optional string error = 1;</code>
-
hasError
final Boolean hasError()
<pre> Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code. </pre><code>optional string error = 1;</code>
-
clearSupportedFeatures
final Unit clearSupportedFeatures()
<pre> A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum. </pre><code>optional uint64 supported_features = 2;</code>
-
hasSupportedFeatures
final Boolean hasSupportedFeatures()
<pre> A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum. </pre><code>optional uint64 supported_features = 2;</code>
-
-
-
-