public static final class PluginProtos.CodeGeneratorResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder> implements PluginProtos.CodeGeneratorResponseOrBuilder
The plugin writes an encoded CodeGeneratorResponse to stdout.Protobuf type
google.protobuf.compiler.CodeGeneratorResponse
Modifier and Type | Method and Description |
---|---|
PluginProtos.CodeGeneratorResponse.Builder |
addAllFile(Iterable<? extends PluginProtos.CodeGeneratorResponse.File> values)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(int index,
PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(int index,
PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.File.Builder |
addFileBuilder()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.File.Builder |
addFileBuilder(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PluginProtos.CodeGeneratorResponse |
build() |
PluginProtos.CodeGeneratorResponse |
buildPartial() |
PluginProtos.CodeGeneratorResponse.Builder |
clear() |
PluginProtos.CodeGeneratorResponse.Builder |
clearError()
Error message.
|
PluginProtos.CodeGeneratorResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PluginProtos.CodeGeneratorResponse.Builder |
clearFile()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PluginProtos.CodeGeneratorResponse.Builder |
clearSupportedFeatures()
A bitmask of supported features that the code generator supports.
|
PluginProtos.CodeGeneratorResponse.Builder |
clone() |
PluginProtos.CodeGeneratorResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getError()
Error message.
|
com.google.protobuf.ByteString |
getErrorBytes()
Error message.
|
PluginProtos.CodeGeneratorResponse.File |
getFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.File.Builder |
getFileBuilder(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
List<PluginProtos.CodeGeneratorResponse.File.Builder> |
getFileBuilderList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
int |
getFileCount()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
List<PluginProtos.CodeGeneratorResponse.File> |
getFileList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.FileOrBuilder |
getFileOrBuilder(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
List<? extends PluginProtos.CodeGeneratorResponse.FileOrBuilder> |
getFileOrBuilderList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
long |
getSupportedFeatures()
A bitmask of supported features that the code generator supports.
|
boolean |
hasError()
Error message.
|
boolean |
hasSupportedFeatures()
A bitmask of supported features that the code generator supports.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PluginProtos.CodeGeneratorResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PluginProtos.CodeGeneratorResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
PluginProtos.CodeGeneratorResponse.Builder |
mergeFrom(PluginProtos.CodeGeneratorResponse other) |
PluginProtos.CodeGeneratorResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PluginProtos.CodeGeneratorResponse.Builder |
removeFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
setError(String value)
Error message.
|
PluginProtos.CodeGeneratorResponse.Builder |
setErrorBytes(com.google.protobuf.ByteString value)
Error message.
|
PluginProtos.CodeGeneratorResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PluginProtos.CodeGeneratorResponse.Builder |
setFile(int index,
PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
setFile(int index,
PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PluginProtos.CodeGeneratorResponse.Builder |
setSupportedFeatures(long value)
A bitmask of supported features that the code generator supports.
|
PluginProtos.CodeGeneratorResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public PluginProtos.CodeGeneratorResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public PluginProtos.CodeGeneratorResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public PluginProtos.CodeGeneratorResponse.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder mergeFrom(PluginProtos.CodeGeneratorResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public PluginProtos.CodeGeneratorResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<PluginProtos.CodeGeneratorResponse.Builder>
IOException
public 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;
hasError
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public 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;
getError
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public com.google.protobuf.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;
getErrorBytes
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.Builder setError(String value)
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;
value
- The error to set.public PluginProtos.CodeGeneratorResponse.Builder clearError()
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;
public PluginProtos.CodeGeneratorResponse.Builder setErrorBytes(com.google.protobuf.ByteString value)
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;
value
- The bytes for error to set.public 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;
hasSupportedFeatures
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public 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;
getSupportedFeatures
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.Builder setSupportedFeatures(long value)
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;
value
- The supportedFeatures to set.public PluginProtos.CodeGeneratorResponse.Builder clearSupportedFeatures()
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;
public List<PluginProtos.CodeGeneratorResponse.File> getFileList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFileList
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public int getFileCount()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFileCount
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.File getFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFile
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.Builder setFile(int index, PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder setFile(int index, PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(int index, PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(int index, PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addAllFile(Iterable<? extends PluginProtos.CodeGeneratorResponse.File> values)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder clearFile()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder removeFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.File.Builder getFileBuilder(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.FileOrBuilder getFileOrBuilder(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFileOrBuilder
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public List<? extends PluginProtos.CodeGeneratorResponse.FileOrBuilder> getFileOrBuilderList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFileOrBuilderList
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.File.Builder addFileBuilder()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.File.Builder addFileBuilder(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public List<PluginProtos.CodeGeneratorResponse.File.Builder> getFileBuilderList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public final PluginProtos.CodeGeneratorResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
public final PluginProtos.CodeGeneratorResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorResponse.Builder>
Copyright © 2008–2022. All rights reserved.