Interface PluginProtos.CodeGeneratorResponseOrBuilder (3.19.4)

public static interface PluginProtos.CodeGeneratorResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getError()

public abstract String getError()

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.

optional string error = 1;

Returns
Type Description
String

The error.

getErrorBytes()

public abstract ByteString getErrorBytes()

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.

optional string error = 1;

Returns
Type Description
ByteString

The bytes for error.

getFile(int index)

public abstract PluginProtos.CodeGeneratorResponse.File getFile(int index)

repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;

Parameter
Name Description
index int
Returns
Type Description
PluginProtos.CodeGeneratorResponse.File

getFileCount()

public abstract int getFileCount()

repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;

Returns
Type Description
int

getFileList()

public abstract List<PluginProtos.CodeGeneratorResponse.File> getFileList()

repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;

Returns
Type Description
List<File>

getFileOrBuilder(int index)

public abstract PluginProtos.CodeGeneratorResponse.FileOrBuilder getFileOrBuilder(int index)

repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;

Parameter
Name Description
index int
Returns
Type Description
PluginProtos.CodeGeneratorResponse.FileOrBuilder

getFileOrBuilderList()

public abstract List<? extends PluginProtos.CodeGeneratorResponse.FileOrBuilder> getFileOrBuilderList()

repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;

Returns
Type Description
List<? extends com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.FileOrBuilder>

getSupportedFeatures()

public abstract long getSupportedFeatures()

A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum.

optional uint64 supported_features = 2;

Returns
Type Description
long

The supportedFeatures.

hasError()

public abstract boolean hasError()

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.

optional string error = 1;

Returns
Type Description
boolean

Whether the error field is set.

hasSupportedFeatures()

public abstract boolean hasSupportedFeatures()

A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum.

optional uint64 supported_features = 2;

Returns
Type Description
boolean

Whether the supportedFeatures field is set.