methodMap) {
+ pluginContext.registerPlugin(name, methodMap);
+ }
+
+ private String callMethod(String method, String argsJson, String kwArgsJson) {
+ return pluginContext.callMethod(method, argsJson, kwArgsJson);
+ }
+
+ public API() {
+ registerPluginContext(pluginContext);
+ }
+
+ /**
+ * Parses a program given a set of file paths and returns the result.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ * import com.kcl.ast.*;
+ * import com.kcl.util.JsonUtil;
+ *
+ * API api = new API();
+ * ParseProgram_Result result = api.parseProgram(
+ * ParseProgram_Args.newBuilder().addPaths("path/to/kcl.k").build()
+ * );
+ * System.out.println(result.getAstJson());
+ * Program program = JsonUtil.deserializeProgram(result.getAstJson());
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the file paths to be parsed.
+ *
+ * @return the result of parsing the program and parse errors, including the AST in JSON format.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public ParseProgram_Result parseProgram(ParseProgram_Args args) throws Exception {
+ return ParseProgram_Result.parseFrom(call("KclvmService.ParseProgram", args.toByteArray()));
+ }
+
+ /**
+ * Parses a single file and returns its AST and errors.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * ParseFile_Args args = ParseFile_Args.newBuilder().setPath("./src/test_data/parse/main.k").build();
+ * API apiInstance = new API();
+ * ParseFile_Result result = apiInstance.parseFile(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the file path to be parsed.
+ *
+ * @return the result of parsing the file including the AST in JSON format and any errors.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public ParseFile_Result parseFile(ParseFile_Args args) throws Exception {
+ return ParseFile_Result.parseFrom(call("KclvmService.ParseFile", args.toByteArray()));
+ }
+
+ /**
+ * Loads a KCL package and returns AST, symbol, type, and definition information.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API api = new API();
+ * LoadPackage_Result result = api.loadPackage(
+ * LoadPackage_Args.newBuilder().setResolveAst(true).setParseArgs(
+ * ParseProgram_Args.newBuilder().addPaths("/path/to/kcl.k").build())
+ * .build());
+ * result.getSymbolsMap().values().forEach(s -> System.out.println(s));
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the file paths to be parsed and resolved.
+ *
+ * @return the result including AST, symbol, type, and definition information.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public LoadPackage_Result loadPackage(LoadPackage_Args args) throws Exception {
+ return LoadPackage_Result.parseFrom(call("KclvmService.LoadPackage", args.toByteArray()));
+ }
+
+ /**
+ * Lists variables in the KCL program and returns detailed information.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API api = new API();
+ * ListVariables_Result result = api.listVariables(
+ * ListVariables_Args.newBuilder().setResolveAst(true).setParseArgs(
+ * ParseProgram_Args.newBuilder().addPaths("/path/to/kcl.k").build())
+ * .build());
+ * result.getSymbolsMap().values().forEach(s -> System.out.println(s));
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the file paths and other details.
+ *
+ * @return the result including the variables found and their information.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public ListVariables_Result listVariables(ListVariables_Args args) throws Exception {
+ return ListVariables_Result.parseFrom(call("KclvmService.ListVariables", args.toByteArray()));
+ }
+
+ /**
+ * listOptions provides users with the ability to parse KCL program and get all option information.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * ParseProgram_Args args = ParseProgram_Args.newBuilder().addPaths("./src/test_data/option/main.k").build();
+ * API apiInstance = new API();
+ * ListOptions_Result result = apiInstance.listOptions(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the file paths and other details.
+ *
+ * @return the result including the variables found and their information.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public ListOptions_Result listOptions(ParseProgram_Args args) throws Exception {
+ return ListOptions_Result.parseFrom(call("KclvmService.ListOptions", args.toByteArray()));
+ }
+
+ /**
+ * Loads a KCL package using the internal cache and returns various details.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API api = new API();
+ * LoadPackage_Result result = api.loadPackageWithCache(
+ * LoadPackage_Args.newBuilder().setResolveAst(true).setParseArgs(
+ * ParseProgram_Args.newBuilder().addPaths("/path/to/kcl.k").build())
+ * .build());
+ * result.getSymbolsMap().values().forEach(s -> System.out.println(s));
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the file paths and resolution details.
+ *
+ * @return the result including AST, symbol, type, and definition information.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public LoadPackage_Result loadPackageWithCache(LoadPackage_Args args) throws Exception {
+ return LoadPackage_Result.parseFrom(callLoadPackageWithCache(args.toByteArray()));
+ }
+
+ /**
+ * Executes a KCL program with the given arguments.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * ExecProgram_Args args = ExecProgram_Args.newBuilder().addKFilenameList("schema.k").build();
+ * API apiInstance = new API();
+ * ExecProgram_Result result = apiInstance.execProgram(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments for executing the program.
+ *
+ * @return the result of executing the program.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ public ExecProgram_Result execProgram(ExecProgram_Args args) throws Exception {
+ return ExecProgram_Result.parseFrom(call("KclvmService.ExecProgram", args.toByteArray()));
+ }
+
+ /**
+ * Overrides a KCL file with new content.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API api = new API();
+ * String spec = "a=2";
+ * OverrideFile_Result result = api.overrideFile(OverrideFile_Args.newBuilder()
+ * .setFile("./src/test_data/override_file/main.k").addSpecs(spec).build());
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the file and the new content.
+ *
+ * @return the result of overriding the file.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public OverrideFile_Result overrideFile(OverrideFile_Args args) throws Exception {
+ return OverrideFile_Result.parseFrom(call("KclvmService.OverrideFile", args.toByteArray()));
+ }
+
+ /**
+ * Gets schema type mappings from a KCL program.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * ExecProgram_Args execArgs = ExecProgram_Args.newBuilder().addKFilenameList("schema.k").build();
+ * GetSchemaTypeMapping_Args args = GetSchemaTypeMapping_Args.newBuilder().setExecArgs(execArgs).build();
+ * API apiInstance = new API();
+ * GetSchemaTypeMapping_Result result = apiInstance.getSchemaTypeMapping(args);
+ * KclType appSchemaType = result.getSchemaTypeMappingMap().get("app");
+ * String replicasType = appSchemaType.getPropertiesOrThrow("replicas").getType();
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the program and schema.
+ *
+ * @return the schema type mappings in the program.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public GetSchemaTypeMapping_Result getSchemaTypeMapping(GetSchemaTypeMapping_Args args) throws Exception {
+ return GetSchemaTypeMapping_Result.parseFrom(call("KclvmService.GetSchemaTypeMapping", args.toByteArray()));
+ }
+
+ /**
+ * Formats KCL code according to the language standards.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * String sourceCode = "schema Person:\n" + " name: str\n" + " age: int\n" + " check:\n"
+ * + " 0 < age < 120\n";
+ * FormatCode_Args args = FormatCode_Args.newBuilder().setSource(sourceCode).build();
+ * API apiInstance = new API();
+ * FormatCode_Result result = apiInstance.formatCode(args);
+ * String expectedFormattedCode = "schema Person:\n" + " name: str\n" + " age: int\n\n" + " check:\n"
+ * + " 0 < age < 120\n\n";
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the code to be formatted.
+ *
+ * @return the formatted code.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public FormatCode_Result formatCode(FormatCode_Args args) throws Exception {
+ return FormatCode_Result.parseFrom(call("KclvmService.FormatCode", args.toByteArray()));
+ }
+
+ /**
+ * Formats a specified path containing KCL files.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * FormatPath_Args args = FormatPath_Args.newBuilder().setPath("test.k").build();
+ * API apiInstance = new API();
+ * FormatPath_Result result = apiInstance.formatPath(args);
+ * Assert.assertTrue(result.getChangedPathsList().isEmpty());
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the path to be formatted.
+ *
+ * @return the paths of files that were changed during the format process.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public FormatPath_Result formatPath(FormatPath_Args args) throws Exception {
+ return FormatPath_Result.parseFrom(call("KclvmService.FormatPath", args.toByteArray()));
+ }
+
+ /**
+ * Lints a specified path containing KCL files.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * LintPath_Args args = LintPath_Args.newBuilder().addPaths("test.k").build();
+ * API apiInstance = new API();
+ * LintPath_Result result = apiInstance.lintPath(args);
+ * boolean foundWarning = result.getResultsList().stream()
+ * .anyMatch(warning -> warning.contains("Module 'math' imported but unused"));
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the path to be linted.
+ *
+ * @return the lint results including warnings and errors.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public LintPath_Result lintPath(LintPath_Args args) throws Exception {
+ return LintPath_Result.parseFrom(call("KclvmService.LintPath", args.toByteArray()));
+ }
+
+ /**
+ * Validates KCL code using given schema and data strings.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * String code = "schema Person:\n" + " name: str\n" + " age: int\n" + " check:\n"
+ * + " 0 < age < 120\n";
+ * String data = "{\"name\": \"Alice\", \"age\": 10}";
+ * ValidateCode_Args args = ValidateCode_Args.newBuilder().setCode(code).setData(data).setFormat("json").build();
+ * API apiInstance = new API();
+ * ValidateCode_Result result = apiInstance.validateCode(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the code, schema, and data for validation.
+ *
+ * @return the validation result.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public ValidateCode_Result validateCode(ValidateCode_Args args) throws Exception {
+ return ValidateCode_Result.parseFrom(call("KclvmService.ValidateCode", args.toByteArray()));
+ }
+
+ /**
+ * Loads setting files and returns the result.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API api = new API();
+ * LoadSettingsFiles_Args args = LoadSettingsFiles_Args.newBuilder().addFiles("kcl.yaml")
+ * .build();
+ * LoadSettingsFiles_Result result = api.loadSettingsFiles(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the settings to be loaded.
+ *
+ * @return the loaded settings result.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public LoadSettingsFiles_Result loadSettingsFiles(LoadSettingsFiles_Args args) throws Exception {
+ return LoadSettingsFiles_Result.parseFrom(call("KclvmService.LoadSettingsFiles", args.toByteArray()));
+ }
+
+ /**
+ * Renames symbols in the given KCL files.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * Rename_Args args = Rename_Args.newBuilder().setPackageRoot("./src/test_data/rename").setSymbolPath("a")
+ * .addFilePaths("./src/test_data/rename/main.k").setNewName("a2").build();
+ * API apiInstance = new API();
+ * Rename_Result result = apiInstance.rename(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the symbols to be renamed.
+ *
+ * @return the result of the rename operation.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public Rename_Result rename(Rename_Args args) throws Exception {
+ return Rename_Result.parseFrom(call("KclvmService.Rename", args.toByteArray()));
+ }
+
+ /**
+ * Renames symbols in the given KCL code and returns the modified code.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API api = new API();
+ * RenameCode_Args args = RenameCode_Args.newBuilder().setPackageRoot("/mock/path").setSymbolPath("a")
+ * .putSourceCodes("/mock/path/main.k", "a = 1\nb = a").setNewName("a2").build();
+ * RenameCode_Result result = api.renameCode(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the symbols to be renamed in the code.
+ *
+ * @return the result of the rename operation including the modified code.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public RenameCode_Result renameCode(RenameCode_Args args) throws Exception {
+ return RenameCode_Result.parseFrom(call("KclvmService.RenameCode", args.toByteArray()));
+ }
+
+ /**
+ * Tests KCL packages with the given test arguments.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API apiInstance = new API();
+ * Test_Args args = Test_Args.newBuilder().addPkgList("./src/test_data/testing/...").build();
+ * Test_Result result = apiInstance.test(args);
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the test details.
+ *
+ * @return the test result including the test logs and errors.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public Test_Result test(Test_Args args) throws Exception {
+ return Test_Result.parseFrom(call("KclvmService.Test", args.toByteArray()));
+ }
+
+ /**
+ * Updates dependencies defined in the kcl.mod file.
+ *
+ *
+ * Example usage:
+ *
+ *
+ * {@code
+ * import com.kcl.api.*;
+ *
+ * API api = new API();
+ * UpdateDependencies_Result result = api.updateDependencies(
+ * UpdateDependencies_Args.newBuilder().setManifestPath("/path/to/module").build());
+ * }
+ *
+ *
+ * @param args
+ * the arguments specifying the dependencies to be updated.
+ *
+ * @return the result of updating dependencies.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public UpdateDependencies_Result updateDependencies(UpdateDependencies_Args args) throws Exception {
+ return UpdateDependencies_Result.parseFrom(call("KclvmService.UpdateDependencies", args.toByteArray()));
+ }
+
+ /**
+ * Gets the version information of the KCL service.
+ *
+ * @param args
+ * the arguments specifying the version request.
+ *
+ * @return the version result including version number and other details.
+ *
+ * @throws Exception
+ * if an error occurs during the remote procedure call.
+ */
+ @Override
+ public GetVersion_Result getVersion(GetVersion_Args args) throws Exception {
+ return GetVersion_Result.parseFrom(call("KclvmService.GetVersion", args.toByteArray()));
+ }
+
+ private byte[] call(String name, byte[] args) throws Exception {
+ byte[] result = callNative(name.getBytes(), args);
+ if (result != null && startsWith(result, ERROR_PREFIX)) {
+ throw new java.lang.Error(result.toString().substring(ERROR_PREFIX.length()).trim());
+ }
+ return result;
+ }
+
+ private byte[] callLoadPackageWithCache(byte[] args) throws Exception {
+ byte[] result = loadPackageWithCache(args);
+ if (result != null && startsWith(result, ERROR_PREFIX)) {
+ throw new java.lang.Error(result.toString().substring(ERROR_PREFIX.length()).trim());
+ }
+ return result;
+ }
+
+ static boolean startsWith(byte[] array, String prefix) {
+ byte[] prefixBytes = prefix.getBytes();
+ if (array.length < prefixBytes.length) {
+ return false;
+ }
+
+ for (int i = 0; i < prefixBytes.length; i++) {
+ if (array[i] != prefixBytes[i]) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+}
diff --git a/kotlin/src/main/java/com/kcl/api/Environment.java b/kotlin/src/main/java/com/kcl/api/Environment.java
new file mode 100644
index 0000000..2315500
--- /dev/null
+++ b/kotlin/src/main/java/com/kcl/api/Environment.java
@@ -0,0 +1,40 @@
+package com.kcl.api;
+
+/**
+ * Environment resolves environment-specific project metadata.
+ */
+public enum Environment {
+ INSTANCE;
+
+ public static final String UNKNOWN = "";
+ private String classifier = UNKNOWN;
+
+ static {
+ final StringBuilder classifier = new StringBuilder();
+ final String os = System.getProperty("os.name").toLowerCase();
+ if (os.startsWith("windows")) {
+ classifier.append("windows");
+ } else if (os.startsWith("mac")) {
+ classifier.append("osx");
+ } else {
+ classifier.append("linux");
+ }
+ classifier.append("-");
+ final String arch = System.getProperty("os.arch").toLowerCase();
+ if (arch.equals("aarch64")) {
+ classifier.append("aarch_64");
+ } else {
+ classifier.append("x86_64");
+ }
+ INSTANCE.classifier = classifier.toString();
+ }
+
+ /**
+ * Returns the classifier of the compiled environment.
+ *
+ * @return The classifier of the compiled environment.
+ */
+ public static String getClassifier() {
+ return INSTANCE.classifier;
+ }
+}
diff --git a/kotlin/src/main/java/com/kcl/api/Service.java b/kotlin/src/main/java/com/kcl/api/Service.java
new file mode 100644
index 0000000..698d538
--- /dev/null
+++ b/kotlin/src/main/java/com/kcl/api/Service.java
@@ -0,0 +1,62 @@
+package com.kcl.api;
+
+import com.kcl.api.Spec.*;
+
+public interface Service {
+ // Parse KCL single file AST JSON string
+ ParseFile_Result parseFile(ParseFile_Args args) throws Exception;
+
+ // Parse KCL program AST JSON string
+ ParseProgram_Result parseProgram(ParseProgram_Args args) throws Exception;
+
+ // Loads KCL package and returns the AST, symbol, type, definition information.
+ LoadPackage_Result loadPackage(LoadPackage_Args args) throws Exception;
+
+ // Loads KCL package and returns the AST, symbol, type, definition information.
+ LoadPackage_Result loadPackageWithCache(LoadPackage_Args args) throws Exception;
+
+ // Execute KCL file with args
+ ExecProgram_Result execProgram(ExecProgram_Args args) throws Exception;
+
+ // Override KCL file with args
+ OverrideFile_Result overrideFile(OverrideFile_Args args) throws Exception;
+
+ // List all the variables in the KCL file
+ ListVariables_Result listVariables(ListVariables_Args args) throws Exception;
+
+ // List all the option functions in the KCL file
+ ListOptions_Result listOptions(ParseProgram_Args args) throws Exception;
+
+ // Service for getting the full schema type list
+ GetSchemaTypeMapping_Result getSchemaTypeMapping(GetSchemaTypeMapping_Args args) throws Exception;
+
+ // Service for formatting a code source
+ FormatCode_Result formatCode(FormatCode_Args args) throws Exception;
+
+ // Service for formatting KCL file or directory path
+ FormatPath_Result formatPath(FormatPath_Args args) throws Exception;
+
+ // Service for KCL Lint API
+ LintPath_Result lintPath(LintPath_Args args) throws Exception;
+
+ // Service for validating the data string using the schema code string
+ ValidateCode_Result validateCode(ValidateCode_Args args) throws Exception;
+
+ // Service for building setting file config from args
+ LoadSettingsFiles_Result loadSettingsFiles(LoadSettingsFiles_Args args) throws Exception;
+
+ // Service for renaming all the occurrences of the target symbol in the files
+ Rename_Result rename(Rename_Args args) throws Exception;
+
+ // Service for renaming all the occurrences of the target symbol and rename them
+ RenameCode_Result renameCode(RenameCode_Args args) throws Exception;
+
+ // Service for the testing tool
+ Test_Result test(Test_Args args) throws Exception;
+
+ // Service for the dependency updating
+ UpdateDependencies_Result updateDependencies(UpdateDependencies_Args args) throws Exception;
+
+ // Service for the KCL service version information.
+ GetVersion_Result getVersion(GetVersion_Args args) throws Exception;
+}
diff --git a/kotlin/src/main/java/com/kcl/api/Spec.java b/kotlin/src/main/java/com/kcl/api/Spec.java
new file mode 100644
index 0000000..45cea59
--- /dev/null
+++ b/kotlin/src/main/java/com/kcl/api/Spec.java
@@ -0,0 +1,74055 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: spec.proto
+// Protobuf Java Version: 4.27.0
+
+package com.kcl.api;
+
+public final class Spec {
+ private Spec() {
+ }
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", Spec.class.getName());
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ public interface ExternalPkgOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.ExternalPkg)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @return The pkgName.
+ */
+ java.lang.String getPkgName();
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @return The bytes for pkgName.
+ */
+ com.google.protobuf.ByteString getPkgNameBytes();
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @return The pkgPath.
+ */
+ java.lang.String getPkgPath();
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @return The bytes for pkgPath.
+ */
+ com.google.protobuf.ByteString getPkgPathBytes();
+ }
+
+ /**
+ *
+ * Message representing an external package for KCL.
+ * kcl main.k -E pkg_name=pkg_path
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ExternalPkg}
+ */
+ public static final class ExternalPkg extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.ExternalPkg)
+ ExternalPkgOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", ExternalPkg.class.getName());
+ }
+
+ // Use ExternalPkg.newBuilder() to construct.
+ private ExternalPkg(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ExternalPkg() {
+ pkgName_ = "";
+ pkgPath_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ExternalPkg_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ExternalPkg_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExternalPkg.class,
+ com.kcl.api.Spec.ExternalPkg.Builder.class);
+ }
+
+ public static final int PKG_NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pkgName_ = "";
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @return The pkgName.
+ */
+ @java.lang.Override
+ public java.lang.String getPkgName() {
+ java.lang.Object ref = pkgName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pkgName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @return The bytes for pkgName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPkgNameBytes() {
+ java.lang.Object ref = pkgName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pkgName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PKG_PATH_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pkgPath_ = "";
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @return The pkgPath.
+ */
+ @java.lang.Override
+ public java.lang.String getPkgPath() {
+ java.lang.Object ref = pkgPath_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pkgPath_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @return The bytes for pkgPath.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPkgPathBytes() {
+ java.lang.Object ref = pkgPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pkgPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, pkgName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgPath_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, pkgPath_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pkgName_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgPath_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pkgPath_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.ExternalPkg)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.ExternalPkg other = (com.kcl.api.Spec.ExternalPkg) obj;
+
+ if (!getPkgName().equals(other.getPkgName()))
+ return false;
+ if (!getPkgPath().equals(other.getPkgPath()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PKG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getPkgName().hashCode();
+ hash = (37 * hash) + PKG_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getPkgPath().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.ExternalPkg prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message representing an external package for KCL.
+ * kcl main.k -E pkg_name=pkg_path
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ExternalPkg}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.ExternalPkg)
+ com.kcl.api.Spec.ExternalPkgOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ExternalPkg_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ExternalPkg_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExternalPkg.class,
+ com.kcl.api.Spec.ExternalPkg.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.ExternalPkg.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ pkgName_ = "";
+ pkgPath_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ExternalPkg_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkg getDefaultInstanceForType() {
+ return com.kcl.api.Spec.ExternalPkg.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkg build() {
+ com.kcl.api.Spec.ExternalPkg result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkg buildPartial() {
+ com.kcl.api.Spec.ExternalPkg result = new com.kcl.api.Spec.ExternalPkg(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.ExternalPkg result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.pkgName_ = pkgName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pkgPath_ = pkgPath_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.ExternalPkg) {
+ return mergeFrom((com.kcl.api.Spec.ExternalPkg) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.ExternalPkg other) {
+ if (other == com.kcl.api.Spec.ExternalPkg.getDefaultInstance())
+ return this;
+ if (!other.getPkgName().isEmpty()) {
+ pkgName_ = other.pkgName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getPkgPath().isEmpty()) {
+ pkgPath_ = other.pkgPath_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ pkgName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ pkgPath_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object pkgName_ = "";
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @return The pkgName.
+ */
+ public java.lang.String getPkgName() {
+ java.lang.Object ref = pkgName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pkgName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @return The bytes for pkgName.
+ */
+ public com.google.protobuf.ByteString getPkgNameBytes() {
+ java.lang.Object ref = pkgName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ pkgName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @param value
+ * The pkgName to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPkgName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pkgName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPkgName() {
+ pkgName_ = getDefaultInstance().getPkgName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Name of the package.
+ *
+ *
+ * string pkg_name = 1;
+ *
+ * @param value
+ * The bytes for pkgName to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPkgNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ pkgName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pkgPath_ = "";
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @return The pkgPath.
+ */
+ public java.lang.String getPkgPath() {
+ java.lang.Object ref = pkgPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pkgPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @return The bytes for pkgPath.
+ */
+ public com.google.protobuf.ByteString getPkgPathBytes() {
+ java.lang.Object ref = pkgPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ pkgPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @param value
+ * The pkgPath to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPkgPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pkgPath_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPkgPath() {
+ pkgPath_ = getDefaultInstance().getPkgPath();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Path of the package.
+ *
+ *
+ * string pkg_path = 2;
+ *
+ * @param value
+ * The bytes for pkgPath to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPkgPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ pkgPath_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.ExternalPkg)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.ExternalPkg)
+ private static final com.kcl.api.Spec.ExternalPkg DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.ExternalPkg();
+ }
+
+ public static com.kcl.api.Spec.ExternalPkg getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExternalPkg parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkg getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ArgumentOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.Argument)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @return The value.
+ */
+ java.lang.String getValue();
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+ }
+
+ /**
+ *
+ * Message representing a key-value argument for KCL.
+ * kcl main.k -D name=value
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Argument}
+ */
+ public static final class Argument extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.Argument)
+ ArgumentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", Argument.class.getName());
+ }
+
+ // Use Argument.newBuilder() to construct.
+ private Argument(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Argument() {
+ name_ = "";
+ value_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Argument_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Argument_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Argument.class,
+ com.kcl.api.Spec.Argument.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object value_ = "";
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.Argument)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.Argument other = (com.kcl.api.Spec.Argument) obj;
+
+ if (!getName().equals(other.getName()))
+ return false;
+ if (!getValue().equals(other.getValue()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Argument parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Argument parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Argument parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.Argument prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message representing a key-value argument for KCL.
+ * kcl main.k -D name=value
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Argument}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.Argument)
+ com.kcl.api.Spec.ArgumentOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Argument_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Argument_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Argument.class,
+ com.kcl.api.Spec.Argument.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.Argument.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ value_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Argument_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Argument getDefaultInstanceForType() {
+ return com.kcl.api.Spec.Argument.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Argument build() {
+ com.kcl.api.Spec.Argument result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Argument buildPartial() {
+ com.kcl.api.Spec.Argument result = new com.kcl.api.Spec.Argument(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.Argument result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.value_ = value_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.Argument) {
+ return mergeFrom((com.kcl.api.Spec.Argument) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.Argument other) {
+ if (other == com.kcl.api.Spec.Argument.getDefaultInstance())
+ return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getValue().isEmpty()) {
+ value_ = other.value_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ value_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @param value
+ * The name to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Name of the argument.
+ *
+ *
+ * string name = 1;
+ *
+ * @param value
+ * The bytes for name to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @param value
+ * The value to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Value of the argument.
+ *
+ *
+ * string value = 2;
+ *
+ * @param value
+ * The bytes for value to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.Argument)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.Argument)
+ private static final com.kcl.api.Spec.Argument DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.Argument();
+ }
+
+ public static com.kcl.api.Spec.Argument getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Argument parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Argument getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ErrorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.Error)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @return The level.
+ */
+ java.lang.String getLevel();
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @return The bytes for level.
+ */
+ com.google.protobuf.ByteString getLevelBytes();
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @return The code.
+ */
+ java.lang.String getCode();
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @return The bytes for code.
+ */
+ com.google.protobuf.ByteString getCodeBytes();
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ java.util.List getMessagesList();
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ com.kcl.api.Spec.Message getMessages(int index);
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ int getMessagesCount();
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ java.util.List extends com.kcl.api.Spec.MessageOrBuilder> getMessagesOrBuilderList();
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ com.kcl.api.Spec.MessageOrBuilder getMessagesOrBuilder(int index);
+ }
+
+ /**
+ *
+ * Message representing an error.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Error}
+ */
+ public static final class Error extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.Error)
+ ErrorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", Error.class.getName());
+ }
+
+ // Use Error.newBuilder() to construct.
+ private Error(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Error() {
+ level_ = "";
+ code_ = "";
+ messages_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Error_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Error_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Error.class,
+ com.kcl.api.Spec.Error.Builder.class);
+ }
+
+ public static final int LEVEL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object level_ = "";
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @return The level.
+ */
+ @java.lang.Override
+ public java.lang.String getLevel() {
+ java.lang.Object ref = level_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ level_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @return The bytes for level.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLevelBytes() {
+ java.lang.Object ref = level_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ level_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CODE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object code_ = "";
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @return The code.
+ */
+ @java.lang.Override
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @return The bytes for code.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MESSAGES_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List messages_;
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ @java.lang.Override
+ public java.util.List getMessagesList() {
+ return messages_;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.kcl.api.Spec.MessageOrBuilder> getMessagesOrBuilderList() {
+ return messages_;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ @java.lang.Override
+ public int getMessagesCount() {
+ return messages_.size();
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Message getMessages(int index) {
+ return messages_.get(index);
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.MessageOrBuilder getMessagesOrBuilder(int index) {
+ return messages_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(level_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, level_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, code_);
+ }
+ for (int i = 0; i < messages_.size(); i++) {
+ output.writeMessage(3, messages_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(level_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, level_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, code_);
+ }
+ for (int i = 0; i < messages_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, messages_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.Error)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.Error other = (com.kcl.api.Spec.Error) obj;
+
+ if (!getLevel().equals(other.getLevel()))
+ return false;
+ if (!getCode().equals(other.getCode()))
+ return false;
+ if (!getMessagesList().equals(other.getMessagesList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LEVEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLevel().hashCode();
+ hash = (37 * hash) + CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getCode().hashCode();
+ if (getMessagesCount() > 0) {
+ hash = (37 * hash) + MESSAGES_FIELD_NUMBER;
+ hash = (53 * hash) + getMessagesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Error parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Error parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.Error prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message representing an error.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Error}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.Error)
+ com.kcl.api.Spec.ErrorOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Error_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Error_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Error.class,
+ com.kcl.api.Spec.Error.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.Error.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ level_ = "";
+ code_ = "";
+ if (messagesBuilder_ == null) {
+ messages_ = java.util.Collections.emptyList();
+ } else {
+ messages_ = null;
+ messagesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Error_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Error getDefaultInstanceForType() {
+ return com.kcl.api.Spec.Error.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Error build() {
+ com.kcl.api.Spec.Error result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Error buildPartial() {
+ com.kcl.api.Spec.Error result = new com.kcl.api.Spec.Error(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.kcl.api.Spec.Error result) {
+ if (messagesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ messages_ = java.util.Collections.unmodifiableList(messages_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.messages_ = messages_;
+ } else {
+ result.messages_ = messagesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.Error result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.level_ = level_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.code_ = code_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.Error) {
+ return mergeFrom((com.kcl.api.Spec.Error) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.Error other) {
+ if (other == com.kcl.api.Spec.Error.getDefaultInstance())
+ return this;
+ if (!other.getLevel().isEmpty()) {
+ level_ = other.level_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getCode().isEmpty()) {
+ code_ = other.code_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (messagesBuilder_ == null) {
+ if (!other.messages_.isEmpty()) {
+ if (messages_.isEmpty()) {
+ messages_ = other.messages_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureMessagesIsMutable();
+ messages_.addAll(other.messages_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.messages_.isEmpty()) {
+ if (messagesBuilder_.isEmpty()) {
+ messagesBuilder_.dispose();
+ messagesBuilder_ = null;
+ messages_ = other.messages_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ messagesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? getMessagesFieldBuilder() : null;
+ } else {
+ messagesBuilder_.addAllMessages(other.messages_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ level_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ code_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ com.kcl.api.Spec.Message m = input.readMessage(com.kcl.api.Spec.Message.parser(),
+ extensionRegistry);
+ if (messagesBuilder_ == null) {
+ ensureMessagesIsMutable();
+ messages_.add(m);
+ } else {
+ messagesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object level_ = "";
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @return The level.
+ */
+ public java.lang.String getLevel() {
+ java.lang.Object ref = level_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ level_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @return The bytes for level.
+ */
+ public com.google.protobuf.ByteString getLevelBytes() {
+ java.lang.Object ref = level_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ level_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @param value
+ * The level to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setLevel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ level_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLevel() {
+ level_ = getDefaultInstance().getLevel();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Level of the error (e.g., "Error", "Warning").
+ *
+ *
+ * string level = 1;
+ *
+ * @param value
+ * The bytes for level to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setLevelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ level_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object code_ = "";
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @return The code.
+ */
+ public java.lang.String getCode() {
+ java.lang.Object ref = code_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ code_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @return The bytes for code.
+ */
+ public com.google.protobuf.ByteString getCodeBytes() {
+ java.lang.Object ref = code_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ code_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @param value
+ * The code to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ code_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCode() {
+ code_ = getDefaultInstance().getCode();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Error code. (e.g., "E1001")
+ *
+ *
+ * string code = 2;
+ *
+ * @param value
+ * The bytes for code to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ code_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List messages_ = java.util.Collections.emptyList();
+
+ private void ensureMessagesIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ messages_ = new java.util.ArrayList(messages_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder messagesBuilder_;
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public java.util.List getMessagesList() {
+ if (messagesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(messages_);
+ } else {
+ return messagesBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public int getMessagesCount() {
+ if (messagesBuilder_ == null) {
+ return messages_.size();
+ } else {
+ return messagesBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public com.kcl.api.Spec.Message getMessages(int index) {
+ if (messagesBuilder_ == null) {
+ return messages_.get(index);
+ } else {
+ return messagesBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder setMessages(int index, com.kcl.api.Spec.Message value) {
+ if (messagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMessagesIsMutable();
+ messages_.set(index, value);
+ onChanged();
+ } else {
+ messagesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder setMessages(int index, com.kcl.api.Spec.Message.Builder builderForValue) {
+ if (messagesBuilder_ == null) {
+ ensureMessagesIsMutable();
+ messages_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ messagesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder addMessages(com.kcl.api.Spec.Message value) {
+ if (messagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMessagesIsMutable();
+ messages_.add(value);
+ onChanged();
+ } else {
+ messagesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder addMessages(int index, com.kcl.api.Spec.Message value) {
+ if (messagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMessagesIsMutable();
+ messages_.add(index, value);
+ onChanged();
+ } else {
+ messagesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder addMessages(com.kcl.api.Spec.Message.Builder builderForValue) {
+ if (messagesBuilder_ == null) {
+ ensureMessagesIsMutable();
+ messages_.add(builderForValue.build());
+ onChanged();
+ } else {
+ messagesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder addMessages(int index, com.kcl.api.Spec.Message.Builder builderForValue) {
+ if (messagesBuilder_ == null) {
+ ensureMessagesIsMutable();
+ messages_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ messagesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder addAllMessages(java.lang.Iterable extends com.kcl.api.Spec.Message> values) {
+ if (messagesBuilder_ == null) {
+ ensureMessagesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_);
+ onChanged();
+ } else {
+ messagesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder clearMessages() {
+ if (messagesBuilder_ == null) {
+ messages_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ messagesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public Builder removeMessages(int index) {
+ if (messagesBuilder_ == null) {
+ ensureMessagesIsMutable();
+ messages_.remove(index);
+ onChanged();
+ } else {
+ messagesBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public com.kcl.api.Spec.Message.Builder getMessagesBuilder(int index) {
+ return getMessagesFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public com.kcl.api.Spec.MessageOrBuilder getMessagesOrBuilder(int index) {
+ if (messagesBuilder_ == null) {
+ return messages_.get(index);
+ } else {
+ return messagesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public java.util.List extends com.kcl.api.Spec.MessageOrBuilder> getMessagesOrBuilderList() {
+ if (messagesBuilder_ != null) {
+ return messagesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(messages_);
+ }
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public com.kcl.api.Spec.Message.Builder addMessagesBuilder() {
+ return getMessagesFieldBuilder().addBuilder(com.kcl.api.Spec.Message.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public com.kcl.api.Spec.Message.Builder addMessagesBuilder(int index) {
+ return getMessagesFieldBuilder().addBuilder(index, com.kcl.api.Spec.Message.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of error messages.
+ *
+ *
+ * repeated .com.kcl.api.Message messages = 3;
+ */
+ public java.util.List getMessagesBuilderList() {
+ return getMessagesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder getMessagesFieldBuilder() {
+ if (messagesBuilder_ == null) {
+ messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(
+ messages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ messages_ = null;
+ }
+ return messagesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.Error)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.Error)
+ private static final com.kcl.api.Spec.Error DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.Error();
+ }
+
+ public static com.kcl.api.Spec.Error getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Error parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Error getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MessageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.Message)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @return The msg.
+ */
+ java.lang.String getMsg();
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @return The bytes for msg.
+ */
+ com.google.protobuf.ByteString getMsgBytes();
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ *
+ * @return Whether the pos field is set.
+ */
+ boolean hasPos();
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ *
+ * @return The pos.
+ */
+ com.kcl.api.Spec.Position getPos();
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ com.kcl.api.Spec.PositionOrBuilder getPosOrBuilder();
+ }
+
+ /**
+ *
+ * Message representing a detailed error message with a position.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Message}
+ */
+ public static final class Message extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.Message)
+ MessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", Message.class.getName());
+ }
+
+ // Use Message.newBuilder() to construct.
+ private Message(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Message() {
+ msg_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Message_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Message_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Message.class,
+ com.kcl.api.Spec.Message.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int MSG_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object msg_ = "";
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @return The msg.
+ */
+ @java.lang.Override
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ msg_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @return The bytes for msg.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int POS_FIELD_NUMBER = 2;
+ private com.kcl.api.Spec.Position pos_;
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ *
+ * @return Whether the pos field is set.
+ */
+ @java.lang.Override
+ public boolean hasPos() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ *
+ * @return The pos.
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Position getPos() {
+ return pos_ == null ? com.kcl.api.Spec.Position.getDefaultInstance() : pos_;
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.PositionOrBuilder getPosOrBuilder() {
+ return pos_ == null ? com.kcl.api.Spec.Position.getDefaultInstance() : pos_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(msg_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, msg_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(2, getPos());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(msg_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, msg_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPos());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.Message)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.Message other = (com.kcl.api.Spec.Message) obj;
+
+ if (!getMsg().equals(other.getMsg()))
+ return false;
+ if (hasPos() != other.hasPos())
+ return false;
+ if (hasPos()) {
+ if (!getPos().equals(other.getPos()))
+ return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MSG_FIELD_NUMBER;
+ hash = (53 * hash) + getMsg().hashCode();
+ if (hasPos()) {
+ hash = (37 * hash) + POS_FIELD_NUMBER;
+ hash = (53 * hash) + getPos().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Message parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Message parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Message parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.Message prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message representing a detailed error message with a position.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Message}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.Message)
+ com.kcl.api.Spec.MessageOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Message_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Message_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Message.class,
+ com.kcl.api.Spec.Message.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.Message.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPosFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ msg_ = "";
+ pos_ = null;
+ if (posBuilder_ != null) {
+ posBuilder_.dispose();
+ posBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Message_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Message getDefaultInstanceForType() {
+ return com.kcl.api.Spec.Message.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Message build() {
+ com.kcl.api.Spec.Message result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Message buildPartial() {
+ com.kcl.api.Spec.Message result = new com.kcl.api.Spec.Message(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.Message result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.msg_ = msg_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.pos_ = posBuilder_ == null ? pos_ : posBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.Message) {
+ return mergeFrom((com.kcl.api.Spec.Message) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.Message other) {
+ if (other == com.kcl.api.Spec.Message.getDefaultInstance())
+ return this;
+ if (!other.getMsg().isEmpty()) {
+ msg_ = other.msg_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.hasPos()) {
+ mergePos(other.getPos());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ msg_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(getPosFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object msg_ = "";
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @return The msg.
+ */
+ public java.lang.String getMsg() {
+ java.lang.Object ref = msg_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ msg_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @return The bytes for msg.
+ */
+ public com.google.protobuf.ByteString getMsgBytes() {
+ java.lang.Object ref = msg_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ msg_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @param value
+ * The msg to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setMsg(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ msg_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMsg() {
+ msg_ = getDefaultInstance().getMsg();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * The error message text.
+ *
+ *
+ * string msg = 1;
+ *
+ * @param value
+ * The bytes for msg to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setMsgBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ msg_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.kcl.api.Spec.Position pos_;
+ private com.google.protobuf.SingleFieldBuilder posBuilder_;
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ *
+ * @return Whether the pos field is set.
+ */
+ public boolean hasPos() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ *
+ * @return The pos.
+ */
+ public com.kcl.api.Spec.Position getPos() {
+ if (posBuilder_ == null) {
+ return pos_ == null ? com.kcl.api.Spec.Position.getDefaultInstance() : pos_;
+ } else {
+ return posBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ public Builder setPos(com.kcl.api.Spec.Position value) {
+ if (posBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ pos_ = value;
+ } else {
+ posBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ public Builder setPos(com.kcl.api.Spec.Position.Builder builderForValue) {
+ if (posBuilder_ == null) {
+ pos_ = builderForValue.build();
+ } else {
+ posBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ public Builder mergePos(com.kcl.api.Spec.Position value) {
+ if (posBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0) && pos_ != null
+ && pos_ != com.kcl.api.Spec.Position.getDefaultInstance()) {
+ getPosBuilder().mergeFrom(value);
+ } else {
+ pos_ = value;
+ }
+ } else {
+ posBuilder_.mergeFrom(value);
+ }
+ if (pos_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ public Builder clearPos() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ pos_ = null;
+ if (posBuilder_ != null) {
+ posBuilder_.dispose();
+ posBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ public com.kcl.api.Spec.Position.Builder getPosBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getPosFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ public com.kcl.api.Spec.PositionOrBuilder getPosOrBuilder() {
+ if (posBuilder_ != null) {
+ return posBuilder_.getMessageOrBuilder();
+ } else {
+ return pos_ == null ? com.kcl.api.Spec.Position.getDefaultInstance() : pos_;
+ }
+ }
+
+ /**
+ *
+ * The position in the source code where the error occurred.
+ *
+ *
+ * .com.kcl.api.Position pos = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder getPosFieldBuilder() {
+ if (posBuilder_ == null) {
+ posBuilder_ = new com.google.protobuf.SingleFieldBuilder(
+ getPos(), getParentForChildren(), isClean());
+ pos_ = null;
+ }
+ return posBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.Message)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.Message)
+ private static final com.kcl.api.Spec.Message DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.Message();
+ }
+
+ public static com.kcl.api.Spec.Message getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Message parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Message getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface Ping_ArgsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.Ping_Args)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The value.
+ */
+ java.lang.String getValue();
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+ }
+
+ /**
+ *
+ * Message for ping request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Ping_Args}
+ */
+ public static final class Ping_Args extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.Ping_Args)
+ Ping_ArgsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", Ping_Args.class.getName());
+ }
+
+ // Use Ping_Args.newBuilder() to construct.
+ private Ping_Args(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Ping_Args() {
+ value_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Ping_Args.class,
+ com.kcl.api.Spec.Ping_Args.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object value_ = "";
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.Ping_Args)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.Ping_Args other = (com.kcl.api.Spec.Ping_Args) obj;
+
+ if (!getValue().equals(other.getValue()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Ping_Args parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.Ping_Args prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for ping request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Ping_Args}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.Ping_Args)
+ com.kcl.api.Spec.Ping_ArgsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Ping_Args.class,
+ com.kcl.api.Spec.Ping_Args.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.Ping_Args.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ value_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Args_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Args getDefaultInstanceForType() {
+ return com.kcl.api.Spec.Ping_Args.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Args build() {
+ com.kcl.api.Spec.Ping_Args result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Args buildPartial() {
+ com.kcl.api.Spec.Ping_Args result = new com.kcl.api.Spec.Ping_Args(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.Ping_Args result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.Ping_Args) {
+ return mergeFrom((com.kcl.api.Spec.Ping_Args) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.Ping_Args other) {
+ if (other == com.kcl.api.Spec.Ping_Args.getDefaultInstance())
+ return this;
+ if (!other.getValue().isEmpty()) {
+ value_ = other.value_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ value_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object value_ = "";
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @param value
+ * The value to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Value to be sent in the ping request.
+ *
+ *
+ * string value = 1;
+ *
+ * @param value
+ * The bytes for value to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.Ping_Args)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.Ping_Args)
+ private static final com.kcl.api.Spec.Ping_Args DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.Ping_Args();
+ }
+
+ public static com.kcl.api.Spec.Ping_Args getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Ping_Args parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Args getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface Ping_ResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.Ping_Result)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The value.
+ */
+ java.lang.String getValue();
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+ }
+
+ /**
+ *
+ * Message for ping response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Ping_Result}
+ */
+ public static final class Ping_Result extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.Ping_Result)
+ Ping_ResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", Ping_Result.class.getName());
+ }
+
+ // Use Ping_Result.newBuilder() to construct.
+ private Ping_Result(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Ping_Result() {
+ value_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Ping_Result.class,
+ com.kcl.api.Spec.Ping_Result.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object value_ = "";
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.Ping_Result)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.Ping_Result other = (com.kcl.api.Spec.Ping_Result) obj;
+
+ if (!getValue().equals(other.getValue()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.Ping_Result parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.Ping_Result prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for ping response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.Ping_Result}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.Ping_Result)
+ com.kcl.api.Spec.Ping_ResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Ping_Result.class,
+ com.kcl.api.Spec.Ping_Result.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.Ping_Result.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ value_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_Ping_Result_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Result getDefaultInstanceForType() {
+ return com.kcl.api.Spec.Ping_Result.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Result build() {
+ com.kcl.api.Spec.Ping_Result result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Result buildPartial() {
+ com.kcl.api.Spec.Ping_Result result = new com.kcl.api.Spec.Ping_Result(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.Ping_Result result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.value_ = value_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.Ping_Result) {
+ return mergeFrom((com.kcl.api.Spec.Ping_Result) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.Ping_Result other) {
+ if (other == com.kcl.api.Spec.Ping_Result.getDefaultInstance())
+ return this;
+ if (!other.getValue().isEmpty()) {
+ value_ = other.value_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ value_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object value_ = "";
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @param value
+ * The value to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Value received in the ping response.
+ *
+ *
+ * string value = 1;
+ *
+ * @param value
+ * The bytes for value to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ value_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.Ping_Result)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.Ping_Result)
+ private static final com.kcl.api.Spec.Ping_Result DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.Ping_Result();
+ }
+
+ public static com.kcl.api.Spec.Ping_Result getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Ping_Result parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.Ping_Result getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GetVersion_ArgsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.GetVersion_Args)
+ com.google.protobuf.MessageOrBuilder {
+ }
+
+ /**
+ *
+ * Message for version request arguments. Empty message.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.GetVersion_Args}
+ */
+ public static final class GetVersion_Args extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.GetVersion_Args)
+ GetVersion_ArgsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", GetVersion_Args.class.getName());
+ }
+
+ // Use GetVersion_Args.newBuilder() to construct.
+ private GetVersion_Args(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private GetVersion_Args() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetVersion_Args.class,
+ com.kcl.api.Spec.GetVersion_Args.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.GetVersion_Args)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.GetVersion_Args other = (com.kcl.api.Spec.GetVersion_Args) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.GetVersion_Args prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for version request arguments. Empty message.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.GetVersion_Args}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.GetVersion_Args)
+ com.kcl.api.Spec.GetVersion_ArgsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetVersion_Args.class,
+ com.kcl.api.Spec.GetVersion_Args.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.GetVersion_Args.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Args_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Args getDefaultInstanceForType() {
+ return com.kcl.api.Spec.GetVersion_Args.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Args build() {
+ com.kcl.api.Spec.GetVersion_Args result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Args buildPartial() {
+ com.kcl.api.Spec.GetVersion_Args result = new com.kcl.api.Spec.GetVersion_Args(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.GetVersion_Args) {
+ return mergeFrom((com.kcl.api.Spec.GetVersion_Args) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.GetVersion_Args other) {
+ if (other == com.kcl.api.Spec.GetVersion_Args.getDefaultInstance())
+ return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.GetVersion_Args)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.GetVersion_Args)
+ private static final com.kcl.api.Spec.GetVersion_Args DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.GetVersion_Args();
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Args getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetVersion_Args parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Args getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GetVersion_ResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.GetVersion_Result)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @return The version.
+ */
+ java.lang.String getVersion();
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @return The bytes for version.
+ */
+ com.google.protobuf.ByteString getVersionBytes();
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @return The checksum.
+ */
+ java.lang.String getChecksum();
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @return The bytes for checksum.
+ */
+ com.google.protobuf.ByteString getChecksumBytes();
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @return The gitSha.
+ */
+ java.lang.String getGitSha();
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @return The bytes for gitSha.
+ */
+ com.google.protobuf.ByteString getGitShaBytes();
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @return The versionInfo.
+ */
+ java.lang.String getVersionInfo();
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @return The bytes for versionInfo.
+ */
+ com.google.protobuf.ByteString getVersionInfoBytes();
+ }
+
+ /**
+ *
+ * Message for version response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.GetVersion_Result}
+ */
+ public static final class GetVersion_Result extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.GetVersion_Result)
+ GetVersion_ResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", GetVersion_Result.class.getName());
+ }
+
+ // Use GetVersion_Result.newBuilder() to construct.
+ private GetVersion_Result(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private GetVersion_Result() {
+ version_ = "";
+ checksum_ = "";
+ gitSha_ = "";
+ versionInfo_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetVersion_Result.class,
+ com.kcl.api.Spec.GetVersion_Result.Builder.class);
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object version_ = "";
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @return The version.
+ */
+ @java.lang.Override
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @return The bytes for version.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHECKSUM_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object checksum_ = "";
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @return The checksum.
+ */
+ @java.lang.Override
+ public java.lang.String getChecksum() {
+ java.lang.Object ref = checksum_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ checksum_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @return The bytes for checksum.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getChecksumBytes() {
+ java.lang.Object ref = checksum_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ checksum_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GIT_SHA_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gitSha_ = "";
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @return The gitSha.
+ */
+ @java.lang.Override
+ public java.lang.String getGitSha() {
+ java.lang.Object ref = gitSha_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gitSha_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @return The bytes for gitSha.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGitShaBytes() {
+ java.lang.Object ref = gitSha_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ gitSha_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_INFO_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object versionInfo_ = "";
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @return The versionInfo.
+ */
+ @java.lang.Override
+ public java.lang.String getVersionInfo() {
+ java.lang.Object ref = versionInfo_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ versionInfo_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @return The bytes for versionInfo.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVersionInfoBytes() {
+ java.lang.Object ref = versionInfo_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ versionInfo_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(checksum_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, checksum_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitSha_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, gitSha_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionInfo_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, versionInfo_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, version_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(checksum_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, checksum_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gitSha_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gitSha_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionInfo_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, versionInfo_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.GetVersion_Result)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.GetVersion_Result other = (com.kcl.api.Spec.GetVersion_Result) obj;
+
+ if (!getVersion().equals(other.getVersion()))
+ return false;
+ if (!getChecksum().equals(other.getChecksum()))
+ return false;
+ if (!getGitSha().equals(other.getGitSha()))
+ return false;
+ if (!getVersionInfo().equals(other.getVersionInfo()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ hash = (37 * hash) + CHECKSUM_FIELD_NUMBER;
+ hash = (53 * hash) + getChecksum().hashCode();
+ hash = (37 * hash) + GIT_SHA_FIELD_NUMBER;
+ hash = (53 * hash) + getGitSha().hashCode();
+ hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getVersionInfo().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.GetVersion_Result prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for version response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.GetVersion_Result}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.GetVersion_Result)
+ com.kcl.api.Spec.GetVersion_ResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetVersion_Result.class,
+ com.kcl.api.Spec.GetVersion_Result.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.GetVersion_Result.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ version_ = "";
+ checksum_ = "";
+ gitSha_ = "";
+ versionInfo_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_GetVersion_Result_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Result getDefaultInstanceForType() {
+ return com.kcl.api.Spec.GetVersion_Result.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Result build() {
+ com.kcl.api.Spec.GetVersion_Result result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Result buildPartial() {
+ com.kcl.api.Spec.GetVersion_Result result = new com.kcl.api.Spec.GetVersion_Result(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.GetVersion_Result result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.version_ = version_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.checksum_ = checksum_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.gitSha_ = gitSha_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.versionInfo_ = versionInfo_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.GetVersion_Result) {
+ return mergeFrom((com.kcl.api.Spec.GetVersion_Result) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.GetVersion_Result other) {
+ if (other == com.kcl.api.Spec.GetVersion_Result.getDefaultInstance())
+ return this;
+ if (!other.getVersion().isEmpty()) {
+ version_ = other.version_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getChecksum().isEmpty()) {
+ checksum_ = other.checksum_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getGitSha().isEmpty()) {
+ gitSha_ = other.gitSha_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getVersionInfo().isEmpty()) {
+ versionInfo_ = other.versionInfo_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ version_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ checksum_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ gitSha_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ versionInfo_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object version_ = "";
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @return The version.
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @return The bytes for version.
+ */
+ public com.google.protobuf.ByteString getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @param value
+ * The version to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ version_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVersion() {
+ version_ = getDefaultInstance().getVersion();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * KCL version.
+ *
+ *
+ * string version = 1;
+ *
+ * @param value
+ * The bytes for version to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ version_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object checksum_ = "";
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @return The checksum.
+ */
+ public java.lang.String getChecksum() {
+ java.lang.Object ref = checksum_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ checksum_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @return The bytes for checksum.
+ */
+ public com.google.protobuf.ByteString getChecksumBytes() {
+ java.lang.Object ref = checksum_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ checksum_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @param value
+ * The checksum to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setChecksum(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checksum_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearChecksum() {
+ checksum_ = getDefaultInstance().getChecksum();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Checksum of the KCL version.
+ *
+ *
+ * string checksum = 2;
+ *
+ * @param value
+ * The bytes for checksum to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setChecksumBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ checksum_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object gitSha_ = "";
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @return The gitSha.
+ */
+ public java.lang.String getGitSha() {
+ java.lang.Object ref = gitSha_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gitSha_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @return The bytes for gitSha.
+ */
+ public com.google.protobuf.ByteString getGitShaBytes() {
+ java.lang.Object ref = gitSha_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ gitSha_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @param value
+ * The gitSha to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setGitSha(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gitSha_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGitSha() {
+ gitSha_ = getDefaultInstance().getGitSha();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Git Git SHA of the KCL code repo.
+ *
+ *
+ * string git_sha = 3;
+ *
+ * @param value
+ * The bytes for gitSha to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setGitShaBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ gitSha_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object versionInfo_ = "";
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @return The versionInfo.
+ */
+ public java.lang.String getVersionInfo() {
+ java.lang.Object ref = versionInfo_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ versionInfo_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @return The bytes for versionInfo.
+ */
+ public com.google.protobuf.ByteString getVersionInfoBytes() {
+ java.lang.Object ref = versionInfo_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ versionInfo_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @param value
+ * The versionInfo to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setVersionInfo(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ versionInfo_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVersionInfo() {
+ versionInfo_ = getDefaultInstance().getVersionInfo();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Detailed version information as a string.
+ *
+ *
+ * string version_info = 4;
+ *
+ * @param value
+ * The bytes for versionInfo to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setVersionInfoBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ versionInfo_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.GetVersion_Result)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.GetVersion_Result)
+ private static final com.kcl.api.Spec.GetVersion_Result DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.GetVersion_Result();
+ }
+
+ public static com.kcl.api.Spec.GetVersion_Result getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetVersion_Result parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.GetVersion_Result getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ListMethod_ArgsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.ListMethod_Args)
+ com.google.protobuf.MessageOrBuilder {
+ }
+
+ /**
+ *
+ * Message for list method request arguments. Empty message.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ListMethod_Args}
+ */
+ public static final class ListMethod_Args extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.ListMethod_Args)
+ ListMethod_ArgsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", ListMethod_Args.class.getName());
+ }
+
+ // Use ListMethod_Args.newBuilder() to construct.
+ private ListMethod_Args(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ListMethod_Args() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListMethod_Args.class,
+ com.kcl.api.Spec.ListMethod_Args.Builder.class);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.ListMethod_Args)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.ListMethod_Args other = (com.kcl.api.Spec.ListMethod_Args) obj;
+
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.ListMethod_Args prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for list method request arguments. Empty message.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ListMethod_Args}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.ListMethod_Args)
+ com.kcl.api.Spec.ListMethod_ArgsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListMethod_Args.class,
+ com.kcl.api.Spec.ListMethod_Args.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.ListMethod_Args.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Args_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Args getDefaultInstanceForType() {
+ return com.kcl.api.Spec.ListMethod_Args.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Args build() {
+ com.kcl.api.Spec.ListMethod_Args result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Args buildPartial() {
+ com.kcl.api.Spec.ListMethod_Args result = new com.kcl.api.Spec.ListMethod_Args(this);
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.ListMethod_Args) {
+ return mergeFrom((com.kcl.api.Spec.ListMethod_Args) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.ListMethod_Args other) {
+ if (other == com.kcl.api.Spec.ListMethod_Args.getDefaultInstance())
+ return this;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.ListMethod_Args)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.ListMethod_Args)
+ private static final com.kcl.api.Spec.ListMethod_Args DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.ListMethod_Args();
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Args getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListMethod_Args parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Args getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ListMethod_ResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.ListMethod_Result)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @return A list containing the methodNameList.
+ */
+ java.util.List getMethodNameListList();
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @return The count of methodNameList.
+ */
+ int getMethodNameListCount();
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The methodNameList at the given index.
+ */
+ java.lang.String getMethodNameList(int index);
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the methodNameList at the given index.
+ */
+ com.google.protobuf.ByteString getMethodNameListBytes(int index);
+ }
+
+ /**
+ *
+ * Message for list method response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ListMethod_Result}
+ */
+ public static final class ListMethod_Result extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.ListMethod_Result)
+ ListMethod_ResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", ListMethod_Result.class.getName());
+ }
+
+ // Use ListMethod_Result.newBuilder() to construct.
+ private ListMethod_Result(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ListMethod_Result() {
+ methodNameList_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListMethod_Result.class,
+ com.kcl.api.Spec.ListMethod_Result.Builder.class);
+ }
+
+ public static final int METHOD_NAME_LIST_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList methodNameList_ = com.google.protobuf.LazyStringArrayList
+ .emptyList();
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @return A list containing the methodNameList.
+ */
+ public com.google.protobuf.ProtocolStringList getMethodNameListList() {
+ return methodNameList_;
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @return The count of methodNameList.
+ */
+ public int getMethodNameListCount() {
+ return methodNameList_.size();
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The methodNameList at the given index.
+ */
+ public java.lang.String getMethodNameList(int index) {
+ return methodNameList_.get(index);
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the methodNameList at the given index.
+ */
+ public com.google.protobuf.ByteString getMethodNameListBytes(int index) {
+ return methodNameList_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < methodNameList_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, methodNameList_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < methodNameList_.size(); i++) {
+ dataSize += computeStringSizeNoTag(methodNameList_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getMethodNameListList().size();
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.ListMethod_Result)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.ListMethod_Result other = (com.kcl.api.Spec.ListMethod_Result) obj;
+
+ if (!getMethodNameListList().equals(other.getMethodNameListList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getMethodNameListCount() > 0) {
+ hash = (37 * hash) + METHOD_NAME_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getMethodNameListList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.ListMethod_Result prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for list method response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ListMethod_Result}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.ListMethod_Result)
+ com.kcl.api.Spec.ListMethod_ResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListMethod_Result.class,
+ com.kcl.api.Spec.ListMethod_Result.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.ListMethod_Result.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ methodNameList_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ListMethod_Result_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Result getDefaultInstanceForType() {
+ return com.kcl.api.Spec.ListMethod_Result.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Result build() {
+ com.kcl.api.Spec.ListMethod_Result result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Result buildPartial() {
+ com.kcl.api.Spec.ListMethod_Result result = new com.kcl.api.Spec.ListMethod_Result(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.ListMethod_Result result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ methodNameList_.makeImmutable();
+ result.methodNameList_ = methodNameList_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.ListMethod_Result) {
+ return mergeFrom((com.kcl.api.Spec.ListMethod_Result) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.ListMethod_Result other) {
+ if (other == com.kcl.api.Spec.ListMethod_Result.getDefaultInstance())
+ return this;
+ if (!other.methodNameList_.isEmpty()) {
+ if (methodNameList_.isEmpty()) {
+ methodNameList_ = other.methodNameList_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureMethodNameListIsMutable();
+ methodNameList_.addAll(other.methodNameList_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureMethodNameListIsMutable();
+ methodNameList_.add(s);
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList methodNameList_ = com.google.protobuf.LazyStringArrayList
+ .emptyList();
+
+ private void ensureMethodNameListIsMutable() {
+ if (!methodNameList_.isModifiable()) {
+ methodNameList_ = new com.google.protobuf.LazyStringArrayList(methodNameList_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @return A list containing the methodNameList.
+ */
+ public com.google.protobuf.ProtocolStringList getMethodNameListList() {
+ methodNameList_.makeImmutable();
+ return methodNameList_;
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @return The count of methodNameList.
+ */
+ public int getMethodNameListCount() {
+ return methodNameList_.size();
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The methodNameList at the given index.
+ */
+ public java.lang.String getMethodNameList(int index) {
+ return methodNameList_.get(index);
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the methodNameList at the given index.
+ */
+ public com.google.protobuf.ByteString getMethodNameListBytes(int index) {
+ return methodNameList_.getByteString(index);
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param index
+ * The index to set the value at.
+ * @param value
+ * The methodNameList to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setMethodNameList(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMethodNameListIsMutable();
+ methodNameList_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param value
+ * The methodNameList to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addMethodNameList(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMethodNameListIsMutable();
+ methodNameList_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param values
+ * The methodNameList to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addAllMethodNameList(java.lang.Iterable values) {
+ ensureMethodNameListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, methodNameList_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMethodNameList() {
+ methodNameList_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * List of available method names.
+ *
+ *
+ * repeated string method_name_list = 1;
+ *
+ * @param value
+ * The bytes of the methodNameList to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addMethodNameListBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureMethodNameListIsMutable();
+ methodNameList_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.ListMethod_Result)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.ListMethod_Result)
+ private static final com.kcl.api.Spec.ListMethod_Result DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.ListMethod_Result();
+ }
+
+ public static com.kcl.api.Spec.ListMethod_Result getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListMethod_Result parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ListMethod_Result getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ParseFile_ArgsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.ParseFile_Args)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @return The path.
+ */
+ java.lang.String getPath();
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @return The bytes for path.
+ */
+ com.google.protobuf.ByteString getPathBytes();
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @return The source.
+ */
+ java.lang.String getSource();
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @return The bytes for source.
+ */
+ com.google.protobuf.ByteString getSourceBytes();
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ java.util.List getExternalPkgsList();
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index);
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ int getExternalPkgsCount();
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ java.util.List extends com.kcl.api.Spec.ExternalPkgOrBuilder> getExternalPkgsOrBuilderList();
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index);
+ }
+
+ /**
+ *
+ * Message for parse file request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseFile_Args}
+ */
+ public static final class ParseFile_Args extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.ParseFile_Args)
+ ParseFile_ArgsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", ParseFile_Args.class.getName());
+ }
+
+ // Use ParseFile_Args.newBuilder() to construct.
+ private ParseFile_Args(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ParseFile_Args() {
+ path_ = "";
+ source_ = "";
+ externalPkgs_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseFile_Args.class,
+ com.kcl.api.Spec.ParseFile_Args.Builder.class);
+ }
+
+ public static final int PATH_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object path_ = "";
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @return The path.
+ */
+ @java.lang.Override
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ path_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @return The bytes for path.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object source_ = "";
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @return The source.
+ */
+ @java.lang.Override
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ source_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @return The bytes for source.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXTERNAL_PKGS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List externalPkgs_;
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public java.util.List getExternalPkgsList() {
+ return externalPkgs_;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.kcl.api.Spec.ExternalPkgOrBuilder> getExternalPkgsOrBuilderList() {
+ return externalPkgs_;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public int getExternalPkgsCount() {
+ return externalPkgs_.size();
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index) {
+ return externalPkgs_.get(index);
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index) {
+ return externalPkgs_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, path_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, source_);
+ }
+ for (int i = 0; i < externalPkgs_.size(); i++) {
+ output.writeMessage(3, externalPkgs_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, path_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_);
+ }
+ for (int i = 0; i < externalPkgs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, externalPkgs_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.ParseFile_Args)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.ParseFile_Args other = (com.kcl.api.Spec.ParseFile_Args) obj;
+
+ if (!getPath().equals(other.getPath()))
+ return false;
+ if (!getSource().equals(other.getSource()))
+ return false;
+ if (!getExternalPkgsList().equals(other.getExternalPkgsList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getPath().hashCode();
+ hash = (37 * hash) + SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getSource().hashCode();
+ if (getExternalPkgsCount() > 0) {
+ hash = (37 * hash) + EXTERNAL_PKGS_FIELD_NUMBER;
+ hash = (53 * hash) + getExternalPkgsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.ParseFile_Args prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for parse file request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseFile_Args}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.ParseFile_Args)
+ com.kcl.api.Spec.ParseFile_ArgsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseFile_Args.class,
+ com.kcl.api.Spec.ParseFile_Args.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.ParseFile_Args.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ path_ = "";
+ source_ = "";
+ if (externalPkgsBuilder_ == null) {
+ externalPkgs_ = java.util.Collections.emptyList();
+ } else {
+ externalPkgs_ = null;
+ externalPkgsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Args_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Args getDefaultInstanceForType() {
+ return com.kcl.api.Spec.ParseFile_Args.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Args build() {
+ com.kcl.api.Spec.ParseFile_Args result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Args buildPartial() {
+ com.kcl.api.Spec.ParseFile_Args result = new com.kcl.api.Spec.ParseFile_Args(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.kcl.api.Spec.ParseFile_Args result) {
+ if (externalPkgsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ externalPkgs_ = java.util.Collections.unmodifiableList(externalPkgs_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.externalPkgs_ = externalPkgs_;
+ } else {
+ result.externalPkgs_ = externalPkgsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.ParseFile_Args result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.path_ = path_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.source_ = source_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.ParseFile_Args) {
+ return mergeFrom((com.kcl.api.Spec.ParseFile_Args) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.ParseFile_Args other) {
+ if (other == com.kcl.api.Spec.ParseFile_Args.getDefaultInstance())
+ return this;
+ if (!other.getPath().isEmpty()) {
+ path_ = other.path_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getSource().isEmpty()) {
+ source_ = other.source_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (externalPkgsBuilder_ == null) {
+ if (!other.externalPkgs_.isEmpty()) {
+ if (externalPkgs_.isEmpty()) {
+ externalPkgs_ = other.externalPkgs_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.addAll(other.externalPkgs_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.externalPkgs_.isEmpty()) {
+ if (externalPkgsBuilder_.isEmpty()) {
+ externalPkgsBuilder_.dispose();
+ externalPkgsBuilder_ = null;
+ externalPkgs_ = other.externalPkgs_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ externalPkgsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? getExternalPkgsFieldBuilder() : null;
+ } else {
+ externalPkgsBuilder_.addAllMessages(other.externalPkgs_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ path_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ source_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ com.kcl.api.Spec.ExternalPkg m = input.readMessage(com.kcl.api.Spec.ExternalPkg.parser(),
+ extensionRegistry);
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(m);
+ } else {
+ externalPkgsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object path_ = "";
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @return The path.
+ */
+ public java.lang.String getPath() {
+ java.lang.Object ref = path_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ path_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @return The bytes for path.
+ */
+ public com.google.protobuf.ByteString getPathBytes() {
+ java.lang.Object ref = path_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ path_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @param value
+ * The path to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPath(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ path_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPath() {
+ path_ = getDefaultInstance().getPath();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Path of the file to be parsed.
+ *
+ *
+ * string path = 1;
+ *
+ * @param value
+ * The bytes for path to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPathBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ path_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object source_ = "";
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @return The source.
+ */
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ source_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @return The bytes for source.
+ */
+ public com.google.protobuf.ByteString getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @param value
+ * The source to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setSource(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ source_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSource() {
+ source_ = getDefaultInstance().getSource();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Source code to be parsed.
+ *
+ *
+ * string source = 2;
+ *
+ * @param value
+ * The bytes for source to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setSourceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ source_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List externalPkgs_ = java.util.Collections.emptyList();
+
+ private void ensureExternalPkgsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ externalPkgs_ = new java.util.ArrayList(externalPkgs_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder externalPkgsBuilder_;
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public java.util.List getExternalPkgsList() {
+ if (externalPkgsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(externalPkgs_);
+ } else {
+ return externalPkgsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public int getExternalPkgsCount() {
+ if (externalPkgsBuilder_ == null) {
+ return externalPkgs_.size();
+ } else {
+ return externalPkgsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index) {
+ if (externalPkgsBuilder_ == null) {
+ return externalPkgs_.get(index);
+ } else {
+ return externalPkgsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder setExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg value) {
+ if (externalPkgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.set(index, value);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder setExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg.Builder builderForValue) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ externalPkgsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(com.kcl.api.Spec.ExternalPkg value) {
+ if (externalPkgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(value);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg value) {
+ if (externalPkgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(index, value);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(com.kcl.api.Spec.ExternalPkg.Builder builderForValue) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg.Builder builderForValue) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addAllExternalPkgs(java.lang.Iterable extends com.kcl.api.Spec.ExternalPkg> values) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalPkgs_);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder clearExternalPkgs() {
+ if (externalPkgsBuilder_ == null) {
+ externalPkgs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder removeExternalPkgs(int index) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.remove(index);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg.Builder getExternalPkgsBuilder(int index) {
+ return getExternalPkgsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index) {
+ if (externalPkgsBuilder_ == null) {
+ return externalPkgs_.get(index);
+ } else {
+ return externalPkgsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public java.util.List extends com.kcl.api.Spec.ExternalPkgOrBuilder> getExternalPkgsOrBuilderList() {
+ if (externalPkgsBuilder_ != null) {
+ return externalPkgsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(externalPkgs_);
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg.Builder addExternalPkgsBuilder() {
+ return getExternalPkgsFieldBuilder().addBuilder(com.kcl.api.Spec.ExternalPkg.getDefaultInstance());
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg.Builder addExternalPkgsBuilder(int index) {
+ return getExternalPkgsFieldBuilder().addBuilder(index,
+ com.kcl.api.Spec.ExternalPkg.getDefaultInstance());
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public java.util.List getExternalPkgsBuilderList() {
+ return getExternalPkgsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder getExternalPkgsFieldBuilder() {
+ if (externalPkgsBuilder_ == null) {
+ externalPkgsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(
+ externalPkgs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ externalPkgs_ = null;
+ }
+ return externalPkgsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.ParseFile_Args)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.ParseFile_Args)
+ private static final com.kcl.api.Spec.ParseFile_Args DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.ParseFile_Args();
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Args getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ParseFile_Args parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Args getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ParseFile_ResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.ParseFile_Result)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The astJson.
+ */
+ java.lang.String getAstJson();
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The bytes for astJson.
+ */
+ com.google.protobuf.ByteString getAstJsonBytes();
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @return A list containing the deps.
+ */
+ java.util.List getDepsList();
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @return The count of deps.
+ */
+ int getDepsCount();
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The deps at the given index.
+ */
+ java.lang.String getDeps(int index);
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the deps at the given index.
+ */
+ com.google.protobuf.ByteString getDepsBytes(int index);
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ java.util.List getErrorsList();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ com.kcl.api.Spec.Error getErrors(int index);
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ int getErrorsCount();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getErrorsOrBuilderList();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ com.kcl.api.Spec.ErrorOrBuilder getErrorsOrBuilder(int index);
+ }
+
+ /**
+ *
+ * Message for parse file response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseFile_Result}
+ */
+ public static final class ParseFile_Result extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.ParseFile_Result)
+ ParseFile_ResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", ParseFile_Result.class.getName());
+ }
+
+ // Use ParseFile_Result.newBuilder() to construct.
+ private ParseFile_Result(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ParseFile_Result() {
+ astJson_ = "";
+ deps_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ errors_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseFile_Result.class,
+ com.kcl.api.Spec.ParseFile_Result.Builder.class);
+ }
+
+ public static final int AST_JSON_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object astJson_ = "";
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The astJson.
+ */
+ @java.lang.Override
+ public java.lang.String getAstJson() {
+ java.lang.Object ref = astJson_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ astJson_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The bytes for astJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAstJsonBytes() {
+ java.lang.Object ref = astJson_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ astJson_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DEPS_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList deps_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @return A list containing the deps.
+ */
+ public com.google.protobuf.ProtocolStringList getDepsList() {
+ return deps_;
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @return The count of deps.
+ */
+ public int getDepsCount() {
+ return deps_.size();
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The deps at the given index.
+ */
+ public java.lang.String getDeps(int index) {
+ return deps_.get(index);
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the deps at the given index.
+ */
+ public com.google.protobuf.ByteString getDepsBytes(int index) {
+ return deps_.getByteString(index);
+ }
+
+ public static final int ERRORS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List errors_;
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public java.util.List getErrorsList() {
+ return errors_;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getErrorsOrBuilderList() {
+ return errors_;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public int getErrorsCount() {
+ return errors_.size();
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Error getErrors(int index) {
+ return errors_.get(index);
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ErrorOrBuilder getErrorsOrBuilder(int index) {
+ return errors_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(astJson_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, astJson_);
+ }
+ for (int i = 0; i < deps_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, deps_.getRaw(i));
+ }
+ for (int i = 0; i < errors_.size(); i++) {
+ output.writeMessage(3, errors_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(astJson_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, astJson_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < deps_.size(); i++) {
+ dataSize += computeStringSizeNoTag(deps_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDepsList().size();
+ }
+ for (int i = 0; i < errors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.ParseFile_Result)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.ParseFile_Result other = (com.kcl.api.Spec.ParseFile_Result) obj;
+
+ if (!getAstJson().equals(other.getAstJson()))
+ return false;
+ if (!getDepsList().equals(other.getDepsList()))
+ return false;
+ if (!getErrorsList().equals(other.getErrorsList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + AST_JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getAstJson().hashCode();
+ if (getDepsCount() > 0) {
+ hash = (37 * hash) + DEPS_FIELD_NUMBER;
+ hash = (53 * hash) + getDepsList().hashCode();
+ }
+ if (getErrorsCount() > 0) {
+ hash = (37 * hash) + ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.ParseFile_Result prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for parse file response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseFile_Result}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.ParseFile_Result)
+ com.kcl.api.Spec.ParseFile_ResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseFile_Result.class,
+ com.kcl.api.Spec.ParseFile_Result.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.ParseFile_Result.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ astJson_ = "";
+ deps_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ if (errorsBuilder_ == null) {
+ errors_ = java.util.Collections.emptyList();
+ } else {
+ errors_ = null;
+ errorsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseFile_Result_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Result getDefaultInstanceForType() {
+ return com.kcl.api.Spec.ParseFile_Result.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Result build() {
+ com.kcl.api.Spec.ParseFile_Result result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Result buildPartial() {
+ com.kcl.api.Spec.ParseFile_Result result = new com.kcl.api.Spec.ParseFile_Result(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.kcl.api.Spec.ParseFile_Result result) {
+ if (errorsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ errors_ = java.util.Collections.unmodifiableList(errors_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.errors_ = errors_;
+ } else {
+ result.errors_ = errorsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.ParseFile_Result result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.astJson_ = astJson_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ deps_.makeImmutable();
+ result.deps_ = deps_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.ParseFile_Result) {
+ return mergeFrom((com.kcl.api.Spec.ParseFile_Result) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.ParseFile_Result other) {
+ if (other == com.kcl.api.Spec.ParseFile_Result.getDefaultInstance())
+ return this;
+ if (!other.getAstJson().isEmpty()) {
+ astJson_ = other.astJson_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.deps_.isEmpty()) {
+ if (deps_.isEmpty()) {
+ deps_ = other.deps_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureDepsIsMutable();
+ deps_.addAll(other.deps_);
+ }
+ onChanged();
+ }
+ if (errorsBuilder_ == null) {
+ if (!other.errors_.isEmpty()) {
+ if (errors_.isEmpty()) {
+ errors_ = other.errors_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureErrorsIsMutable();
+ errors_.addAll(other.errors_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.errors_.isEmpty()) {
+ if (errorsBuilder_.isEmpty()) {
+ errorsBuilder_.dispose();
+ errorsBuilder_ = null;
+ errors_ = other.errors_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ errorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? getErrorsFieldBuilder() : null;
+ } else {
+ errorsBuilder_.addAllMessages(other.errors_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ astJson_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureDepsIsMutable();
+ deps_.add(s);
+ break;
+ } // case 18
+ case 26: {
+ com.kcl.api.Spec.Error m = input.readMessage(com.kcl.api.Spec.Error.parser(),
+ extensionRegistry);
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(m);
+ } else {
+ errorsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object astJson_ = "";
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The astJson.
+ */
+ public java.lang.String getAstJson() {
+ java.lang.Object ref = astJson_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ astJson_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The bytes for astJson.
+ */
+ public com.google.protobuf.ByteString getAstJsonBytes() {
+ java.lang.Object ref = astJson_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ astJson_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @param value
+ * The astJson to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setAstJson(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ astJson_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAstJson() {
+ astJson_ = getDefaultInstance().getAstJson();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @param value
+ * The bytes for astJson to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setAstJsonBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ astJson_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList deps_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureDepsIsMutable() {
+ if (!deps_.isModifiable()) {
+ deps_ = new com.google.protobuf.LazyStringArrayList(deps_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @return A list containing the deps.
+ */
+ public com.google.protobuf.ProtocolStringList getDepsList() {
+ deps_.makeImmutable();
+ return deps_;
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @return The count of deps.
+ */
+ public int getDepsCount() {
+ return deps_.size();
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The deps at the given index.
+ */
+ public java.lang.String getDeps(int index) {
+ return deps_.get(index);
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the deps at the given index.
+ */
+ public com.google.protobuf.ByteString getDepsBytes(int index) {
+ return deps_.getByteString(index);
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param index
+ * The index to set the value at.
+ * @param value
+ * The deps to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setDeps(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDepsIsMutable();
+ deps_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param value
+ * The deps to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addDeps(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDepsIsMutable();
+ deps_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param values
+ * The deps to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addAllDeps(java.lang.Iterable values) {
+ ensureDepsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deps_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDeps() {
+ deps_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * File dependency paths.
+ *
+ *
+ * repeated string deps = 2;
+ *
+ * @param value
+ * The bytes of the deps to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addDepsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDepsIsMutable();
+ deps_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List errors_ = java.util.Collections.emptyList();
+
+ private void ensureErrorsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ errors_ = new java.util.ArrayList(errors_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder errorsBuilder_;
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public java.util.List getErrorsList() {
+ if (errorsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(errors_);
+ } else {
+ return errorsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public int getErrorsCount() {
+ if (errorsBuilder_ == null) {
+ return errors_.size();
+ } else {
+ return errorsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error getErrors(int index) {
+ if (errorsBuilder_ == null) {
+ return errors_.get(index);
+ } else {
+ return errorsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder setErrors(int index, com.kcl.api.Spec.Error value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.set(index, value);
+ onChanged();
+ } else {
+ errorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder setErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(com.kcl.api.Spec.Error value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.add(value);
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(int index, com.kcl.api.Spec.Error value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.add(index, value);
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addAllErrors(java.lang.Iterable extends com.kcl.api.Spec.Error> values) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
+ onChanged();
+ } else {
+ errorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder clearErrors() {
+ if (errorsBuilder_ == null) {
+ errors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ errorsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder removeErrors(int index) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.remove(index);
+ onChanged();
+ } else {
+ errorsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder getErrorsBuilder(int index) {
+ return getErrorsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.ErrorOrBuilder getErrorsOrBuilder(int index) {
+ if (errorsBuilder_ == null) {
+ return errors_.get(index);
+ } else {
+ return errorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getErrorsOrBuilderList() {
+ if (errorsBuilder_ != null) {
+ return errorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(errors_);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder addErrorsBuilder() {
+ return getErrorsFieldBuilder().addBuilder(com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder addErrorsBuilder(int index) {
+ return getErrorsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public java.util.List getErrorsBuilderList() {
+ return getErrorsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder getErrorsFieldBuilder() {
+ if (errorsBuilder_ == null) {
+ errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(
+ errors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ errors_ = null;
+ }
+ return errorsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.ParseFile_Result)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.ParseFile_Result)
+ private static final com.kcl.api.Spec.ParseFile_Result DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.ParseFile_Result();
+ }
+
+ public static com.kcl.api.Spec.ParseFile_Result getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ParseFile_Result parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseFile_Result getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ParseProgram_ArgsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.ParseProgram_Args)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @return A list containing the paths.
+ */
+ java.util.List getPathsList();
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @return The count of paths.
+ */
+ int getPathsCount();
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ java.lang.String getPaths(int index);
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ com.google.protobuf.ByteString getPathsBytes(int index);
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @return A list containing the sources.
+ */
+ java.util.List getSourcesList();
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @return The count of sources.
+ */
+ int getSourcesCount();
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The sources at the given index.
+ */
+ java.lang.String getSources(int index);
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the sources at the given index.
+ */
+ com.google.protobuf.ByteString getSourcesBytes(int index);
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ java.util.List getExternalPkgsList();
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index);
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ int getExternalPkgsCount();
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ java.util.List extends com.kcl.api.Spec.ExternalPkgOrBuilder> getExternalPkgsOrBuilderList();
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index);
+ }
+
+ /**
+ *
+ * Message for parse program request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseProgram_Args}
+ */
+ public static final class ParseProgram_Args extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.ParseProgram_Args)
+ ParseProgram_ArgsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", ParseProgram_Args.class.getName());
+ }
+
+ // Use ParseProgram_Args.newBuilder() to construct.
+ private ParseProgram_Args(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ParseProgram_Args() {
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ sources_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ externalPkgs_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseProgram_Args.class,
+ com.kcl.api.Spec.ParseProgram_Args.Builder.class);
+ }
+
+ public static final int PATHS_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @return A list containing the paths.
+ */
+ public com.google.protobuf.ProtocolStringList getPathsList() {
+ return paths_;
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @return The count of paths.
+ */
+ public int getPathsCount() {
+ return paths_.size();
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ public java.lang.String getPaths(int index) {
+ return paths_.get(index);
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ public com.google.protobuf.ByteString getPathsBytes(int index) {
+ return paths_.getByteString(index);
+ }
+
+ public static final int SOURCES_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList sources_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @return A list containing the sources.
+ */
+ public com.google.protobuf.ProtocolStringList getSourcesList() {
+ return sources_;
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @return The count of sources.
+ */
+ public int getSourcesCount() {
+ return sources_.size();
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The sources at the given index.
+ */
+ public java.lang.String getSources(int index) {
+ return sources_.get(index);
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the sources at the given index.
+ */
+ public com.google.protobuf.ByteString getSourcesBytes(int index) {
+ return sources_.getByteString(index);
+ }
+
+ public static final int EXTERNAL_PKGS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List externalPkgs_;
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public java.util.List getExternalPkgsList() {
+ return externalPkgs_;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.kcl.api.Spec.ExternalPkgOrBuilder> getExternalPkgsOrBuilderList() {
+ return externalPkgs_;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public int getExternalPkgsCount() {
+ return externalPkgs_.size();
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index) {
+ return externalPkgs_.get(index);
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index) {
+ return externalPkgs_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < paths_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, paths_.getRaw(i));
+ }
+ for (int i = 0; i < sources_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, sources_.getRaw(i));
+ }
+ for (int i = 0; i < externalPkgs_.size(); i++) {
+ output.writeMessage(3, externalPkgs_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < paths_.size(); i++) {
+ dataSize += computeStringSizeNoTag(paths_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getPathsList().size();
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < sources_.size(); i++) {
+ dataSize += computeStringSizeNoTag(sources_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getSourcesList().size();
+ }
+ for (int i = 0; i < externalPkgs_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, externalPkgs_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.ParseProgram_Args)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.ParseProgram_Args other = (com.kcl.api.Spec.ParseProgram_Args) obj;
+
+ if (!getPathsList().equals(other.getPathsList()))
+ return false;
+ if (!getSourcesList().equals(other.getSourcesList()))
+ return false;
+ if (!getExternalPkgsList().equals(other.getExternalPkgsList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getPathsCount() > 0) {
+ hash = (37 * hash) + PATHS_FIELD_NUMBER;
+ hash = (53 * hash) + getPathsList().hashCode();
+ }
+ if (getSourcesCount() > 0) {
+ hash = (37 * hash) + SOURCES_FIELD_NUMBER;
+ hash = (53 * hash) + getSourcesList().hashCode();
+ }
+ if (getExternalPkgsCount() > 0) {
+ hash = (37 * hash) + EXTERNAL_PKGS_FIELD_NUMBER;
+ hash = (53 * hash) + getExternalPkgsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.ParseProgram_Args prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for parse program request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseProgram_Args}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.ParseProgram_Args)
+ com.kcl.api.Spec.ParseProgram_ArgsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseProgram_Args.class,
+ com.kcl.api.Spec.ParseProgram_Args.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.ParseProgram_Args.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ sources_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ if (externalPkgsBuilder_ == null) {
+ externalPkgs_ = java.util.Collections.emptyList();
+ } else {
+ externalPkgs_ = null;
+ externalPkgsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Args_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Args getDefaultInstanceForType() {
+ return com.kcl.api.Spec.ParseProgram_Args.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Args build() {
+ com.kcl.api.Spec.ParseProgram_Args result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Args buildPartial() {
+ com.kcl.api.Spec.ParseProgram_Args result = new com.kcl.api.Spec.ParseProgram_Args(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.kcl.api.Spec.ParseProgram_Args result) {
+ if (externalPkgsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ externalPkgs_ = java.util.Collections.unmodifiableList(externalPkgs_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.externalPkgs_ = externalPkgs_;
+ } else {
+ result.externalPkgs_ = externalPkgsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.ParseProgram_Args result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ paths_.makeImmutable();
+ result.paths_ = paths_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ sources_.makeImmutable();
+ result.sources_ = sources_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.ParseProgram_Args) {
+ return mergeFrom((com.kcl.api.Spec.ParseProgram_Args) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.ParseProgram_Args other) {
+ if (other == com.kcl.api.Spec.ParseProgram_Args.getDefaultInstance())
+ return this;
+ if (!other.paths_.isEmpty()) {
+ if (paths_.isEmpty()) {
+ paths_ = other.paths_;
+ bitField0_ |= 0x00000001;
+ } else {
+ ensurePathsIsMutable();
+ paths_.addAll(other.paths_);
+ }
+ onChanged();
+ }
+ if (!other.sources_.isEmpty()) {
+ if (sources_.isEmpty()) {
+ sources_ = other.sources_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureSourcesIsMutable();
+ sources_.addAll(other.sources_);
+ }
+ onChanged();
+ }
+ if (externalPkgsBuilder_ == null) {
+ if (!other.externalPkgs_.isEmpty()) {
+ if (externalPkgs_.isEmpty()) {
+ externalPkgs_ = other.externalPkgs_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.addAll(other.externalPkgs_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.externalPkgs_.isEmpty()) {
+ if (externalPkgsBuilder_.isEmpty()) {
+ externalPkgsBuilder_.dispose();
+ externalPkgsBuilder_ = null;
+ externalPkgs_ = other.externalPkgs_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ externalPkgsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? getExternalPkgsFieldBuilder() : null;
+ } else {
+ externalPkgsBuilder_.addAllMessages(other.externalPkgs_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensurePathsIsMutable();
+ paths_.add(s);
+ break;
+ } // case 10
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureSourcesIsMutable();
+ sources_.add(s);
+ break;
+ } // case 18
+ case 26: {
+ com.kcl.api.Spec.ExternalPkg m = input.readMessage(com.kcl.api.Spec.ExternalPkg.parser(),
+ extensionRegistry);
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(m);
+ } else {
+ externalPkgsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringArrayList paths_ = com.google.protobuf.LazyStringArrayList
+ .emptyList();
+
+ private void ensurePathsIsMutable() {
+ if (!paths_.isModifiable()) {
+ paths_ = new com.google.protobuf.LazyStringArrayList(paths_);
+ }
+ bitField0_ |= 0x00000001;
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @return A list containing the paths.
+ */
+ public com.google.protobuf.ProtocolStringList getPathsList() {
+ paths_.makeImmutable();
+ return paths_;
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @return The count of paths.
+ */
+ public int getPathsCount() {
+ return paths_.size();
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ public java.lang.String getPaths(int index) {
+ return paths_.get(index);
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ public com.google.protobuf.ByteString getPathsBytes(int index) {
+ return paths_.getByteString(index);
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param index
+ * The index to set the value at.
+ * @param value
+ * The paths to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPaths(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePathsIsMutable();
+ paths_.set(index, value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param value
+ * The paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addPaths(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePathsIsMutable();
+ paths_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param values
+ * The paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addAllPaths(java.lang.Iterable values) {
+ ensurePathsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPaths() {
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Paths of the program files to be parsed.
+ *
+ *
+ * repeated string paths = 1;
+ *
+ * @param value
+ * The bytes of the paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addPathsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensurePathsIsMutable();
+ paths_.add(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList sources_ = com.google.protobuf.LazyStringArrayList
+ .emptyList();
+
+ private void ensureSourcesIsMutable() {
+ if (!sources_.isModifiable()) {
+ sources_ = new com.google.protobuf.LazyStringArrayList(sources_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @return A list containing the sources.
+ */
+ public com.google.protobuf.ProtocolStringList getSourcesList() {
+ sources_.makeImmutable();
+ return sources_;
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @return The count of sources.
+ */
+ public int getSourcesCount() {
+ return sources_.size();
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The sources at the given index.
+ */
+ public java.lang.String getSources(int index) {
+ return sources_.get(index);
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the sources at the given index.
+ */
+ public com.google.protobuf.ByteString getSourcesBytes(int index) {
+ return sources_.getByteString(index);
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param index
+ * The index to set the value at.
+ * @param value
+ * The sources to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setSources(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSourcesIsMutable();
+ sources_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param value
+ * The sources to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addSources(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSourcesIsMutable();
+ sources_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param values
+ * The sources to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addAllSources(java.lang.Iterable values) {
+ ensureSourcesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSources() {
+ sources_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Source codes to be parsed.
+ *
+ *
+ * repeated string sources = 2;
+ *
+ * @param value
+ * The bytes of the sources to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addSourcesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureSourcesIsMutable();
+ sources_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List externalPkgs_ = java.util.Collections.emptyList();
+
+ private void ensureExternalPkgsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ externalPkgs_ = new java.util.ArrayList(externalPkgs_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder externalPkgsBuilder_;
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public java.util.List getExternalPkgsList() {
+ if (externalPkgsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(externalPkgs_);
+ } else {
+ return externalPkgsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public int getExternalPkgsCount() {
+ if (externalPkgsBuilder_ == null) {
+ return externalPkgs_.size();
+ } else {
+ return externalPkgsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index) {
+ if (externalPkgsBuilder_ == null) {
+ return externalPkgs_.get(index);
+ } else {
+ return externalPkgsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder setExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg value) {
+ if (externalPkgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.set(index, value);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder setExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg.Builder builderForValue) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ externalPkgsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(com.kcl.api.Spec.ExternalPkg value) {
+ if (externalPkgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(value);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg value) {
+ if (externalPkgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(index, value);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(com.kcl.api.Spec.ExternalPkg.Builder builderForValue) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addExternalPkgs(int index, com.kcl.api.Spec.ExternalPkg.Builder builderForValue) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder addAllExternalPkgs(java.lang.Iterable extends com.kcl.api.Spec.ExternalPkg> values) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalPkgs_);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder clearExternalPkgs() {
+ if (externalPkgsBuilder_ == null) {
+ externalPkgs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public Builder removeExternalPkgs(int index) {
+ if (externalPkgsBuilder_ == null) {
+ ensureExternalPkgsIsMutable();
+ externalPkgs_.remove(index);
+ onChanged();
+ } else {
+ externalPkgsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg.Builder getExternalPkgsBuilder(int index) {
+ return getExternalPkgsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index) {
+ if (externalPkgsBuilder_ == null) {
+ return externalPkgs_.get(index);
+ } else {
+ return externalPkgsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public java.util.List extends com.kcl.api.Spec.ExternalPkgOrBuilder> getExternalPkgsOrBuilderList() {
+ if (externalPkgsBuilder_ != null) {
+ return externalPkgsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(externalPkgs_);
+ }
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg.Builder addExternalPkgsBuilder() {
+ return getExternalPkgsFieldBuilder().addBuilder(com.kcl.api.Spec.ExternalPkg.getDefaultInstance());
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public com.kcl.api.Spec.ExternalPkg.Builder addExternalPkgsBuilder(int index) {
+ return getExternalPkgsFieldBuilder().addBuilder(index,
+ com.kcl.api.Spec.ExternalPkg.getDefaultInstance());
+ }
+
+ /**
+ *
+ * External packages path.
+ *
+ *
+ * repeated .com.kcl.api.ExternalPkg external_pkgs = 3;
+ */
+ public java.util.List getExternalPkgsBuilderList() {
+ return getExternalPkgsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder getExternalPkgsFieldBuilder() {
+ if (externalPkgsBuilder_ == null) {
+ externalPkgsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(
+ externalPkgs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ externalPkgs_ = null;
+ }
+ return externalPkgsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.ParseProgram_Args)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.ParseProgram_Args)
+ private static final com.kcl.api.Spec.ParseProgram_Args DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.ParseProgram_Args();
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Args getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ParseProgram_Args parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Args getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ParseProgram_ResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.ParseProgram_Result)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The astJson.
+ */
+ java.lang.String getAstJson();
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The bytes for astJson.
+ */
+ com.google.protobuf.ByteString getAstJsonBytes();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return A list containing the paths.
+ */
+ java.util.List getPathsList();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return The count of paths.
+ */
+ int getPathsCount();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ java.lang.String getPaths(int index);
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ com.google.protobuf.ByteString getPathsBytes(int index);
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ java.util.List getErrorsList();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ com.kcl.api.Spec.Error getErrors(int index);
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ int getErrorsCount();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getErrorsOrBuilderList();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ com.kcl.api.Spec.ErrorOrBuilder getErrorsOrBuilder(int index);
+ }
+
+ /**
+ *
+ * Message for parse program response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseProgram_Result}
+ */
+ public static final class ParseProgram_Result extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.ParseProgram_Result)
+ ParseProgram_ResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", ParseProgram_Result.class.getName());
+ }
+
+ // Use ParseProgram_Result.newBuilder() to construct.
+ private ParseProgram_Result(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private ParseProgram_Result() {
+ astJson_ = "";
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ errors_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseProgram_Result.class,
+ com.kcl.api.Spec.ParseProgram_Result.Builder.class);
+ }
+
+ public static final int AST_JSON_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object astJson_ = "";
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The astJson.
+ */
+ @java.lang.Override
+ public java.lang.String getAstJson() {
+ java.lang.Object ref = astJson_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ astJson_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The bytes for astJson.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAstJsonBytes() {
+ java.lang.Object ref = astJson_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ astJson_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PATHS_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return A list containing the paths.
+ */
+ public com.google.protobuf.ProtocolStringList getPathsList() {
+ return paths_;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return The count of paths.
+ */
+ public int getPathsCount() {
+ return paths_.size();
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ public java.lang.String getPaths(int index) {
+ return paths_.get(index);
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ public com.google.protobuf.ByteString getPathsBytes(int index) {
+ return paths_.getByteString(index);
+ }
+
+ public static final int ERRORS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List errors_;
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public java.util.List getErrorsList() {
+ return errors_;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getErrorsOrBuilderList() {
+ return errors_;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public int getErrorsCount() {
+ return errors_.size();
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Error getErrors(int index) {
+ return errors_.get(index);
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ErrorOrBuilder getErrorsOrBuilder(int index) {
+ return errors_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(astJson_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, astJson_);
+ }
+ for (int i = 0; i < paths_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, paths_.getRaw(i));
+ }
+ for (int i = 0; i < errors_.size(); i++) {
+ output.writeMessage(3, errors_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(astJson_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, astJson_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < paths_.size(); i++) {
+ dataSize += computeStringSizeNoTag(paths_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getPathsList().size();
+ }
+ for (int i = 0; i < errors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.ParseProgram_Result)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.ParseProgram_Result other = (com.kcl.api.Spec.ParseProgram_Result) obj;
+
+ if (!getAstJson().equals(other.getAstJson()))
+ return false;
+ if (!getPathsList().equals(other.getPathsList()))
+ return false;
+ if (!getErrorsList().equals(other.getErrorsList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + AST_JSON_FIELD_NUMBER;
+ hash = (53 * hash) + getAstJson().hashCode();
+ if (getPathsCount() > 0) {
+ hash = (37 * hash) + PATHS_FIELD_NUMBER;
+ hash = (53 * hash) + getPathsList().hashCode();
+ }
+ if (getErrorsCount() > 0) {
+ hash = (37 * hash) + ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.ParseProgram_Result prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for parse program response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.ParseProgram_Result}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.ParseProgram_Result)
+ com.kcl.api.Spec.ParseProgram_ResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Result_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ParseProgram_Result.class,
+ com.kcl.api.Spec.ParseProgram_Result.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.ParseProgram_Result.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ astJson_ = "";
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ if (errorsBuilder_ == null) {
+ errors_ = java.util.Collections.emptyList();
+ } else {
+ errors_ = null;
+ errorsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_ParseProgram_Result_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Result getDefaultInstanceForType() {
+ return com.kcl.api.Spec.ParseProgram_Result.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Result build() {
+ com.kcl.api.Spec.ParseProgram_Result result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Result buildPartial() {
+ com.kcl.api.Spec.ParseProgram_Result result = new com.kcl.api.Spec.ParseProgram_Result(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.kcl.api.Spec.ParseProgram_Result result) {
+ if (errorsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ errors_ = java.util.Collections.unmodifiableList(errors_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.errors_ = errors_;
+ } else {
+ result.errors_ = errorsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.ParseProgram_Result result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.astJson_ = astJson_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ paths_.makeImmutable();
+ result.paths_ = paths_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.ParseProgram_Result) {
+ return mergeFrom((com.kcl.api.Spec.ParseProgram_Result) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.ParseProgram_Result other) {
+ if (other == com.kcl.api.Spec.ParseProgram_Result.getDefaultInstance())
+ return this;
+ if (!other.getAstJson().isEmpty()) {
+ astJson_ = other.astJson_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.paths_.isEmpty()) {
+ if (paths_.isEmpty()) {
+ paths_ = other.paths_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensurePathsIsMutable();
+ paths_.addAll(other.paths_);
+ }
+ onChanged();
+ }
+ if (errorsBuilder_ == null) {
+ if (!other.errors_.isEmpty()) {
+ if (errors_.isEmpty()) {
+ errors_ = other.errors_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureErrorsIsMutable();
+ errors_.addAll(other.errors_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.errors_.isEmpty()) {
+ if (errorsBuilder_.isEmpty()) {
+ errorsBuilder_.dispose();
+ errorsBuilder_ = null;
+ errors_ = other.errors_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ errorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? getErrorsFieldBuilder() : null;
+ } else {
+ errorsBuilder_.addAllMessages(other.errors_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ astJson_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensurePathsIsMutable();
+ paths_.add(s);
+ break;
+ } // case 18
+ case 26: {
+ com.kcl.api.Spec.Error m = input.readMessage(com.kcl.api.Spec.Error.parser(),
+ extensionRegistry);
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(m);
+ } else {
+ errorsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object astJson_ = "";
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The astJson.
+ */
+ public java.lang.String getAstJson() {
+ java.lang.Object ref = astJson_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ astJson_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return The bytes for astJson.
+ */
+ public com.google.protobuf.ByteString getAstJsonBytes() {
+ java.lang.Object ref = astJson_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ astJson_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @param value
+ * The astJson to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setAstJson(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ astJson_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAstJson() {
+ astJson_ = getDefaultInstance().getAstJson();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string ast_json = 1;
+ *
+ * @param value
+ * The bytes for astJson to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setAstJsonBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ astJson_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList paths_ = com.google.protobuf.LazyStringArrayList
+ .emptyList();
+
+ private void ensurePathsIsMutable() {
+ if (!paths_.isModifiable()) {
+ paths_ = new com.google.protobuf.LazyStringArrayList(paths_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return A list containing the paths.
+ */
+ public com.google.protobuf.ProtocolStringList getPathsList() {
+ paths_.makeImmutable();
+ return paths_;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return The count of paths.
+ */
+ public int getPathsCount() {
+ return paths_.size();
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ public java.lang.String getPaths(int index) {
+ return paths_.get(index);
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ public com.google.protobuf.ByteString getPathsBytes(int index) {
+ return paths_.getByteString(index);
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index to set the value at.
+ * @param value
+ * The paths to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPaths(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePathsIsMutable();
+ paths_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param value
+ * The paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addPaths(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePathsIsMutable();
+ paths_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param values
+ * The paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addAllPaths(java.lang.Iterable values) {
+ ensurePathsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPaths() {
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param value
+ * The bytes of the paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addPathsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensurePathsIsMutable();
+ paths_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List errors_ = java.util.Collections.emptyList();
+
+ private void ensureErrorsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ errors_ = new java.util.ArrayList(errors_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder errorsBuilder_;
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public java.util.List getErrorsList() {
+ if (errorsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(errors_);
+ } else {
+ return errorsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public int getErrorsCount() {
+ if (errorsBuilder_ == null) {
+ return errors_.size();
+ } else {
+ return errorsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error getErrors(int index) {
+ if (errorsBuilder_ == null) {
+ return errors_.get(index);
+ } else {
+ return errorsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder setErrors(int index, com.kcl.api.Spec.Error value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.set(index, value);
+ onChanged();
+ } else {
+ errorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder setErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(com.kcl.api.Spec.Error value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.add(value);
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(int index, com.kcl.api.Spec.Error value) {
+ if (errorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureErrorsIsMutable();
+ errors_.add(index, value);
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ errorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder addAllErrors(java.lang.Iterable extends com.kcl.api.Spec.Error> values) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
+ onChanged();
+ } else {
+ errorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder clearErrors() {
+ if (errorsBuilder_ == null) {
+ errors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ errorsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public Builder removeErrors(int index) {
+ if (errorsBuilder_ == null) {
+ ensureErrorsIsMutable();
+ errors_.remove(index);
+ onChanged();
+ } else {
+ errorsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder getErrorsBuilder(int index) {
+ return getErrorsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.ErrorOrBuilder getErrorsOrBuilder(int index) {
+ if (errorsBuilder_ == null) {
+ return errors_.get(index);
+ } else {
+ return errorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getErrorsOrBuilderList() {
+ if (errorsBuilder_ != null) {
+ return errorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(errors_);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder addErrorsBuilder() {
+ return getErrorsFieldBuilder().addBuilder(com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder addErrorsBuilder(int index) {
+ return getErrorsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error errors = 3;
+ */
+ public java.util.List getErrorsBuilderList() {
+ return getErrorsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder getErrorsFieldBuilder() {
+ if (errorsBuilder_ == null) {
+ errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(
+ errors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ errors_ = null;
+ }
+ return errorsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.ParseProgram_Result)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.ParseProgram_Result)
+ private static final com.kcl.api.Spec.ParseProgram_Result DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.ParseProgram_Result();
+ }
+
+ public static com.kcl.api.Spec.ParseProgram_Result getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ParseProgram_Result parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Result getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface LoadPackage_ArgsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.LoadPackage_Args)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ *
+ * @return Whether the parseArgs field is set.
+ */
+ boolean hasParseArgs();
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ *
+ * @return The parseArgs.
+ */
+ com.kcl.api.Spec.ParseProgram_Args getParseArgs();
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ com.kcl.api.Spec.ParseProgram_ArgsOrBuilder getParseArgsOrBuilder();
+
+ /**
+ *
+ * Flag indicating whether to resolve AST.
+ *
+ *
+ * bool resolve_ast = 2;
+ *
+ * @return The resolveAst.
+ */
+ boolean getResolveAst();
+
+ /**
+ *
+ * Flag indicating whether to load built-in modules.
+ *
+ *
+ * bool load_builtin = 3;
+ *
+ * @return The loadBuiltin.
+ */
+ boolean getLoadBuiltin();
+
+ /**
+ *
+ * Flag indicating whether to include AST index.
+ *
+ *
+ * bool with_ast_index = 4;
+ *
+ * @return The withAstIndex.
+ */
+ boolean getWithAstIndex();
+ }
+
+ /**
+ *
+ * Message for load package request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.LoadPackage_Args}
+ */
+ public static final class LoadPackage_Args extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.LoadPackage_Args)
+ LoadPackage_ArgsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", LoadPackage_Args.class.getName());
+ }
+
+ // Use LoadPackage_Args.newBuilder() to construct.
+ private LoadPackage_Args(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private LoadPackage_Args() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadPackage_Args.class,
+ com.kcl.api.Spec.LoadPackage_Args.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int PARSE_ARGS_FIELD_NUMBER = 1;
+ private com.kcl.api.Spec.ParseProgram_Args parseArgs_;
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ *
+ * @return Whether the parseArgs field is set.
+ */
+ @java.lang.Override
+ public boolean hasParseArgs() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ *
+ * @return The parseArgs.
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_Args getParseArgs() {
+ return parseArgs_ == null ? com.kcl.api.Spec.ParseProgram_Args.getDefaultInstance() : parseArgs_;
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ParseProgram_ArgsOrBuilder getParseArgsOrBuilder() {
+ return parseArgs_ == null ? com.kcl.api.Spec.ParseProgram_Args.getDefaultInstance() : parseArgs_;
+ }
+
+ public static final int RESOLVE_AST_FIELD_NUMBER = 2;
+ private boolean resolveAst_ = false;
+
+ /**
+ *
+ * Flag indicating whether to resolve AST.
+ *
+ *
+ * bool resolve_ast = 2;
+ *
+ * @return The resolveAst.
+ */
+ @java.lang.Override
+ public boolean getResolveAst() {
+ return resolveAst_;
+ }
+
+ public static final int LOAD_BUILTIN_FIELD_NUMBER = 3;
+ private boolean loadBuiltin_ = false;
+
+ /**
+ *
+ * Flag indicating whether to load built-in modules.
+ *
+ *
+ * bool load_builtin = 3;
+ *
+ * @return The loadBuiltin.
+ */
+ @java.lang.Override
+ public boolean getLoadBuiltin() {
+ return loadBuiltin_;
+ }
+
+ public static final int WITH_AST_INDEX_FIELD_NUMBER = 4;
+ private boolean withAstIndex_ = false;
+
+ /**
+ *
+ * Flag indicating whether to include AST index.
+ *
+ *
+ * bool with_ast_index = 4;
+ *
+ * @return The withAstIndex.
+ */
+ @java.lang.Override
+ public boolean getWithAstIndex() {
+ return withAstIndex_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getParseArgs());
+ }
+ if (resolveAst_ != false) {
+ output.writeBool(2, resolveAst_);
+ }
+ if (loadBuiltin_ != false) {
+ output.writeBool(3, loadBuiltin_);
+ }
+ if (withAstIndex_ != false) {
+ output.writeBool(4, withAstIndex_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getParseArgs());
+ }
+ if (resolveAst_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, resolveAst_);
+ }
+ if (loadBuiltin_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, loadBuiltin_);
+ }
+ if (withAstIndex_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, withAstIndex_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.LoadPackage_Args)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.LoadPackage_Args other = (com.kcl.api.Spec.LoadPackage_Args) obj;
+
+ if (hasParseArgs() != other.hasParseArgs())
+ return false;
+ if (hasParseArgs()) {
+ if (!getParseArgs().equals(other.getParseArgs()))
+ return false;
+ }
+ if (getResolveAst() != other.getResolveAst())
+ return false;
+ if (getLoadBuiltin() != other.getLoadBuiltin())
+ return false;
+ if (getWithAstIndex() != other.getWithAstIndex())
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasParseArgs()) {
+ hash = (37 * hash) + PARSE_ARGS_FIELD_NUMBER;
+ hash = (53 * hash) + getParseArgs().hashCode();
+ }
+ hash = (37 * hash) + RESOLVE_AST_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResolveAst());
+ hash = (37 * hash) + LOAD_BUILTIN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLoadBuiltin());
+ hash = (37 * hash) + WITH_AST_INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWithAstIndex());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.LoadPackage_Args prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for load package request arguments.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.LoadPackage_Args}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.LoadPackage_Args)
+ com.kcl.api.Spec.LoadPackage_ArgsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Args_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Args_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadPackage_Args.class,
+ com.kcl.api.Spec.LoadPackage_Args.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.LoadPackage_Args.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getParseArgsFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ parseArgs_ = null;
+ if (parseArgsBuilder_ != null) {
+ parseArgsBuilder_.dispose();
+ parseArgsBuilder_ = null;
+ }
+ resolveAst_ = false;
+ loadBuiltin_ = false;
+ withAstIndex_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Args_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.LoadPackage_Args getDefaultInstanceForType() {
+ return com.kcl.api.Spec.LoadPackage_Args.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.LoadPackage_Args build() {
+ com.kcl.api.Spec.LoadPackage_Args result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.LoadPackage_Args buildPartial() {
+ com.kcl.api.Spec.LoadPackage_Args result = new com.kcl.api.Spec.LoadPackage_Args(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.LoadPackage_Args result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.parseArgs_ = parseArgsBuilder_ == null ? parseArgs_ : parseArgsBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.resolveAst_ = resolveAst_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.loadBuiltin_ = loadBuiltin_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.withAstIndex_ = withAstIndex_;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.LoadPackage_Args) {
+ return mergeFrom((com.kcl.api.Spec.LoadPackage_Args) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.LoadPackage_Args other) {
+ if (other == com.kcl.api.Spec.LoadPackage_Args.getDefaultInstance())
+ return this;
+ if (other.hasParseArgs()) {
+ mergeParseArgs(other.getParseArgs());
+ }
+ if (other.getResolveAst() != false) {
+ setResolveAst(other.getResolveAst());
+ }
+ if (other.getLoadBuiltin() != false) {
+ setLoadBuiltin(other.getLoadBuiltin());
+ }
+ if (other.getWithAstIndex() != false) {
+ setWithAstIndex(other.getWithAstIndex());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(getParseArgsFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ resolveAst_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ loadBuiltin_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 32: {
+ withAstIndex_ = input.readBool();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.kcl.api.Spec.ParseProgram_Args parseArgs_;
+ private com.google.protobuf.SingleFieldBuilder parseArgsBuilder_;
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ *
+ * @return Whether the parseArgs field is set.
+ */
+ public boolean hasParseArgs() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ *
+ * @return The parseArgs.
+ */
+ public com.kcl.api.Spec.ParseProgram_Args getParseArgs() {
+ if (parseArgsBuilder_ == null) {
+ return parseArgs_ == null ? com.kcl.api.Spec.ParseProgram_Args.getDefaultInstance() : parseArgs_;
+ } else {
+ return parseArgsBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ public Builder setParseArgs(com.kcl.api.Spec.ParseProgram_Args value) {
+ if (parseArgsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ parseArgs_ = value;
+ } else {
+ parseArgsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ public Builder setParseArgs(com.kcl.api.Spec.ParseProgram_Args.Builder builderForValue) {
+ if (parseArgsBuilder_ == null) {
+ parseArgs_ = builderForValue.build();
+ } else {
+ parseArgsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ public Builder mergeParseArgs(com.kcl.api.Spec.ParseProgram_Args value) {
+ if (parseArgsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) && parseArgs_ != null
+ && parseArgs_ != com.kcl.api.Spec.ParseProgram_Args.getDefaultInstance()) {
+ getParseArgsBuilder().mergeFrom(value);
+ } else {
+ parseArgs_ = value;
+ }
+ } else {
+ parseArgsBuilder_.mergeFrom(value);
+ }
+ if (parseArgs_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ public Builder clearParseArgs() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ parseArgs_ = null;
+ if (parseArgsBuilder_ != null) {
+ parseArgsBuilder_.dispose();
+ parseArgsBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ public com.kcl.api.Spec.ParseProgram_Args.Builder getParseArgsBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getParseArgsFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ public com.kcl.api.Spec.ParseProgram_ArgsOrBuilder getParseArgsOrBuilder() {
+ if (parseArgsBuilder_ != null) {
+ return parseArgsBuilder_.getMessageOrBuilder();
+ } else {
+ return parseArgs_ == null ? com.kcl.api.Spec.ParseProgram_Args.getDefaultInstance() : parseArgs_;
+ }
+ }
+
+ /**
+ *
+ * Arguments for parsing the program.
+ *
+ *
+ * .com.kcl.api.ParseProgram_Args parse_args = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder getParseArgsFieldBuilder() {
+ if (parseArgsBuilder_ == null) {
+ parseArgsBuilder_ = new com.google.protobuf.SingleFieldBuilder(
+ getParseArgs(), getParentForChildren(), isClean());
+ parseArgs_ = null;
+ }
+ return parseArgsBuilder_;
+ }
+
+ private boolean resolveAst_;
+
+ /**
+ *
+ * Flag indicating whether to resolve AST.
+ *
+ *
+ * bool resolve_ast = 2;
+ *
+ * @return The resolveAst.
+ */
+ @java.lang.Override
+ public boolean getResolveAst() {
+ return resolveAst_;
+ }
+
+ /**
+ *
+ * Flag indicating whether to resolve AST.
+ *
+ *
+ * bool resolve_ast = 2;
+ *
+ * @param value
+ * The resolveAst to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setResolveAst(boolean value) {
+
+ resolveAst_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Flag indicating whether to resolve AST.
+ *
+ *
+ * bool resolve_ast = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResolveAst() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resolveAst_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean loadBuiltin_;
+
+ /**
+ *
+ * Flag indicating whether to load built-in modules.
+ *
+ *
+ * bool load_builtin = 3;
+ *
+ * @return The loadBuiltin.
+ */
+ @java.lang.Override
+ public boolean getLoadBuiltin() {
+ return loadBuiltin_;
+ }
+
+ /**
+ *
+ * Flag indicating whether to load built-in modules.
+ *
+ *
+ * bool load_builtin = 3;
+ *
+ * @param value
+ * The loadBuiltin to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setLoadBuiltin(boolean value) {
+
+ loadBuiltin_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Flag indicating whether to load built-in modules.
+ *
+ *
+ * bool load_builtin = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLoadBuiltin() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ loadBuiltin_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean withAstIndex_;
+
+ /**
+ *
+ * Flag indicating whether to include AST index.
+ *
+ *
+ * bool with_ast_index = 4;
+ *
+ * @return The withAstIndex.
+ */
+ @java.lang.Override
+ public boolean getWithAstIndex() {
+ return withAstIndex_;
+ }
+
+ /**
+ *
+ * Flag indicating whether to include AST index.
+ *
+ *
+ * bool with_ast_index = 4;
+ *
+ * @param value
+ * The withAstIndex to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setWithAstIndex(boolean value) {
+
+ withAstIndex_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Flag indicating whether to include AST index.
+ *
+ *
+ * bool with_ast_index = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearWithAstIndex() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ withAstIndex_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.kcl.api.LoadPackage_Args)
+ }
+
+ // @@protoc_insertion_point(class_scope:com.kcl.api.LoadPackage_Args)
+ private static final com.kcl.api.Spec.LoadPackage_Args DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.kcl.api.Spec.LoadPackage_Args();
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Args getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public LoadPackage_Args parsePartialFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.LoadPackage_Args getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface LoadPackage_ResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.kcl.api.LoadPackage_Result)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @return The program.
+ */
+ java.lang.String getProgram();
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @return The bytes for program.
+ */
+ com.google.protobuf.ByteString getProgramBytes();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return A list containing the paths.
+ */
+ java.util.List getPathsList();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return The count of paths.
+ */
+ int getPathsCount();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ java.lang.String getPaths(int index);
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ com.google.protobuf.ByteString getPathsBytes(int index);
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ java.util.List getParseErrorsList();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ com.kcl.api.Spec.Error getParseErrors(int index);
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ int getParseErrorsCount();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getParseErrorsOrBuilderList();
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ com.kcl.api.Spec.ErrorOrBuilder getParseErrorsOrBuilder(int index);
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ java.util.List getTypeErrorsList();
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ com.kcl.api.Spec.Error getTypeErrors(int index);
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ int getTypeErrorsCount();
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getTypeErrorsOrBuilderList();
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ com.kcl.api.Spec.ErrorOrBuilder getTypeErrorsOrBuilder(int index);
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ int getScopesCount();
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ boolean containsScopes(java.lang.String key);
+
+ /**
+ * Use {@link #getScopesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getScopes();
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ java.util.Map getScopesMap();
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ /* nullable */
+ com.kcl.api.Spec.Scope getScopesOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.Scope defaultValue);
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ com.kcl.api.Spec.Scope getScopesOrThrow(java.lang.String key);
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ int getSymbolsCount();
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ boolean containsSymbols(java.lang.String key);
+
+ /**
+ * Use {@link #getSymbolsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getSymbols();
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ java.util.Map getSymbolsMap();
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ /* nullable */
+ com.kcl.api.Spec.Symbol getSymbolsOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.Symbol defaultValue);
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ com.kcl.api.Spec.Symbol getSymbolsOrThrow(java.lang.String key);
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ int getNodeSymbolMapCount();
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ boolean containsNodeSymbolMap(java.lang.String key);
+
+ /**
+ * Use {@link #getNodeSymbolMapMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getNodeSymbolMap();
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ java.util.Map getNodeSymbolMapMap();
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ /* nullable */
+ com.kcl.api.Spec.SymbolIndex getNodeSymbolMapOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.SymbolIndex defaultValue);
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ com.kcl.api.Spec.SymbolIndex getNodeSymbolMapOrThrow(java.lang.String key);
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ int getSymbolNodeMapCount();
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ boolean containsSymbolNodeMap(java.lang.String key);
+
+ /**
+ * Use {@link #getSymbolNodeMapMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getSymbolNodeMap();
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ java.util.Map getSymbolNodeMapMap();
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ /* nullable */
+ java.lang.String getSymbolNodeMapOrDefault(java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ java.lang.String getSymbolNodeMapOrThrow(java.lang.String key);
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ int getFullyQualifiedNameMapCount();
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ boolean containsFullyQualifiedNameMap(java.lang.String key);
+
+ /**
+ * Use {@link #getFullyQualifiedNameMapMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getFullyQualifiedNameMap();
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ java.util.Map getFullyQualifiedNameMapMap();
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ /* nullable */
+ com.kcl.api.Spec.SymbolIndex getFullyQualifiedNameMapOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.SymbolIndex defaultValue);
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ com.kcl.api.Spec.SymbolIndex getFullyQualifiedNameMapOrThrow(java.lang.String key);
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ int getPkgScopeMapCount();
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ boolean containsPkgScopeMap(java.lang.String key);
+
+ /**
+ * Use {@link #getPkgScopeMapMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map getPkgScopeMap();
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ java.util.Map getPkgScopeMapMap();
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ /* nullable */
+ com.kcl.api.Spec.ScopeIndex getPkgScopeMapOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.ScopeIndex defaultValue);
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ com.kcl.api.Spec.ScopeIndex getPkgScopeMapOrThrow(java.lang.String key);
+ }
+
+ /**
+ *
+ * Message for load package response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.LoadPackage_Result}
+ */
+ public static final class LoadPackage_Result extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.kcl.api.LoadPackage_Result)
+ LoadPackage_ResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27,
+ /* patch= */ 0, /* suffix= */ "", LoadPackage_Result.class.getName());
+ }
+
+ // Use LoadPackage_Result.newBuilder() to construct.
+ private LoadPackage_Result(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private LoadPackage_Result() {
+ program_ = "";
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ parseErrors_ = java.util.Collections.emptyList();
+ typeErrors_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) {
+ switch (number) {
+ case 5:
+ return internalGetScopes();
+ case 6:
+ return internalGetSymbols();
+ case 7:
+ return internalGetNodeSymbolMap();
+ case 8:
+ return internalGetSymbolNodeMap();
+ case 9:
+ return internalGetFullyQualifiedNameMap();
+ case 10:
+ return internalGetPkgScopeMap();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadPackage_Result.class,
+ com.kcl.api.Spec.LoadPackage_Result.Builder.class);
+ }
+
+ public static final int PROGRAM_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object program_ = "";
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @return The program.
+ */
+ @java.lang.Override
+ public java.lang.String getProgram() {
+ java.lang.Object ref = program_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ program_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @return The bytes for program.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProgramBytes() {
+ java.lang.Object ref = program_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ program_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PATHS_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return A list containing the paths.
+ */
+ public com.google.protobuf.ProtocolStringList getPathsList() {
+ return paths_;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return The count of paths.
+ */
+ public int getPathsCount() {
+ return paths_.size();
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ public java.lang.String getPaths(int index) {
+ return paths_.get(index);
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ public com.google.protobuf.ByteString getPathsBytes(int index) {
+ return paths_.getByteString(index);
+ }
+
+ public static final int PARSE_ERRORS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private java.util.List parseErrors_;
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ @java.lang.Override
+ public java.util.List getParseErrorsList() {
+ return parseErrors_;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getParseErrorsOrBuilderList() {
+ return parseErrors_;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ @java.lang.Override
+ public int getParseErrorsCount() {
+ return parseErrors_.size();
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Error getParseErrors(int index) {
+ return parseErrors_.get(index);
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ErrorOrBuilder getParseErrorsOrBuilder(int index) {
+ return parseErrors_.get(index);
+ }
+
+ public static final int TYPE_ERRORS_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private java.util.List typeErrors_;
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ @java.lang.Override
+ public java.util.List getTypeErrorsList() {
+ return typeErrors_;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getTypeErrorsOrBuilderList() {
+ return typeErrors_;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ @java.lang.Override
+ public int getTypeErrorsCount() {
+ return typeErrors_.size();
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Error getTypeErrors(int index) {
+ return typeErrors_.get(index);
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ErrorOrBuilder getTypeErrorsOrBuilder(int index) {
+ return typeErrors_.get(index);
+ }
+
+ public static final int SCOPES_FIELD_NUMBER = 5;
+
+ private static final class ScopesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance(
+ com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_ScopesEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING, "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE, com.kcl.api.Spec.Scope.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField scopes_;
+
+ private com.google.protobuf.MapField internalGetScopes() {
+ if (scopes_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry);
+ }
+ return scopes_;
+ }
+
+ public int getScopesCount() {
+ return internalGetScopes().getMap().size();
+ }
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ @java.lang.Override
+ public boolean containsScopes(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetScopes().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getScopesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getScopes() {
+ return getScopesMap();
+ }
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ @java.lang.Override
+ public java.util.Map getScopesMap() {
+ return internalGetScopes().getMap();
+ }
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ @java.lang.Override
+ public /* nullable */
+ com.kcl.api.Spec.Scope getScopesOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.Scope defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetScopes().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ * Map of scopes with scope index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Scope> scopes = 5;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Scope getScopesOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetScopes().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int SYMBOLS_FIELD_NUMBER = 6;
+
+ private static final class SymbolsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance(
+ com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_SymbolsEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING, "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE, com.kcl.api.Spec.Symbol.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField symbols_;
+
+ private com.google.protobuf.MapField internalGetSymbols() {
+ if (symbols_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(SymbolsDefaultEntryHolder.defaultEntry);
+ }
+ return symbols_;
+ }
+
+ public int getSymbolsCount() {
+ return internalGetSymbols().getMap().size();
+ }
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ @java.lang.Override
+ public boolean containsSymbols(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetSymbols().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getSymbolsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getSymbols() {
+ return getSymbolsMap();
+ }
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ @java.lang.Override
+ public java.util.Map getSymbolsMap() {
+ return internalGetSymbols().getMap();
+ }
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ @java.lang.Override
+ public /* nullable */
+ com.kcl.api.Spec.Symbol getSymbolsOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.Symbol defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetSymbols().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ * Map of symbols with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.Symbol> symbols = 6;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.Symbol getSymbolsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetSymbols().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int NODE_SYMBOL_MAP_FIELD_NUMBER = 7;
+
+ private static final class NodeSymbolMapDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance(
+ com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_NodeSymbolMapEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING, "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.kcl.api.Spec.SymbolIndex.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField nodeSymbolMap_;
+
+ private com.google.protobuf.MapField internalGetNodeSymbolMap() {
+ if (nodeSymbolMap_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(NodeSymbolMapDefaultEntryHolder.defaultEntry);
+ }
+ return nodeSymbolMap_;
+ }
+
+ public int getNodeSymbolMapCount() {
+ return internalGetNodeSymbolMap().getMap().size();
+ }
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ @java.lang.Override
+ public boolean containsNodeSymbolMap(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetNodeSymbolMap().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getNodeSymbolMapMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getNodeSymbolMap() {
+ return getNodeSymbolMapMap();
+ }
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ @java.lang.Override
+ public java.util.Map getNodeSymbolMapMap() {
+ return internalGetNodeSymbolMap().getMap();
+ }
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ @java.lang.Override
+ public /* nullable */
+ com.kcl.api.Spec.SymbolIndex getNodeSymbolMapOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.SymbolIndex defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetNodeSymbolMap().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ * Map of node-symbol associations with AST index UUID as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.SymbolIndex getNodeSymbolMapOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetNodeSymbolMap().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int SYMBOL_NODE_MAP_FIELD_NUMBER = 8;
+
+ private static final class SymbolNodeMapDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance(
+ com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_SymbolNodeMapEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING, "",
+ com.google.protobuf.WireFormat.FieldType.STRING, "");
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField symbolNodeMap_;
+
+ private com.google.protobuf.MapField internalGetSymbolNodeMap() {
+ if (symbolNodeMap_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(SymbolNodeMapDefaultEntryHolder.defaultEntry);
+ }
+ return symbolNodeMap_;
+ }
+
+ public int getSymbolNodeMapCount() {
+ return internalGetSymbolNodeMap().getMap().size();
+ }
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ @java.lang.Override
+ public boolean containsSymbolNodeMap(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetSymbolNodeMap().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getSymbolNodeMapMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getSymbolNodeMap() {
+ return getSymbolNodeMapMap();
+ }
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ @java.lang.Override
+ public java.util.Map getSymbolNodeMapMap() {
+ return internalGetSymbolNodeMap().getMap();
+ }
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ @java.lang.Override
+ public /* nullable */
+ java.lang.String getSymbolNodeMapOrDefault(java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetSymbolNodeMap().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ * Map of symbol-node associations with symbol index as key.
+ *
+ *
+ * map<string, string> symbol_node_map = 8;
+ */
+ @java.lang.Override
+ public java.lang.String getSymbolNodeMapOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetSymbolNodeMap().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int FULLY_QUALIFIED_NAME_MAP_FIELD_NUMBER = 9;
+
+ private static final class FullyQualifiedNameMapDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance(
+ com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_FullyQualifiedNameMapEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING, "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
+ com.kcl.api.Spec.SymbolIndex.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField fullyQualifiedNameMap_;
+
+ private com.google.protobuf.MapField internalGetFullyQualifiedNameMap() {
+ if (fullyQualifiedNameMap_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(FullyQualifiedNameMapDefaultEntryHolder.defaultEntry);
+ }
+ return fullyQualifiedNameMap_;
+ }
+
+ public int getFullyQualifiedNameMapCount() {
+ return internalGetFullyQualifiedNameMap().getMap().size();
+ }
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ @java.lang.Override
+ public boolean containsFullyQualifiedNameMap(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetFullyQualifiedNameMap().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getFullyQualifiedNameMapMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getFullyQualifiedNameMap() {
+ return getFullyQualifiedNameMapMap();
+ }
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ @java.lang.Override
+ public java.util.Map getFullyQualifiedNameMapMap() {
+ return internalGetFullyQualifiedNameMap().getMap();
+ }
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ @java.lang.Override
+ public /* nullable */
+ com.kcl.api.Spec.SymbolIndex getFullyQualifiedNameMapOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.SymbolIndex defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetFullyQualifiedNameMap()
+ .getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ * Map of fully qualified names with symbol index as key.
+ *
+ *
+ * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.SymbolIndex getFullyQualifiedNameMapOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetFullyQualifiedNameMap()
+ .getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public static final int PKG_SCOPE_MAP_FIELD_NUMBER = 10;
+
+ private static final class PkgScopeMapDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance(
+ com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_PkgScopeMapEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING, "",
+ com.google.protobuf.WireFormat.FieldType.MESSAGE, com.kcl.api.Spec.ScopeIndex.getDefaultInstance());
+ }
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField pkgScopeMap_;
+
+ private com.google.protobuf.MapField internalGetPkgScopeMap() {
+ if (pkgScopeMap_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(PkgScopeMapDefaultEntryHolder.defaultEntry);
+ }
+ return pkgScopeMap_;
+ }
+
+ public int getPkgScopeMapCount() {
+ return internalGetPkgScopeMap().getMap().size();
+ }
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ @java.lang.Override
+ public boolean containsPkgScopeMap(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetPkgScopeMap().getMap().containsKey(key);
+ }
+
+ /**
+ * Use {@link #getPkgScopeMapMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getPkgScopeMap() {
+ return getPkgScopeMapMap();
+ }
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ @java.lang.Override
+ public java.util.Map getPkgScopeMapMap() {
+ return internalGetPkgScopeMap().getMap();
+ }
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ @java.lang.Override
+ public /* nullable */
+ com.kcl.api.Spec.ScopeIndex getPkgScopeMapOrDefault(java.lang.String key,
+ /* nullable */
+ com.kcl.api.Spec.ScopeIndex defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetPkgScopeMap().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+
+ /**
+ *
+ * Map of package scope with package path as key.
+ *
+ *
+ * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10;
+ */
+ @java.lang.Override
+ public com.kcl.api.Spec.ScopeIndex getPkgScopeMapOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map map = internalGetPkgScopeMap().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1)
+ return true;
+ if (isInitialized == 0)
+ return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(program_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, program_);
+ }
+ for (int i = 0; i < paths_.size(); i++) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, paths_.getRaw(i));
+ }
+ for (int i = 0; i < parseErrors_.size(); i++) {
+ output.writeMessage(3, parseErrors_.get(i));
+ }
+ for (int i = 0; i < typeErrors_.size(); i++) {
+ output.writeMessage(4, typeErrors_.get(i));
+ }
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetScopes(),
+ ScopesDefaultEntryHolder.defaultEntry, 5);
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetSymbols(),
+ SymbolsDefaultEntryHolder.defaultEntry, 6);
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetNodeSymbolMap(),
+ NodeSymbolMapDefaultEntryHolder.defaultEntry, 7);
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetSymbolNodeMap(),
+ SymbolNodeMapDefaultEntryHolder.defaultEntry, 8);
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetFullyQualifiedNameMap(),
+ FullyQualifiedNameMapDefaultEntryHolder.defaultEntry, 9);
+ com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetPkgScopeMap(),
+ PkgScopeMapDefaultEntryHolder.defaultEntry, 10);
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1)
+ return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(program_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, program_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < paths_.size(); i++) {
+ dataSize += computeStringSizeNoTag(paths_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getPathsList().size();
+ }
+ for (int i = 0; i < parseErrors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parseErrors_.get(i));
+ }
+ for (int i = 0; i < typeErrors_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, typeErrors_.get(i));
+ }
+ for (java.util.Map.Entry entry : internalGetScopes().getMap()
+ .entrySet()) {
+ com.google.protobuf.MapEntry scopes__ = ScopesDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, scopes__);
+ }
+ for (java.util.Map.Entry entry : internalGetSymbols().getMap()
+ .entrySet()) {
+ com.google.protobuf.MapEntry symbols__ = SymbolsDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, symbols__);
+ }
+ for (java.util.Map.Entry entry : internalGetNodeSymbolMap()
+ .getMap().entrySet()) {
+ com.google.protobuf.MapEntry nodeSymbolMap__ = NodeSymbolMapDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, nodeSymbolMap__);
+ }
+ for (java.util.Map.Entry entry : internalGetSymbolNodeMap().getMap()
+ .entrySet()) {
+ com.google.protobuf.MapEntry symbolNodeMap__ = SymbolNodeMapDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, symbolNodeMap__);
+ }
+ for (java.util.Map.Entry entry : internalGetFullyQualifiedNameMap()
+ .getMap().entrySet()) {
+ com.google.protobuf.MapEntry fullyQualifiedNameMap__ = FullyQualifiedNameMapDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, fullyQualifiedNameMap__);
+ }
+ for (java.util.Map.Entry entry : internalGetPkgScopeMap()
+ .getMap().entrySet()) {
+ com.google.protobuf.MapEntry pkgScopeMap__ = PkgScopeMapDefaultEntryHolder.defaultEntry
+ .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build();
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, pkgScopeMap__);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.kcl.api.Spec.LoadPackage_Result)) {
+ return super.equals(obj);
+ }
+ com.kcl.api.Spec.LoadPackage_Result other = (com.kcl.api.Spec.LoadPackage_Result) obj;
+
+ if (!getProgram().equals(other.getProgram()))
+ return false;
+ if (!getPathsList().equals(other.getPathsList()))
+ return false;
+ if (!getParseErrorsList().equals(other.getParseErrorsList()))
+ return false;
+ if (!getTypeErrorsList().equals(other.getTypeErrorsList()))
+ return false;
+ if (!internalGetScopes().equals(other.internalGetScopes()))
+ return false;
+ if (!internalGetSymbols().equals(other.internalGetSymbols()))
+ return false;
+ if (!internalGetNodeSymbolMap().equals(other.internalGetNodeSymbolMap()))
+ return false;
+ if (!internalGetSymbolNodeMap().equals(other.internalGetSymbolNodeMap()))
+ return false;
+ if (!internalGetFullyQualifiedNameMap().equals(other.internalGetFullyQualifiedNameMap()))
+ return false;
+ if (!internalGetPkgScopeMap().equals(other.internalGetPkgScopeMap()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields()))
+ return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PROGRAM_FIELD_NUMBER;
+ hash = (53 * hash) + getProgram().hashCode();
+ if (getPathsCount() > 0) {
+ hash = (37 * hash) + PATHS_FIELD_NUMBER;
+ hash = (53 * hash) + getPathsList().hashCode();
+ }
+ if (getParseErrorsCount() > 0) {
+ hash = (37 * hash) + PARSE_ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getParseErrorsList().hashCode();
+ }
+ if (getTypeErrorsCount() > 0) {
+ hash = (37 * hash) + TYPE_ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + getTypeErrorsList().hashCode();
+ }
+ if (!internalGetScopes().getMap().isEmpty()) {
+ hash = (37 * hash) + SCOPES_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetScopes().hashCode();
+ }
+ if (!internalGetSymbols().getMap().isEmpty()) {
+ hash = (37 * hash) + SYMBOLS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetSymbols().hashCode();
+ }
+ if (!internalGetNodeSymbolMap().getMap().isEmpty()) {
+ hash = (37 * hash) + NODE_SYMBOL_MAP_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetNodeSymbolMap().hashCode();
+ }
+ if (!internalGetSymbolNodeMap().getMap().isEmpty()) {
+ hash = (37 * hash) + SYMBOL_NODE_MAP_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetSymbolNodeMap().hashCode();
+ }
+ if (!internalGetFullyQualifiedNameMap().getMap().isEmpty()) {
+ hash = (37 * hash) + FULLY_QUALIFIED_NAME_MAP_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetFullyQualifiedNameMap().hashCode();
+ }
+ if (!internalGetPkgScopeMap().getMap().isEmpty()) {
+ hash = (37 * hash) + PKG_SCOPE_MAP_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetPkgScopeMap().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.kcl.api.Spec.LoadPackage_Result parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.kcl.api.Spec.LoadPackage_Result prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ * Message for load package response.
+ *
+ *
+ * Protobuf type {@code com.kcl.api.LoadPackage_Result}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:com.kcl.api.LoadPackage_Result)
+ com.kcl.api.Spec.LoadPackage_ResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_descriptor;
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) {
+ switch (number) {
+ case 5:
+ return internalGetScopes();
+ case 6:
+ return internalGetSymbols();
+ case 7:
+ return internalGetNodeSymbolMap();
+ case 8:
+ return internalGetSymbolNodeMap();
+ case 9:
+ return internalGetFullyQualifiedNameMap();
+ case 10:
+ return internalGetPkgScopeMap();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @SuppressWarnings({ "rawtypes" })
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) {
+ switch (number) {
+ case 5:
+ return internalGetMutableScopes();
+ case 6:
+ return internalGetMutableSymbols();
+ case 7:
+ return internalGetMutableNodeSymbolMap();
+ case 8:
+ return internalGetMutableSymbolNodeMap();
+ case 9:
+ return internalGetMutableFullyQualifiedNameMap();
+ case 10:
+ return internalGetMutablePkgScopeMap();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadPackage_Result.class,
+ com.kcl.api.Spec.LoadPackage_Result.Builder.class);
+ }
+
+ // Construct using com.kcl.api.Spec.LoadPackage_Result.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ program_ = "";
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ if (parseErrorsBuilder_ == null) {
+ parseErrors_ = java.util.Collections.emptyList();
+ } else {
+ parseErrors_ = null;
+ parseErrorsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000004);
+ if (typeErrorsBuilder_ == null) {
+ typeErrors_ = java.util.Collections.emptyList();
+ } else {
+ typeErrors_ = null;
+ typeErrorsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000008);
+ internalGetMutableScopes().clear();
+ internalGetMutableSymbols().clear();
+ internalGetMutableNodeSymbolMap().clear();
+ internalGetMutableSymbolNodeMap().clear();
+ internalGetMutableFullyQualifiedNameMap().clear();
+ internalGetMutablePkgScopeMap().clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.kcl.api.Spec.internal_static_com_kcl_api_LoadPackage_Result_descriptor;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.LoadPackage_Result getDefaultInstanceForType() {
+ return com.kcl.api.Spec.LoadPackage_Result.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.LoadPackage_Result build() {
+ com.kcl.api.Spec.LoadPackage_Result result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.kcl.api.Spec.LoadPackage_Result buildPartial() {
+ com.kcl.api.Spec.LoadPackage_Result result = new com.kcl.api.Spec.LoadPackage_Result(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.kcl.api.Spec.LoadPackage_Result result) {
+ if (parseErrorsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ parseErrors_ = java.util.Collections.unmodifiableList(parseErrors_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.parseErrors_ = parseErrors_;
+ } else {
+ result.parseErrors_ = parseErrorsBuilder_.build();
+ }
+ if (typeErrorsBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
+ typeErrors_ = java.util.Collections.unmodifiableList(typeErrors_);
+ bitField0_ = (bitField0_ & ~0x00000008);
+ }
+ result.typeErrors_ = typeErrors_;
+ } else {
+ result.typeErrors_ = typeErrorsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.kcl.api.Spec.LoadPackage_Result result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.program_ = program_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ paths_.makeImmutable();
+ result.paths_ = paths_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.scopes_ = internalGetScopes().build(ScopesDefaultEntryHolder.defaultEntry);
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.symbols_ = internalGetSymbols().build(SymbolsDefaultEntryHolder.defaultEntry);
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.nodeSymbolMap_ = internalGetNodeSymbolMap()
+ .build(NodeSymbolMapDefaultEntryHolder.defaultEntry);
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.symbolNodeMap_ = internalGetSymbolNodeMap();
+ result.symbolNodeMap_.makeImmutable();
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.fullyQualifiedNameMap_ = internalGetFullyQualifiedNameMap()
+ .build(FullyQualifiedNameMapDefaultEntryHolder.defaultEntry);
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.pkgScopeMap_ = internalGetPkgScopeMap().build(PkgScopeMapDefaultEntryHolder.defaultEntry);
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.kcl.api.Spec.LoadPackage_Result) {
+ return mergeFrom((com.kcl.api.Spec.LoadPackage_Result) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.kcl.api.Spec.LoadPackage_Result other) {
+ if (other == com.kcl.api.Spec.LoadPackage_Result.getDefaultInstance())
+ return this;
+ if (!other.getProgram().isEmpty()) {
+ program_ = other.program_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.paths_.isEmpty()) {
+ if (paths_.isEmpty()) {
+ paths_ = other.paths_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensurePathsIsMutable();
+ paths_.addAll(other.paths_);
+ }
+ onChanged();
+ }
+ if (parseErrorsBuilder_ == null) {
+ if (!other.parseErrors_.isEmpty()) {
+ if (parseErrors_.isEmpty()) {
+ parseErrors_ = other.parseErrors_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureParseErrorsIsMutable();
+ parseErrors_.addAll(other.parseErrors_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.parseErrors_.isEmpty()) {
+ if (parseErrorsBuilder_.isEmpty()) {
+ parseErrorsBuilder_.dispose();
+ parseErrorsBuilder_ = null;
+ parseErrors_ = other.parseErrors_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ parseErrorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? getParseErrorsFieldBuilder() : null;
+ } else {
+ parseErrorsBuilder_.addAllMessages(other.parseErrors_);
+ }
+ }
+ }
+ if (typeErrorsBuilder_ == null) {
+ if (!other.typeErrors_.isEmpty()) {
+ if (typeErrors_.isEmpty()) {
+ typeErrors_ = other.typeErrors_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ } else {
+ ensureTypeErrorsIsMutable();
+ typeErrors_.addAll(other.typeErrors_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.typeErrors_.isEmpty()) {
+ if (typeErrorsBuilder_.isEmpty()) {
+ typeErrorsBuilder_.dispose();
+ typeErrorsBuilder_ = null;
+ typeErrors_ = other.typeErrors_;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ typeErrorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
+ ? getTypeErrorsFieldBuilder() : null;
+ } else {
+ typeErrorsBuilder_.addAllMessages(other.typeErrors_);
+ }
+ }
+ }
+ internalGetMutableScopes().mergeFrom(other.internalGetScopes());
+ bitField0_ |= 0x00000010;
+ internalGetMutableSymbols().mergeFrom(other.internalGetSymbols());
+ bitField0_ |= 0x00000020;
+ internalGetMutableNodeSymbolMap().mergeFrom(other.internalGetNodeSymbolMap());
+ bitField0_ |= 0x00000040;
+ internalGetMutableSymbolNodeMap().mergeFrom(other.internalGetSymbolNodeMap());
+ bitField0_ |= 0x00000080;
+ internalGetMutableFullyQualifiedNameMap().mergeFrom(other.internalGetFullyQualifiedNameMap());
+ bitField0_ |= 0x00000100;
+ internalGetMutablePkgScopeMap().mergeFrom(other.internalGetPkgScopeMap());
+ bitField0_ |= 0x00000200;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ program_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensurePathsIsMutable();
+ paths_.add(s);
+ break;
+ } // case 18
+ case 26: {
+ com.kcl.api.Spec.Error m = input.readMessage(com.kcl.api.Spec.Error.parser(),
+ extensionRegistry);
+ if (parseErrorsBuilder_ == null) {
+ ensureParseErrorsIsMutable();
+ parseErrors_.add(m);
+ } else {
+ parseErrorsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 26
+ case 34: {
+ com.kcl.api.Spec.Error m = input.readMessage(com.kcl.api.Spec.Error.parser(),
+ extensionRegistry);
+ if (typeErrorsBuilder_ == null) {
+ ensureTypeErrorsIsMutable();
+ typeErrors_.add(m);
+ } else {
+ typeErrorsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 34
+ case 42: {
+ com.google.protobuf.MapEntry scopes__ = input
+ .readMessage(ScopesDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableScopes().ensureBuilderMap().put(scopes__.getKey(), scopes__.getValue());
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ com.google.protobuf.MapEntry symbols__ = input
+ .readMessage(SymbolsDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableSymbols().ensureBuilderMap().put(symbols__.getKey(),
+ symbols__.getValue());
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58: {
+ com.google.protobuf.MapEntry nodeSymbolMap__ = input
+ .readMessage(NodeSymbolMapDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableNodeSymbolMap().ensureBuilderMap().put(nodeSymbolMap__.getKey(),
+ nodeSymbolMap__.getValue());
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ com.google.protobuf.MapEntry symbolNodeMap__ = input
+ .readMessage(SymbolNodeMapDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableSymbolNodeMap().getMutableMap().put(symbolNodeMap__.getKey(),
+ symbolNodeMap__.getValue());
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 74: {
+ com.google.protobuf.MapEntry fullyQualifiedNameMap__ = input
+ .readMessage(
+ FullyQualifiedNameMapDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutableFullyQualifiedNameMap().ensureBuilderMap()
+ .put(fullyQualifiedNameMap__.getKey(), fullyQualifiedNameMap__.getValue());
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 82: {
+ com.google.protobuf.MapEntry pkgScopeMap__ = input
+ .readMessage(PkgScopeMapDefaultEntryHolder.defaultEntry.getParserForType(),
+ extensionRegistry);
+ internalGetMutablePkgScopeMap().ensureBuilderMap().put(pkgScopeMap__.getKey(),
+ pkgScopeMap__.getValue());
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object program_ = "";
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @return The program.
+ */
+ public java.lang.String getProgram() {
+ java.lang.Object ref = program_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ program_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @return The bytes for program.
+ */
+ public com.google.protobuf.ByteString getProgramBytes() {
+ java.lang.Object ref = program_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString
+ .copyFromUtf8((java.lang.String) ref);
+ program_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @param value
+ * The program to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setProgram(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ program_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProgram() {
+ program_ = getDefaultInstance().getProgram();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Program Abstract Syntax Tree (AST) in JSON format.
+ *
+ *
+ * string program = 1;
+ *
+ * @param value
+ * The bytes for program to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setProgramBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ program_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList paths_ = com.google.protobuf.LazyStringArrayList
+ .emptyList();
+
+ private void ensurePathsIsMutable() {
+ if (!paths_.isModifiable()) {
+ paths_ = new com.google.protobuf.LazyStringArrayList(paths_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return A list containing the paths.
+ */
+ public com.google.protobuf.ProtocolStringList getPathsList() {
+ paths_.makeImmutable();
+ return paths_;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return The count of paths.
+ */
+ public int getPathsCount() {
+ return paths_.size();
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the element to return.
+ *
+ * @return The paths at the given index.
+ */
+ public java.lang.String getPaths(int index) {
+ return paths_.get(index);
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index of the value to return.
+ *
+ * @return The bytes of the paths at the given index.
+ */
+ public com.google.protobuf.ByteString getPathsBytes(int index) {
+ return paths_.getByteString(index);
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param index
+ * The index to set the value at.
+ * @param value
+ * The paths to set.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder setPaths(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePathsIsMutable();
+ paths_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param value
+ * The paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addPaths(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePathsIsMutable();
+ paths_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param values
+ * The paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addAllPaths(java.lang.Iterable values) {
+ ensurePathsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, paths_);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPaths() {
+ paths_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ * Returns the files in the order they should be compiled.
+ *
+ *
+ * repeated string paths = 2;
+ *
+ * @param value
+ * The bytes of the paths to add.
+ *
+ * @return This builder for chaining.
+ */
+ public Builder addPathsBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensurePathsIsMutable();
+ paths_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List parseErrors_ = java.util.Collections.emptyList();
+
+ private void ensureParseErrorsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ parseErrors_ = new java.util.ArrayList(parseErrors_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder parseErrorsBuilder_;
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public java.util.List getParseErrorsList() {
+ if (parseErrorsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(parseErrors_);
+ } else {
+ return parseErrorsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public int getParseErrorsCount() {
+ if (parseErrorsBuilder_ == null) {
+ return parseErrors_.size();
+ } else {
+ return parseErrorsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public com.kcl.api.Spec.Error getParseErrors(int index) {
+ if (parseErrorsBuilder_ == null) {
+ return parseErrors_.get(index);
+ } else {
+ return parseErrorsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder setParseErrors(int index, com.kcl.api.Spec.Error value) {
+ if (parseErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParseErrorsIsMutable();
+ parseErrors_.set(index, value);
+ onChanged();
+ } else {
+ parseErrorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder setParseErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (parseErrorsBuilder_ == null) {
+ ensureParseErrorsIsMutable();
+ parseErrors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ parseErrorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder addParseErrors(com.kcl.api.Spec.Error value) {
+ if (parseErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParseErrorsIsMutable();
+ parseErrors_.add(value);
+ onChanged();
+ } else {
+ parseErrorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder addParseErrors(int index, com.kcl.api.Spec.Error value) {
+ if (parseErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParseErrorsIsMutable();
+ parseErrors_.add(index, value);
+ onChanged();
+ } else {
+ parseErrorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder addParseErrors(com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (parseErrorsBuilder_ == null) {
+ ensureParseErrorsIsMutable();
+ parseErrors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ parseErrorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder addParseErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (parseErrorsBuilder_ == null) {
+ ensureParseErrorsIsMutable();
+ parseErrors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ parseErrorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder addAllParseErrors(java.lang.Iterable extends com.kcl.api.Spec.Error> values) {
+ if (parseErrorsBuilder_ == null) {
+ ensureParseErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parseErrors_);
+ onChanged();
+ } else {
+ parseErrorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder clearParseErrors() {
+ if (parseErrorsBuilder_ == null) {
+ parseErrors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ parseErrorsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public Builder removeParseErrors(int index) {
+ if (parseErrorsBuilder_ == null) {
+ ensureParseErrorsIsMutable();
+ parseErrors_.remove(index);
+ onChanged();
+ } else {
+ parseErrorsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder getParseErrorsBuilder(int index) {
+ return getParseErrorsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public com.kcl.api.Spec.ErrorOrBuilder getParseErrorsOrBuilder(int index) {
+ if (parseErrorsBuilder_ == null) {
+ return parseErrors_.get(index);
+ } else {
+ return parseErrorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getParseErrorsOrBuilderList() {
+ if (parseErrorsBuilder_ != null) {
+ return parseErrorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(parseErrors_);
+ }
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder addParseErrorsBuilder() {
+ return getParseErrorsFieldBuilder().addBuilder(com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public com.kcl.api.Spec.Error.Builder addParseErrorsBuilder(int index) {
+ return getParseErrorsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of parse errors.
+ *
+ *
+ * repeated .com.kcl.api.Error parse_errors = 3;
+ */
+ public java.util.List getParseErrorsBuilderList() {
+ return getParseErrorsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder getParseErrorsFieldBuilder() {
+ if (parseErrorsBuilder_ == null) {
+ parseErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(
+ parseErrors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ parseErrors_ = null;
+ }
+ return parseErrorsBuilder_;
+ }
+
+ private java.util.List typeErrors_ = java.util.Collections.emptyList();
+
+ private void ensureTypeErrorsIsMutable() {
+ if (!((bitField0_ & 0x00000008) != 0)) {
+ typeErrors_ = new java.util.ArrayList(typeErrors_);
+ bitField0_ |= 0x00000008;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder typeErrorsBuilder_;
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public java.util.List getTypeErrorsList() {
+ if (typeErrorsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(typeErrors_);
+ } else {
+ return typeErrorsBuilder_.getMessageList();
+ }
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public int getTypeErrorsCount() {
+ if (typeErrorsBuilder_ == null) {
+ return typeErrors_.size();
+ } else {
+ return typeErrorsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public com.kcl.api.Spec.Error getTypeErrors(int index) {
+ if (typeErrorsBuilder_ == null) {
+ return typeErrors_.get(index);
+ } else {
+ return typeErrorsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder setTypeErrors(int index, com.kcl.api.Spec.Error value) {
+ if (typeErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTypeErrorsIsMutable();
+ typeErrors_.set(index, value);
+ onChanged();
+ } else {
+ typeErrorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder setTypeErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (typeErrorsBuilder_ == null) {
+ ensureTypeErrorsIsMutable();
+ typeErrors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ typeErrorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder addTypeErrors(com.kcl.api.Spec.Error value) {
+ if (typeErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTypeErrorsIsMutable();
+ typeErrors_.add(value);
+ onChanged();
+ } else {
+ typeErrorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder addTypeErrors(int index, com.kcl.api.Spec.Error value) {
+ if (typeErrorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTypeErrorsIsMutable();
+ typeErrors_.add(index, value);
+ onChanged();
+ } else {
+ typeErrorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder addTypeErrors(com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (typeErrorsBuilder_ == null) {
+ ensureTypeErrorsIsMutable();
+ typeErrors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ typeErrorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder addTypeErrors(int index, com.kcl.api.Spec.Error.Builder builderForValue) {
+ if (typeErrorsBuilder_ == null) {
+ ensureTypeErrorsIsMutable();
+ typeErrors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ typeErrorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder addAllTypeErrors(java.lang.Iterable extends com.kcl.api.Spec.Error> values) {
+ if (typeErrorsBuilder_ == null) {
+ ensureTypeErrorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, typeErrors_);
+ onChanged();
+ } else {
+ typeErrorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder clearTypeErrors() {
+ if (typeErrorsBuilder_ == null) {
+ typeErrors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ typeErrorsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public Builder removeTypeErrors(int index) {
+ if (typeErrorsBuilder_ == null) {
+ ensureTypeErrorsIsMutable();
+ typeErrors_.remove(index);
+ onChanged();
+ } else {
+ typeErrorsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public com.kcl.api.Spec.Error.Builder getTypeErrorsBuilder(int index) {
+ return getTypeErrorsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public com.kcl.api.Spec.ErrorOrBuilder getTypeErrorsOrBuilder(int index) {
+ if (typeErrorsBuilder_ == null) {
+ return typeErrors_.get(index);
+ } else {
+ return typeErrorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public java.util.List extends com.kcl.api.Spec.ErrorOrBuilder> getTypeErrorsOrBuilderList() {
+ if (typeErrorsBuilder_ != null) {
+ return typeErrorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(typeErrors_);
+ }
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public com.kcl.api.Spec.Error.Builder addTypeErrorsBuilder() {
+ return getTypeErrorsFieldBuilder().addBuilder(com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public com.kcl.api.Spec.Error.Builder addTypeErrorsBuilder(int index) {
+ return getTypeErrorsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Error.getDefaultInstance());
+ }
+
+ /**
+ *
+ * List of type errors.
+ *
+ *
+ * repeated .com.kcl.api.Error type_errors = 4;
+ */
+ public java.util.List getTypeErrorsBuilderList() {
+ return getTypeErrorsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder getTypeErrorsFieldBuilder() {
+ if (typeErrorsBuilder_ == null) {
+ typeErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(
+ typeErrors_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
+ typeErrors_ = null;
+ }
+ return typeErrorsBuilder_;
+ }
+
+ private static final class ScopesConverter implements
+ com.google.protobuf.MapFieldBuilder.Converter {
+ @java.lang.Override
+ public com.kcl.api.Spec.Scope build(com.kcl.api.Spec.ScopeOrBuilder val) {
+ if (val instanceof com.kcl.api.Spec.Scope) {
+ return (com.kcl.api.Spec.Scope) val;
+ }
+ return ((com.kcl.api.Spec.Scope.Builder) val).build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry defaultEntry() {
+ return ScopesDefaultEntryHolder.defaultEntry;
+ }
+ };
+
+ private static final ScopesConverter scopesConverter = new ScopesConverter();
+
+ private com.google.protobuf.MapFieldBuilder scopes_;
+
+ private com.google.protobuf.MapFieldBuilder internalGetScopes() {
+ if (scopes_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(scopesConverter);
+ }
+ return scopes_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder