# Interface PluginProtos.CodeGeneratorResponseOrBuilder (3.19.4)

    public static interface PluginProtos.CodeGeneratorResponseOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File` |   |

### getFileCount()

    public abstract int getFileCount()

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getFileList()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File>` |   |

### getFileOrBuilder(int index)

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

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.FileOrBuilder` |   |

### getFileOrBuilderList()

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the supportedFeatures field is set. |