Interface PluginProtos.CodeGeneratorResponseOrBuilder

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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PluginProtos.CodeGeneratorResponse.File

getFileCount()

public abstract int getFileCount()

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

Returns
TypeDescription
int

getFileList()

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

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

Returns
TypeDescription
List<File>

getFileOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PluginProtos.CodeGeneratorResponse.FileOrBuilder

getFileOrBuilderList()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the supportedFeatures field is set.