com.google.protobuf.compiler.PluginProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-javalite Show documentation
Show all versions of protobuf-javalite Show documentation
protobuf-javalite contains additional generated classes for use with the Protobuf Java Lite runtime.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/compiler/plugin.proto
// Protobuf Java Version: 4.28.3
package com.google.protobuf.compiler;
public final class PluginProtos {
private PluginProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface VersionOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.protobuf.compiler.Version)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional int32 major = 1 [json_name = "major"];
* @return Whether the major field is set.
*/
boolean hasMajor();
/**
* optional int32 major = 1 [json_name = "major"];
* @return The major.
*/
int getMajor();
/**
* optional int32 minor = 2 [json_name = "minor"];
* @return Whether the minor field is set.
*/
boolean hasMinor();
/**
* optional int32 minor = 2 [json_name = "minor"];
* @return The minor.
*/
int getMinor();
/**
* optional int32 patch = 3 [json_name = "patch"];
* @return Whether the patch field is set.
*/
boolean hasPatch();
/**
* optional int32 patch = 3 [json_name = "patch"];
* @return The patch.
*/
int getPatch();
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return Whether the suffix field is set.
*/
boolean hasSuffix();
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return The suffix.
*/
java.lang.String getSuffix();
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return The bytes for suffix.
*/
com.google.protobuf.ByteString
getSuffixBytes();
}
/**
*
* The version number of protocol compiler.
*
*
* Protobuf type {@code google.protobuf.compiler.Version}
*/
public static final class Version extends
com.google.protobuf.GeneratedMessageLite<
Version, Version.Builder> implements
// @@protoc_insertion_point(message_implements:google.protobuf.compiler.Version)
VersionOrBuilder {
private Version() {
suffix_ = "";
}
private int bitField0_;
public static final int MAJOR_FIELD_NUMBER = 1;
private int major_;
/**
* optional int32 major = 1 [json_name = "major"];
* @return Whether the major field is set.
*/
@java.lang.Override
public boolean hasMajor() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 major = 1 [json_name = "major"];
* @return The major.
*/
@java.lang.Override
public int getMajor() {
return major_;
}
/**
* optional int32 major = 1 [json_name = "major"];
* @param value The major to set.
*/
private void setMajor(int value) {
bitField0_ |= 0x00000001;
major_ = value;
}
/**
* optional int32 major = 1 [json_name = "major"];
*/
private void clearMajor() {
bitField0_ = (bitField0_ & ~0x00000001);
major_ = 0;
}
public static final int MINOR_FIELD_NUMBER = 2;
private int minor_;
/**
* optional int32 minor = 2 [json_name = "minor"];
* @return Whether the minor field is set.
*/
@java.lang.Override
public boolean hasMinor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 minor = 2 [json_name = "minor"];
* @return The minor.
*/
@java.lang.Override
public int getMinor() {
return minor_;
}
/**
* optional int32 minor = 2 [json_name = "minor"];
* @param value The minor to set.
*/
private void setMinor(int value) {
bitField0_ |= 0x00000002;
minor_ = value;
}
/**
* optional int32 minor = 2 [json_name = "minor"];
*/
private void clearMinor() {
bitField0_ = (bitField0_ & ~0x00000002);
minor_ = 0;
}
public static final int PATCH_FIELD_NUMBER = 3;
private int patch_;
/**
* optional int32 patch = 3 [json_name = "patch"];
* @return Whether the patch field is set.
*/
@java.lang.Override
public boolean hasPatch() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 patch = 3 [json_name = "patch"];
* @return The patch.
*/
@java.lang.Override
public int getPatch() {
return patch_;
}
/**
* optional int32 patch = 3 [json_name = "patch"];
* @param value The patch to set.
*/
private void setPatch(int value) {
bitField0_ |= 0x00000004;
patch_ = value;
}
/**
* optional int32 patch = 3 [json_name = "patch"];
*/
private void clearPatch() {
bitField0_ = (bitField0_ & ~0x00000004);
patch_ = 0;
}
public static final int SUFFIX_FIELD_NUMBER = 4;
private java.lang.String suffix_;
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return Whether the suffix field is set.
*/
@java.lang.Override
public boolean hasSuffix() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return The suffix.
*/
@java.lang.Override
public java.lang.String getSuffix() {
return suffix_;
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return The bytes for suffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSuffixBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(suffix_);
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @param value The suffix to set.
*/
private void setSuffix(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
bitField0_ |= 0x00000008;
suffix_ = value;
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
*/
private void clearSuffix() {
bitField0_ = (bitField0_ & ~0x00000008);
suffix_ = getDefaultInstance().getSuffix();
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @param value The bytes for suffix to set.
*/
private void setSuffixBytes(
com.google.protobuf.ByteString value) {
suffix_ = value.toStringUtf8();
bitField0_ |= 0x00000008;
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.Version parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.protobuf.compiler.PluginProtos.Version prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* The version number of protocol compiler.
*
*
* Protobuf type {@code google.protobuf.compiler.Version}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.compiler.PluginProtos.Version, Builder> implements
// @@protoc_insertion_point(builder_implements:google.protobuf.compiler.Version)
com.google.protobuf.compiler.PluginProtos.VersionOrBuilder {
// Construct using com.google.protobuf.compiler.PluginProtos.Version.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* optional int32 major = 1 [json_name = "major"];
* @return Whether the major field is set.
*/
@java.lang.Override
public boolean hasMajor() {
return instance.hasMajor();
}
/**
* optional int32 major = 1 [json_name = "major"];
* @return The major.
*/
@java.lang.Override
public int getMajor() {
return instance.getMajor();
}
/**
* optional int32 major = 1 [json_name = "major"];
* @param value The major to set.
* @return This builder for chaining.
*/
public Builder setMajor(int value) {
copyOnWrite();
instance.setMajor(value);
return this;
}
/**
* optional int32 major = 1 [json_name = "major"];
* @return This builder for chaining.
*/
public Builder clearMajor() {
copyOnWrite();
instance.clearMajor();
return this;
}
/**
* optional int32 minor = 2 [json_name = "minor"];
* @return Whether the minor field is set.
*/
@java.lang.Override
public boolean hasMinor() {
return instance.hasMinor();
}
/**
* optional int32 minor = 2 [json_name = "minor"];
* @return The minor.
*/
@java.lang.Override
public int getMinor() {
return instance.getMinor();
}
/**
* optional int32 minor = 2 [json_name = "minor"];
* @param value The minor to set.
* @return This builder for chaining.
*/
public Builder setMinor(int value) {
copyOnWrite();
instance.setMinor(value);
return this;
}
/**
* optional int32 minor = 2 [json_name = "minor"];
* @return This builder for chaining.
*/
public Builder clearMinor() {
copyOnWrite();
instance.clearMinor();
return this;
}
/**
* optional int32 patch = 3 [json_name = "patch"];
* @return Whether the patch field is set.
*/
@java.lang.Override
public boolean hasPatch() {
return instance.hasPatch();
}
/**
* optional int32 patch = 3 [json_name = "patch"];
* @return The patch.
*/
@java.lang.Override
public int getPatch() {
return instance.getPatch();
}
/**
* optional int32 patch = 3 [json_name = "patch"];
* @param value The patch to set.
* @return This builder for chaining.
*/
public Builder setPatch(int value) {
copyOnWrite();
instance.setPatch(value);
return this;
}
/**
* optional int32 patch = 3 [json_name = "patch"];
* @return This builder for chaining.
*/
public Builder clearPatch() {
copyOnWrite();
instance.clearPatch();
return this;
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return Whether the suffix field is set.
*/
@java.lang.Override
public boolean hasSuffix() {
return instance.hasSuffix();
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return The suffix.
*/
@java.lang.Override
public java.lang.String getSuffix() {
return instance.getSuffix();
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return The bytes for suffix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSuffixBytes() {
return instance.getSuffixBytes();
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @param value The suffix to set.
* @return This builder for chaining.
*/
public Builder setSuffix(
java.lang.String value) {
copyOnWrite();
instance.setSuffix(value);
return this;
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @return This builder for chaining.
*/
public Builder clearSuffix() {
copyOnWrite();
instance.clearSuffix();
return this;
}
/**
*
* A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
* be empty for mainline stable releases.
*
*
* optional string suffix = 4 [json_name = "suffix"];
* @param value The bytes for suffix to set.
* @return This builder for chaining.
*/
public Builder setSuffixBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSuffixBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:google.protobuf.compiler.Version)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.protobuf.compiler.PluginProtos.Version();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"major_",
"minor_",
"patch_",
"suffix_",
};
java.lang.String info =
"\u0001\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u1004\u0000\u0002" +
"\u1004\u0001\u0003\u1004\u0002\u0004\u1008\u0003";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.protobuf.compiler.PluginProtos.Version.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.Version)
private static final com.google.protobuf.compiler.PluginProtos.Version DEFAULT_INSTANCE;
static {
Version defaultInstance = new Version();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Version.class, defaultInstance);
}
public static com.google.protobuf.compiler.PluginProtos.Version getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public interface CodeGeneratorRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.protobuf.compiler.CodeGeneratorRequest)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* 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 [json_name = "fileToGenerate"];
* @return A list containing the fileToGenerate.
*/
java.util.List
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 [json_name = "fileToGenerate"];
* @return The count of fileToGenerate.
*/
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 [json_name = "fileToGenerate"];
* @param index The index of the element to return.
* @return The fileToGenerate at the given index.
*/
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 [json_name = "fileToGenerate"];
* @param index The index of the element to return.
* @return The fileToGenerate at the given index.
*/
com.google.protobuf.ByteString
getFileToGenerateBytes(int index);
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return Whether the parameter field is set.
*/
boolean hasParameter();
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return The parameter.
*/
java.lang.String getParameter();
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return The bytes for parameter.
*/
com.google.protobuf.ByteString
getParameterBytes();
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
java.util.List
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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
com.google.protobuf.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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
int getProtoFileCount();
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
java.util.List
getSourceFileDescriptorsList();
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
com.google.protobuf.DescriptorProtos.FileDescriptorProto getSourceFileDescriptors(int index);
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
int getSourceFileDescriptorsCount();
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
* @return Whether the compilerVersion field is set.
*/
boolean hasCompilerVersion();
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
* @return The compilerVersion.
*/
com.google.protobuf.compiler.PluginProtos.Version getCompilerVersion();
}
/**
*
* An encoded CodeGeneratorRequest is written to the plugin's stdin.
*
*
* Protobuf type {@code google.protobuf.compiler.CodeGeneratorRequest}
*/
public static final class CodeGeneratorRequest extends
com.google.protobuf.GeneratedMessageLite<
CodeGeneratorRequest, CodeGeneratorRequest.Builder> implements
// @@protoc_insertion_point(message_implements:google.protobuf.compiler.CodeGeneratorRequest)
CodeGeneratorRequestOrBuilder {
private CodeGeneratorRequest() {
fileToGenerate_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
parameter_ = "";
protoFile_ = emptyProtobufList();
sourceFileDescriptors_ = emptyProtobufList();
}
private int bitField0_;
public static final int FILE_TO_GENERATE_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList fileToGenerate_;
/**
*
* 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 [json_name = "fileToGenerate"];
* @return A list containing the fileToGenerate.
*/
@java.lang.Override
public java.util.List getFileToGenerateList() {
return fileToGenerate_;
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @return The count of fileToGenerate.
*/
@java.lang.Override
public int getFileToGenerateCount() {
return fileToGenerate_.size();
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param index The index of the element to return.
* @return The fileToGenerate at the given index.
*/
@java.lang.Override
public java.lang.String getFileToGenerate(int index) {
return fileToGenerate_.get(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 [json_name = "fileToGenerate"];
* @param index The index of the value to return.
* @return The bytes of the fileToGenerate at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileToGenerateBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
fileToGenerate_.get(index));
}
private void ensureFileToGenerateIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
fileToGenerate_; if (!tmp.isModifiable()) {
fileToGenerate_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param index The index to set the value at.
* @param value The fileToGenerate to set.
*/
private void setFileToGenerate(
int index, java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureFileToGenerateIsMutable();
fileToGenerate_.set(index, value);
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param value The fileToGenerate to add.
*/
private void addFileToGenerate(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureFileToGenerateIsMutable();
fileToGenerate_.add(value);
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param values The fileToGenerate to add.
*/
private void addAllFileToGenerate(
java.lang.Iterable values) {
ensureFileToGenerateIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, fileToGenerate_);
}
/**
*
* 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 [json_name = "fileToGenerate"];
*/
private void clearFileToGenerate() {
fileToGenerate_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param value The bytes of the fileToGenerate to add.
*/
private void addFileToGenerateBytes(
com.google.protobuf.ByteString value) {
ensureFileToGenerateIsMutable();
fileToGenerate_.add(value.toStringUtf8());
}
public static final int PARAMETER_FIELD_NUMBER = 2;
private java.lang.String parameter_;
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return Whether the parameter field is set.
*/
@java.lang.Override
public boolean hasParameter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return The parameter.
*/
@java.lang.Override
public java.lang.String getParameter() {
return parameter_;
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return The bytes for parameter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParameterBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(parameter_);
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @param value The parameter to set.
*/
private void setParameter(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
bitField0_ |= 0x00000001;
parameter_ = value;
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
*/
private void clearParameter() {
bitField0_ = (bitField0_ & ~0x00000001);
parameter_ = getDefaultInstance().getParameter();
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @param value The bytes for parameter to set.
*/
private void setParameterBytes(
com.google.protobuf.ByteString value) {
parameter_ = value.toStringUtf8();
bitField0_ |= 0x00000001;
}
public static final int PROTO_FILE_FIELD_NUMBER = 15;
private com.google.protobuf.Internal.ProtobufList protoFile_;
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
@java.lang.Override
public java.util.List getProtoFileList() {
return protoFile_;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public java.util.List extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>
getProtoFileOrBuilderList() {
return protoFile_;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
@java.lang.Override
public int getProtoFileCount() {
return protoFile_.size();
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FileDescriptorProto getProtoFile(int index) {
return protoFile_.get(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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getProtoFileOrBuilder(
int index) {
return protoFile_.get(index);
}
private void ensureProtoFileIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = protoFile_;
if (!tmp.isModifiable()) {
protoFile_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
private void setProtoFile(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
value.getClass();
ensureProtoFileIsMutable();
protoFile_.set(index, value);
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
private void addProtoFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
value.getClass();
ensureProtoFileIsMutable();
protoFile_.add(value);
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
private void addProtoFile(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
value.getClass();
ensureProtoFileIsMutable();
protoFile_.add(index, value);
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
private void addAllProtoFile(
java.lang.Iterable extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> values) {
ensureProtoFileIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, protoFile_);
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
private void clearProtoFile() {
protoFile_ = emptyProtobufList();
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
private void removeProtoFile(int index) {
ensureProtoFileIsMutable();
protoFile_.remove(index);
}
public static final int SOURCE_FILE_DESCRIPTORS_FIELD_NUMBER = 17;
private com.google.protobuf.Internal.ProtobufList sourceFileDescriptors_;
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
@java.lang.Override
public java.util.List getSourceFileDescriptorsList() {
return sourceFileDescriptors_;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public java.util.List extends com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>
getSourceFileDescriptorsOrBuilderList() {
return sourceFileDescriptors_;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
@java.lang.Override
public int getSourceFileDescriptorsCount() {
return sourceFileDescriptors_.size();
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FileDescriptorProto getSourceFileDescriptors(int index) {
return sourceFileDescriptors_.get(index);
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getSourceFileDescriptorsOrBuilder(
int index) {
return sourceFileDescriptors_.get(index);
}
private void ensureSourceFileDescriptorsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = sourceFileDescriptors_;
if (!tmp.isModifiable()) {
sourceFileDescriptors_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
private void setSourceFileDescriptors(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
value.getClass();
ensureSourceFileDescriptorsIsMutable();
sourceFileDescriptors_.set(index, value);
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
private void addSourceFileDescriptors(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
value.getClass();
ensureSourceFileDescriptorsIsMutable();
sourceFileDescriptors_.add(value);
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
private void addSourceFileDescriptors(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
value.getClass();
ensureSourceFileDescriptorsIsMutable();
sourceFileDescriptors_.add(index, value);
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
private void addAllSourceFileDescriptors(
java.lang.Iterable extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> values) {
ensureSourceFileDescriptorsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, sourceFileDescriptors_);
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
private void clearSourceFileDescriptors() {
sourceFileDescriptors_ = emptyProtobufList();
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
private void removeSourceFileDescriptors(int index) {
ensureSourceFileDescriptorsIsMutable();
sourceFileDescriptors_.remove(index);
}
public static final int COMPILER_VERSION_FIELD_NUMBER = 3;
private com.google.protobuf.compiler.PluginProtos.Version compilerVersion_;
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
@java.lang.Override
public boolean hasCompilerVersion() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
@java.lang.Override
public com.google.protobuf.compiler.PluginProtos.Version getCompilerVersion() {
return compilerVersion_ == null ? com.google.protobuf.compiler.PluginProtos.Version.getDefaultInstance() : compilerVersion_;
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
private void setCompilerVersion(com.google.protobuf.compiler.PluginProtos.Version value) {
value.getClass();
compilerVersion_ = value;
bitField0_ |= 0x00000002;
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeCompilerVersion(com.google.protobuf.compiler.PluginProtos.Version value) {
value.getClass();
if (compilerVersion_ != null &&
compilerVersion_ != com.google.protobuf.compiler.PluginProtos.Version.getDefaultInstance()) {
compilerVersion_ =
com.google.protobuf.compiler.PluginProtos.Version.newBuilder(compilerVersion_).mergeFrom(value).buildPartial();
} else {
compilerVersion_ = value;
}
bitField0_ |= 0x00000002;
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
private void clearCompilerVersion() { compilerVersion_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* An encoded CodeGeneratorRequest is written to the plugin's stdin.
*
*
* Protobuf type {@code google.protobuf.compiler.CodeGeneratorRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:google.protobuf.compiler.CodeGeneratorRequest)
com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequestOrBuilder {
// Construct using com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @return A list containing the fileToGenerate.
*/
@java.lang.Override
public java.util.List
getFileToGenerateList() {
return java.util.Collections.unmodifiableList(
instance.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 [json_name = "fileToGenerate"];
* @return The count of fileToGenerate.
*/
@java.lang.Override
public int getFileToGenerateCount() {
return instance.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 [json_name = "fileToGenerate"];
* @param index The index of the element to return.
* @return The fileToGenerate at the given index.
*/
@java.lang.Override
public java.lang.String getFileToGenerate(int index) {
return instance.getFileToGenerate(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 [json_name = "fileToGenerate"];
* @param index The index of the value to return.
* @return The bytes of the fileToGenerate at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileToGenerateBytes(int index) {
return instance.getFileToGenerateBytes(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 [json_name = "fileToGenerate"];
* @param index The index to set the value at.
* @param value The fileToGenerate to set.
* @return This builder for chaining.
*/
public Builder setFileToGenerate(
int index, java.lang.String value) {
copyOnWrite();
instance.setFileToGenerate(index, value);
return this;
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param value The fileToGenerate to add.
* @return This builder for chaining.
*/
public Builder addFileToGenerate(
java.lang.String value) {
copyOnWrite();
instance.addFileToGenerate(value);
return this;
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param values The fileToGenerate to add.
* @return This builder for chaining.
*/
public Builder addAllFileToGenerate(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllFileToGenerate(values);
return this;
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @return This builder for chaining.
*/
public Builder clearFileToGenerate() {
copyOnWrite();
instance.clearFileToGenerate();
return this;
}
/**
*
* 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 [json_name = "fileToGenerate"];
* @param value The bytes of the fileToGenerate to add.
* @return This builder for chaining.
*/
public Builder addFileToGenerateBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addFileToGenerateBytes(value);
return this;
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return Whether the parameter field is set.
*/
@java.lang.Override
public boolean hasParameter() {
return instance.hasParameter();
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return The parameter.
*/
@java.lang.Override
public java.lang.String getParameter() {
return instance.getParameter();
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return The bytes for parameter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParameterBytes() {
return instance.getParameterBytes();
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @param value The parameter to set.
* @return This builder for chaining.
*/
public Builder setParameter(
java.lang.String value) {
copyOnWrite();
instance.setParameter(value);
return this;
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @return This builder for chaining.
*/
public Builder clearParameter() {
copyOnWrite();
instance.clearParameter();
return this;
}
/**
*
* The generator parameter passed on the command-line.
*
*
* optional string parameter = 2 [json_name = "parameter"];
* @param value The bytes for parameter to set.
* @return This builder for chaining.
*/
public Builder setParameterBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setParameterBytes(value);
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
@java.lang.Override
public java.util.List getProtoFileList() {
return java.util.Collections.unmodifiableList(
instance.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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
@java.lang.Override
public int getProtoFileCount() {
return instance.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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FileDescriptorProto getProtoFile(int index) {
return instance.getProtoFile(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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder setProtoFile(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
copyOnWrite();
instance.setProtoFile(index, value);
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder setProtoFile(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
copyOnWrite();
instance.setProtoFile(index,
builderForValue.build());
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder addProtoFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
copyOnWrite();
instance.addProtoFile(value);
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder addProtoFile(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
copyOnWrite();
instance.addProtoFile(index, value);
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder addProtoFile(
com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
copyOnWrite();
instance.addProtoFile(builderForValue.build());
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder addProtoFile(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
copyOnWrite();
instance.addProtoFile(index,
builderForValue.build());
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder addAllProtoFile(
java.lang.Iterable extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> values) {
copyOnWrite();
instance.addAllProtoFile(values);
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder clearProtoFile() {
copyOnWrite();
instance.clearProtoFile();
return this;
}
/**
*
* 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.
*
* Note: the files listed in files_to_generate will include runtime-retention
* options only, but all other files will include source-retention options.
* The source_file_descriptors field below is available in case you need
* source-retention options for files_to_generate.
*
* 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 [json_name = "protoFile"];
*/
public Builder removeProtoFile(int index) {
copyOnWrite();
instance.removeProtoFile(index);
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
@java.lang.Override
public java.util.List getSourceFileDescriptorsList() {
return java.util.Collections.unmodifiableList(
instance.getSourceFileDescriptorsList());
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
@java.lang.Override
public int getSourceFileDescriptorsCount() {
return instance.getSourceFileDescriptorsCount();
}/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FileDescriptorProto getSourceFileDescriptors(int index) {
return instance.getSourceFileDescriptors(index);
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder setSourceFileDescriptors(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
copyOnWrite();
instance.setSourceFileDescriptors(index, value);
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder setSourceFileDescriptors(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
copyOnWrite();
instance.setSourceFileDescriptors(index,
builderForValue.build());
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder addSourceFileDescriptors(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
copyOnWrite();
instance.addSourceFileDescriptors(value);
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder addSourceFileDescriptors(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) {
copyOnWrite();
instance.addSourceFileDescriptors(index, value);
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder addSourceFileDescriptors(
com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
copyOnWrite();
instance.addSourceFileDescriptors(builderForValue.build());
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder addSourceFileDescriptors(
int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
copyOnWrite();
instance.addSourceFileDescriptors(index,
builderForValue.build());
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder addAllSourceFileDescriptors(
java.lang.Iterable extends com.google.protobuf.DescriptorProtos.FileDescriptorProto> values) {
copyOnWrite();
instance.addAllSourceFileDescriptors(values);
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder clearSourceFileDescriptors() {
copyOnWrite();
instance.clearSourceFileDescriptors();
return this;
}
/**
*
* File descriptors with all options, including source-retention options.
* These descriptors are only provided for the files listed in
* files_to_generate.
*
*
* repeated .google.protobuf.FileDescriptorProto source_file_descriptors = 17 [json_name = "sourceFileDescriptors"];
*/
public Builder removeSourceFileDescriptors(int index) {
copyOnWrite();
instance.removeSourceFileDescriptors(index);
return this;
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
@java.lang.Override
public boolean hasCompilerVersion() {
return instance.hasCompilerVersion();
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
@java.lang.Override
public com.google.protobuf.compiler.PluginProtos.Version getCompilerVersion() {
return instance.getCompilerVersion();
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
public Builder setCompilerVersion(com.google.protobuf.compiler.PluginProtos.Version value) {
copyOnWrite();
instance.setCompilerVersion(value);
return this;
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
public Builder setCompilerVersion(
com.google.protobuf.compiler.PluginProtos.Version.Builder builderForValue) {
copyOnWrite();
instance.setCompilerVersion(builderForValue.build());
return this;
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
public Builder mergeCompilerVersion(com.google.protobuf.compiler.PluginProtos.Version value) {
copyOnWrite();
instance.mergeCompilerVersion(value);
return this;
}
/**
*
* The version number of protocol compiler.
*
*
* optional .google.protobuf.compiler.Version compiler_version = 3 [json_name = "compilerVersion"];
*/
public Builder clearCompilerVersion() { copyOnWrite();
instance.clearCompilerVersion();
return this;
}
// @@protoc_insertion_point(builder_scope:google.protobuf.compiler.CodeGeneratorRequest)
}
private byte memoizedIsInitialized = 2;
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"fileToGenerate_",
"parameter_",
"compilerVersion_",
"protoFile_",
com.google.protobuf.DescriptorProtos.FileDescriptorProto.class,
"sourceFileDescriptors_",
com.google.protobuf.DescriptorProtos.FileDescriptorProto.class,
};
java.lang.String info =
"\u0001\u0005\u0000\u0001\u0001\u0011\u0005\u0000\u0003\u0002\u0001\u001a\u0002\u1008" +
"\u0000\u0003\u1009\u0001\u000f\u041b\u0011\u041b";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return memoizedIsInitialized;
}
case SET_MEMOIZED_IS_INITIALIZED: {
memoizedIsInitialized = (byte) (arg0 == null ? 0 : 1);
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorRequest)
private static final com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest DEFAULT_INSTANCE;
static {
CodeGeneratorRequest defaultInstance = new CodeGeneratorRequest();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CodeGeneratorRequest.class, defaultInstance);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public interface CodeGeneratorResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.protobuf.compiler.CodeGeneratorResponse)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* 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 [json_name = "error"];
* @return Whether the error field is set.
*/
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 [json_name = "error"];
* @return The error.
*/
java.lang.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 [json_name = "error"];
* @return The bytes for error.
*/
com.google.protobuf.ByteString
getErrorBytes();
/**
*
* 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 [json_name = "supportedFeatures"];
* @return Whether the supportedFeatures field is set.
*/
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 [json_name = "supportedFeatures"];
* @return The supportedFeatures.
*/
long getSupportedFeatures();
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @return Whether the minimumEdition field is set.
*/
boolean hasMinimumEdition();
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @return The minimumEdition.
*/
int getMinimumEdition();
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @return Whether the maximumEdition field is set.
*/
boolean hasMaximumEdition();
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @return The maximumEdition.
*/
int getMaximumEdition();
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
java.util.List
getFileList();
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File getFile(int index);
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
int getFileCount();
}
/**
*
* The plugin writes an encoded CodeGeneratorResponse to stdout.
*
*
* Protobuf type {@code google.protobuf.compiler.CodeGeneratorResponse}
*/
public static final class CodeGeneratorResponse extends
com.google.protobuf.GeneratedMessageLite<
CodeGeneratorResponse, CodeGeneratorResponse.Builder> implements
// @@protoc_insertion_point(message_implements:google.protobuf.compiler.CodeGeneratorResponse)
CodeGeneratorResponseOrBuilder {
private CodeGeneratorResponse() {
error_ = "";
file_ = emptyProtobufList();
}
/**
*
* Sync with code_generator.h.
*
*
* Protobuf enum {@code google.protobuf.compiler.CodeGeneratorResponse.Feature}
*/
public enum Feature
implements com.google.protobuf.Internal.EnumLite {
/**
* FEATURE_NONE = 0;
*/
FEATURE_NONE(0),
/**
* FEATURE_PROTO3_OPTIONAL = 1;
*/
FEATURE_PROTO3_OPTIONAL(1),
/**
* FEATURE_SUPPORTS_EDITIONS = 2;
*/
FEATURE_SUPPORTS_EDITIONS(2),
;
/**
* FEATURE_NONE = 0;
*/
public static final int FEATURE_NONE_VALUE = 0;
/**
* FEATURE_PROTO3_OPTIONAL = 1;
*/
public static final int FEATURE_PROTO3_OPTIONAL_VALUE = 1;
/**
* FEATURE_SUPPORTS_EDITIONS = 2;
*/
public static final int FEATURE_SUPPORTS_EDITIONS_VALUE = 2;
@java.lang.Override
public final int getNumber() {
return value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Feature valueOf(int value) {
return forNumber(value);
}
public static Feature forNumber(int value) {
switch (value) {
case 0: return FEATURE_NONE;
case 1: return FEATURE_PROTO3_OPTIONAL;
case 2: return FEATURE_SUPPORTS_EDITIONS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Feature> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public Feature findValueByNumber(int number) {
return Feature.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return FeatureVerifier.INSTANCE;
}
private static final class FeatureVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new FeatureVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return Feature.forNumber(number) != null;
}
};
private final int value;
private Feature(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.protobuf.compiler.CodeGeneratorResponse.Feature)
}
public interface FileOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.protobuf.compiler.CodeGeneratorResponse.File)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return The name.
*/
java.lang.String getName();
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return Whether the insertionPoint field is set.
*/
boolean hasInsertionPoint();
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return The insertionPoint.
*/
java.lang.String getInsertionPoint();
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return The bytes for insertionPoint.
*/
com.google.protobuf.ByteString
getInsertionPointBytes();
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return Whether the content field is set.
*/
boolean hasContent();
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return The content.
*/
java.lang.String getContent();
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return The bytes for content.
*/
com.google.protobuf.ByteString
getContentBytes();
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
* @return Whether the generatedCodeInfo field is set.
*/
boolean hasGeneratedCodeInfo();
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
* @return The generatedCodeInfo.
*/
com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getGeneratedCodeInfo();
}
/**
*
* Represents a single generated file.
*
*
* Protobuf type {@code google.protobuf.compiler.CodeGeneratorResponse.File}
*/
public static final class File extends
com.google.protobuf.GeneratedMessageLite<
File, File.Builder> implements
// @@protoc_insertion_point(message_implements:google.protobuf.compiler.CodeGeneratorResponse.File)
FileOrBuilder {
private File() {
name_ = "";
insertionPoint_ = "";
content_ = "";
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.String name_;
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
bitField0_ |= 0x00000001;
name_ = value;
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
*/
private void clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
name_ = value.toStringUtf8();
bitField0_ |= 0x00000001;
}
public static final int INSERTION_POINT_FIELD_NUMBER = 2;
private java.lang.String insertionPoint_;
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return Whether the insertionPoint field is set.
*/
@java.lang.Override
public boolean hasInsertionPoint() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return The insertionPoint.
*/
@java.lang.Override
public java.lang.String getInsertionPoint() {
return insertionPoint_;
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return The bytes for insertionPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInsertionPointBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(insertionPoint_);
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @param value The insertionPoint to set.
*/
private void setInsertionPoint(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
bitField0_ |= 0x00000002;
insertionPoint_ = value;
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
*/
private void clearInsertionPoint() {
bitField0_ = (bitField0_ & ~0x00000002);
insertionPoint_ = getDefaultInstance().getInsertionPoint();
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @param value The bytes for insertionPoint to set.
*/
private void setInsertionPointBytes(
com.google.protobuf.ByteString value) {
insertionPoint_ = value.toStringUtf8();
bitField0_ |= 0x00000002;
}
public static final int CONTENT_FIELD_NUMBER = 15;
private java.lang.String content_;
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return Whether the content field is set.
*/
@java.lang.Override
public boolean hasContent() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return The content.
*/
@java.lang.Override
public java.lang.String getContent() {
return content_;
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return The bytes for content.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(content_);
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @param value The content to set.
*/
private void setContent(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
bitField0_ |= 0x00000004;
content_ = value;
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
*/
private void clearContent() {
bitField0_ = (bitField0_ & ~0x00000004);
content_ = getDefaultInstance().getContent();
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @param value The bytes for content to set.
*/
private void setContentBytes(
com.google.protobuf.ByteString value) {
content_ = value.toStringUtf8();
bitField0_ |= 0x00000004;
}
public static final int GENERATED_CODE_INFO_FIELD_NUMBER = 16;
private com.google.protobuf.DescriptorProtos.GeneratedCodeInfo generatedCodeInfo_;
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
@java.lang.Override
public boolean hasGeneratedCodeInfo() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getGeneratedCodeInfo() {
return generatedCodeInfo_ == null ? com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.getDefaultInstance() : generatedCodeInfo_;
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
private void setGeneratedCodeInfo(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo value) {
value.getClass();
generatedCodeInfo_ = value;
bitField0_ |= 0x00000008;
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeGeneratedCodeInfo(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo value) {
value.getClass();
if (generatedCodeInfo_ != null &&
generatedCodeInfo_ != com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.getDefaultInstance()) {
generatedCodeInfo_ =
com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.newBuilder(generatedCodeInfo_).mergeFrom(value).buildPartial();
} else {
generatedCodeInfo_ = value;
}
bitField0_ |= 0x00000008;
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
private void clearGeneratedCodeInfo() { generatedCodeInfo_ = null;
bitField0_ = (bitField0_ & ~0x00000008);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Represents a single generated file.
*
*
* Protobuf type {@code google.protobuf.compiler.CodeGeneratorResponse.File}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File, Builder> implements
// @@protoc_insertion_point(builder_implements:google.protobuf.compiler.CodeGeneratorResponse.File)
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.FileOrBuilder {
// Construct using com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return instance.hasName();
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
*
* The file name, relative to the output directory. The name must not
* contain "." or ".." components and must be relative, not be absolute (so,
* the file cannot lie outside the output directory). "/" must be used as
* the path separator, not "\".
*
* If the name is omitted, the content will be appended to the previous
* file. This allows the generator to break large files into small chunks,
* and allows the generated text to be streamed back to protoc so that large
* files need not reside completely in memory at one time. Note that as of
* this writing protoc does not optimize for this -- it will read the entire
* CodeGeneratorResponse before writing files to disk.
*
*
* optional string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return Whether the insertionPoint field is set.
*/
@java.lang.Override
public boolean hasInsertionPoint() {
return instance.hasInsertionPoint();
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return The insertionPoint.
*/
@java.lang.Override
public java.lang.String getInsertionPoint() {
return instance.getInsertionPoint();
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return The bytes for insertionPoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInsertionPointBytes() {
return instance.getInsertionPointBytes();
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @param value The insertionPoint to set.
* @return This builder for chaining.
*/
public Builder setInsertionPoint(
java.lang.String value) {
copyOnWrite();
instance.setInsertionPoint(value);
return this;
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @return This builder for chaining.
*/
public Builder clearInsertionPoint() {
copyOnWrite();
instance.clearInsertionPoint();
return this;
}
/**
*
* If non-empty, indicates that the named file should already exist, and the
* content here is to be inserted into that file at a defined insertion
* point. This feature allows a code generator to extend the output
* produced by another code generator. The original generator may provide
* insertion points by placing special annotations in the file that look
* like:
* @@protoc_insertion_point(NAME)
* The annotation can have arbitrary text before and after it on the line,
* which allows it to be placed in a comment. NAME should be replaced with
* an identifier naming the point -- this is what other generators will use
* as the insertion_point. Code inserted at this point will be placed
* immediately above the line containing the insertion point (thus multiple
* insertions to the same point will come out in the order they were added).
* The double-@ is intended to make it unlikely that the generated code
* could contain things that look like insertion points by accident.
*
* For example, the C++ code generator places the following line in the
* .pb.h files that it generates:
* // @@protoc_insertion_point(namespace_scope)
* This line appears within the scope of the file's package namespace, but
* outside of any particular class. Another plugin can then specify the
* insertion_point "namespace_scope" to generate additional classes or
* other declarations that should be placed in this scope.
*
* Note that if the line containing the insertion point begins with
* whitespace, the same whitespace will be added to every line of the
* inserted text. This is useful for languages like Python, where
* indentation matters. In these languages, the insertion point comment
* should be indented the same amount as any inserted code will need to be
* in order to work correctly in that context.
*
* The code generator that generates the initial file and the one which
* inserts into it must both run as part of a single invocation of protoc.
* Code generators are executed in the order in which they appear on the
* command line.
*
* If |insertion_point| is present, |name| must also be present.
*
*
* optional string insertion_point = 2 [json_name = "insertionPoint"];
* @param value The bytes for insertionPoint to set.
* @return This builder for chaining.
*/
public Builder setInsertionPointBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setInsertionPointBytes(value);
return this;
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return Whether the content field is set.
*/
@java.lang.Override
public boolean hasContent() {
return instance.hasContent();
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return The content.
*/
@java.lang.Override
public java.lang.String getContent() {
return instance.getContent();
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return The bytes for content.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentBytes() {
return instance.getContentBytes();
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @param value The content to set.
* @return This builder for chaining.
*/
public Builder setContent(
java.lang.String value) {
copyOnWrite();
instance.setContent(value);
return this;
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @return This builder for chaining.
*/
public Builder clearContent() {
copyOnWrite();
instance.clearContent();
return this;
}
/**
*
* The file contents.
*
*
* optional string content = 15 [json_name = "content"];
* @param value The bytes for content to set.
* @return This builder for chaining.
*/
public Builder setContentBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setContentBytes(value);
return this;
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
@java.lang.Override
public boolean hasGeneratedCodeInfo() {
return instance.hasGeneratedCodeInfo();
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.GeneratedCodeInfo getGeneratedCodeInfo() {
return instance.getGeneratedCodeInfo();
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
public Builder setGeneratedCodeInfo(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo value) {
copyOnWrite();
instance.setGeneratedCodeInfo(value);
return this;
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
public Builder setGeneratedCodeInfo(
com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Builder builderForValue) {
copyOnWrite();
instance.setGeneratedCodeInfo(builderForValue.build());
return this;
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
public Builder mergeGeneratedCodeInfo(com.google.protobuf.DescriptorProtos.GeneratedCodeInfo value) {
copyOnWrite();
instance.mergeGeneratedCodeInfo(value);
return this;
}
/**
*
* Information describing the file content being inserted. If an insertion
* point is used, this information will be appropriately offset and inserted
* into the code generation metadata for the generated files.
*
*
* optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16 [json_name = "generatedCodeInfo"];
*/
public Builder clearGeneratedCodeInfo() { copyOnWrite();
instance.clearGeneratedCodeInfo();
return this;
}
// @@protoc_insertion_point(builder_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"name_",
"insertionPoint_",
"content_",
"generatedCodeInfo_",
};
java.lang.String info =
"\u0001\u0004\u0000\u0001\u0001\u0010\u0004\u0000\u0000\u0000\u0001\u1008\u0000\u0002" +
"\u1008\u0001\u000f\u1008\u0002\u0010\u1009\u0003";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse.File)
private static final com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File DEFAULT_INSTANCE;
static {
File defaultInstance = new File();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
File.class, defaultInstance);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
private int bitField0_;
public static final int ERROR_FIELD_NUMBER = 1;
private java.lang.String error_;
/**
*
* 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 [json_name = "error"];
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* 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 [json_name = "error"];
* @return The error.
*/
@java.lang.Override
public java.lang.String getError() {
return error_;
}
/**
*
* 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 [json_name = "error"];
* @return The bytes for error.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(error_);
}
/**
*
* 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 [json_name = "error"];
* @param value The error to set.
*/
private void setError(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
bitField0_ |= 0x00000001;
error_ = 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 [json_name = "error"];
*/
private void clearError() {
bitField0_ = (bitField0_ & ~0x00000001);
error_ = getDefaultInstance().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 [json_name = "error"];
* @param value The bytes for error to set.
*/
private void setErrorBytes(
com.google.protobuf.ByteString value) {
error_ = value.toStringUtf8();
bitField0_ |= 0x00000001;
}
public static final int SUPPORTED_FEATURES_FIELD_NUMBER = 2;
private long supportedFeatures_;
/**
*
* 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 [json_name = "supportedFeatures"];
* @return Whether the supportedFeatures field is set.
*/
@java.lang.Override
public boolean hasSupportedFeatures() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* 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 [json_name = "supportedFeatures"];
* @return The supportedFeatures.
*/
@java.lang.Override
public long getSupportedFeatures() {
return supportedFeatures_;
}
/**
*
* 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 [json_name = "supportedFeatures"];
* @param value The supportedFeatures to set.
*/
private void setSupportedFeatures(long value) {
bitField0_ |= 0x00000002;
supportedFeatures_ = 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 [json_name = "supportedFeatures"];
*/
private void clearSupportedFeatures() {
bitField0_ = (bitField0_ & ~0x00000002);
supportedFeatures_ = 0L;
}
public static final int MINIMUM_EDITION_FIELD_NUMBER = 3;
private int minimumEdition_;
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @return Whether the minimumEdition field is set.
*/
@java.lang.Override
public boolean hasMinimumEdition() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @return The minimumEdition.
*/
@java.lang.Override
public int getMinimumEdition() {
return minimumEdition_;
}
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @param value The minimumEdition to set.
*/
private void setMinimumEdition(int value) {
bitField0_ |= 0x00000004;
minimumEdition_ = value;
}
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
*/
private void clearMinimumEdition() {
bitField0_ = (bitField0_ & ~0x00000004);
minimumEdition_ = 0;
}
public static final int MAXIMUM_EDITION_FIELD_NUMBER = 4;
private int maximumEdition_;
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @return Whether the maximumEdition field is set.
*/
@java.lang.Override
public boolean hasMaximumEdition() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @return The maximumEdition.
*/
@java.lang.Override
public int getMaximumEdition() {
return maximumEdition_;
}
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @param value The maximumEdition to set.
*/
private void setMaximumEdition(int value) {
bitField0_ |= 0x00000008;
maximumEdition_ = value;
}
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
*/
private void clearMaximumEdition() {
bitField0_ = (bitField0_ & ~0x00000008);
maximumEdition_ = 0;
}
public static final int FILE_FIELD_NUMBER = 15;
private com.google.protobuf.Internal.ProtobufList file_;
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
@java.lang.Override
public java.util.List getFileList() {
return file_;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public java.util.List extends com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.FileOrBuilder>
getFileOrBuilderList() {
return file_;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
@java.lang.Override
public int getFileCount() {
return file_.size();
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
@java.lang.Override
public com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File getFile(int index) {
return file_.get(index);
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.FileOrBuilder getFileOrBuilder(
int index) {
return file_.get(index);
}
private void ensureFileIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = file_;
if (!tmp.isModifiable()) {
file_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
private void setFile(
int index, com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File value) {
value.getClass();
ensureFileIsMutable();
file_.set(index, value);
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
private void addFile(com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File value) {
value.getClass();
ensureFileIsMutable();
file_.add(value);
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
private void addFile(
int index, com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File value) {
value.getClass();
ensureFileIsMutable();
file_.add(index, value);
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
private void addAllFile(
java.lang.Iterable extends com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File> values) {
ensureFileIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, file_);
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
private void clearFile() {
file_ = emptyProtobufList();
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
private void removeFile(int index) {
ensureFileIsMutable();
file_.remove(index);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* The plugin writes an encoded CodeGeneratorResponse to stdout.
*
*
* Protobuf type {@code google.protobuf.compiler.CodeGeneratorResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse, Builder> implements
// @@protoc_insertion_point(builder_implements:google.protobuf.compiler.CodeGeneratorResponse)
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponseOrBuilder {
// Construct using com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* 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 [json_name = "error"];
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return instance.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 [json_name = "error"];
* @return The error.
*/
@java.lang.Override
public java.lang.String getError() {
return instance.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 [json_name = "error"];
* @return The bytes for error.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorBytes() {
return instance.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 [json_name = "error"];
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(
java.lang.String value) {
copyOnWrite();
instance.setError(value);
return this;
}
/**
*
* 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 [json_name = "error"];
* @return This builder for chaining.
*/
public Builder clearError() {
copyOnWrite();
instance.clearError();
return this;
}
/**
*
* 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 [json_name = "error"];
* @param value The bytes for error to set.
* @return This builder for chaining.
*/
public Builder setErrorBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setErrorBytes(value);
return this;
}
/**
*
* 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 [json_name = "supportedFeatures"];
* @return Whether the supportedFeatures field is set.
*/
@java.lang.Override
public boolean hasSupportedFeatures() {
return instance.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 [json_name = "supportedFeatures"];
* @return The supportedFeatures.
*/
@java.lang.Override
public long getSupportedFeatures() {
return instance.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 [json_name = "supportedFeatures"];
* @param value The supportedFeatures to set.
* @return This builder for chaining.
*/
public Builder setSupportedFeatures(long value) {
copyOnWrite();
instance.setSupportedFeatures(value);
return this;
}
/**
*
* 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 [json_name = "supportedFeatures"];
* @return This builder for chaining.
*/
public Builder clearSupportedFeatures() {
copyOnWrite();
instance.clearSupportedFeatures();
return this;
}
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @return Whether the minimumEdition field is set.
*/
@java.lang.Override
public boolean hasMinimumEdition() {
return instance.hasMinimumEdition();
}
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @return The minimumEdition.
*/
@java.lang.Override
public int getMinimumEdition() {
return instance.getMinimumEdition();
}
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @param value The minimumEdition to set.
* @return This builder for chaining.
*/
public Builder setMinimumEdition(int value) {
copyOnWrite();
instance.setMinimumEdition(value);
return this;
}
/**
*
* The minimum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 minimum_edition = 3 [json_name = "minimumEdition"];
* @return This builder for chaining.
*/
public Builder clearMinimumEdition() {
copyOnWrite();
instance.clearMinimumEdition();
return this;
}
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @return Whether the maximumEdition field is set.
*/
@java.lang.Override
public boolean hasMaximumEdition() {
return instance.hasMaximumEdition();
}
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @return The maximumEdition.
*/
@java.lang.Override
public int getMaximumEdition() {
return instance.getMaximumEdition();
}
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @param value The maximumEdition to set.
* @return This builder for chaining.
*/
public Builder setMaximumEdition(int value) {
copyOnWrite();
instance.setMaximumEdition(value);
return this;
}
/**
*
* The maximum edition this plugin supports. This will be treated as an
* Edition enum, but we want to allow unknown values. It should be specified
* according the edition enum value, *not* the edition number. Only takes
* effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
*
*
* optional int32 maximum_edition = 4 [json_name = "maximumEdition"];
* @return This builder for chaining.
*/
public Builder clearMaximumEdition() {
copyOnWrite();
instance.clearMaximumEdition();
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
@java.lang.Override
public java.util.List getFileList() {
return java.util.Collections.unmodifiableList(
instance.getFileList());
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
@java.lang.Override
public int getFileCount() {
return instance.getFileCount();
}/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
@java.lang.Override
public com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File getFile(int index) {
return instance.getFile(index);
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder setFile(
int index, com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File value) {
copyOnWrite();
instance.setFile(index, value);
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder setFile(
int index, com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.Builder builderForValue) {
copyOnWrite();
instance.setFile(index,
builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder addFile(com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File value) {
copyOnWrite();
instance.addFile(value);
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder addFile(
int index, com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File value) {
copyOnWrite();
instance.addFile(index, value);
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder addFile(
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.Builder builderForValue) {
copyOnWrite();
instance.addFile(builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder addFile(
int index, com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.Builder builderForValue) {
copyOnWrite();
instance.addFile(index,
builderForValue.build());
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder addAllFile(
java.lang.Iterable extends com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File> values) {
copyOnWrite();
instance.addAllFile(values);
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder clearFile() {
copyOnWrite();
instance.clearFile();
return this;
}
/**
* repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
*/
public Builder removeFile(int index) {
copyOnWrite();
instance.removeFile(index);
return this;
}
// @@protoc_insertion_point(builder_scope:google.protobuf.compiler.CodeGeneratorResponse)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"error_",
"supportedFeatures_",
"minimumEdition_",
"maximumEdition_",
"file_",
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File.class,
};
java.lang.String info =
"\u0001\u0005\u0000\u0001\u0001\u000f\u0005\u0000\u0001\u0000\u0001\u1008\u0000\u0002" +
"\u1003\u0001\u0003\u1004\u0002\u0004\u1004\u0003\u000f\u001b";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.protobuf.compiler.CodeGeneratorResponse)
private static final com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse DEFAULT_INSTANCE;
static {
CodeGeneratorResponse defaultInstance = new CodeGeneratorResponse();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CodeGeneratorResponse.class, defaultInstance);
}
public static com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy