public static final class PluginProtos.CodeGeneratorRequest extends com.google.protobuf.GeneratedMessageV3 implements PluginProtos.CodeGeneratorRequestOrBuilder
An encoded CodeGeneratorRequest is written to the plugin's stdin.Protobuf type
google.protobuf.compiler.CodeGeneratorRequest| Modifier and Type | Class and Description |
|---|---|
static class |
PluginProtos.CodeGeneratorRequest.Builder
An encoded CodeGeneratorRequest is written to the plugin's stdin.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
COMPILER_VERSION_FIELD_NUMBER |
static int |
FILE_TO_GENERATE_FIELD_NUMBER |
static int |
PARAMETER_FIELD_NUMBER |
static com.google.protobuf.Parser<PluginProtos.CodeGeneratorRequest> |
PARSER
Deprecated.
|
static int |
PROTO_FILE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
PluginProtos.Version |
getCompilerVersion()
The version number of protocol compiler.
|
PluginProtos.VersionOrBuilder |
getCompilerVersionOrBuilder()
The version number of protocol compiler.
|
static PluginProtos.CodeGeneratorRequest |
getDefaultInstance() |
PluginProtos.CodeGeneratorRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getFileToGenerate(int index)
The .proto files that were explicitly listed on the command-line.
|
com.google.protobuf.ByteString |
getFileToGenerateBytes(int index)
The .proto files that were explicitly listed on the command-line.
|
int |
getFileToGenerateCount()
The .proto files that were explicitly listed on the command-line.
|
com.google.protobuf.ProtocolStringList |
getFileToGenerateList()
The .proto files that were explicitly listed on the command-line.
|
java.lang.String |
getParameter()
The generator parameter passed on the command-line.
|
com.google.protobuf.ByteString |
getParameterBytes()
The generator parameter passed on the command-line.
|
com.google.protobuf.Parser<PluginProtos.CodeGeneratorRequest> |
getParserForType() |
DescriptorProtos.FileDescriptorProto |
getProtoFile(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
int |
getProtoFileCount()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
java.util.List<DescriptorProtos.FileDescriptorProto> |
getProtoFileList()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
DescriptorProtos.FileDescriptorProtoOrBuilder |
getProtoFileOrBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
java.util.List<? extends DescriptorProtos.FileDescriptorProtoOrBuilder> |
getProtoFileOrBuilderList()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCompilerVersion()
The version number of protocol compiler.
|
int |
hashCode() |
boolean |
hasParameter()
The generator parameter passed on the command-line.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PluginProtos.CodeGeneratorRequest.Builder |
newBuilder() |
static PluginProtos.CodeGeneratorRequest.Builder |
newBuilder(PluginProtos.CodeGeneratorRequest prototype) |
PluginProtos.CodeGeneratorRequest.Builder |
newBuilderForType() |
protected PluginProtos.CodeGeneratorRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static PluginProtos.CodeGeneratorRequest |
parseDelimitedFrom(java.io.InputStream input) |
static PluginProtos.CodeGeneratorRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(byte[] data) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(java.nio.ByteBuffer data) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(com.google.protobuf.ByteString data) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(java.io.InputStream input) |
static PluginProtos.CodeGeneratorRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PluginProtos.CodeGeneratorRequest> |
parser() |
PluginProtos.CodeGeneratorRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FILE_TO_GENERATE_FIELD_NUMBER
public static final int PARAMETER_FIELD_NUMBER
public static final int PROTO_FILE_FIELD_NUMBER
public static final int COMPILER_VERSION_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<PluginProtos.CodeGeneratorRequest> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public com.google.protobuf.ProtocolStringList getFileToGenerateList()
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;getFileToGenerateList in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic int getFileToGenerateCount()
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;getFileToGenerateCount in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic java.lang.String getFileToGenerate(int index)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;getFileToGenerate in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic com.google.protobuf.ByteString getFileToGenerateBytes(int index)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;getFileToGenerateBytes in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic boolean hasParameter()
The generator parameter passed on the command-line.
optional string parameter = 2;hasParameter in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic java.lang.String getParameter()
The generator parameter passed on the command-line.
optional string parameter = 2;getParameter in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic com.google.protobuf.ByteString getParameterBytes()
The generator parameter passed on the command-line.
optional string parameter = 2;getParameterBytes in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic java.util.List<DescriptorProtos.FileDescriptorProto> getProtoFileList()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;getProtoFileList in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic java.util.List<? extends DescriptorProtos.FileDescriptorProtoOrBuilder> getProtoFileOrBuilderList()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;getProtoFileOrBuilderList in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic int getProtoFileCount()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;getProtoFileCount in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic DescriptorProtos.FileDescriptorProto getProtoFile(int index)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;getProtoFile in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic DescriptorProtos.FileDescriptorProtoOrBuilder getProtoFileOrBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;getProtoFileOrBuilder in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic boolean hasCompilerVersion()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;hasCompilerVersion in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic PluginProtos.Version getCompilerVersion()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;getCompilerVersion in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic PluginProtos.VersionOrBuilder getCompilerVersionOrBuilder()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;getCompilerVersionOrBuilder in interface PluginProtos.CodeGeneratorRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PluginProtos.CodeGeneratorRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PluginProtos.CodeGeneratorRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PluginProtos.CodeGeneratorRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PluginProtos.CodeGeneratorRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic PluginProtos.CodeGeneratorRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PluginProtos.CodeGeneratorRequest.Builder newBuilder()
public static PluginProtos.CodeGeneratorRequest.Builder newBuilder(PluginProtos.CodeGeneratorRequest prototype)
public PluginProtos.CodeGeneratorRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PluginProtos.CodeGeneratorRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PluginProtos.CodeGeneratorRequest getDefaultInstance()
public static com.google.protobuf.Parser<PluginProtos.CodeGeneratorRequest> parser()
public com.google.protobuf.Parser<PluginProtos.CodeGeneratorRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PluginProtos.CodeGeneratorRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder