From 5ed1486d6018b5e99cd2683fbf3c1d3d055395d9 Mon Sep 17 00:00:00 2001 From: peefy Date: Sun, 28 Jul 2024 17:59:12 +0800 Subject: [PATCH] feat: add kcl kotlin lib and tests Signed-off-by: peefy --- .github/workflows/kotlin-test.yaml | 181 + .gitignore | 1 + kotlin/Cargo.toml | 23 + kotlin/Makefile | 13 + kotlin/pom.xml | 270 + kotlin/src/lib.rs | 141 + kotlin/src/main/java/com/kcl/api/API.java | 681 + .../main/java/com/kcl/api/Environment.java | 40 + kotlin/src/main/java/com/kcl/api/Service.java | 62 + kotlin/src/main/java/com/kcl/api/Spec.java | 74055 ++++++++++++++++ .../java/com/kcl/plugin/MethodFunction.java | 8 + .../src/main/java/com/kcl/plugin/Plugin.java | 17 + .../java/com/kcl/plugin/PluginContext.java | 70 + .../src/main/resources/META-INF/MANIFEST.MF | 1 + .../test/kotlin/com/kcl/ExexProgramTest.kt | 20 + .../src/test/kotlin/com/kcl/ValidateTest.kt | 21 + kotlin/src/test_data/format_path/test.k | 1 + .../src/test_data/get_schema_ty/aaa/kcl.mod | 5 + kotlin/src/test_data/get_schema_ty/aaa/main.k | 10 + .../src/test_data/get_schema_ty/bbb/kcl.mod | 5 + kotlin/src/test_data/get_schema_ty/bbb/main.k | 2 + .../src/test_data/get_schema_ty/ccc/kcl.mod | 5 + kotlin/src/test_data/get_schema_ty/ccc/main.k | 2 + kotlin/src/test_data/lint_path/test-lint.k | 3 + kotlin/src/test_data/option/main.k | 5 + kotlin/src/test_data/override_file/main.bak | 6 + kotlin/src/test_data/override_file/main.k | 5 + kotlin/src/test_data/parse/kcl.mod | 0 kotlin/src/test_data/parse/main.k | 5 + kotlin/src/test_data/parse/pkg1/pkg.k | 1 + kotlin/src/test_data/parse/pkg2/pkg.k | 1 + kotlin/src/test_data/plugin.k | 3 + kotlin/src/test_data/rename/main.bak | 2 + kotlin/src/test_data/rename/main.k | 2 + kotlin/src/test_data/schema.k | 6 + kotlin/src/test_data/settings/kcl.yaml | 5 + kotlin/src/test_data/testing/module/kcl.mod | 3 + .../src/test_data/testing/module/pkg/func.k | 3 + .../test_data/testing/module/pkg/func_test.k | 7 + .../src/test_data/update_dependencies/kcl.mod | 8 + .../src/test_data/update_dependencies/main.k | 4 + kotlin/src/test_data/variables/main.k | 3 + spec/Makefile | 2 +- 43 files changed, 75707 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/kotlin-test.yaml create mode 100644 kotlin/Cargo.toml create mode 100644 kotlin/Makefile create mode 100644 kotlin/pom.xml create mode 100644 kotlin/src/lib.rs create mode 100644 kotlin/src/main/java/com/kcl/api/API.java create mode 100644 kotlin/src/main/java/com/kcl/api/Environment.java create mode 100644 kotlin/src/main/java/com/kcl/api/Service.java create mode 100644 kotlin/src/main/java/com/kcl/api/Spec.java create mode 100644 kotlin/src/main/java/com/kcl/plugin/MethodFunction.java create mode 100644 kotlin/src/main/java/com/kcl/plugin/Plugin.java create mode 100644 kotlin/src/main/java/com/kcl/plugin/PluginContext.java create mode 100644 kotlin/src/main/resources/META-INF/MANIFEST.MF create mode 100644 kotlin/src/test/kotlin/com/kcl/ExexProgramTest.kt create mode 100644 kotlin/src/test/kotlin/com/kcl/ValidateTest.kt create mode 100644 kotlin/src/test_data/format_path/test.k create mode 100644 kotlin/src/test_data/get_schema_ty/aaa/kcl.mod create mode 100644 kotlin/src/test_data/get_schema_ty/aaa/main.k create mode 100644 kotlin/src/test_data/get_schema_ty/bbb/kcl.mod create mode 100644 kotlin/src/test_data/get_schema_ty/bbb/main.k create mode 100644 kotlin/src/test_data/get_schema_ty/ccc/kcl.mod create mode 100644 kotlin/src/test_data/get_schema_ty/ccc/main.k create mode 100644 kotlin/src/test_data/lint_path/test-lint.k create mode 100644 kotlin/src/test_data/option/main.k create mode 100644 kotlin/src/test_data/override_file/main.bak create mode 100644 kotlin/src/test_data/override_file/main.k create mode 100644 kotlin/src/test_data/parse/kcl.mod create mode 100644 kotlin/src/test_data/parse/main.k create mode 100644 kotlin/src/test_data/parse/pkg1/pkg.k create mode 100644 kotlin/src/test_data/parse/pkg2/pkg.k create mode 100644 kotlin/src/test_data/plugin.k create mode 100644 kotlin/src/test_data/rename/main.bak create mode 100644 kotlin/src/test_data/rename/main.k create mode 100644 kotlin/src/test_data/schema.k create mode 100644 kotlin/src/test_data/settings/kcl.yaml create mode 100644 kotlin/src/test_data/testing/module/kcl.mod create mode 100644 kotlin/src/test_data/testing/module/pkg/func.k create mode 100644 kotlin/src/test_data/testing/module/pkg/func_test.k create mode 100644 kotlin/src/test_data/update_dependencies/kcl.mod create mode 100644 kotlin/src/test_data/update_dependencies/main.k create mode 100644 kotlin/src/test_data/variables/main.k diff --git a/.github/workflows/kotlin-test.yaml b/.github/workflows/kotlin-test.yaml new file mode 100644 index 0000000..863128a --- /dev/null +++ b/.github/workflows/kotlin-test.yaml @@ -0,0 +1,181 @@ +name: kotlin-test + +on: + push: + branches: + - main + - master + tags: + - '*' + pull_request: + branches: + - main + paths: + - "kotlin/**" + - ".github/workflows/kotlin-test.yaml" + workflow_dispatch: + +jobs: + test-and-build: + permissions: + actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows + contents: read # for actions/checkout to fetch code + name: "${{ matrix.root-pom }} on JDK ${{ matrix.java }} for the classifier ${{ matrix.classifier }}" + strategy: + matrix: + include: + - os: ubuntu-latest + classifier: linux-aarch_64 + java: 8 + root-pom: 'pom.xml' + - os: windows-latest + classifier: windows-x86_64 + java: 8 + root-pom: 'pom.xml' + - os: macos-latest + classifier: osx-x86_64 + java: 8 + root-pom: 'pom.xml' + - os: macos-latest + classifier: osx-aarch_64 + java: 8 + root-pom: 'pom.xml' + runs-on: ${{ matrix.os }} + env: + ROOT_POM: ${{ matrix.root-pom }} + steps: + - uses: actions/checkout@v4 + + - name: 'Set up JDK ${{ matrix.java }}' + uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 + with: + java-version: ${{ matrix.java }} + distribution: 'zulu' + cache: 'maven' + + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install rust nightly toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.79 + override: true + components: clippy, rustfmt + + - name: Setup linux-aarch_64 rust target + if: "contains(matrix.classifier, 'linux-aarch_64')" + run: | + sudo apt-get update + sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu + # Setup for cargo + echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV + + - name: 'Test' + shell: bash + working-directory: kotlin + run: make test + + - name: 'Build and Deploy' + shell: bash + working-directory: kotlin + run: mvn clean package -DskipTests=true -Djni.classifier=${{ matrix.classifier }} -Dcargo-build.profile=release + + - name: 'Upload artifact' + uses: actions/upload-artifact@v3 + with: + name: kcl-lib-${{ matrix.classifier }} + path: | + kotlin/target/classes/native + + build-centos7: + runs-on: ubuntu-latest + container: + image: "kcllang/kcl-java-builder-centos7:0.1.0" + + permissions: + contents: read + packages: write + needs: [ test-and-build ] + env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Download windows x86_64 lib + uses: actions/download-artifact@v3 + with: + name: kcl-lib-windows-x86_64 + path: kotlin/native + + - name: Download linux aarch_64 lib + uses: actions/download-artifact@v3 + with: + name: kcl-lib-linux-aarch_64 + path: kotlin/native + + - name: Download darwin x86_64 lib + uses: actions/download-artifact@v3 + with: + name: kcl-lib-osx-x86_64 + path: kotlin/native + + - name: Download darwin aarch_64 lib + uses: actions/download-artifact@v3 + with: + name: kcl-lib-osx-aarch_64 + path: kotlin/native + + - name: Package Kotlin artifact + working-directory: kotlin + run: | + rustup default stable && mvn package -DskipTests=true -Dcargo-build.profile=release + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: kcl-lib + path: kotlin/target/*.jar + + deploy: + runs-on: ubuntu-latest + + permissions: + contents: read + packages: write + needs: [ test-and-build, build-centos7 ] + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '8' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Download Jar + uses: actions/download-artifact@v3 + with: + name: kcl-lib + path: kotlin/release + + - name: Release to Github Packages + if: "startsWith(github.ref, 'refs/tags/')" + working-directory: kotlin + run: | + JAR_FILE=$(find ./release -name "*.jar" ! -name "*sources.jar") + echo "Deploying $JAR_FILE" + mvn deploy:deploy-file \ + -Dfile=$JAR_FILE \ + -DpomFile=./pom.xml \ + -DrepositoryId=github \ + -Durl=https://maven.pkg.github.com/kcl-lang/lib \ + -s $GITHUB_WORKSPACE/settings.xml + + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/.gitignore b/.gitignore index ca20963..b010176 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ _a.out_*.* **/.DS_Store **/.vscode __pycache__ +build diff --git a/kotlin/Cargo.toml b/kotlin/Cargo.toml new file mode 100644 index 0000000..2efc438 --- /dev/null +++ b/kotlin/Cargo.toml @@ -0,0 +1,23 @@ +[package] +name = "kcl-lib-jni" +publish = false +version = "0.1.0" + +[lib] +crate-type = ["cdylib"] +doc = false + +[dependencies] +jni = "0.21.1" +prost = "0.11.8" +prost-types = "0.11.8" +serde_json = "1" +indexmap = "2.2.5" +anyhow = "1" +serde = { version = "1", features = ["derive"] } +once_cell = "1.19.0" +lazy_static = "1.4.0" + +kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } diff --git a/kotlin/Makefile b/kotlin/Makefile new file mode 100644 index 0000000..8ef7ab4 --- /dev/null +++ b/kotlin/Makefile @@ -0,0 +1,13 @@ +default: build + +build: + mvn clean install -e -DskipTests -Dcargo-build.profile=release + +pkg: + mvn clean package -Dcargo-build.profile=release + +deploy: + mvn clean deploy -Dcargo-build.profile=release + +test: + mvn clean test -Dcargo-build.profile=release diff --git a/kotlin/pom.xml b/kotlin/pom.xml new file mode 100644 index 0000000..a39426a --- /dev/null +++ b/kotlin/pom.xml @@ -0,0 +1,270 @@ + + + 4.0.0 + + com.kcl + kcl-lib-kotlin + 0.10.0-alpha.1-SNAPSHOT + KCL Arifact Library for Kotlin + + KCL is an open-source constraint-based record and functional language mainly + used in configuration and policy scenarios. + + https://kcl-lang.io + + + scm:git:git://github.com/kcl-lang/lib.git + scm:git:ssh://github.com/kcl-lang/lib.git + http://github.com/kcl-lang/lib.git + + + + 1.9.25 + 5.10.0 + 4.27.0 + UTF-8 + 1.8 + 1.8 + + dev + + 3.1.0 + + ${os.detected.classifier} + yyyyMMddHHmmss + ${maven.build.timestamp} + + + + + com.google.protobuf + protobuf-kotlin + ${protobuf.version} + + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + ${kotlin.version} + + + + org.jetbrains.kotlin + kotlin-test + ${kotlin.version} + test + + + + com.fasterxml.jackson.core + jackson-core + 2.13.2 + + + + com.fasterxml.jackson.core + jackson-annotations + 2.13.2 + + + + com.fasterxml.jackson.core + jackson-databind + 2.13.2 + + + org.junit.jupiter + junit-jupiter-engine + ${junit.jupiter.version} + test + + + org.junit.jupiter + junit-jupiter-api + ${junit.jupiter.version} + test + + + + + + kr.motd.maven + os-maven-plugin + 1.7.0 + + + + + native + + + native + native + + + src/main/resources + true + + + + + src/test/resources + true + + + + + exec-maven-plugin + org.codehaus.mojo + ${exec-maven-plugin.version} + + + compile-native-code + compile + + exec + + + python3 + + ${project.basedir}/scripts/build.py + --classifier + ${jni.classifier} + --target + ${cargo-build.target} + --profile + ${cargo-build.profile} + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + default-jar + + + **/*.class + native/** + + + + + + + + org.jetbrains.kotlin + kotlin-maven-plugin + ${kotlin.version} + + + compile + compile + + + src/main/kotlin + + + + + test-compile + test-compile + + + src/test/kotlin + + + + + + 1.8 + + + + org.apache.maven.plugins + maven-jar-plugin + + + + default-jar + + + **/*.class + native/** + + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.0.2 + + + attach-sources + + jar + + + + + + org.codehaus.mojo + buildnumber-maven-plugin + 1.4 + + + validate + + create + + + + + false + false + {0,date,yyyyMMddHHmmss} + + + + + + + dev + + true + + + + test + + + env + test + + + + + prod + + + env + prod + + + + + + + github + GitHub Packages + https://maven.pkg.github.com/kcl-lang/lib + + + diff --git a/kotlin/src/lib.rs b/kotlin/src/lib.rs new file mode 100644 index 0000000..3ec04e6 --- /dev/null +++ b/kotlin/src/lib.rs @@ -0,0 +1,141 @@ +extern crate anyhow; +extern crate jni; +extern crate kclvm_api; +extern crate kclvm_parser; +extern crate kclvm_sema; +extern crate lazy_static; +extern crate once_cell; +extern crate prost; + +use anyhow::Result; +use jni::objects::{GlobalRef, JByteArray, JClass, JObject, JString}; +use jni::sys::jbyteArray; +use jni::JNIEnv; +use jni::JavaVM; +use kclvm_api::call_with_plugin_agent; +use kclvm_api::gpyrpc::LoadPackageArgs; +use kclvm_api::service::KclvmServiceImpl; +use kclvm_parser::KCLModuleCache; +use kclvm_sema::resolver::scope::KCLScopeCache; +use lazy_static::lazy_static; +use once_cell::sync::OnceCell; +use prost::Message; +use std::ffi::{CStr, CString}; +use std::os::raw::c_char; +use std::sync::Mutex; + +lazy_static! { + static ref JVM: Mutex> = Mutex::new(None); + static ref CALLBACK_OBJ: Mutex> = Mutex::new(None); + static ref MODULE_CACHE: Mutex> = Mutex::new(OnceCell::new()); + static ref SCOPE_CACHE: Mutex> = Mutex::new(OnceCell::new()); +} + +#[no_mangle] +pub extern "system" fn Java_com_kcl_api_API_callNative( + mut env: JNIEnv, + _: JClass, + name: JByteArray, + args: JByteArray, +) -> jbyteArray { + intern_call_native_with_plugin(&mut env, name, args).unwrap_or_else(|e| { + let _ = throw(&mut env, e); + JObject::default().into_raw() + }) +} + +#[no_mangle] +pub extern "system" fn Java_com_kcl_api_API_registerPluginContext(env: JNIEnv, obj: JObject) { + let jvm = env.get_java_vm().unwrap(); + *JVM.lock().unwrap() = Some(jvm); + let global_ref = env.new_global_ref(obj).unwrap(); + *CALLBACK_OBJ.lock().unwrap() = Some(global_ref); +} + +#[no_mangle] +pub extern "system" fn Java_com_kcl_api_API_loadPackageWithCache( + mut env: JNIEnv, + _: JClass, + args: JByteArray, +) -> jbyteArray { + intern_load_package_with_cache(&mut env, args).unwrap_or_else(|e| { + let _ = throw(&mut env, e); + JObject::default().into_raw() + }) +} + +fn intern_call_native_with_plugin( + env: &mut JNIEnv, + name: JByteArray, + args: JByteArray, +) -> Result { + let name = env.convert_byte_array(name)?; + let args = env.convert_byte_array(args)?; + let result = call_with_plugin_agent(&name, &args, plugin_agent as u64)?; + let j_byte_array = env.byte_array_from_slice(&result)?; + Ok(j_byte_array.into_raw()) +} + +/// This is a stateful API, so we avoid serialization overhead and directly use JVM +/// to instantiate global variables here. +fn intern_load_package_with_cache(env: &mut JNIEnv, args: JByteArray) -> Result { + // AST module cache + let binding = MODULE_CACHE.lock().unwrap(); + let module_cache = binding.get_or_init(|| KCLModuleCache::default()); + // Resolver scope cache + let binding = SCOPE_CACHE.lock().unwrap(); + let scope_cache = binding.get_or_init(|| KCLScopeCache::default()); + // Load package arguments from protobuf bytes. + let args = env.convert_byte_array(args)?; + let args: LoadPackageArgs = ::decode(args.as_ref())?; + let svc = KclvmServiceImpl::default(); + // Call load package API and decode the result to protobuf bytes. + let packages = svc.load_package_with_cache(&args, module_cache.clone(), scope_cache.clone())?; + let j_byte_array = env.byte_array_from_slice(&packages.encode_to_vec())?; + Ok(j_byte_array.into_raw()) +} + +#[no_mangle] +extern "C" fn plugin_agent( + method: *const c_char, + args: *const c_char, + kwargs: *const c_char, +) -> *const c_char { + let jvm = JVM.lock().unwrap(); + let jvm = jvm.as_ref().unwrap(); + let mut env = jvm.attach_current_thread().unwrap(); + + let callback_obj = CALLBACK_OBJ.lock().unwrap(); + let callback_obj = callback_obj.as_ref().unwrap(); + + let method = unsafe { + env.new_string(CStr::from_ptr(method).to_string_lossy().into_owned()) + .expect("Failed to create Java string") + }; + let args = unsafe { + env.new_string(CStr::from_ptr(args).to_string_lossy().into_owned()) + .expect("Failed to create Java string") + }; + let kwargs = unsafe { + env.new_string(CStr::from_ptr(kwargs).to_string_lossy().into_owned()) + .expect("Failed to create Java string") + }; + let params = &[(&method).into(), (&args).into(), (&kwargs).into()]; + let result = env + .call_method( + callback_obj, + "callMethod", + "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", + params, + ) + .unwrap(); + let result: JString = result.l().unwrap().into(); + let result: String = env.get_string(&result).unwrap().into(); + CString::new(result) + .expect("Failed to create CString") + .into_raw() +} + +fn throw(env: &mut JNIEnv, error: anyhow::Error) -> jni::errors::Result<()> { + env.throw(("java/lang/Exception", error.to_string())) +} diff --git a/kotlin/src/main/java/com/kcl/api/API.java b/kotlin/src/main/java/com/kcl/api/API.java new file mode 100644 index 0000000..a0bae6e --- /dev/null +++ b/kotlin/src/main/java/com/kcl/api/API.java @@ -0,0 +1,681 @@ +package com.kcl.api; + +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.UncheckedIOException; +import java.util.Map; +import java.nio.file.Files; +import java.nio.file.StandardCopyOption; + +import com.kcl.api.Spec.*; +import com.kcl.plugin.MethodFunction; +import com.kcl.plugin.PluginContext; + +public class API implements Service { + static String LIB_NAME = "kcl_lib_jni"; + static String ERROR_PREFIX = "ERROR:"; + static { + loadLibrary(); + } + + private static void loadLibrary() { + // Load the dynamic library (the .dll, .so, or .dylib file) + try { + doLoadLibrary(); + } catch (IOException e) { + throw new UncheckedIOException("Unable to load the KCL shared library", e); + } + } + + private static void doLoadLibrary() throws IOException { + try { + // try dynamic library - the search path can be configured via "-Djava.library.path" + System.loadLibrary(LIB_NAME); + return; + } catch (UnsatisfiedLinkError ignore) { + // ignore - try to find native libraries from class path + } + doLoadBundledLibrary(); + } + + private static void doLoadBundledLibrary() throws IOException { + final String libraryPath = bundledLibraryPath(); + try (final InputStream is = API.class.getResourceAsStream(libraryPath)) { + if (is == null) { + throw new IOException("cannot find " + libraryPath); + } + final int dot = libraryPath.indexOf('.'); + final File tmpFile = File.createTempFile(libraryPath.substring(0, dot), libraryPath.substring(dot)); + tmpFile.deleteOnExit(); + Files.copy(is, tmpFile.toPath(), StandardCopyOption.REPLACE_EXISTING); + System.load(tmpFile.getAbsolutePath()); + } + } + + private static String bundledLibraryPath() { + final String classifier = Environment.getClassifier(); + final String libraryName = System.mapLibraryName(LIB_NAME); + return "/native/" + classifier + "/" + libraryName; + } + + private native byte[] callNative(byte[] call, byte[] args); + + private native byte[] loadPackageWithCache(byte[] args); + + private native void registerPluginContext(PluginContext ctx); + + private static PluginContext pluginContext = new PluginContext(); + private static byte[] buffer = new byte[1024]; + + public static void registerPlugin(String name, Map 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 internalGetMutableScopes() { + if (scopes_ == null) { + scopes_ = new com.google.protobuf.MapFieldBuilder<>(scopesConverter); + } + bitField0_ |= 0x00000010; + onChanged(); + return scopes_; + } + + public int getScopesCount() { + return internalGetScopes().ensureBuilderMap().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().ensureBuilderMap().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().getImmutableMap(); + } + + /** + *
+             * 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 = internalGetMutableScopes() + .ensureBuilderMap(); + return map.containsKey(key) ? scopesConverter.build(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 = internalGetMutableScopes() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return scopesConverter.build(map.get(key)); + } + + public Builder clearScopes() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableScopes().clear(); + return this; + } + + /** + *
+             * Map of scopes with scope index as key.
+             * 
+ * + * map<string, .com.kcl.api.Scope> scopes = 5; + */ + public Builder removeScopes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableScopes().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableScopes() { + bitField0_ |= 0x00000010; + return internalGetMutableScopes().ensureMessageMap(); + } + + /** + *
+             * Map of scopes with scope index as key.
+             * 
+ * + * map<string, .com.kcl.api.Scope> scopes = 5; + */ + public Builder putScopes(java.lang.String key, com.kcl.api.Spec.Scope value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableScopes().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + *
+             * Map of scopes with scope index as key.
+             * 
+ * + * map<string, .com.kcl.api.Scope> scopes = 5; + */ + public Builder putAllScopes(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableScopes().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + /** + *
+             * Map of scopes with scope index as key.
+             * 
+ * + * map<string, .com.kcl.api.Scope> scopes = 5; + */ + public com.kcl.api.Spec.Scope.Builder putScopesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableScopes() + .ensureBuilderMap(); + com.kcl.api.Spec.ScopeOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.Scope.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.Scope) { + entry = ((com.kcl.api.Spec.Scope) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.Scope.Builder) entry; + } + + private static final class SymbolsConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.Symbol build(com.kcl.api.Spec.SymbolOrBuilder val) { + if (val instanceof com.kcl.api.Spec.Symbol) { + return (com.kcl.api.Spec.Symbol) val; + } + return ((com.kcl.api.Spec.Symbol.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return SymbolsDefaultEntryHolder.defaultEntry; + } + }; + + private static final SymbolsConverter symbolsConverter = new SymbolsConverter(); + + private com.google.protobuf.MapFieldBuilder symbols_; + + private com.google.protobuf.MapFieldBuilder internalGetSymbols() { + if (symbols_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(symbolsConverter); + } + return symbols_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutableSymbols() { + if (symbols_ == null) { + symbols_ = new com.google.protobuf.MapFieldBuilder<>(symbolsConverter); + } + bitField0_ |= 0x00000020; + onChanged(); + return symbols_; + } + + public int getSymbolsCount() { + return internalGetSymbols().ensureBuilderMap().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().ensureBuilderMap().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().getImmutableMap(); + } + + /** + *
+             * 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 = internalGetMutableSymbols() + .ensureBuilderMap(); + return map.containsKey(key) ? symbolsConverter.build(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 = internalGetMutableSymbols() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return symbolsConverter.build(map.get(key)); + } + + public Builder clearSymbols() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableSymbols().clear(); + return this; + } + + /** + *
+             * Map of symbols with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.Symbol> symbols = 6; + */ + public Builder removeSymbols(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSymbols().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableSymbols() { + bitField0_ |= 0x00000020; + return internalGetMutableSymbols().ensureMessageMap(); + } + + /** + *
+             * Map of symbols with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.Symbol> symbols = 6; + */ + public Builder putSymbols(java.lang.String key, com.kcl.api.Spec.Symbol value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableSymbols().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + *
+             * Map of symbols with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.Symbol> symbols = 6; + */ + public Builder putAllSymbols(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableSymbols().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + /** + *
+             * Map of symbols with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.Symbol> symbols = 6; + */ + public com.kcl.api.Spec.Symbol.Builder putSymbolsBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableSymbols() + .ensureBuilderMap(); + com.kcl.api.Spec.SymbolOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.Symbol.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.Symbol) { + entry = ((com.kcl.api.Spec.Symbol) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.Symbol.Builder) entry; + } + + private static final class NodeSymbolMapConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex build(com.kcl.api.Spec.SymbolIndexOrBuilder val) { + if (val instanceof com.kcl.api.Spec.SymbolIndex) { + return (com.kcl.api.Spec.SymbolIndex) val; + } + return ((com.kcl.api.Spec.SymbolIndex.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return NodeSymbolMapDefaultEntryHolder.defaultEntry; + } + }; + + private static final NodeSymbolMapConverter nodeSymbolMapConverter = new NodeSymbolMapConverter(); + + private com.google.protobuf.MapFieldBuilder nodeSymbolMap_; + + private com.google.protobuf.MapFieldBuilder internalGetNodeSymbolMap() { + if (nodeSymbolMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(nodeSymbolMapConverter); + } + return nodeSymbolMap_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutableNodeSymbolMap() { + if (nodeSymbolMap_ == null) { + nodeSymbolMap_ = new com.google.protobuf.MapFieldBuilder<>(nodeSymbolMapConverter); + } + bitField0_ |= 0x00000040; + onChanged(); + return nodeSymbolMap_; + } + + public int getNodeSymbolMapCount() { + return internalGetNodeSymbolMap().ensureBuilderMap().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().ensureBuilderMap().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().getImmutableMap(); + } + + /** + *
+             * 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 = internalGetMutableNodeSymbolMap() + .ensureBuilderMap(); + return map.containsKey(key) ? nodeSymbolMapConverter.build(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 = internalGetMutableNodeSymbolMap() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return nodeSymbolMapConverter.build(map.get(key)); + } + + public Builder clearNodeSymbolMap() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableNodeSymbolMap().clear(); + return this; + } + + /** + *
+             * Map of node-symbol associations with AST index UUID as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7; + */ + public Builder removeNodeSymbolMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableNodeSymbolMap().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableNodeSymbolMap() { + bitField0_ |= 0x00000040; + return internalGetMutableNodeSymbolMap().ensureMessageMap(); + } + + /** + *
+             * Map of node-symbol associations with AST index UUID as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7; + */ + public Builder putNodeSymbolMap(java.lang.String key, com.kcl.api.Spec.SymbolIndex value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableNodeSymbolMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + *
+             * Map of node-symbol associations with AST index UUID as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7; + */ + public Builder putAllNodeSymbolMap(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableNodeSymbolMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + /** + *
+             * Map of node-symbol associations with AST index UUID as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> node_symbol_map = 7; + */ + public com.kcl.api.Spec.SymbolIndex.Builder putNodeSymbolMapBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableNodeSymbolMap() + .ensureBuilderMap(); + com.kcl.api.Spec.SymbolIndexOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.SymbolIndex.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.SymbolIndex) { + entry = ((com.kcl.api.Spec.SymbolIndex) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.SymbolIndex.Builder) entry; + } + + 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_; + } + + private com.google.protobuf.MapField internalGetMutableSymbolNodeMap() { + if (symbolNodeMap_ == null) { + symbolNodeMap_ = com.google.protobuf.MapField + .newMapField(SymbolNodeMapDefaultEntryHolder.defaultEntry); + } + if (!symbolNodeMap_.isMutable()) { + symbolNodeMap_ = symbolNodeMap_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + 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 Builder clearSymbolNodeMap() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableSymbolNodeMap().getMutableMap().clear(); + return this; + } + + /** + *
+             * Map of symbol-node associations with symbol index as key.
+             * 
+ * + * map<string, string> symbol_node_map = 8; + */ + public Builder removeSymbolNodeMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSymbolNodeMap().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableSymbolNodeMap() { + bitField0_ |= 0x00000080; + return internalGetMutableSymbolNodeMap().getMutableMap(); + } + + /** + *
+             * Map of symbol-node associations with symbol index as key.
+             * 
+ * + * map<string, string> symbol_node_map = 8; + */ + public Builder putSymbolNodeMap(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableSymbolNodeMap().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + *
+             * Map of symbol-node associations with symbol index as key.
+             * 
+ * + * map<string, string> symbol_node_map = 8; + */ + public Builder putAllSymbolNodeMap(java.util.Map values) { + internalGetMutableSymbolNodeMap().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private static final class FullyQualifiedNameMapConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex build(com.kcl.api.Spec.SymbolIndexOrBuilder val) { + if (val instanceof com.kcl.api.Spec.SymbolIndex) { + return (com.kcl.api.Spec.SymbolIndex) val; + } + return ((com.kcl.api.Spec.SymbolIndex.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return FullyQualifiedNameMapDefaultEntryHolder.defaultEntry; + } + }; + + private static final FullyQualifiedNameMapConverter fullyQualifiedNameMapConverter = new FullyQualifiedNameMapConverter(); + + private com.google.protobuf.MapFieldBuilder fullyQualifiedNameMap_; + + private com.google.protobuf.MapFieldBuilder internalGetFullyQualifiedNameMap() { + if (fullyQualifiedNameMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(fullyQualifiedNameMapConverter); + } + return fullyQualifiedNameMap_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutableFullyQualifiedNameMap() { + if (fullyQualifiedNameMap_ == null) { + fullyQualifiedNameMap_ = new com.google.protobuf.MapFieldBuilder<>(fullyQualifiedNameMapConverter); + } + bitField0_ |= 0x00000100; + onChanged(); + return fullyQualifiedNameMap_; + } + + public int getFullyQualifiedNameMapCount() { + return internalGetFullyQualifiedNameMap().ensureBuilderMap().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().ensureBuilderMap().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().getImmutableMap(); + } + + /** + *
+             * 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 = internalGetMutableFullyQualifiedNameMap() + .ensureBuilderMap(); + return map.containsKey(key) ? fullyQualifiedNameMapConverter.build(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 = internalGetMutableFullyQualifiedNameMap() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return fullyQualifiedNameMapConverter.build(map.get(key)); + } + + public Builder clearFullyQualifiedNameMap() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableFullyQualifiedNameMap().clear(); + return this; + } + + /** + *
+             * Map of fully qualified names with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9; + */ + public Builder removeFullyQualifiedNameMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFullyQualifiedNameMap().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableFullyQualifiedNameMap() { + bitField0_ |= 0x00000100; + return internalGetMutableFullyQualifiedNameMap().ensureMessageMap(); + } + + /** + *
+             * Map of fully qualified names with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9; + */ + public Builder putFullyQualifiedNameMap(java.lang.String key, com.kcl.api.Spec.SymbolIndex value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFullyQualifiedNameMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + *
+             * Map of fully qualified names with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9; + */ + public Builder putAllFullyQualifiedNameMap( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableFullyQualifiedNameMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + /** + *
+             * Map of fully qualified names with symbol index as key.
+             * 
+ * + * map<string, .com.kcl.api.SymbolIndex> fully_qualified_name_map = 9; + */ + public com.kcl.api.Spec.SymbolIndex.Builder putFullyQualifiedNameMapBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableFullyQualifiedNameMap() + .ensureBuilderMap(); + com.kcl.api.Spec.SymbolIndexOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.SymbolIndex.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.SymbolIndex) { + entry = ((com.kcl.api.Spec.SymbolIndex) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.SymbolIndex.Builder) entry; + } + + private static final class PkgScopeMapConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.ScopeIndex build(com.kcl.api.Spec.ScopeIndexOrBuilder val) { + if (val instanceof com.kcl.api.Spec.ScopeIndex) { + return (com.kcl.api.Spec.ScopeIndex) val; + } + return ((com.kcl.api.Spec.ScopeIndex.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return PkgScopeMapDefaultEntryHolder.defaultEntry; + } + }; + + private static final PkgScopeMapConverter pkgScopeMapConverter = new PkgScopeMapConverter(); + + private com.google.protobuf.MapFieldBuilder pkgScopeMap_; + + private com.google.protobuf.MapFieldBuilder internalGetPkgScopeMap() { + if (pkgScopeMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(pkgScopeMapConverter); + } + return pkgScopeMap_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutablePkgScopeMap() { + if (pkgScopeMap_ == null) { + pkgScopeMap_ = new com.google.protobuf.MapFieldBuilder<>(pkgScopeMapConverter); + } + bitField0_ |= 0x00000200; + onChanged(); + return pkgScopeMap_; + } + + public int getPkgScopeMapCount() { + return internalGetPkgScopeMap().ensureBuilderMap().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().ensureBuilderMap().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().getImmutableMap(); + } + + /** + *
+             * 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 = internalGetMutablePkgScopeMap() + .ensureBuilderMap(); + return map.containsKey(key) ? pkgScopeMapConverter.build(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 = internalGetMutablePkgScopeMap() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return pkgScopeMapConverter.build(map.get(key)); + } + + public Builder clearPkgScopeMap() { + bitField0_ = (bitField0_ & ~0x00000200); + internalGetMutablePkgScopeMap().clear(); + return this; + } + + /** + *
+             * Map of package scope with package path as key.
+             * 
+ * + * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10; + */ + public Builder removePkgScopeMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutablePkgScopeMap().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutablePkgScopeMap() { + bitField0_ |= 0x00000200; + return internalGetMutablePkgScopeMap().ensureMessageMap(); + } + + /** + *
+             * Map of package scope with package path as key.
+             * 
+ * + * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10; + */ + public Builder putPkgScopeMap(java.lang.String key, com.kcl.api.Spec.ScopeIndex value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutablePkgScopeMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000200; + return this; + } + + /** + *
+             * Map of package scope with package path as key.
+             * 
+ * + * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10; + */ + public Builder putAllPkgScopeMap(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutablePkgScopeMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000200; + return this; + } + + /** + *
+             * Map of package scope with package path as key.
+             * 
+ * + * map<string, .com.kcl.api.ScopeIndex> pkg_scope_map = 10; + */ + public com.kcl.api.Spec.ScopeIndex.Builder putPkgScopeMapBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutablePkgScopeMap() + .ensureBuilderMap(); + com.kcl.api.Spec.ScopeIndexOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.ScopeIndex.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.ScopeIndex) { + entry = ((com.kcl.api.Spec.ScopeIndex) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.ScopeIndex.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.LoadPackage_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.LoadPackage_Result) + private static final com.kcl.api.Spec.LoadPackage_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.LoadPackage_Result(); + } + + public static com.kcl.api.Spec.LoadPackage_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadPackage_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.LoadPackage_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOptions_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ListOptions_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + java.util.List getOptionsList(); + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + com.kcl.api.Spec.OptionHelp getOptions(int index); + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + int getOptionsCount(); + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + java.util.List getOptionsOrBuilderList(); + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + com.kcl.api.Spec.OptionHelpOrBuilder getOptionsOrBuilder(int index); + } + + /** + *
+     * Message for list options response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ListOptions_Result} + */ + public static final class ListOptions_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ListOptions_Result) + ListOptions_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= */ "", ListOptions_Result.class.getName()); + } + + // Use ListOptions_Result.newBuilder() to construct. + private ListOptions_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListOptions_Result() { + options_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListOptions_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListOptions_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListOptions_Result.class, + com.kcl.api.Spec.ListOptions_Result.Builder.class); + } + + public static final int OPTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List options_; + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + @java.lang.Override + public java.util.List getOptionsList() { + return options_; + } + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + @java.lang.Override + public java.util.List getOptionsOrBuilderList() { + return options_; + } + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + @java.lang.Override + public int getOptionsCount() { + return options_.size(); + } + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.OptionHelp getOptions(int index) { + return options_.get(index); + } + + /** + *
+         * List of available options.
+         * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.OptionHelpOrBuilder getOptionsOrBuilder(int index) { + return options_.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 < options_.size(); i++) { + output.writeMessage(2, options_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < options_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, options_.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.ListOptions_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.ListOptions_Result other = (com.kcl.api.Spec.ListOptions_Result) obj; + + if (!getOptionsList().equals(other.getOptionsList())) + 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 (getOptionsCount() > 0) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ListOptions_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListOptions_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.ListOptions_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListOptions_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.ListOptions_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListOptions_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.ListOptions_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListOptions_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.ListOptions_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListOptions_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.ListOptions_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.ListOptions_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.ListOptions_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 options response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ListOptions_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ListOptions_Result) + com.kcl.api.Spec.ListOptions_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListOptions_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListOptions_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListOptions_Result.class, + com.kcl.api.Spec.ListOptions_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.ListOptions_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (optionsBuilder_ == null) { + options_ = java.util.Collections.emptyList(); + } else { + options_ = null; + optionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListOptions_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ListOptions_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.ListOptions_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ListOptions_Result build() { + com.kcl.api.Spec.ListOptions_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ListOptions_Result buildPartial() { + com.kcl.api.Spec.ListOptions_Result result = new com.kcl.api.Spec.ListOptions_Result(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.ListOptions_Result result) { + if (optionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + options_ = java.util.Collections.unmodifiableList(options_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.ListOptions_Result result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ListOptions_Result) { + return mergeFrom((com.kcl.api.Spec.ListOptions_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ListOptions_Result other) { + if (other == com.kcl.api.Spec.ListOptions_Result.getDefaultInstance()) + return this; + if (optionsBuilder_ == null) { + if (!other.options_.isEmpty()) { + if (options_.isEmpty()) { + options_ = other.options_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOptionsIsMutable(); + options_.addAll(other.options_); + } + onChanged(); + } + } else { + if (!other.options_.isEmpty()) { + if (optionsBuilder_.isEmpty()) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + options_ = other.options_; + bitField0_ = (bitField0_ & ~0x00000001); + optionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getOptionsFieldBuilder() : null; + } else { + optionsBuilder_.addAllMessages(other.options_); + } + } + } + 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 18: { + com.kcl.api.Spec.OptionHelp m = input.readMessage(com.kcl.api.Spec.OptionHelp.parser(), + extensionRegistry); + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.add(m); + } else { + optionsBuilder_.addMessage(m); + } + 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.util.List options_ = java.util.Collections.emptyList(); + + private void ensureOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + options_ = new java.util.ArrayList(options_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder optionsBuilder_; + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public java.util.List getOptionsList() { + if (optionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(options_); + } else { + return optionsBuilder_.getMessageList(); + } + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public int getOptionsCount() { + if (optionsBuilder_ == null) { + return options_.size(); + } else { + return optionsBuilder_.getCount(); + } + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public com.kcl.api.Spec.OptionHelp getOptions(int index) { + if (optionsBuilder_ == null) { + return options_.get(index); + } else { + return optionsBuilder_.getMessage(index); + } + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder setOptions(int index, com.kcl.api.Spec.OptionHelp value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.set(index, value); + onChanged(); + } else { + optionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder setOptions(int index, com.kcl.api.Spec.OptionHelp.Builder builderForValue) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.set(index, builderForValue.build()); + onChanged(); + } else { + optionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder addOptions(com.kcl.api.Spec.OptionHelp value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.add(value); + onChanged(); + } else { + optionsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder addOptions(int index, com.kcl.api.Spec.OptionHelp value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOptionsIsMutable(); + options_.add(index, value); + onChanged(); + } else { + optionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder addOptions(com.kcl.api.Spec.OptionHelp.Builder builderForValue) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.add(builderForValue.build()); + onChanged(); + } else { + optionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder addOptions(int index, com.kcl.api.Spec.OptionHelp.Builder builderForValue) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.add(index, builderForValue.build()); + onChanged(); + } else { + optionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder addAllOptions(java.lang.Iterable values) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, options_); + onChanged(); + } else { + optionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + optionsBuilder_.clear(); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public Builder removeOptions(int index) { + if (optionsBuilder_ == null) { + ensureOptionsIsMutable(); + options_.remove(index); + onChanged(); + } else { + optionsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public com.kcl.api.Spec.OptionHelp.Builder getOptionsBuilder(int index) { + return getOptionsFieldBuilder().getBuilder(index); + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public com.kcl.api.Spec.OptionHelpOrBuilder getOptionsOrBuilder(int index) { + if (optionsBuilder_ == null) { + return options_.get(index); + } else { + return optionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public java.util.List getOptionsOrBuilderList() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(options_); + } + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public com.kcl.api.Spec.OptionHelp.Builder addOptionsBuilder() { + return getOptionsFieldBuilder().addBuilder(com.kcl.api.Spec.OptionHelp.getDefaultInstance()); + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public com.kcl.api.Spec.OptionHelp.Builder addOptionsBuilder(int index) { + return getOptionsFieldBuilder().addBuilder(index, com.kcl.api.Spec.OptionHelp.getDefaultInstance()); + } + + /** + *
+             * List of available options.
+             * 
+ * + * repeated .com.kcl.api.OptionHelp options = 2; + */ + public java.util.List getOptionsBuilderList() { + return getOptionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + options_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ListOptions_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ListOptions_Result) + private static final com.kcl.api.Spec.ListOptions_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ListOptions_Result(); + } + + public static com.kcl.api.Spec.ListOptions_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOptions_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.ListOptions_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OptionHelpOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.OptionHelp) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Name of the option.
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + *
+         * Name of the option.
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + *
+         * Type of the option.
+         * 
+ * + * string type = 2; + * + * @return The type. + */ + java.lang.String getType(); + + /** + *
+         * Type of the option.
+         * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + *
+         * Flag indicating if the option is required.
+         * 
+ * + * bool required = 3; + * + * @return The required. + */ + boolean getRequired(); + + /** + *
+         * Default value of the option.
+         * 
+ * + * string default_value = 4; + * + * @return The defaultValue. + */ + java.lang.String getDefaultValue(); + + /** + *
+         * Default value of the option.
+         * 
+ * + * string default_value = 4; + * + * @return The bytes for defaultValue. + */ + com.google.protobuf.ByteString getDefaultValueBytes(); + + /** + *
+         * Help text for the option.
+         * 
+ * + * string help = 5; + * + * @return The help. + */ + java.lang.String getHelp(); + + /** + *
+         * Help text for the option.
+         * 
+ * + * string help = 5; + * + * @return The bytes for help. + */ + com.google.protobuf.ByteString getHelpBytes(); + } + + /** + *
+     * Message representing a help option.
+     * 
+ * + * Protobuf type {@code com.kcl.api.OptionHelp} + */ + public static final class OptionHelp extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.OptionHelp) + OptionHelpOrBuilder { + 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= */ "", OptionHelp.class.getName()); + } + + // Use OptionHelp.newBuilder() to construct. + private OptionHelp(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OptionHelp() { + name_ = ""; + type_ = ""; + defaultValue_ = ""; + help_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OptionHelp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OptionHelp_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.OptionHelp.class, + com.kcl.api.Spec.OptionHelp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + *
+         * Name of the option.
+         * 
+ * + * 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 option.
+         * 
+ * + * 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 TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + *
+         * Type of the option.
+         * 
+ * + * string type = 2; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + + /** + *
+         * Type of the option.
+         * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + private boolean required_ = false; + + /** + *
+         * Flag indicating if the option is required.
+         * 
+ * + * bool required = 3; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + public static final int DEFAULT_VALUE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object defaultValue_ = ""; + + /** + *
+         * Default value of the option.
+         * 
+ * + * string default_value = 4; + * + * @return The defaultValue. + */ + @java.lang.Override + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + 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(); + defaultValue_ = s; + return s; + } + } + + /** + *
+         * Default value of the option.
+         * 
+ * + * string default_value = 4; + * + * @return The bytes for defaultValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HELP_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object help_ = ""; + + /** + *
+         * Help text for the option.
+         * 
+ * + * string help = 5; + * + * @return The help. + */ + @java.lang.Override + public java.lang.String getHelp() { + java.lang.Object ref = help_; + 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(); + help_ = s; + return s; + } + } + + /** + *
+         * Help text for the option.
+         * 
+ * + * string help = 5; + * + * @return The bytes for help. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHelpBytes() { + java.lang.Object ref = help_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + help_ = 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(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, type_); + } + if (required_ != false) { + output.writeBool(3, required_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, defaultValue_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(help_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, help_); + } + 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(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, type_); + } + if (required_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, defaultValue_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(help_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, help_); + } + 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.OptionHelp)) { + return super.equals(obj); + } + com.kcl.api.Spec.OptionHelp other = (com.kcl.api.Spec.OptionHelp) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getType().equals(other.getType())) + return false; + if (getRequired() != other.getRequired()) + return false; + if (!getDefaultValue().equals(other.getDefaultValue())) + return false; + if (!getHelp().equals(other.getHelp())) + 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); + hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultValue().hashCode(); + hash = (37 * hash) + HELP_FIELD_NUMBER; + hash = (53 * hash) + getHelp().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.OptionHelp parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OptionHelp 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.OptionHelp parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OptionHelp 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.OptionHelp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OptionHelp parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.OptionHelp parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.OptionHelp 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.OptionHelp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.OptionHelp 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.OptionHelp parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.OptionHelp 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.OptionHelp 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 help option.
+         * 
+ * + * Protobuf type {@code com.kcl.api.OptionHelp} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.OptionHelp) + com.kcl.api.Spec.OptionHelpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OptionHelp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OptionHelp_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.OptionHelp.class, + com.kcl.api.Spec.OptionHelp.Builder.class); + } + + // Construct using com.kcl.api.Spec.OptionHelp.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + required_ = false; + defaultValue_ = ""; + help_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OptionHelp_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.OptionHelp getDefaultInstanceForType() { + return com.kcl.api.Spec.OptionHelp.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.OptionHelp build() { + com.kcl.api.Spec.OptionHelp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.OptionHelp buildPartial() { + com.kcl.api.Spec.OptionHelp result = new com.kcl.api.Spec.OptionHelp(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.OptionHelp result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.required_ = required_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultValue_ = defaultValue_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.help_ = help_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.OptionHelp) { + return mergeFrom((com.kcl.api.Spec.OptionHelp) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.OptionHelp other) { + if (other == com.kcl.api.Spec.OptionHelp.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getRequired() != false) { + setRequired(other.getRequired()); + } + if (!other.getDefaultValue().isEmpty()) { + defaultValue_ = other.defaultValue_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getHelp().isEmpty()) { + help_ = other.help_; + bitField0_ |= 0x00000010; + 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: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + required_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + defaultValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + help_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 option.
+             * 
+ * + * 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 option.
+             * 
+ * + * 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 option.
+             * 
+ * + * 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 option.
+             * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Name of the option.
+             * 
+ * + * 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 type_ = ""; + + /** + *
+             * Type of the option.
+             * 
+ * + * string type = 2; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Type of the option.
+             * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Type of the option.
+             * 
+ * + * string type = 2; + * + * @param value + * The type to set. + * + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Type of the option.
+             * 
+ * + * string type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Type of the option.
+             * 
+ * + * string type = 2; + * + * @param value + * The bytes for type to set. + * + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean required_; + + /** + *
+             * Flag indicating if the option is required.
+             * 
+ * + * bool required = 3; + * + * @return The required. + */ + @java.lang.Override + public boolean getRequired() { + return required_; + } + + /** + *
+             * Flag indicating if the option is required.
+             * 
+ * + * bool required = 3; + * + * @param value + * The required to set. + * + * @return This builder for chaining. + */ + public Builder setRequired(boolean value) { + + required_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Flag indicating if the option is required.
+             * 
+ * + * bool required = 3; + * + * @return This builder for chaining. + */ + public Builder clearRequired() { + bitField0_ = (bitField0_ & ~0x00000004); + required_ = false; + onChanged(); + return this; + } + + private java.lang.Object defaultValue_ = ""; + + /** + *
+             * Default value of the option.
+             * 
+ * + * string default_value = 4; + * + * @return The defaultValue. + */ + public java.lang.String getDefaultValue() { + java.lang.Object ref = defaultValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Default value of the option.
+             * 
+ * + * string default_value = 4; + * + * @return The bytes for defaultValue. + */ + public com.google.protobuf.ByteString getDefaultValueBytes() { + java.lang.Object ref = defaultValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + defaultValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Default value of the option.
+             * 
+ * + * string default_value = 4; + * + * @param value + * The defaultValue to set. + * + * @return This builder for chaining. + */ + public Builder setDefaultValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultValue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Default value of the option.
+             * 
+ * + * string default_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultValue() { + defaultValue_ = getDefaultInstance().getDefaultValue(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + *
+             * Default value of the option.
+             * 
+ * + * string default_value = 4; + * + * @param value + * The bytes for defaultValue to set. + * + * @return This builder for chaining. + */ + public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultValue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object help_ = ""; + + /** + *
+             * Help text for the option.
+             * 
+ * + * string help = 5; + * + * @return The help. + */ + public java.lang.String getHelp() { + java.lang.Object ref = help_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + help_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Help text for the option.
+             * 
+ * + * string help = 5; + * + * @return The bytes for help. + */ + public com.google.protobuf.ByteString getHelpBytes() { + java.lang.Object ref = help_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + help_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Help text for the option.
+             * 
+ * + * string help = 5; + * + * @param value + * The help to set. + * + * @return This builder for chaining. + */ + public Builder setHelp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + help_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + *
+             * Help text for the option.
+             * 
+ * + * string help = 5; + * + * @return This builder for chaining. + */ + public Builder clearHelp() { + help_ = getDefaultInstance().getHelp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + *
+             * Help text for the option.
+             * 
+ * + * string help = 5; + * + * @param value + * The bytes for help to set. + * + * @return This builder for chaining. + */ + public Builder setHelpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + help_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.OptionHelp) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.OptionHelp) + private static final com.kcl.api.Spec.OptionHelp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.OptionHelp(); + } + + public static com.kcl.api.Spec.OptionHelp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptionHelp 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.OptionHelp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SymbolOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Symbol) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Type of the symbol.
+         * 
+ * + * .com.kcl.api.KclType ty = 1; + * + * @return Whether the ty field is set. + */ + boolean hasTy(); + + /** + *
+         * Type of the symbol.
+         * 
+ * + * .com.kcl.api.KclType ty = 1; + * + * @return The ty. + */ + com.kcl.api.Spec.KclType getTy(); + + /** + *
+         * Type of the symbol.
+         * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + com.kcl.api.Spec.KclTypeOrBuilder getTyOrBuilder(); + + /** + *
+         * Name of the symbol.
+         * 
+ * + * string name = 2; + * + * @return The name. + */ + java.lang.String getName(); + + /** + *
+         * Name of the symbol.
+         * 
+ * + * string name = 2; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + *
+         * Owner of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return Whether the owner field is set. + */ + boolean hasOwner(); + + /** + *
+         * Owner of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return The owner. + */ + com.kcl.api.Spec.SymbolIndex getOwner(); + + /** + *
+         * Owner of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + com.kcl.api.Spec.SymbolIndexOrBuilder getOwnerOrBuilder(); + + /** + *
+         * Definition of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + * + * @return Whether the def field is set. + */ + boolean hasDef(); + + /** + *
+         * Definition of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + * + * @return The def. + */ + com.kcl.api.Spec.SymbolIndex getDef(); + + /** + *
+         * Definition of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + com.kcl.api.Spec.SymbolIndexOrBuilder getDefOrBuilder(); + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + java.util.List getAttrsList(); + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + com.kcl.api.Spec.SymbolIndex getAttrs(int index); + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + int getAttrsCount(); + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + java.util.List getAttrsOrBuilderList(); + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + com.kcl.api.Spec.SymbolIndexOrBuilder getAttrsOrBuilder(int index); + + /** + *
+         * Flag indicating if the symbol is global.
+         * 
+ * + * bool is_global = 6; + * + * @return The isGlobal. + */ + boolean getIsGlobal(); + } + + /** + *
+     * Message representing a symbol in KCL.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Symbol} + */ + public static final class Symbol extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Symbol) + SymbolOrBuilder { + 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= */ "", Symbol.class.getName()); + } + + // Use Symbol.newBuilder() to construct. + private Symbol(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Symbol() { + name_ = ""; + attrs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Symbol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Symbol_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Symbol.class, + com.kcl.api.Spec.Symbol.Builder.class); + } + + private int bitField0_; + public static final int TY_FIELD_NUMBER = 1; + private com.kcl.api.Spec.KclType ty_; + + /** + *
+         * Type of the symbol.
+         * 
+ * + * .com.kcl.api.KclType ty = 1; + * + * @return Whether the ty field is set. + */ + @java.lang.Override + public boolean hasTy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Type of the symbol.
+         * 
+ * + * .com.kcl.api.KclType ty = 1; + * + * @return The ty. + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getTy() { + return ty_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : ty_; + } + + /** + *
+         * Type of the symbol.
+         * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.KclTypeOrBuilder getTyOrBuilder() { + return ty_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : ty_; + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + *
+         * Name of the symbol.
+         * 
+ * + * string name = 2; + * + * @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 symbol.
+         * 
+ * + * string name = 2; + * + * @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 OWNER_FIELD_NUMBER = 3; + private com.kcl.api.Spec.SymbolIndex owner_; + + /** + *
+         * Owner of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return Whether the owner field is set. + */ + @java.lang.Override + public boolean hasOwner() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + *
+         * Owner of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return The owner. + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex getOwner() { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } + + /** + *
+         * Owner of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndexOrBuilder getOwnerOrBuilder() { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } + + public static final int DEF_FIELD_NUMBER = 4; + private com.kcl.api.Spec.SymbolIndex def_; + + /** + *
+         * Definition of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + * + * @return Whether the def field is set. + */ + @java.lang.Override + public boolean hasDef() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + *
+         * Definition of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + * + * @return The def. + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex getDef() { + return def_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : def_; + } + + /** + *
+         * Definition of the symbol.
+         * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndexOrBuilder getDefOrBuilder() { + return def_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : def_; + } + + public static final int ATTRS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List attrs_; + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + @java.lang.Override + public java.util.List getAttrsList() { + return attrs_; + } + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + @java.lang.Override + public java.util.List getAttrsOrBuilderList() { + return attrs_; + } + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + @java.lang.Override + public int getAttrsCount() { + return attrs_.size(); + } + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex getAttrs(int index) { + return attrs_.get(index); + } + + /** + *
+         * Attributes of the symbol.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndexOrBuilder getAttrsOrBuilder(int index) { + return attrs_.get(index); + } + + public static final int IS_GLOBAL_FIELD_NUMBER = 6; + private boolean isGlobal_ = false; + + /** + *
+         * Flag indicating if the symbol is global.
+         * 
+ * + * bool is_global = 6; + * + * @return The isGlobal. + */ + @java.lang.Override + public boolean getIsGlobal() { + return isGlobal_; + } + + 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, getTy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOwner()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getDef()); + } + for (int i = 0; i < attrs_.size(); i++) { + output.writeMessage(5, attrs_.get(i)); + } + if (isGlobal_ != false) { + output.writeBool(6, isGlobal_); + } + 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, getTy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOwner()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDef()); + } + for (int i = 0; i < attrs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, attrs_.get(i)); + } + if (isGlobal_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isGlobal_); + } + 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.Symbol)) { + return super.equals(obj); + } + com.kcl.api.Spec.Symbol other = (com.kcl.api.Spec.Symbol) obj; + + if (hasTy() != other.hasTy()) + return false; + if (hasTy()) { + if (!getTy().equals(other.getTy())) + return false; + } + if (!getName().equals(other.getName())) + return false; + if (hasOwner() != other.hasOwner()) + return false; + if (hasOwner()) { + if (!getOwner().equals(other.getOwner())) + return false; + } + if (hasDef() != other.hasDef()) + return false; + if (hasDef()) { + if (!getDef().equals(other.getDef())) + return false; + } + if (!getAttrsList().equals(other.getAttrsList())) + return false; + if (getIsGlobal() != other.getIsGlobal()) + 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 (hasTy()) { + hash = (37 * hash) + TY_FIELD_NUMBER; + hash = (53 * hash) + getTy().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOwner()) { + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + } + if (hasDef()) { + hash = (37 * hash) + DEF_FIELD_NUMBER; + hash = (53 * hash) + getDef().hashCode(); + } + if (getAttrsCount() > 0) { + hash = (37 * hash) + ATTRS_FIELD_NUMBER; + hash = (53 * hash) + getAttrsList().hashCode(); + } + hash = (37 * hash) + IS_GLOBAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsGlobal()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Symbol parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Symbol 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.Symbol parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Symbol 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.Symbol parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Symbol parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.Symbol parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Symbol 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.Symbol parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Symbol 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.Symbol parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Symbol 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.Symbol 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 symbol in KCL.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Symbol} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Symbol) + com.kcl.api.Spec.SymbolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Symbol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Symbol_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Symbol.class, + com.kcl.api.Spec.Symbol.Builder.class); + } + + // Construct using com.kcl.api.Spec.Symbol.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getTyFieldBuilder(); + getOwnerFieldBuilder(); + getDefFieldBuilder(); + getAttrsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ty_ = null; + if (tyBuilder_ != null) { + tyBuilder_.dispose(); + tyBuilder_ = null; + } + name_ = ""; + owner_ = null; + if (ownerBuilder_ != null) { + ownerBuilder_.dispose(); + ownerBuilder_ = null; + } + def_ = null; + if (defBuilder_ != null) { + defBuilder_.dispose(); + defBuilder_ = null; + } + if (attrsBuilder_ == null) { + attrs_ = java.util.Collections.emptyList(); + } else { + attrs_ = null; + attrsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + isGlobal_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Symbol_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Symbol getDefaultInstanceForType() { + return com.kcl.api.Spec.Symbol.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Symbol build() { + com.kcl.api.Spec.Symbol result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Symbol buildPartial() { + com.kcl.api.Spec.Symbol result = new com.kcl.api.Spec.Symbol(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.Symbol result) { + if (attrsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + attrs_ = java.util.Collections.unmodifiableList(attrs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.attrs_ = attrs_; + } else { + result.attrs_ = attrsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.Symbol result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ty_ = tyBuilder_ == null ? ty_ : tyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.def_ = defBuilder_ == null ? def_ : defBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isGlobal_ = isGlobal_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Symbol) { + return mergeFrom((com.kcl.api.Spec.Symbol) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Symbol other) { + if (other == com.kcl.api.Spec.Symbol.getDefaultInstance()) + return this; + if (other.hasTy()) { + mergeTy(other.getTy()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOwner()) { + mergeOwner(other.getOwner()); + } + if (other.hasDef()) { + mergeDef(other.getDef()); + } + if (attrsBuilder_ == null) { + if (!other.attrs_.isEmpty()) { + if (attrs_.isEmpty()) { + attrs_ = other.attrs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureAttrsIsMutable(); + attrs_.addAll(other.attrs_); + } + onChanged(); + } + } else { + if (!other.attrs_.isEmpty()) { + if (attrsBuilder_.isEmpty()) { + attrsBuilder_.dispose(); + attrsBuilder_ = null; + attrs_ = other.attrs_; + bitField0_ = (bitField0_ & ~0x00000010); + attrsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getAttrsFieldBuilder() : null; + } else { + attrsBuilder_.addAllMessages(other.attrs_); + } + } + } + if (other.getIsGlobal() != false) { + setIsGlobal(other.getIsGlobal()); + } + 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(getTyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage(getOwnerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage(getDefFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.kcl.api.Spec.SymbolIndex m = input.readMessage(com.kcl.api.Spec.SymbolIndex.parser(), + extensionRegistry); + if (attrsBuilder_ == null) { + ensureAttrsIsMutable(); + attrs_.add(m); + } else { + attrsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: { + isGlobal_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + 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.KclType ty_; + private com.google.protobuf.SingleFieldBuilder tyBuilder_; + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + * + * @return Whether the ty field is set. + */ + public boolean hasTy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + * + * @return The ty. + */ + public com.kcl.api.Spec.KclType getTy() { + if (tyBuilder_ == null) { + return ty_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : ty_; + } else { + return tyBuilder_.getMessage(); + } + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + public Builder setTy(com.kcl.api.Spec.KclType value) { + if (tyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ty_ = value; + } else { + tyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + public Builder setTy(com.kcl.api.Spec.KclType.Builder builderForValue) { + if (tyBuilder_ == null) { + ty_ = builderForValue.build(); + } else { + tyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + public Builder mergeTy(com.kcl.api.Spec.KclType value) { + if (tyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && ty_ != null + && ty_ != com.kcl.api.Spec.KclType.getDefaultInstance()) { + getTyBuilder().mergeFrom(value); + } else { + ty_ = value; + } + } else { + tyBuilder_.mergeFrom(value); + } + if (ty_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + public Builder clearTy() { + bitField0_ = (bitField0_ & ~0x00000001); + ty_ = null; + if (tyBuilder_ != null) { + tyBuilder_.dispose(); + tyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + public com.kcl.api.Spec.KclType.Builder getTyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTyFieldBuilder().getBuilder(); + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + public com.kcl.api.Spec.KclTypeOrBuilder getTyOrBuilder() { + if (tyBuilder_ != null) { + return tyBuilder_.getMessageOrBuilder(); + } else { + return ty_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : ty_; + } + } + + /** + *
+             * Type of the symbol.
+             * 
+ * + * .com.kcl.api.KclType ty = 1; + */ + private com.google.protobuf.SingleFieldBuilder getTyFieldBuilder() { + if (tyBuilder_ == null) { + tyBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getTy(), getParentForChildren(), isClean()); + ty_ = null; + } + return tyBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + *
+             * Name of the symbol.
+             * 
+ * + * string name = 2; + * + * @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 symbol.
+             * 
+ * + * string name = 2; + * + * @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 symbol.
+             * 
+ * + * string name = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Name of the symbol.
+             * 
+ * + * string name = 2; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Name of the symbol.
+             * 
+ * + * string name = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.kcl.api.Spec.SymbolIndex owner_; + private com.google.protobuf.SingleFieldBuilder ownerBuilder_; + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return Whether the owner field is set. + */ + public boolean hasOwner() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return The owner. + */ + public com.kcl.api.Spec.SymbolIndex getOwner() { + if (ownerBuilder_ == null) { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } else { + return ownerBuilder_.getMessage(); + } + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder setOwner(com.kcl.api.Spec.SymbolIndex value) { + if (ownerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + owner_ = value; + } else { + ownerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder setOwner(com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (ownerBuilder_ == null) { + owner_ = builderForValue.build(); + } else { + ownerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder mergeOwner(com.kcl.api.Spec.SymbolIndex value) { + if (ownerBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && owner_ != null + && owner_ != com.kcl.api.Spec.SymbolIndex.getDefaultInstance()) { + getOwnerBuilder().mergeFrom(value); + } else { + owner_ = value; + } + } else { + ownerBuilder_.mergeFrom(value); + } + if (owner_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder clearOwner() { + bitField0_ = (bitField0_ & ~0x00000004); + owner_ = null; + if (ownerBuilder_ != null) { + ownerBuilder_.dispose(); + ownerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public com.kcl.api.Spec.SymbolIndex.Builder getOwnerBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOwnerFieldBuilder().getBuilder(); + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public com.kcl.api.Spec.SymbolIndexOrBuilder getOwnerOrBuilder() { + if (ownerBuilder_ != null) { + return ownerBuilder_.getMessageOrBuilder(); + } else { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } + } + + /** + *
+             * Owner of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + private com.google.protobuf.SingleFieldBuilder getOwnerFieldBuilder() { + if (ownerBuilder_ == null) { + ownerBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getOwner(), getParentForChildren(), isClean()); + owner_ = null; + } + return ownerBuilder_; + } + + private com.kcl.api.Spec.SymbolIndex def_; + private com.google.protobuf.SingleFieldBuilder defBuilder_; + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + * + * @return Whether the def field is set. + */ + public boolean hasDef() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + * + * @return The def. + */ + public com.kcl.api.Spec.SymbolIndex getDef() { + if (defBuilder_ == null) { + return def_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : def_; + } else { + return defBuilder_.getMessage(); + } + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + public Builder setDef(com.kcl.api.Spec.SymbolIndex value) { + if (defBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + def_ = value; + } else { + defBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + public Builder setDef(com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (defBuilder_ == null) { + def_ = builderForValue.build(); + } else { + defBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + public Builder mergeDef(com.kcl.api.Spec.SymbolIndex value) { + if (defBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && def_ != null + && def_ != com.kcl.api.Spec.SymbolIndex.getDefaultInstance()) { + getDefBuilder().mergeFrom(value); + } else { + def_ = value; + } + } else { + defBuilder_.mergeFrom(value); + } + if (def_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + public Builder clearDef() { + bitField0_ = (bitField0_ & ~0x00000008); + def_ = null; + if (defBuilder_ != null) { + defBuilder_.dispose(); + defBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + public com.kcl.api.Spec.SymbolIndex.Builder getDefBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDefFieldBuilder().getBuilder(); + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + public com.kcl.api.Spec.SymbolIndexOrBuilder getDefOrBuilder() { + if (defBuilder_ != null) { + return defBuilder_.getMessageOrBuilder(); + } else { + return def_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : def_; + } + } + + /** + *
+             * Definition of the symbol.
+             * 
+ * + * .com.kcl.api.SymbolIndex def = 4; + */ + private com.google.protobuf.SingleFieldBuilder getDefFieldBuilder() { + if (defBuilder_ == null) { + defBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getDef(), getParentForChildren(), isClean()); + def_ = null; + } + return defBuilder_; + } + + private java.util.List attrs_ = java.util.Collections.emptyList(); + + private void ensureAttrsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + attrs_ = new java.util.ArrayList(attrs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder attrsBuilder_; + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public java.util.List getAttrsList() { + if (attrsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attrs_); + } else { + return attrsBuilder_.getMessageList(); + } + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public int getAttrsCount() { + if (attrsBuilder_ == null) { + return attrs_.size(); + } else { + return attrsBuilder_.getCount(); + } + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public com.kcl.api.Spec.SymbolIndex getAttrs(int index) { + if (attrsBuilder_ == null) { + return attrs_.get(index); + } else { + return attrsBuilder_.getMessage(index); + } + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder setAttrs(int index, com.kcl.api.Spec.SymbolIndex value) { + if (attrsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrsIsMutable(); + attrs_.set(index, value); + onChanged(); + } else { + attrsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder setAttrs(int index, com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (attrsBuilder_ == null) { + ensureAttrsIsMutable(); + attrs_.set(index, builderForValue.build()); + onChanged(); + } else { + attrsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder addAttrs(com.kcl.api.Spec.SymbolIndex value) { + if (attrsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrsIsMutable(); + attrs_.add(value); + onChanged(); + } else { + attrsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder addAttrs(int index, com.kcl.api.Spec.SymbolIndex value) { + if (attrsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttrsIsMutable(); + attrs_.add(index, value); + onChanged(); + } else { + attrsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder addAttrs(com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (attrsBuilder_ == null) { + ensureAttrsIsMutable(); + attrs_.add(builderForValue.build()); + onChanged(); + } else { + attrsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder addAttrs(int index, com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (attrsBuilder_ == null) { + ensureAttrsIsMutable(); + attrs_.add(index, builderForValue.build()); + onChanged(); + } else { + attrsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder addAllAttrs(java.lang.Iterable values) { + if (attrsBuilder_ == null) { + ensureAttrsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attrs_); + onChanged(); + } else { + attrsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder clearAttrs() { + if (attrsBuilder_ == null) { + attrs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + attrsBuilder_.clear(); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public Builder removeAttrs(int index) { + if (attrsBuilder_ == null) { + ensureAttrsIsMutable(); + attrs_.remove(index); + onChanged(); + } else { + attrsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public com.kcl.api.Spec.SymbolIndex.Builder getAttrsBuilder(int index) { + return getAttrsFieldBuilder().getBuilder(index); + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public com.kcl.api.Spec.SymbolIndexOrBuilder getAttrsOrBuilder(int index) { + if (attrsBuilder_ == null) { + return attrs_.get(index); + } else { + return attrsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public java.util.List getAttrsOrBuilderList() { + if (attrsBuilder_ != null) { + return attrsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attrs_); + } + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public com.kcl.api.Spec.SymbolIndex.Builder addAttrsBuilder() { + return getAttrsFieldBuilder().addBuilder(com.kcl.api.Spec.SymbolIndex.getDefaultInstance()); + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public com.kcl.api.Spec.SymbolIndex.Builder addAttrsBuilder(int index) { + return getAttrsFieldBuilder().addBuilder(index, com.kcl.api.Spec.SymbolIndex.getDefaultInstance()); + } + + /** + *
+             * Attributes of the symbol.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex attrs = 5; + */ + public java.util.List getAttrsBuilderList() { + return getAttrsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getAttrsFieldBuilder() { + if (attrsBuilder_ == null) { + attrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + attrs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + attrs_ = null; + } + return attrsBuilder_; + } + + private boolean isGlobal_; + + /** + *
+             * Flag indicating if the symbol is global.
+             * 
+ * + * bool is_global = 6; + * + * @return The isGlobal. + */ + @java.lang.Override + public boolean getIsGlobal() { + return isGlobal_; + } + + /** + *
+             * Flag indicating if the symbol is global.
+             * 
+ * + * bool is_global = 6; + * + * @param value + * The isGlobal to set. + * + * @return This builder for chaining. + */ + public Builder setIsGlobal(boolean value) { + + isGlobal_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + *
+             * Flag indicating if the symbol is global.
+             * 
+ * + * bool is_global = 6; + * + * @return This builder for chaining. + */ + public Builder clearIsGlobal() { + bitField0_ = (bitField0_ & ~0x00000020); + isGlobal_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Symbol) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Symbol) + private static final com.kcl.api.Spec.Symbol DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Symbol(); + } + + public static com.kcl.api.Spec.Symbol getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Symbol 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.Symbol getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Scope) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 1; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 1; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + + /** + *
+         * Parent scope.
+         * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + * + * @return Whether the parent field is set. + */ + boolean hasParent(); + + /** + *
+         * Parent scope.
+         * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + * + * @return The parent. + */ + com.kcl.api.Spec.ScopeIndex getParent(); + + /** + *
+         * Parent scope.
+         * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + com.kcl.api.Spec.ScopeIndexOrBuilder getParentOrBuilder(); + + /** + *
+         * Owner of the scope.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return Whether the owner field is set. + */ + boolean hasOwner(); + + /** + *
+         * Owner of the scope.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return The owner. + */ + com.kcl.api.Spec.SymbolIndex getOwner(); + + /** + *
+         * Owner of the scope.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + com.kcl.api.Spec.SymbolIndexOrBuilder getOwnerOrBuilder(); + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + java.util.List getChildrenList(); + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + com.kcl.api.Spec.ScopeIndex getChildren(int index); + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + int getChildrenCount(); + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + java.util.List getChildrenOrBuilderList(); + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + com.kcl.api.Spec.ScopeIndexOrBuilder getChildrenOrBuilder(int index); + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + java.util.List getDefsList(); + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + com.kcl.api.Spec.SymbolIndex getDefs(int index); + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + int getDefsCount(); + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + java.util.List getDefsOrBuilderList(); + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + com.kcl.api.Spec.SymbolIndexOrBuilder getDefsOrBuilder(int index); + } + + /** + *
+     * Message representing a scope in KCL.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Scope} + */ + public static final class Scope extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Scope) + ScopeOrBuilder { + 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= */ "", Scope.class.getName()); + } + + // Use Scope.newBuilder() to construct. + private Scope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Scope() { + kind_ = ""; + children_ = java.util.Collections.emptyList(); + defs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Scope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Scope_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Scope.class, + com.kcl.api.Spec.Scope.Builder.class); + } + + private int bitField0_; + public static final int KIND_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 1; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 1; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 2; + private com.kcl.api.Spec.ScopeIndex parent_; + + /** + *
+         * Parent scope.
+         * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + * + * @return Whether the parent field is set. + */ + @java.lang.Override + public boolean hasParent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Parent scope.
+         * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + * + * @return The parent. + */ + @java.lang.Override + public com.kcl.api.Spec.ScopeIndex getParent() { + return parent_ == null ? com.kcl.api.Spec.ScopeIndex.getDefaultInstance() : parent_; + } + + /** + *
+         * Parent scope.
+         * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.ScopeIndexOrBuilder getParentOrBuilder() { + return parent_ == null ? com.kcl.api.Spec.ScopeIndex.getDefaultInstance() : parent_; + } + + public static final int OWNER_FIELD_NUMBER = 3; + private com.kcl.api.Spec.SymbolIndex owner_; + + /** + *
+         * Owner of the scope.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return Whether the owner field is set. + */ + @java.lang.Override + public boolean hasOwner() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + *
+         * Owner of the scope.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return The owner. + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex getOwner() { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } + + /** + *
+         * Owner of the scope.
+         * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndexOrBuilder getOwnerOrBuilder() { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } + + public static final int CHILDREN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List children_; + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + @java.lang.Override + public java.util.List getChildrenList() { + return children_; + } + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + @java.lang.Override + public java.util.List getChildrenOrBuilderList() { + return children_; + } + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + @java.lang.Override + public int getChildrenCount() { + return children_.size(); + } + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + @java.lang.Override + public com.kcl.api.Spec.ScopeIndex getChildren(int index) { + return children_.get(index); + } + + /** + *
+         * Children of the scope.
+         * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + @java.lang.Override + public com.kcl.api.Spec.ScopeIndexOrBuilder getChildrenOrBuilder(int index) { + return children_.get(index); + } + + public static final int DEFS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List defs_; + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + @java.lang.Override + public java.util.List getDefsList() { + return defs_; + } + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + @java.lang.Override + public java.util.List getDefsOrBuilderList() { + return defs_; + } + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + @java.lang.Override + public int getDefsCount() { + return defs_.size(); + } + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex getDefs(int index) { + return defs_.get(index); + } + + /** + *
+         * Definitions in the scope.
+         * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + @java.lang.Override + public com.kcl.api.Spec.SymbolIndexOrBuilder getDefsOrBuilder(int index) { + return defs_.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(kind_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, kind_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getParent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOwner()); + } + for (int i = 0; i < children_.size(); i++) { + output.writeMessage(4, children_.get(i)); + } + for (int i = 0; i < defs_.size(); i++) { + output.writeMessage(5, defs_.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(kind_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, kind_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getParent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOwner()); + } + for (int i = 0; i < children_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, children_.get(i)); + } + for (int i = 0; i < defs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, defs_.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.Scope)) { + return super.equals(obj); + } + com.kcl.api.Spec.Scope other = (com.kcl.api.Spec.Scope) obj; + + if (!getKind().equals(other.getKind())) + return false; + if (hasParent() != other.hasParent()) + return false; + if (hasParent()) { + if (!getParent().equals(other.getParent())) + return false; + } + if (hasOwner() != other.hasOwner()) + return false; + if (hasOwner()) { + if (!getOwner().equals(other.getOwner())) + return false; + } + if (!getChildrenList().equals(other.getChildrenList())) + return false; + if (!getDefsList().equals(other.getDefsList())) + 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) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + if (hasParent()) { + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + } + if (hasOwner()) { + hash = (37 * hash) + OWNER_FIELD_NUMBER; + hash = (53 * hash) + getOwner().hashCode(); + } + if (getChildrenCount() > 0) { + hash = (37 * hash) + CHILDREN_FIELD_NUMBER; + hash = (53 * hash) + getChildrenList().hashCode(); + } + if (getDefsCount() > 0) { + hash = (37 * hash) + DEFS_FIELD_NUMBER; + hash = (53 * hash) + getDefsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Scope parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Scope 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.Scope parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Scope 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.Scope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Scope parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.Scope parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Scope 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.Scope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Scope 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.Scope parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Scope 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.Scope 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 scope in KCL.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Scope} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Scope) + com.kcl.api.Spec.ScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Scope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Scope_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Scope.class, + com.kcl.api.Spec.Scope.Builder.class); + } + + // Construct using com.kcl.api.Spec.Scope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getParentFieldBuilder(); + getOwnerFieldBuilder(); + getChildrenFieldBuilder(); + getDefsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kind_ = ""; + parent_ = null; + if (parentBuilder_ != null) { + parentBuilder_.dispose(); + parentBuilder_ = null; + } + owner_ = null; + if (ownerBuilder_ != null) { + ownerBuilder_.dispose(); + ownerBuilder_ = null; + } + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + } else { + children_ = null; + childrenBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (defsBuilder_ == null) { + defs_ = java.util.Collections.emptyList(); + } else { + defs_ = null; + defsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Scope_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Scope getDefaultInstanceForType() { + return com.kcl.api.Spec.Scope.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Scope build() { + com.kcl.api.Spec.Scope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Scope buildPartial() { + com.kcl.api.Spec.Scope result = new com.kcl.api.Spec.Scope(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.Scope result) { + if (childrenBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + children_ = java.util.Collections.unmodifiableList(children_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.children_ = children_; + } else { + result.children_ = childrenBuilder_.build(); + } + if (defsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + defs_ = java.util.Collections.unmodifiableList(defs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.defs_ = defs_; + } else { + result.defs_ = defsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.Scope result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kind_ = kind_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parentBuilder_ == null ? parent_ : parentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Scope) { + return mergeFrom((com.kcl.api.Spec.Scope) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Scope other) { + if (other == com.kcl.api.Spec.Scope.getDefaultInstance()) + return this; + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasParent()) { + mergeParent(other.getParent()); + } + if (other.hasOwner()) { + mergeOwner(other.getOwner()); + } + if (childrenBuilder_ == null) { + if (!other.children_.isEmpty()) { + if (children_.isEmpty()) { + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChildrenIsMutable(); + children_.addAll(other.children_); + } + onChanged(); + } + } else { + if (!other.children_.isEmpty()) { + if (childrenBuilder_.isEmpty()) { + childrenBuilder_.dispose(); + childrenBuilder_ = null; + children_ = other.children_; + bitField0_ = (bitField0_ & ~0x00000008); + childrenBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getChildrenFieldBuilder() : null; + } else { + childrenBuilder_.addAllMessages(other.children_); + } + } + } + if (defsBuilder_ == null) { + if (!other.defs_.isEmpty()) { + if (defs_.isEmpty()) { + defs_ = other.defs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDefsIsMutable(); + defs_.addAll(other.defs_); + } + onChanged(); + } + } else { + if (!other.defs_.isEmpty()) { + if (defsBuilder_.isEmpty()) { + defsBuilder_.dispose(); + defsBuilder_ = null; + defs_ = other.defs_; + bitField0_ = (bitField0_ & ~0x00000010); + defsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getDefsFieldBuilder() : null; + } else { + defsBuilder_.addAllMessages(other.defs_); + } + } + } + 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: { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage(getParentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage(getOwnerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.kcl.api.Spec.ScopeIndex m = input.readMessage(com.kcl.api.Spec.ScopeIndex.parser(), + extensionRegistry); + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(m); + } else { + childrenBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + com.kcl.api.Spec.SymbolIndex m = input.readMessage(com.kcl.api.Spec.SymbolIndex.parser(), + extensionRegistry); + if (defsBuilder_ == null) { + ensureDefsIsMutable(); + defs_.add(m); + } else { + defsBuilder_.addMessage(m); + } + break; + } // case 42 + 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 kind_ = ""; + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 1; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 1; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 1; + * + * @param value + * The kind to set. + * + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 1; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 1; + * + * @param value + * The bytes for kind to set. + * + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.kcl.api.Spec.ScopeIndex parent_; + private com.google.protobuf.SingleFieldBuilder parentBuilder_; + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + * + * @return Whether the parent field is set. + */ + public boolean hasParent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + * + * @return The parent. + */ + public com.kcl.api.Spec.ScopeIndex getParent() { + if (parentBuilder_ == null) { + return parent_ == null ? com.kcl.api.Spec.ScopeIndex.getDefaultInstance() : parent_; + } else { + return parentBuilder_.getMessage(); + } + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + public Builder setParent(com.kcl.api.Spec.ScopeIndex value) { + if (parentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + } else { + parentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + public Builder setParent(com.kcl.api.Spec.ScopeIndex.Builder builderForValue) { + if (parentBuilder_ == null) { + parent_ = builderForValue.build(); + } else { + parentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + public Builder mergeParent(com.kcl.api.Spec.ScopeIndex value) { + if (parentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && parent_ != null + && parent_ != com.kcl.api.Spec.ScopeIndex.getDefaultInstance()) { + getParentBuilder().mergeFrom(value); + } else { + parent_ = value; + } + } else { + parentBuilder_.mergeFrom(value); + } + if (parent_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + public Builder clearParent() { + bitField0_ = (bitField0_ & ~0x00000002); + parent_ = null; + if (parentBuilder_ != null) { + parentBuilder_.dispose(); + parentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + public com.kcl.api.Spec.ScopeIndex.Builder getParentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getParentFieldBuilder().getBuilder(); + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + public com.kcl.api.Spec.ScopeIndexOrBuilder getParentOrBuilder() { + if (parentBuilder_ != null) { + return parentBuilder_.getMessageOrBuilder(); + } else { + return parent_ == null ? com.kcl.api.Spec.ScopeIndex.getDefaultInstance() : parent_; + } + } + + /** + *
+             * Parent scope.
+             * 
+ * + * .com.kcl.api.ScopeIndex parent = 2; + */ + private com.google.protobuf.SingleFieldBuilder getParentFieldBuilder() { + if (parentBuilder_ == null) { + parentBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getParent(), getParentForChildren(), isClean()); + parent_ = null; + } + return parentBuilder_; + } + + private com.kcl.api.Spec.SymbolIndex owner_; + private com.google.protobuf.SingleFieldBuilder ownerBuilder_; + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return Whether the owner field is set. + */ + public boolean hasOwner() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + * + * @return The owner. + */ + public com.kcl.api.Spec.SymbolIndex getOwner() { + if (ownerBuilder_ == null) { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } else { + return ownerBuilder_.getMessage(); + } + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder setOwner(com.kcl.api.Spec.SymbolIndex value) { + if (ownerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + owner_ = value; + } else { + ownerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder setOwner(com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (ownerBuilder_ == null) { + owner_ = builderForValue.build(); + } else { + ownerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder mergeOwner(com.kcl.api.Spec.SymbolIndex value) { + if (ownerBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && owner_ != null + && owner_ != com.kcl.api.Spec.SymbolIndex.getDefaultInstance()) { + getOwnerBuilder().mergeFrom(value); + } else { + owner_ = value; + } + } else { + ownerBuilder_.mergeFrom(value); + } + if (owner_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public Builder clearOwner() { + bitField0_ = (bitField0_ & ~0x00000004); + owner_ = null; + if (ownerBuilder_ != null) { + ownerBuilder_.dispose(); + ownerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public com.kcl.api.Spec.SymbolIndex.Builder getOwnerBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOwnerFieldBuilder().getBuilder(); + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + public com.kcl.api.Spec.SymbolIndexOrBuilder getOwnerOrBuilder() { + if (ownerBuilder_ != null) { + return ownerBuilder_.getMessageOrBuilder(); + } else { + return owner_ == null ? com.kcl.api.Spec.SymbolIndex.getDefaultInstance() : owner_; + } + } + + /** + *
+             * Owner of the scope.
+             * 
+ * + * .com.kcl.api.SymbolIndex owner = 3; + */ + private com.google.protobuf.SingleFieldBuilder getOwnerFieldBuilder() { + if (ownerBuilder_ == null) { + ownerBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getOwner(), getParentForChildren(), isClean()); + owner_ = null; + } + return ownerBuilder_; + } + + private java.util.List children_ = java.util.Collections.emptyList(); + + private void ensureChildrenIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + children_ = new java.util.ArrayList(children_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder childrenBuilder_; + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public java.util.List getChildrenList() { + if (childrenBuilder_ == null) { + return java.util.Collections.unmodifiableList(children_); + } else { + return childrenBuilder_.getMessageList(); + } + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public int getChildrenCount() { + if (childrenBuilder_ == null) { + return children_.size(); + } else { + return childrenBuilder_.getCount(); + } + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public com.kcl.api.Spec.ScopeIndex getChildren(int index) { + if (childrenBuilder_ == null) { + return children_.get(index); + } else { + return childrenBuilder_.getMessage(index); + } + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder setChildren(int index, com.kcl.api.Spec.ScopeIndex value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.set(index, value); + onChanged(); + } else { + childrenBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder setChildren(int index, com.kcl.api.Spec.ScopeIndex.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.set(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder addChildren(com.kcl.api.Spec.ScopeIndex value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(value); + onChanged(); + } else { + childrenBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder addChildren(int index, com.kcl.api.Spec.ScopeIndex value) { + if (childrenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChildrenIsMutable(); + children_.add(index, value); + onChanged(); + } else { + childrenBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder addChildren(com.kcl.api.Spec.ScopeIndex.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder addChildren(int index, com.kcl.api.Spec.ScopeIndex.Builder builderForValue) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.add(index, builderForValue.build()); + onChanged(); + } else { + childrenBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder addAllChildren(java.lang.Iterable values) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, children_); + onChanged(); + } else { + childrenBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder clearChildren() { + if (childrenBuilder_ == null) { + children_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + childrenBuilder_.clear(); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public Builder removeChildren(int index) { + if (childrenBuilder_ == null) { + ensureChildrenIsMutable(); + children_.remove(index); + onChanged(); + } else { + childrenBuilder_.remove(index); + } + return this; + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public com.kcl.api.Spec.ScopeIndex.Builder getChildrenBuilder(int index) { + return getChildrenFieldBuilder().getBuilder(index); + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public com.kcl.api.Spec.ScopeIndexOrBuilder getChildrenOrBuilder(int index) { + if (childrenBuilder_ == null) { + return children_.get(index); + } else { + return childrenBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public java.util.List getChildrenOrBuilderList() { + if (childrenBuilder_ != null) { + return childrenBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(children_); + } + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public com.kcl.api.Spec.ScopeIndex.Builder addChildrenBuilder() { + return getChildrenFieldBuilder().addBuilder(com.kcl.api.Spec.ScopeIndex.getDefaultInstance()); + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public com.kcl.api.Spec.ScopeIndex.Builder addChildrenBuilder(int index) { + return getChildrenFieldBuilder().addBuilder(index, com.kcl.api.Spec.ScopeIndex.getDefaultInstance()); + } + + /** + *
+             * Children of the scope.
+             * 
+ * + * repeated .com.kcl.api.ScopeIndex children = 4; + */ + public java.util.List getChildrenBuilderList() { + return getChildrenFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getChildrenFieldBuilder() { + if (childrenBuilder_ == null) { + childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + children_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + children_ = null; + } + return childrenBuilder_; + } + + private java.util.List defs_ = java.util.Collections.emptyList(); + + private void ensureDefsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + defs_ = new java.util.ArrayList(defs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder defsBuilder_; + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public java.util.List getDefsList() { + if (defsBuilder_ == null) { + return java.util.Collections.unmodifiableList(defs_); + } else { + return defsBuilder_.getMessageList(); + } + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public int getDefsCount() { + if (defsBuilder_ == null) { + return defs_.size(); + } else { + return defsBuilder_.getCount(); + } + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public com.kcl.api.Spec.SymbolIndex getDefs(int index) { + if (defsBuilder_ == null) { + return defs_.get(index); + } else { + return defsBuilder_.getMessage(index); + } + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder setDefs(int index, com.kcl.api.Spec.SymbolIndex value) { + if (defsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDefsIsMutable(); + defs_.set(index, value); + onChanged(); + } else { + defsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder setDefs(int index, com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (defsBuilder_ == null) { + ensureDefsIsMutable(); + defs_.set(index, builderForValue.build()); + onChanged(); + } else { + defsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder addDefs(com.kcl.api.Spec.SymbolIndex value) { + if (defsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDefsIsMutable(); + defs_.add(value); + onChanged(); + } else { + defsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder addDefs(int index, com.kcl.api.Spec.SymbolIndex value) { + if (defsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDefsIsMutable(); + defs_.add(index, value); + onChanged(); + } else { + defsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder addDefs(com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (defsBuilder_ == null) { + ensureDefsIsMutable(); + defs_.add(builderForValue.build()); + onChanged(); + } else { + defsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder addDefs(int index, com.kcl.api.Spec.SymbolIndex.Builder builderForValue) { + if (defsBuilder_ == null) { + ensureDefsIsMutable(); + defs_.add(index, builderForValue.build()); + onChanged(); + } else { + defsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder addAllDefs(java.lang.Iterable values) { + if (defsBuilder_ == null) { + ensureDefsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, defs_); + onChanged(); + } else { + defsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder clearDefs() { + if (defsBuilder_ == null) { + defs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + defsBuilder_.clear(); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public Builder removeDefs(int index) { + if (defsBuilder_ == null) { + ensureDefsIsMutable(); + defs_.remove(index); + onChanged(); + } else { + defsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public com.kcl.api.Spec.SymbolIndex.Builder getDefsBuilder(int index) { + return getDefsFieldBuilder().getBuilder(index); + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public com.kcl.api.Spec.SymbolIndexOrBuilder getDefsOrBuilder(int index) { + if (defsBuilder_ == null) { + return defs_.get(index); + } else { + return defsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public java.util.List getDefsOrBuilderList() { + if (defsBuilder_ != null) { + return defsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(defs_); + } + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public com.kcl.api.Spec.SymbolIndex.Builder addDefsBuilder() { + return getDefsFieldBuilder().addBuilder(com.kcl.api.Spec.SymbolIndex.getDefaultInstance()); + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public com.kcl.api.Spec.SymbolIndex.Builder addDefsBuilder(int index) { + return getDefsFieldBuilder().addBuilder(index, com.kcl.api.Spec.SymbolIndex.getDefaultInstance()); + } + + /** + *
+             * Definitions in the scope.
+             * 
+ * + * repeated .com.kcl.api.SymbolIndex defs = 5; + */ + public java.util.List getDefsBuilderList() { + return getDefsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getDefsFieldBuilder() { + if (defsBuilder_ == null) { + defsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + defs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + defs_ = null; + } + return defsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Scope) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Scope) + private static final com.kcl.api.Spec.Scope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Scope(); + } + + public static com.kcl.api.Spec.Scope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scope 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.Scope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SymbolIndexOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.SymbolIndex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Index identifier.
+         * 
+ * + * uint64 i = 1; + * + * @return The i. + */ + long getI(); + + /** + *
+         * Global identifier.
+         * 
+ * + * uint64 g = 2; + * + * @return The g. + */ + long getG(); + + /** + *
+         * Type of the symbol or scope.
+         * 
+ * + * string kind = 3; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + *
+         * Type of the symbol or scope.
+         * 
+ * + * string kind = 3; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + } + + /** + *
+     * Message representing a symbol index.
+     * 
+ * + * Protobuf type {@code com.kcl.api.SymbolIndex} + */ + public static final class SymbolIndex extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.SymbolIndex) + SymbolIndexOrBuilder { + 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= */ "", SymbolIndex.class.getName()); + } + + // Use SymbolIndex.newBuilder() to construct. + private SymbolIndex(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SymbolIndex() { + kind_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_SymbolIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_SymbolIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.SymbolIndex.class, + com.kcl.api.Spec.SymbolIndex.Builder.class); + } + + public static final int I_FIELD_NUMBER = 1; + private long i_ = 0L; + + /** + *
+         * Index identifier.
+         * 
+ * + * uint64 i = 1; + * + * @return The i. + */ + @java.lang.Override + public long getI() { + return i_; + } + + public static final int G_FIELD_NUMBER = 2; + private long g_ = 0L; + + /** + *
+         * Global identifier.
+         * 
+ * + * uint64 g = 2; + * + * @return The g. + */ + @java.lang.Override + public long getG() { + return g_; + } + + public static final int KIND_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + *
+         * Type of the symbol or scope.
+         * 
+ * + * string kind = 3; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + *
+         * Type of the symbol or scope.
+         * 
+ * + * string kind = 3; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = 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 (i_ != 0L) { + output.writeUInt64(1, i_); + } + if (g_ != 0L) { + output.writeUInt64(2, g_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kind_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (i_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, i_); + } + if (g_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, g_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kind_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, kind_); + } + 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.SymbolIndex)) { + return super.equals(obj); + } + com.kcl.api.Spec.SymbolIndex other = (com.kcl.api.Spec.SymbolIndex) obj; + + if (getI() != other.getI()) + return false; + if (getG() != other.getG()) + return false; + if (!getKind().equals(other.getKind())) + 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) + I_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getI()); + hash = (37 * hash) + G_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getG()); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.SymbolIndex parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.SymbolIndex 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.SymbolIndex parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.SymbolIndex 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.SymbolIndex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.SymbolIndex parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.SymbolIndex parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.SymbolIndex 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.SymbolIndex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.SymbolIndex 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.SymbolIndex parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.SymbolIndex 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.SymbolIndex 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 symbol index.
+         * 
+ * + * Protobuf type {@code com.kcl.api.SymbolIndex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.SymbolIndex) + com.kcl.api.Spec.SymbolIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_SymbolIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_SymbolIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.SymbolIndex.class, + com.kcl.api.Spec.SymbolIndex.Builder.class); + } + + // Construct using com.kcl.api.Spec.SymbolIndex.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + i_ = 0L; + g_ = 0L; + kind_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_SymbolIndex_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex getDefaultInstanceForType() { + return com.kcl.api.Spec.SymbolIndex.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex build() { + com.kcl.api.Spec.SymbolIndex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.SymbolIndex buildPartial() { + com.kcl.api.Spec.SymbolIndex result = new com.kcl.api.Spec.SymbolIndex(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.SymbolIndex result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.i_ = i_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.g_ = g_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.SymbolIndex) { + return mergeFrom((com.kcl.api.Spec.SymbolIndex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.SymbolIndex other) { + if (other == com.kcl.api.Spec.SymbolIndex.getDefaultInstance()) + return this; + if (other.getI() != 0L) { + setI(other.getI()); + } + if (other.getG() != 0L) { + setG(other.getG()); + } + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + bitField0_ |= 0x00000004; + 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 8: { + i_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + g_ = input.readUInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 long i_; + + /** + *
+             * Index identifier.
+             * 
+ * + * uint64 i = 1; + * + * @return The i. + */ + @java.lang.Override + public long getI() { + return i_; + } + + /** + *
+             * Index identifier.
+             * 
+ * + * uint64 i = 1; + * + * @param value + * The i to set. + * + * @return This builder for chaining. + */ + public Builder setI(long value) { + + i_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Index identifier.
+             * 
+ * + * uint64 i = 1; + * + * @return This builder for chaining. + */ + public Builder clearI() { + bitField0_ = (bitField0_ & ~0x00000001); + i_ = 0L; + onChanged(); + return this; + } + + private long g_; + + /** + *
+             * Global identifier.
+             * 
+ * + * uint64 g = 2; + * + * @return The g. + */ + @java.lang.Override + public long getG() { + return g_; + } + + /** + *
+             * Global identifier.
+             * 
+ * + * uint64 g = 2; + * + * @param value + * The g to set. + * + * @return This builder for chaining. + */ + public Builder setG(long value) { + + g_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Global identifier.
+             * 
+ * + * uint64 g = 2; + * + * @return This builder for chaining. + */ + public Builder clearG() { + bitField0_ = (bitField0_ & ~0x00000002); + g_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + + /** + *
+             * Type of the symbol or scope.
+             * 
+ * + * string kind = 3; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Type of the symbol or scope.
+             * 
+ * + * string kind = 3; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Type of the symbol or scope.
+             * 
+ * + * string kind = 3; + * + * @param value + * The kind to set. + * + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Type of the symbol or scope.
+             * 
+ * + * string kind = 3; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Type of the symbol or scope.
+             * 
+ * + * string kind = 3; + * + * @param value + * The bytes for kind to set. + * + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.SymbolIndex) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.SymbolIndex) + private static final com.kcl.api.Spec.SymbolIndex DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.SymbolIndex(); + } + + public static com.kcl.api.Spec.SymbolIndex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SymbolIndex 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.SymbolIndex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScopeIndexOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ScopeIndex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Index identifier.
+         * 
+ * + * uint64 i = 1; + * + * @return The i. + */ + long getI(); + + /** + *
+         * Global identifier.
+         * 
+ * + * uint64 g = 2; + * + * @return The g. + */ + long getG(); + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 3; + * + * @return The kind. + */ + java.lang.String getKind(); + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 3; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); + } + + /** + *
+     * Message representing a scope index.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ScopeIndex} + */ + public static final class ScopeIndex extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ScopeIndex) + ScopeIndexOrBuilder { + 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= */ "", ScopeIndex.class.getName()); + } + + // Use ScopeIndex.newBuilder() to construct. + private ScopeIndex(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScopeIndex() { + kind_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ScopeIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ScopeIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ScopeIndex.class, + com.kcl.api.Spec.ScopeIndex.Builder.class); + } + + public static final int I_FIELD_NUMBER = 1; + private long i_ = 0L; + + /** + *
+         * Index identifier.
+         * 
+ * + * uint64 i = 1; + * + * @return The i. + */ + @java.lang.Override + public long getI() { + return i_; + } + + public static final int G_FIELD_NUMBER = 2; + private long g_ = 0L; + + /** + *
+         * Global identifier.
+         * 
+ * + * uint64 g = 2; + * + * @return The g. + */ + @java.lang.Override + public long getG() { + return g_; + } + + public static final int KIND_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object kind_ = ""; + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 3; + * + * @return The kind. + */ + @java.lang.Override + public java.lang.String getKind() { + java.lang.Object ref = kind_; + 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(); + kind_ = s; + return s; + } + } + + /** + *
+         * Type of the scope.
+         * 
+ * + * string kind = 3; + * + * @return The bytes for kind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kind_ = 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 (i_ != 0L) { + output.writeUInt64(1, i_); + } + if (g_ != 0L) { + output.writeUInt64(2, g_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kind_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (i_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(1, i_); + } + if (g_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(2, g_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kind_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, kind_); + } + 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.ScopeIndex)) { + return super.equals(obj); + } + com.kcl.api.Spec.ScopeIndex other = (com.kcl.api.Spec.ScopeIndex) obj; + + if (getI() != other.getI()) + return false; + if (getG() != other.getG()) + return false; + if (!getKind().equals(other.getKind())) + 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) + I_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getI()); + hash = (37 * hash) + G_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getG()); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ScopeIndex parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ScopeIndex 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.ScopeIndex parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ScopeIndex 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.ScopeIndex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ScopeIndex parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.ScopeIndex parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ScopeIndex 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.ScopeIndex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ScopeIndex 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.ScopeIndex parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ScopeIndex 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.ScopeIndex 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 scope index.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ScopeIndex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ScopeIndex) + com.kcl.api.Spec.ScopeIndexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ScopeIndex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ScopeIndex_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ScopeIndex.class, + com.kcl.api.Spec.ScopeIndex.Builder.class); + } + + // Construct using com.kcl.api.Spec.ScopeIndex.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + i_ = 0L; + g_ = 0L; + kind_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ScopeIndex_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ScopeIndex getDefaultInstanceForType() { + return com.kcl.api.Spec.ScopeIndex.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ScopeIndex build() { + com.kcl.api.Spec.ScopeIndex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ScopeIndex buildPartial() { + com.kcl.api.Spec.ScopeIndex result = new com.kcl.api.Spec.ScopeIndex(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ScopeIndex result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.i_ = i_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.g_ = g_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ScopeIndex) { + return mergeFrom((com.kcl.api.Spec.ScopeIndex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ScopeIndex other) { + if (other == com.kcl.api.Spec.ScopeIndex.getDefaultInstance()) + return this; + if (other.getI() != 0L) { + setI(other.getI()); + } + if (other.getG() != 0L) { + setG(other.getG()); + } + if (!other.getKind().isEmpty()) { + kind_ = other.kind_; + bitField0_ |= 0x00000004; + 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 8: { + i_ = input.readUInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + g_ = input.readUInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + kind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 long i_; + + /** + *
+             * Index identifier.
+             * 
+ * + * uint64 i = 1; + * + * @return The i. + */ + @java.lang.Override + public long getI() { + return i_; + } + + /** + *
+             * Index identifier.
+             * 
+ * + * uint64 i = 1; + * + * @param value + * The i to set. + * + * @return This builder for chaining. + */ + public Builder setI(long value) { + + i_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Index identifier.
+             * 
+ * + * uint64 i = 1; + * + * @return This builder for chaining. + */ + public Builder clearI() { + bitField0_ = (bitField0_ & ~0x00000001); + i_ = 0L; + onChanged(); + return this; + } + + private long g_; + + /** + *
+             * Global identifier.
+             * 
+ * + * uint64 g = 2; + * + * @return The g. + */ + @java.lang.Override + public long getG() { + return g_; + } + + /** + *
+             * Global identifier.
+             * 
+ * + * uint64 g = 2; + * + * @param value + * The g to set. + * + * @return This builder for chaining. + */ + public Builder setG(long value) { + + g_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Global identifier.
+             * 
+ * + * uint64 g = 2; + * + * @return This builder for chaining. + */ + public Builder clearG() { + bitField0_ = (bitField0_ & ~0x00000002); + g_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object kind_ = ""; + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 3; + * + * @return The kind. + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 3; + * + * @return The bytes for kind. + */ + public com.google.protobuf.ByteString getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 3; + * + * @param value + * The kind to set. + * + * @return This builder for chaining. + */ + public Builder setKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 3; + * + * @return This builder for chaining. + */ + public Builder clearKind() { + kind_ = getDefaultInstance().getKind(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Type of the scope.
+             * 
+ * + * string kind = 3; + * + * @param value + * The bytes for kind to set. + * + * @return This builder for chaining. + */ + public Builder setKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ScopeIndex) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ScopeIndex) + private static final com.kcl.api.Spec.ScopeIndex DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ScopeIndex(); + } + + public static com.kcl.api.Spec.ScopeIndex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScopeIndex 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.ScopeIndex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecProgram_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ExecProgram_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + java.lang.String getWorkDir(); + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + com.google.protobuf.ByteString getWorkDirBytes(); + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @return A list containing the kFilenameList. + */ + java.util.List getKFilenameListList(); + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @return The count of kFilenameList. + */ + int getKFilenameListCount(); + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @param index + * The index of the element to return. + * + * @return The kFilenameList at the given index. + */ + java.lang.String getKFilenameList(int index); + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the kFilenameList at the given index. + */ + com.google.protobuf.ByteString getKFilenameListBytes(int index); + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @return A list containing the kCodeList. + */ + java.util.List getKCodeListList(); + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @return The count of kCodeList. + */ + int getKCodeListCount(); + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @param index + * The index of the element to return. + * + * @return The kCodeList at the given index. + */ + java.lang.String getKCodeList(int index); + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the kCodeList at the given index. + */ + com.google.protobuf.ByteString getKCodeListBytes(int index); + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + java.util.List getArgsList(); + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + com.kcl.api.Spec.Argument getArgs(int index); + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + int getArgsCount(); + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + java.util.List getArgsOrBuilderList(); + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + com.kcl.api.Spec.ArgumentOrBuilder getArgsOrBuilder(int index); + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @return A list containing the overrides. + */ + java.util.List getOverridesList(); + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @return The count of overrides. + */ + int getOverridesCount(); + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @param index + * The index of the element to return. + * + * @return The overrides at the given index. + */ + java.lang.String getOverrides(int index); + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the overrides at the given index. + */ + com.google.protobuf.ByteString getOverridesBytes(int index); + + /** + *
+         * Flag to disable YAML result.
+         * 
+ * + * bool disable_yaml_result = 6; + * + * @return The disableYamlResult. + */ + boolean getDisableYamlResult(); + + /** + *
+         * Flag to print override AST.
+         * 
+ * + * bool print_override_ast = 7; + * + * @return The printOverrideAst. + */ + boolean getPrintOverrideAst(); + + /** + *
+         * Flag for strict range check.
+         * 
+ * + * bool strict_range_check = 8; + * + * @return The strictRangeCheck. + */ + boolean getStrictRangeCheck(); + + /** + *
+         * Flag to disable none values.
+         * 
+ * + * bool disable_none = 9; + * + * @return The disableNone. + */ + boolean getDisableNone(); + + /** + *
+         * Verbose level.
+         * 
+ * + * int32 verbose = 10; + * + * @return The verbose. + */ + int getVerbose(); + + /** + *
+         * Debug level.
+         * 
+ * + * int32 debug = 11; + * + * @return The debug. + */ + int getDebug(); + + /** + *
+         * Flag to sort keys in YAML/JSON results.
+         * 
+ * + * bool sort_keys = 12; + * + * @return The sortKeys. + */ + boolean getSortKeys(); + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + java.util.List getExternalPkgsList(); + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index); + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + int getExternalPkgsCount(); + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + java.util.List getExternalPkgsOrBuilderList(); + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index); + + /** + *
+         * Flag to include schema type path in results.
+         * 
+ * + * bool include_schema_type_path = 14; + * + * @return The includeSchemaTypePath. + */ + boolean getIncludeSchemaTypePath(); + + /** + *
+         * Flag to compile only without execution.
+         * 
+ * + * bool compile_only = 15; + * + * @return The compileOnly. + */ + boolean getCompileOnly(); + + /** + *
+         * Flag to show hidden attributes.
+         * 
+ * + * bool show_hidden = 16; + * + * @return The showHidden. + */ + boolean getShowHidden(); + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @return A list containing the pathSelector. + */ + java.util.List getPathSelectorList(); + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @return The count of pathSelector. + */ + int getPathSelectorCount(); + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @param index + * The index of the element to return. + * + * @return The pathSelector at the given index. + */ + java.lang.String getPathSelector(int index); + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pathSelector at the given index. + */ + com.google.protobuf.ByteString getPathSelectorBytes(int index); + + /** + *
+         * Flag for fast evaluation.
+         * 
+ * + * bool fast_eval = 18; + * + * @return The fastEval. + */ + boolean getFastEval(); + } + + /** + *
+     * Message for execute program request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ExecProgram_Args} + */ + public static final class ExecProgram_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ExecProgram_Args) + ExecProgram_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= */ "", ExecProgram_Args.class.getName()); + } + + // Use ExecProgram_Args.newBuilder() to construct. + private ExecProgram_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecProgram_Args() { + workDir_ = ""; + kFilenameList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + kCodeList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = java.util.Collections.emptyList(); + overrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); + externalPkgs_ = java.util.Collections.emptyList(); + pathSelector_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExecProgram_Args.class, + com.kcl.api.Spec.ExecProgram_Args.Builder.class); + } + + public static final int WORK_DIR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workDir_ = ""; + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + @java.lang.Override + public java.lang.String getWorkDir() { + java.lang.Object ref = workDir_; + 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(); + workDir_ = s; + return s; + } + } + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkDirBytes() { + java.lang.Object ref = workDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int K_FILENAME_LIST_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList kFilenameList_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @return A list containing the kFilenameList. + */ + public com.google.protobuf.ProtocolStringList getKFilenameListList() { + return kFilenameList_; + } + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @return The count of kFilenameList. + */ + public int getKFilenameListCount() { + return kFilenameList_.size(); + } + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @param index + * The index of the element to return. + * + * @return The kFilenameList at the given index. + */ + public java.lang.String getKFilenameList(int index) { + return kFilenameList_.get(index); + } + + /** + *
+         * List of KCL filenames.
+         * 
+ * + * repeated string k_filename_list = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the kFilenameList at the given index. + */ + public com.google.protobuf.ByteString getKFilenameListBytes(int index) { + return kFilenameList_.getByteString(index); + } + + public static final int K_CODE_LIST_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList kCodeList_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @return A list containing the kCodeList. + */ + public com.google.protobuf.ProtocolStringList getKCodeListList() { + return kCodeList_; + } + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @return The count of kCodeList. + */ + public int getKCodeListCount() { + return kCodeList_.size(); + } + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @param index + * The index of the element to return. + * + * @return The kCodeList at the given index. + */ + public java.lang.String getKCodeList(int index) { + return kCodeList_.get(index); + } + + /** + *
+         * List of KCL codes.
+         * 
+ * + * repeated string k_code_list = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the kCodeList at the given index. + */ + public com.google.protobuf.ByteString getKCodeListBytes(int index) { + return kCodeList_.getByteString(index); + } + + public static final int ARGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List args_; + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + @java.lang.Override + public java.util.List getArgsList() { + return args_; + } + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + @java.lang.Override + public java.util.List getArgsOrBuilderList() { + return args_; + } + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + @java.lang.Override + public int getArgsCount() { + return args_.size(); + } + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + @java.lang.Override + public com.kcl.api.Spec.Argument getArgs(int index) { + return args_.get(index); + } + + /** + *
+         * Arguments for the program.
+         * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + @java.lang.Override + public com.kcl.api.Spec.ArgumentOrBuilder getArgsOrBuilder(int index) { + return args_.get(index); + } + + public static final int OVERRIDES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList overrides_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @return A list containing the overrides. + */ + public com.google.protobuf.ProtocolStringList getOverridesList() { + return overrides_; + } + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @return The count of overrides. + */ + public int getOverridesCount() { + return overrides_.size(); + } + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @param index + * The index of the element to return. + * + * @return The overrides at the given index. + */ + public java.lang.String getOverrides(int index) { + return overrides_.get(index); + } + + /** + *
+         * Override configurations.
+         * 
+ * + * repeated string overrides = 5; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the overrides at the given index. + */ + public com.google.protobuf.ByteString getOverridesBytes(int index) { + return overrides_.getByteString(index); + } + + public static final int DISABLE_YAML_RESULT_FIELD_NUMBER = 6; + private boolean disableYamlResult_ = false; + + /** + *
+         * Flag to disable YAML result.
+         * 
+ * + * bool disable_yaml_result = 6; + * + * @return The disableYamlResult. + */ + @java.lang.Override + public boolean getDisableYamlResult() { + return disableYamlResult_; + } + + public static final int PRINT_OVERRIDE_AST_FIELD_NUMBER = 7; + private boolean printOverrideAst_ = false; + + /** + *
+         * Flag to print override AST.
+         * 
+ * + * bool print_override_ast = 7; + * + * @return The printOverrideAst. + */ + @java.lang.Override + public boolean getPrintOverrideAst() { + return printOverrideAst_; + } + + public static final int STRICT_RANGE_CHECK_FIELD_NUMBER = 8; + private boolean strictRangeCheck_ = false; + + /** + *
+         * Flag for strict range check.
+         * 
+ * + * bool strict_range_check = 8; + * + * @return The strictRangeCheck. + */ + @java.lang.Override + public boolean getStrictRangeCheck() { + return strictRangeCheck_; + } + + public static final int DISABLE_NONE_FIELD_NUMBER = 9; + private boolean disableNone_ = false; + + /** + *
+         * Flag to disable none values.
+         * 
+ * + * bool disable_none = 9; + * + * @return The disableNone. + */ + @java.lang.Override + public boolean getDisableNone() { + return disableNone_; + } + + public static final int VERBOSE_FIELD_NUMBER = 10; + private int verbose_ = 0; + + /** + *
+         * Verbose level.
+         * 
+ * + * int32 verbose = 10; + * + * @return The verbose. + */ + @java.lang.Override + public int getVerbose() { + return verbose_; + } + + public static final int DEBUG_FIELD_NUMBER = 11; + private int debug_ = 0; + + /** + *
+         * Debug level.
+         * 
+ * + * int32 debug = 11; + * + * @return The debug. + */ + @java.lang.Override + public int getDebug() { + return debug_; + } + + public static final int SORT_KEYS_FIELD_NUMBER = 12; + private boolean sortKeys_ = false; + + /** + *
+         * Flag to sort keys in YAML/JSON results.
+         * 
+ * + * bool sort_keys = 12; + * + * @return The sortKeys. + */ + @java.lang.Override + public boolean getSortKeys() { + return sortKeys_; + } + + public static final int EXTERNAL_PKGS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private java.util.List externalPkgs_; + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + @java.lang.Override + public java.util.List getExternalPkgsList() { + return externalPkgs_; + } + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + @java.lang.Override + public java.util.List getExternalPkgsOrBuilderList() { + return externalPkgs_; + } + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + @java.lang.Override + public int getExternalPkgsCount() { + return externalPkgs_.size(); + } + + /** + *
+         * External packages path.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + @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 = 13; + */ + @java.lang.Override + public com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index) { + return externalPkgs_.get(index); + } + + public static final int INCLUDE_SCHEMA_TYPE_PATH_FIELD_NUMBER = 14; + private boolean includeSchemaTypePath_ = false; + + /** + *
+         * Flag to include schema type path in results.
+         * 
+ * + * bool include_schema_type_path = 14; + * + * @return The includeSchemaTypePath. + */ + @java.lang.Override + public boolean getIncludeSchemaTypePath() { + return includeSchemaTypePath_; + } + + public static final int COMPILE_ONLY_FIELD_NUMBER = 15; + private boolean compileOnly_ = false; + + /** + *
+         * Flag to compile only without execution.
+         * 
+ * + * bool compile_only = 15; + * + * @return The compileOnly. + */ + @java.lang.Override + public boolean getCompileOnly() { + return compileOnly_; + } + + public static final int SHOW_HIDDEN_FIELD_NUMBER = 16; + private boolean showHidden_ = false; + + /** + *
+         * Flag to show hidden attributes.
+         * 
+ * + * bool show_hidden = 16; + * + * @return The showHidden. + */ + @java.lang.Override + public boolean getShowHidden() { + return showHidden_; + } + + public static final int PATH_SELECTOR_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pathSelector_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @return A list containing the pathSelector. + */ + public com.google.protobuf.ProtocolStringList getPathSelectorList() { + return pathSelector_; + } + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @return The count of pathSelector. + */ + public int getPathSelectorCount() { + return pathSelector_.size(); + } + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @param index + * The index of the element to return. + * + * @return The pathSelector at the given index. + */ + public java.lang.String getPathSelector(int index) { + return pathSelector_.get(index); + } + + /** + *
+         * Path selectors for results.
+         * 
+ * + * repeated string path_selector = 17; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pathSelector at the given index. + */ + public com.google.protobuf.ByteString getPathSelectorBytes(int index) { + return pathSelector_.getByteString(index); + } + + public static final int FAST_EVAL_FIELD_NUMBER = 18; + private boolean fastEval_ = false; + + /** + *
+         * Flag for fast evaluation.
+         * 
+ * + * bool fast_eval = 18; + * + * @return The fastEval. + */ + @java.lang.Override + public boolean getFastEval() { + return fastEval_; + } + + 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(workDir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workDir_); + } + for (int i = 0; i < kFilenameList_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, kFilenameList_.getRaw(i)); + } + for (int i = 0; i < kCodeList_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, kCodeList_.getRaw(i)); + } + for (int i = 0; i < args_.size(); i++) { + output.writeMessage(4, args_.get(i)); + } + for (int i = 0; i < overrides_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, overrides_.getRaw(i)); + } + if (disableYamlResult_ != false) { + output.writeBool(6, disableYamlResult_); + } + if (printOverrideAst_ != false) { + output.writeBool(7, printOverrideAst_); + } + if (strictRangeCheck_ != false) { + output.writeBool(8, strictRangeCheck_); + } + if (disableNone_ != false) { + output.writeBool(9, disableNone_); + } + if (verbose_ != 0) { + output.writeInt32(10, verbose_); + } + if (debug_ != 0) { + output.writeInt32(11, debug_); + } + if (sortKeys_ != false) { + output.writeBool(12, sortKeys_); + } + for (int i = 0; i < externalPkgs_.size(); i++) { + output.writeMessage(13, externalPkgs_.get(i)); + } + if (includeSchemaTypePath_ != false) { + output.writeBool(14, includeSchemaTypePath_); + } + if (compileOnly_ != false) { + output.writeBool(15, compileOnly_); + } + if (showHidden_ != false) { + output.writeBool(16, showHidden_); + } + for (int i = 0; i < pathSelector_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, pathSelector_.getRaw(i)); + } + if (fastEval_ != false) { + output.writeBool(18, fastEval_); + } + 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(workDir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workDir_); + } + { + int dataSize = 0; + for (int i = 0; i < kFilenameList_.size(); i++) { + dataSize += computeStringSizeNoTag(kFilenameList_.getRaw(i)); + } + size += dataSize; + size += 1 * getKFilenameListList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < kCodeList_.size(); i++) { + dataSize += computeStringSizeNoTag(kCodeList_.getRaw(i)); + } + size += dataSize; + size += 1 * getKCodeListList().size(); + } + for (int i = 0; i < args_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, args_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < overrides_.size(); i++) { + dataSize += computeStringSizeNoTag(overrides_.getRaw(i)); + } + size += dataSize; + size += 1 * getOverridesList().size(); + } + if (disableYamlResult_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableYamlResult_); + } + if (printOverrideAst_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, printOverrideAst_); + } + if (strictRangeCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, strictRangeCheck_); + } + if (disableNone_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, disableNone_); + } + if (verbose_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, verbose_); + } + if (debug_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, debug_); + } + if (sortKeys_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, sortKeys_); + } + for (int i = 0; i < externalPkgs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, externalPkgs_.get(i)); + } + if (includeSchemaTypePath_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, includeSchemaTypePath_); + } + if (compileOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, compileOnly_); + } + if (showHidden_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, showHidden_); + } + { + int dataSize = 0; + for (int i = 0; i < pathSelector_.size(); i++) { + dataSize += computeStringSizeNoTag(pathSelector_.getRaw(i)); + } + size += dataSize; + size += 2 * getPathSelectorList().size(); + } + if (fastEval_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, fastEval_); + } + 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.ExecProgram_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.ExecProgram_Args other = (com.kcl.api.Spec.ExecProgram_Args) obj; + + if (!getWorkDir().equals(other.getWorkDir())) + return false; + if (!getKFilenameListList().equals(other.getKFilenameListList())) + return false; + if (!getKCodeListList().equals(other.getKCodeListList())) + return false; + if (!getArgsList().equals(other.getArgsList())) + return false; + if (!getOverridesList().equals(other.getOverridesList())) + return false; + if (getDisableYamlResult() != other.getDisableYamlResult()) + return false; + if (getPrintOverrideAst() != other.getPrintOverrideAst()) + return false; + if (getStrictRangeCheck() != other.getStrictRangeCheck()) + return false; + if (getDisableNone() != other.getDisableNone()) + return false; + if (getVerbose() != other.getVerbose()) + return false; + if (getDebug() != other.getDebug()) + return false; + if (getSortKeys() != other.getSortKeys()) + return false; + if (!getExternalPkgsList().equals(other.getExternalPkgsList())) + return false; + if (getIncludeSchemaTypePath() != other.getIncludeSchemaTypePath()) + return false; + if (getCompileOnly() != other.getCompileOnly()) + return false; + if (getShowHidden() != other.getShowHidden()) + return false; + if (!getPathSelectorList().equals(other.getPathSelectorList())) + return false; + if (getFastEval() != other.getFastEval()) + 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) + WORK_DIR_FIELD_NUMBER; + hash = (53 * hash) + getWorkDir().hashCode(); + if (getKFilenameListCount() > 0) { + hash = (37 * hash) + K_FILENAME_LIST_FIELD_NUMBER; + hash = (53 * hash) + getKFilenameListList().hashCode(); + } + if (getKCodeListCount() > 0) { + hash = (37 * hash) + K_CODE_LIST_FIELD_NUMBER; + hash = (53 * hash) + getKCodeListList().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (getOverridesCount() > 0) { + hash = (37 * hash) + OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getOverridesList().hashCode(); + } + hash = (37 * hash) + DISABLE_YAML_RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableYamlResult()); + hash = (37 * hash) + PRINT_OVERRIDE_AST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrintOverrideAst()); + hash = (37 * hash) + STRICT_RANGE_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrictRangeCheck()); + hash = (37 * hash) + DISABLE_NONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableNone()); + hash = (37 * hash) + VERBOSE_FIELD_NUMBER; + hash = (53 * hash) + getVerbose(); + hash = (37 * hash) + DEBUG_FIELD_NUMBER; + hash = (53 * hash) + getDebug(); + hash = (37 * hash) + SORT_KEYS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSortKeys()); + if (getExternalPkgsCount() > 0) { + hash = (37 * hash) + EXTERNAL_PKGS_FIELD_NUMBER; + hash = (53 * hash) + getExternalPkgsList().hashCode(); + } + hash = (37 * hash) + INCLUDE_SCHEMA_TYPE_PATH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeSchemaTypePath()); + hash = (37 * hash) + COMPILE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCompileOnly()); + hash = (37 * hash) + SHOW_HIDDEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowHidden()); + if (getPathSelectorCount() > 0) { + hash = (37 * hash) + PATH_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getPathSelectorList().hashCode(); + } + hash = (37 * hash) + FAST_EVAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFastEval()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ExecProgram_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_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.ExecProgram_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.ExecProgram_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 execute program request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ExecProgram_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ExecProgram_Args) + com.kcl.api.Spec.ExecProgram_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExecProgram_Args.class, + com.kcl.api.Spec.ExecProgram_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.ExecProgram_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workDir_ = ""; + kFilenameList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + kCodeList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (argsBuilder_ == null) { + args_ = java.util.Collections.emptyList(); + } else { + args_ = null; + argsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + overrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); + disableYamlResult_ = false; + printOverrideAst_ = false; + strictRangeCheck_ = false; + disableNone_ = false; + verbose_ = 0; + debug_ = 0; + sortKeys_ = false; + if (externalPkgsBuilder_ == null) { + externalPkgs_ = java.util.Collections.emptyList(); + } else { + externalPkgs_ = null; + externalPkgsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + includeSchemaTypePath_ = false; + compileOnly_ = false; + showHidden_ = false; + pathSelector_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fastEval_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Args build() { + com.kcl.api.Spec.ExecProgram_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Args buildPartial() { + com.kcl.api.Spec.ExecProgram_Args result = new com.kcl.api.Spec.ExecProgram_Args(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.ExecProgram_Args result) { + if (argsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + args_ = java.util.Collections.unmodifiableList(args_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.args_ = args_; + } else { + result.args_ = argsBuilder_.build(); + } + if (externalPkgsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0)) { + externalPkgs_ = java.util.Collections.unmodifiableList(externalPkgs_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.externalPkgs_ = externalPkgs_; + } else { + result.externalPkgs_ = externalPkgsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.ExecProgram_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workDir_ = workDir_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + kFilenameList_.makeImmutable(); + result.kFilenameList_ = kFilenameList_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + kCodeList_.makeImmutable(); + result.kCodeList_ = kCodeList_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + overrides_.makeImmutable(); + result.overrides_ = overrides_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disableYamlResult_ = disableYamlResult_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.printOverrideAst_ = printOverrideAst_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.strictRangeCheck_ = strictRangeCheck_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.disableNone_ = disableNone_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.verbose_ = verbose_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.debug_ = debug_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.sortKeys_ = sortKeys_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.includeSchemaTypePath_ = includeSchemaTypePath_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.compileOnly_ = compileOnly_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.showHidden_ = showHidden_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + pathSelector_.makeImmutable(); + result.pathSelector_ = pathSelector_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.fastEval_ = fastEval_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ExecProgram_Args) { + return mergeFrom((com.kcl.api.Spec.ExecProgram_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ExecProgram_Args other) { + if (other == com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance()) + return this; + if (!other.getWorkDir().isEmpty()) { + workDir_ = other.workDir_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.kFilenameList_.isEmpty()) { + if (kFilenameList_.isEmpty()) { + kFilenameList_ = other.kFilenameList_; + bitField0_ |= 0x00000002; + } else { + ensureKFilenameListIsMutable(); + kFilenameList_.addAll(other.kFilenameList_); + } + onChanged(); + } + if (!other.kCodeList_.isEmpty()) { + if (kCodeList_.isEmpty()) { + kCodeList_ = other.kCodeList_; + bitField0_ |= 0x00000004; + } else { + ensureKCodeListIsMutable(); + kCodeList_.addAll(other.kCodeList_); + } + onChanged(); + } + if (argsBuilder_ == null) { + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + } else { + if (!other.args_.isEmpty()) { + if (argsBuilder_.isEmpty()) { + argsBuilder_.dispose(); + argsBuilder_ = null; + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000008); + argsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getArgsFieldBuilder() : null; + } else { + argsBuilder_.addAllMessages(other.args_); + } + } + } + if (!other.overrides_.isEmpty()) { + if (overrides_.isEmpty()) { + overrides_ = other.overrides_; + bitField0_ |= 0x00000010; + } else { + ensureOverridesIsMutable(); + overrides_.addAll(other.overrides_); + } + onChanged(); + } + if (other.getDisableYamlResult() != false) { + setDisableYamlResult(other.getDisableYamlResult()); + } + if (other.getPrintOverrideAst() != false) { + setPrintOverrideAst(other.getPrintOverrideAst()); + } + if (other.getStrictRangeCheck() != false) { + setStrictRangeCheck(other.getStrictRangeCheck()); + } + if (other.getDisableNone() != false) { + setDisableNone(other.getDisableNone()); + } + if (other.getVerbose() != 0) { + setVerbose(other.getVerbose()); + } + if (other.getDebug() != 0) { + setDebug(other.getDebug()); + } + if (other.getSortKeys() != false) { + setSortKeys(other.getSortKeys()); + } + if (externalPkgsBuilder_ == null) { + if (!other.externalPkgs_.isEmpty()) { + if (externalPkgs_.isEmpty()) { + externalPkgs_ = other.externalPkgs_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureExternalPkgsIsMutable(); + externalPkgs_.addAll(other.externalPkgs_); + } + onChanged(); + } + } else { + if (!other.externalPkgs_.isEmpty()) { + if (externalPkgsBuilder_.isEmpty()) { + externalPkgsBuilder_.dispose(); + externalPkgsBuilder_ = null; + externalPkgs_ = other.externalPkgs_; + bitField0_ = (bitField0_ & ~0x00001000); + externalPkgsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getExternalPkgsFieldBuilder() : null; + } else { + externalPkgsBuilder_.addAllMessages(other.externalPkgs_); + } + } + } + if (other.getIncludeSchemaTypePath() != false) { + setIncludeSchemaTypePath(other.getIncludeSchemaTypePath()); + } + if (other.getCompileOnly() != false) { + setCompileOnly(other.getCompileOnly()); + } + if (other.getShowHidden() != false) { + setShowHidden(other.getShowHidden()); + } + if (!other.pathSelector_.isEmpty()) { + if (pathSelector_.isEmpty()) { + pathSelector_ = other.pathSelector_; + bitField0_ |= 0x00010000; + } else { + ensurePathSelectorIsMutable(); + pathSelector_.addAll(other.pathSelector_); + } + onChanged(); + } + if (other.getFastEval() != false) { + setFastEval(other.getFastEval()); + } + 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: { + workDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureKFilenameListIsMutable(); + kFilenameList_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureKCodeListIsMutable(); + kCodeList_.add(s); + break; + } // case 26 + case 34: { + com.kcl.api.Spec.Argument m = input.readMessage(com.kcl.api.Spec.Argument.parser(), + extensionRegistry); + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.add(m); + } else { + argsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOverridesIsMutable(); + overrides_.add(s); + break; + } // case 42 + case 48: { + disableYamlResult_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + printOverrideAst_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + strictRangeCheck_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + disableNone_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + verbose_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + debug_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: { + sortKeys_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 106: { + 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 106 + case 112: { + includeSchemaTypePath_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 112 + case 120: { + compileOnly_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + showHidden_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePathSelectorIsMutable(); + pathSelector_.add(s); + break; + } // case 138 + case 144: { + fastEval_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 144 + 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 workDir_ = ""; + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + public java.lang.String getWorkDir() { + java.lang.Object ref = workDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + public com.google.protobuf.ByteString getWorkDirBytes() { + java.lang.Object ref = workDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + workDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @param value + * The workDir to set. + * + * @return This builder for chaining. + */ + public Builder setWorkDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkDir() { + workDir_ = getDefaultInstance().getWorkDir(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @param value + * The bytes for workDir to set. + * + * @return This builder for chaining. + */ + public Builder setWorkDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList kFilenameList_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureKFilenameListIsMutable() { + if (!kFilenameList_.isModifiable()) { + kFilenameList_ = new com.google.protobuf.LazyStringArrayList(kFilenameList_); + } + bitField0_ |= 0x00000002; + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @return A list containing the kFilenameList. + */ + public com.google.protobuf.ProtocolStringList getKFilenameListList() { + kFilenameList_.makeImmutable(); + return kFilenameList_; + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @return The count of kFilenameList. + */ + public int getKFilenameListCount() { + return kFilenameList_.size(); + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @param index + * The index of the element to return. + * + * @return The kFilenameList at the given index. + */ + public java.lang.String getKFilenameList(int index) { + return kFilenameList_.get(index); + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the kFilenameList at the given index. + */ + public com.google.protobuf.ByteString getKFilenameListBytes(int index) { + return kFilenameList_.getByteString(index); + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @param index + * The index to set the value at. + * @param value + * The kFilenameList to set. + * + * @return This builder for chaining. + */ + public Builder setKFilenameList(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKFilenameListIsMutable(); + kFilenameList_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @param value + * The kFilenameList to add. + * + * @return This builder for chaining. + */ + public Builder addKFilenameList(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKFilenameListIsMutable(); + kFilenameList_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @param values + * The kFilenameList to add. + * + * @return This builder for chaining. + */ + public Builder addAllKFilenameList(java.lang.Iterable values) { + ensureKFilenameListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kFilenameList_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @return This builder for chaining. + */ + public Builder clearKFilenameList() { + kFilenameList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + *
+             * List of KCL filenames.
+             * 
+ * + * repeated string k_filename_list = 2; + * + * @param value + * The bytes of the kFilenameList to add. + * + * @return This builder for chaining. + */ + public Builder addKFilenameListBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKFilenameListIsMutable(); + kFilenameList_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList kCodeList_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureKCodeListIsMutable() { + if (!kCodeList_.isModifiable()) { + kCodeList_ = new com.google.protobuf.LazyStringArrayList(kCodeList_); + } + bitField0_ |= 0x00000004; + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @return A list containing the kCodeList. + */ + public com.google.protobuf.ProtocolStringList getKCodeListList() { + kCodeList_.makeImmutable(); + return kCodeList_; + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @return The count of kCodeList. + */ + public int getKCodeListCount() { + return kCodeList_.size(); + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @param index + * The index of the element to return. + * + * @return The kCodeList at the given index. + */ + public java.lang.String getKCodeList(int index) { + return kCodeList_.get(index); + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the kCodeList at the given index. + */ + public com.google.protobuf.ByteString getKCodeListBytes(int index) { + return kCodeList_.getByteString(index); + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @param index + * The index to set the value at. + * @param value + * The kCodeList to set. + * + * @return This builder for chaining. + */ + public Builder setKCodeList(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKCodeListIsMutable(); + kCodeList_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @param value + * The kCodeList to add. + * + * @return This builder for chaining. + */ + public Builder addKCodeList(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKCodeListIsMutable(); + kCodeList_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @param values + * The kCodeList to add. + * + * @return This builder for chaining. + */ + public Builder addAllKCodeList(java.lang.Iterable values) { + ensureKCodeListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kCodeList_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @return This builder for chaining. + */ + public Builder clearKCodeList() { + kCodeList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + *
+             * List of KCL codes.
+             * 
+ * + * repeated string k_code_list = 3; + * + * @param value + * The bytes of the kCodeList to add. + * + * @return This builder for chaining. + */ + public Builder addKCodeListBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKCodeListIsMutable(); + kCodeList_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List args_ = java.util.Collections.emptyList(); + + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + args_ = new java.util.ArrayList(args_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder argsBuilder_; + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public java.util.List getArgsList() { + if (argsBuilder_ == null) { + return java.util.Collections.unmodifiableList(args_); + } else { + return argsBuilder_.getMessageList(); + } + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public int getArgsCount() { + if (argsBuilder_ == null) { + return args_.size(); + } else { + return argsBuilder_.getCount(); + } + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public com.kcl.api.Spec.Argument getArgs(int index) { + if (argsBuilder_ == null) { + return args_.get(index); + } else { + return argsBuilder_.getMessage(index); + } + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder setArgs(int index, com.kcl.api.Spec.Argument value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + } else { + argsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder setArgs(int index, com.kcl.api.Spec.Argument.Builder builderForValue) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.set(index, builderForValue.build()); + onChanged(); + } else { + argsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder addArgs(com.kcl.api.Spec.Argument value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + } else { + argsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder addArgs(int index, com.kcl.api.Spec.Argument value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(index, value); + onChanged(); + } else { + argsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder addArgs(com.kcl.api.Spec.Argument.Builder builderForValue) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.add(builderForValue.build()); + onChanged(); + } else { + argsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder addArgs(int index, com.kcl.api.Spec.Argument.Builder builderForValue) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.add(index, builderForValue.build()); + onChanged(); + } else { + argsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder addAllArgs(java.lang.Iterable values) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + onChanged(); + } else { + argsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder clearArgs() { + if (argsBuilder_ == null) { + args_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + argsBuilder_.clear(); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public Builder removeArgs(int index) { + if (argsBuilder_ == null) { + ensureArgsIsMutable(); + args_.remove(index); + onChanged(); + } else { + argsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public com.kcl.api.Spec.Argument.Builder getArgsBuilder(int index) { + return getArgsFieldBuilder().getBuilder(index); + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public com.kcl.api.Spec.ArgumentOrBuilder getArgsOrBuilder(int index) { + if (argsBuilder_ == null) { + return args_.get(index); + } else { + return argsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public java.util.List getArgsOrBuilderList() { + if (argsBuilder_ != null) { + return argsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(args_); + } + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public com.kcl.api.Spec.Argument.Builder addArgsBuilder() { + return getArgsFieldBuilder().addBuilder(com.kcl.api.Spec.Argument.getDefaultInstance()); + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public com.kcl.api.Spec.Argument.Builder addArgsBuilder(int index) { + return getArgsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Argument.getDefaultInstance()); + } + + /** + *
+             * Arguments for the program.
+             * 
+ * + * repeated .com.kcl.api.Argument args = 4; + */ + public java.util.List getArgsBuilderList() { + return getArgsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getArgsFieldBuilder() { + if (argsBuilder_ == null) { + argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + args_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + args_ = null; + } + return argsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList overrides_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureOverridesIsMutable() { + if (!overrides_.isModifiable()) { + overrides_ = new com.google.protobuf.LazyStringArrayList(overrides_); + } + bitField0_ |= 0x00000010; + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @return A list containing the overrides. + */ + public com.google.protobuf.ProtocolStringList getOverridesList() { + overrides_.makeImmutable(); + return overrides_; + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @return The count of overrides. + */ + public int getOverridesCount() { + return overrides_.size(); + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @param index + * The index of the element to return. + * + * @return The overrides at the given index. + */ + public java.lang.String getOverrides(int index) { + return overrides_.get(index); + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the overrides at the given index. + */ + public com.google.protobuf.ByteString getOverridesBytes(int index) { + return overrides_.getByteString(index); + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @param index + * The index to set the value at. + * @param value + * The overrides to set. + * + * @return This builder for chaining. + */ + public Builder setOverrides(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverridesIsMutable(); + overrides_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @param value + * The overrides to add. + * + * @return This builder for chaining. + */ + public Builder addOverrides(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverridesIsMutable(); + overrides_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @param values + * The overrides to add. + * + * @return This builder for chaining. + */ + public Builder addAllOverrides(java.lang.Iterable values) { + ensureOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, overrides_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @return This builder for chaining. + */ + public Builder clearOverrides() { + overrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + *
+             * Override configurations.
+             * 
+ * + * repeated string overrides = 5; + * + * @param value + * The bytes of the overrides to add. + * + * @return This builder for chaining. + */ + public Builder addOverridesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOverridesIsMutable(); + overrides_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean disableYamlResult_; + + /** + *
+             * Flag to disable YAML result.
+             * 
+ * + * bool disable_yaml_result = 6; + * + * @return The disableYamlResult. + */ + @java.lang.Override + public boolean getDisableYamlResult() { + return disableYamlResult_; + } + + /** + *
+             * Flag to disable YAML result.
+             * 
+ * + * bool disable_yaml_result = 6; + * + * @param value + * The disableYamlResult to set. + * + * @return This builder for chaining. + */ + public Builder setDisableYamlResult(boolean value) { + + disableYamlResult_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + *
+             * Flag to disable YAML result.
+             * 
+ * + * bool disable_yaml_result = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableYamlResult() { + bitField0_ = (bitField0_ & ~0x00000020); + disableYamlResult_ = false; + onChanged(); + return this; + } + + private boolean printOverrideAst_; + + /** + *
+             * Flag to print override AST.
+             * 
+ * + * bool print_override_ast = 7; + * + * @return The printOverrideAst. + */ + @java.lang.Override + public boolean getPrintOverrideAst() { + return printOverrideAst_; + } + + /** + *
+             * Flag to print override AST.
+             * 
+ * + * bool print_override_ast = 7; + * + * @param value + * The printOverrideAst to set. + * + * @return This builder for chaining. + */ + public Builder setPrintOverrideAst(boolean value) { + + printOverrideAst_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + *
+             * Flag to print override AST.
+             * 
+ * + * bool print_override_ast = 7; + * + * @return This builder for chaining. + */ + public Builder clearPrintOverrideAst() { + bitField0_ = (bitField0_ & ~0x00000040); + printOverrideAst_ = false; + onChanged(); + return this; + } + + private boolean strictRangeCheck_; + + /** + *
+             * Flag for strict range check.
+             * 
+ * + * bool strict_range_check = 8; + * + * @return The strictRangeCheck. + */ + @java.lang.Override + public boolean getStrictRangeCheck() { + return strictRangeCheck_; + } + + /** + *
+             * Flag for strict range check.
+             * 
+ * + * bool strict_range_check = 8; + * + * @param value + * The strictRangeCheck to set. + * + * @return This builder for chaining. + */ + public Builder setStrictRangeCheck(boolean value) { + + strictRangeCheck_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + *
+             * Flag for strict range check.
+             * 
+ * + * bool strict_range_check = 8; + * + * @return This builder for chaining. + */ + public Builder clearStrictRangeCheck() { + bitField0_ = (bitField0_ & ~0x00000080); + strictRangeCheck_ = false; + onChanged(); + return this; + } + + private boolean disableNone_; + + /** + *
+             * Flag to disable none values.
+             * 
+ * + * bool disable_none = 9; + * + * @return The disableNone. + */ + @java.lang.Override + public boolean getDisableNone() { + return disableNone_; + } + + /** + *
+             * Flag to disable none values.
+             * 
+ * + * bool disable_none = 9; + * + * @param value + * The disableNone to set. + * + * @return This builder for chaining. + */ + public Builder setDisableNone(boolean value) { + + disableNone_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + *
+             * Flag to disable none values.
+             * 
+ * + * bool disable_none = 9; + * + * @return This builder for chaining. + */ + public Builder clearDisableNone() { + bitField0_ = (bitField0_ & ~0x00000100); + disableNone_ = false; + onChanged(); + return this; + } + + private int verbose_; + + /** + *
+             * Verbose level.
+             * 
+ * + * int32 verbose = 10; + * + * @return The verbose. + */ + @java.lang.Override + public int getVerbose() { + return verbose_; + } + + /** + *
+             * Verbose level.
+             * 
+ * + * int32 verbose = 10; + * + * @param value + * The verbose to set. + * + * @return This builder for chaining. + */ + public Builder setVerbose(int value) { + + verbose_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + *
+             * Verbose level.
+             * 
+ * + * int32 verbose = 10; + * + * @return This builder for chaining. + */ + public Builder clearVerbose() { + bitField0_ = (bitField0_ & ~0x00000200); + verbose_ = 0; + onChanged(); + return this; + } + + private int debug_; + + /** + *
+             * Debug level.
+             * 
+ * + * int32 debug = 11; + * + * @return The debug. + */ + @java.lang.Override + public int getDebug() { + return debug_; + } + + /** + *
+             * Debug level.
+             * 
+ * + * int32 debug = 11; + * + * @param value + * The debug to set. + * + * @return This builder for chaining. + */ + public Builder setDebug(int value) { + + debug_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + *
+             * Debug level.
+             * 
+ * + * int32 debug = 11; + * + * @return This builder for chaining. + */ + public Builder clearDebug() { + bitField0_ = (bitField0_ & ~0x00000400); + debug_ = 0; + onChanged(); + return this; + } + + private boolean sortKeys_; + + /** + *
+             * Flag to sort keys in YAML/JSON results.
+             * 
+ * + * bool sort_keys = 12; + * + * @return The sortKeys. + */ + @java.lang.Override + public boolean getSortKeys() { + return sortKeys_; + } + + /** + *
+             * Flag to sort keys in YAML/JSON results.
+             * 
+ * + * bool sort_keys = 12; + * + * @param value + * The sortKeys to set. + * + * @return This builder for chaining. + */ + public Builder setSortKeys(boolean value) { + + sortKeys_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + *
+             * Flag to sort keys in YAML/JSON results.
+             * 
+ * + * bool sort_keys = 12; + * + * @return This builder for chaining. + */ + public Builder clearSortKeys() { + bitField0_ = (bitField0_ & ~0x00000800); + sortKeys_ = false; + onChanged(); + return this; + } + + private java.util.List externalPkgs_ = java.util.Collections.emptyList(); + + private void ensureExternalPkgsIsMutable() { + if (!((bitField0_ & 0x00001000) != 0)) { + externalPkgs_ = new java.util.ArrayList(externalPkgs_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder externalPkgsBuilder_; + + /** + *
+             * External packages path.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + 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 = 13; + */ + public int getExternalPkgsCount() { + if (externalPkgsBuilder_ == null) { + return externalPkgs_.size(); + } else { + return externalPkgsBuilder_.getCount(); + } + } + + /** + *
+             * External packages path.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + 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 = 13; + */ + 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 = 13; + */ + 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 = 13; + */ + 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 = 13; + */ + 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 = 13; + */ + 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 = 13; + */ + 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 = 13; + */ + public Builder addAllExternalPkgs(java.lang.Iterable 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 = 13; + */ + public Builder clearExternalPkgs() { + if (externalPkgsBuilder_ == null) { + externalPkgs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + externalPkgsBuilder_.clear(); + } + return this; + } + + /** + *
+             * External packages path.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + 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 = 13; + */ + public com.kcl.api.Spec.ExternalPkg.Builder getExternalPkgsBuilder(int index) { + return getExternalPkgsFieldBuilder().getBuilder(index); + } + + /** + *
+             * External packages path.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + 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 = 13; + */ + public java.util.List getExternalPkgsOrBuilderList() { + if (externalPkgsBuilder_ != null) { + return externalPkgsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(externalPkgs_); + } + } + + /** + *
+             * External packages path.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 13; + */ + 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 = 13; + */ + 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 = 13; + */ + 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_ & 0x00001000) != 0), getParentForChildren(), isClean()); + externalPkgs_ = null; + } + return externalPkgsBuilder_; + } + + private boolean includeSchemaTypePath_; + + /** + *
+             * Flag to include schema type path in results.
+             * 
+ * + * bool include_schema_type_path = 14; + * + * @return The includeSchemaTypePath. + */ + @java.lang.Override + public boolean getIncludeSchemaTypePath() { + return includeSchemaTypePath_; + } + + /** + *
+             * Flag to include schema type path in results.
+             * 
+ * + * bool include_schema_type_path = 14; + * + * @param value + * The includeSchemaTypePath to set. + * + * @return This builder for chaining. + */ + public Builder setIncludeSchemaTypePath(boolean value) { + + includeSchemaTypePath_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + *
+             * Flag to include schema type path in results.
+             * 
+ * + * bool include_schema_type_path = 14; + * + * @return This builder for chaining. + */ + public Builder clearIncludeSchemaTypePath() { + bitField0_ = (bitField0_ & ~0x00002000); + includeSchemaTypePath_ = false; + onChanged(); + return this; + } + + private boolean compileOnly_; + + /** + *
+             * Flag to compile only without execution.
+             * 
+ * + * bool compile_only = 15; + * + * @return The compileOnly. + */ + @java.lang.Override + public boolean getCompileOnly() { + return compileOnly_; + } + + /** + *
+             * Flag to compile only without execution.
+             * 
+ * + * bool compile_only = 15; + * + * @param value + * The compileOnly to set. + * + * @return This builder for chaining. + */ + public Builder setCompileOnly(boolean value) { + + compileOnly_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + *
+             * Flag to compile only without execution.
+             * 
+ * + * bool compile_only = 15; + * + * @return This builder for chaining. + */ + public Builder clearCompileOnly() { + bitField0_ = (bitField0_ & ~0x00004000); + compileOnly_ = false; + onChanged(); + return this; + } + + private boolean showHidden_; + + /** + *
+             * Flag to show hidden attributes.
+             * 
+ * + * bool show_hidden = 16; + * + * @return The showHidden. + */ + @java.lang.Override + public boolean getShowHidden() { + return showHidden_; + } + + /** + *
+             * Flag to show hidden attributes.
+             * 
+ * + * bool show_hidden = 16; + * + * @param value + * The showHidden to set. + * + * @return This builder for chaining. + */ + public Builder setShowHidden(boolean value) { + + showHidden_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + *
+             * Flag to show hidden attributes.
+             * 
+ * + * bool show_hidden = 16; + * + * @return This builder for chaining. + */ + public Builder clearShowHidden() { + bitField0_ = (bitField0_ & ~0x00008000); + showHidden_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pathSelector_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensurePathSelectorIsMutable() { + if (!pathSelector_.isModifiable()) { + pathSelector_ = new com.google.protobuf.LazyStringArrayList(pathSelector_); + } + bitField0_ |= 0x00010000; + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @return A list containing the pathSelector. + */ + public com.google.protobuf.ProtocolStringList getPathSelectorList() { + pathSelector_.makeImmutable(); + return pathSelector_; + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @return The count of pathSelector. + */ + public int getPathSelectorCount() { + return pathSelector_.size(); + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @param index + * The index of the element to return. + * + * @return The pathSelector at the given index. + */ + public java.lang.String getPathSelector(int index) { + return pathSelector_.get(index); + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pathSelector at the given index. + */ + public com.google.protobuf.ByteString getPathSelectorBytes(int index) { + return pathSelector_.getByteString(index); + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @param index + * The index to set the value at. + * @param value + * The pathSelector to set. + * + * @return This builder for chaining. + */ + public Builder setPathSelector(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathSelectorIsMutable(); + pathSelector_.set(index, value); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @param value + * The pathSelector to add. + * + * @return This builder for chaining. + */ + public Builder addPathSelector(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathSelectorIsMutable(); + pathSelector_.add(value); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @param values + * The pathSelector to add. + * + * @return This builder for chaining. + */ + public Builder addAllPathSelector(java.lang.Iterable values) { + ensurePathSelectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pathSelector_); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @return This builder for chaining. + */ + public Builder clearPathSelector() { + pathSelector_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + ; + onChanged(); + return this; + } + + /** + *
+             * Path selectors for results.
+             * 
+ * + * repeated string path_selector = 17; + * + * @param value + * The bytes of the pathSelector to add. + * + * @return This builder for chaining. + */ + public Builder addPathSelectorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathSelectorIsMutable(); + pathSelector_.add(value); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private boolean fastEval_; + + /** + *
+             * Flag for fast evaluation.
+             * 
+ * + * bool fast_eval = 18; + * + * @return The fastEval. + */ + @java.lang.Override + public boolean getFastEval() { + return fastEval_; + } + + /** + *
+             * Flag for fast evaluation.
+             * 
+ * + * bool fast_eval = 18; + * + * @param value + * The fastEval to set. + * + * @return This builder for chaining. + */ + public Builder setFastEval(boolean value) { + + fastEval_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + *
+             * Flag for fast evaluation.
+             * 
+ * + * bool fast_eval = 18; + * + * @return This builder for chaining. + */ + public Builder clearFastEval() { + bitField0_ = (bitField0_ & ~0x00020000); + fastEval_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ExecProgram_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ExecProgram_Args) + private static final com.kcl.api.Spec.ExecProgram_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ExecProgram_Args(); + } + + public static com.kcl.api.Spec.ExecProgram_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecProgram_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.ExecProgram_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecProgram_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ExecProgram_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Result in JSON format.
+         * 
+ * + * string json_result = 1; + * + * @return The jsonResult. + */ + java.lang.String getJsonResult(); + + /** + *
+         * Result in JSON format.
+         * 
+ * + * string json_result = 1; + * + * @return The bytes for jsonResult. + */ + com.google.protobuf.ByteString getJsonResultBytes(); + + /** + *
+         * Result in YAML format.
+         * 
+ * + * string yaml_result = 2; + * + * @return The yamlResult. + */ + java.lang.String getYamlResult(); + + /** + *
+         * Result in YAML format.
+         * 
+ * + * string yaml_result = 2; + * + * @return The bytes for yamlResult. + */ + com.google.protobuf.ByteString getYamlResultBytes(); + + /** + *
+         * Log message from execution.
+         * 
+ * + * string log_message = 3; + * + * @return The logMessage. + */ + java.lang.String getLogMessage(); + + /** + *
+         * Log message from execution.
+         * 
+ * + * string log_message = 3; + * + * @return The bytes for logMessage. + */ + com.google.protobuf.ByteString getLogMessageBytes(); + + /** + *
+         * Error message from execution.
+         * 
+ * + * string err_message = 4; + * + * @return The errMessage. + */ + java.lang.String getErrMessage(); + + /** + *
+         * Error message from execution.
+         * 
+ * + * string err_message = 4; + * + * @return The bytes for errMessage. + */ + com.google.protobuf.ByteString getErrMessageBytes(); + } + + /** + *
+     * Message for execute program response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ExecProgram_Result} + */ + public static final class ExecProgram_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ExecProgram_Result) + ExecProgram_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= */ "", ExecProgram_Result.class.getName()); + } + + // Use ExecProgram_Result.newBuilder() to construct. + private ExecProgram_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecProgram_Result() { + jsonResult_ = ""; + yamlResult_ = ""; + logMessage_ = ""; + errMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExecProgram_Result.class, + com.kcl.api.Spec.ExecProgram_Result.Builder.class); + } + + public static final int JSON_RESULT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object jsonResult_ = ""; + + /** + *
+         * Result in JSON format.
+         * 
+ * + * string json_result = 1; + * + * @return The jsonResult. + */ + @java.lang.Override + public java.lang.String getJsonResult() { + java.lang.Object ref = jsonResult_; + 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(); + jsonResult_ = s; + return s; + } + } + + /** + *
+         * Result in JSON format.
+         * 
+ * + * string json_result = 1; + * + * @return The bytes for jsonResult. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonResultBytes() { + java.lang.Object ref = jsonResult_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jsonResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int YAML_RESULT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object yamlResult_ = ""; + + /** + *
+         * Result in YAML format.
+         * 
+ * + * string yaml_result = 2; + * + * @return The yamlResult. + */ + @java.lang.Override + public java.lang.String getYamlResult() { + java.lang.Object ref = yamlResult_; + 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(); + yamlResult_ = s; + return s; + } + } + + /** + *
+         * Result in YAML format.
+         * 
+ * + * string yaml_result = 2; + * + * @return The bytes for yamlResult. + */ + @java.lang.Override + public com.google.protobuf.ByteString getYamlResultBytes() { + java.lang.Object ref = yamlResult_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + yamlResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOG_MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object logMessage_ = ""; + + /** + *
+         * Log message from execution.
+         * 
+ * + * string log_message = 3; + * + * @return The logMessage. + */ + @java.lang.Override + public java.lang.String getLogMessage() { + java.lang.Object ref = logMessage_; + 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(); + logMessage_ = s; + return s; + } + } + + /** + *
+         * Log message from execution.
+         * 
+ * + * string log_message = 3; + * + * @return The bytes for logMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogMessageBytes() { + java.lang.Object ref = logMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERR_MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object errMessage_ = ""; + + /** + *
+         * Error message from execution.
+         * 
+ * + * string err_message = 4; + * + * @return The errMessage. + */ + @java.lang.Override + public java.lang.String getErrMessage() { + java.lang.Object ref = errMessage_; + 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(); + errMessage_ = s; + return s; + } + } + + /** + *
+         * Error message from execution.
+         * 
+ * + * string err_message = 4; + * + * @return The bytes for errMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrMessageBytes() { + java.lang.Object ref = errMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errMessage_ = 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(jsonResult_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, jsonResult_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(yamlResult_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, yamlResult_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, logMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, errMessage_); + } + 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(jsonResult_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, jsonResult_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(yamlResult_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, yamlResult_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, logMessage_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, errMessage_); + } + 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.ExecProgram_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.ExecProgram_Result other = (com.kcl.api.Spec.ExecProgram_Result) obj; + + if (!getJsonResult().equals(other.getJsonResult())) + return false; + if (!getYamlResult().equals(other.getYamlResult())) + return false; + if (!getLogMessage().equals(other.getLogMessage())) + return false; + if (!getErrMessage().equals(other.getErrMessage())) + 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) + JSON_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getJsonResult().hashCode(); + hash = (37 * hash) + YAML_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getYamlResult().hashCode(); + hash = (37 * hash) + LOG_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getLogMessage().hashCode(); + hash = (37 * hash) + ERR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ExecProgram_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ExecProgram_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.ExecProgram_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.ExecProgram_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.ExecProgram_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 execute program response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ExecProgram_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ExecProgram_Result) + com.kcl.api.Spec.ExecProgram_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExecProgram_Result.class, + com.kcl.api.Spec.ExecProgram_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.ExecProgram_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + jsonResult_ = ""; + yamlResult_ = ""; + logMessage_ = ""; + errMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecProgram_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.ExecProgram_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Result build() { + com.kcl.api.Spec.ExecProgram_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Result buildPartial() { + com.kcl.api.Spec.ExecProgram_Result result = new com.kcl.api.Spec.ExecProgram_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ExecProgram_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.jsonResult_ = jsonResult_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.yamlResult_ = yamlResult_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.logMessage_ = logMessage_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errMessage_ = errMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ExecProgram_Result) { + return mergeFrom((com.kcl.api.Spec.ExecProgram_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ExecProgram_Result other) { + if (other == com.kcl.api.Spec.ExecProgram_Result.getDefaultInstance()) + return this; + if (!other.getJsonResult().isEmpty()) { + jsonResult_ = other.jsonResult_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getYamlResult().isEmpty()) { + yamlResult_ = other.yamlResult_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLogMessage().isEmpty()) { + logMessage_ = other.logMessage_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getErrMessage().isEmpty()) { + errMessage_ = other.errMessage_; + 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: { + jsonResult_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + yamlResult_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + logMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + errMessage_ = 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 jsonResult_ = ""; + + /** + *
+             * Result in JSON format.
+             * 
+ * + * string json_result = 1; + * + * @return The jsonResult. + */ + public java.lang.String getJsonResult() { + java.lang.Object ref = jsonResult_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonResult_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Result in JSON format.
+             * 
+ * + * string json_result = 1; + * + * @return The bytes for jsonResult. + */ + public com.google.protobuf.ByteString getJsonResultBytes() { + java.lang.Object ref = jsonResult_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + jsonResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Result in JSON format.
+             * 
+ * + * string json_result = 1; + * + * @param value + * The jsonResult to set. + * + * @return This builder for chaining. + */ + public Builder setJsonResult(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jsonResult_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Result in JSON format.
+             * 
+ * + * string json_result = 1; + * + * @return This builder for chaining. + */ + public Builder clearJsonResult() { + jsonResult_ = getDefaultInstance().getJsonResult(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Result in JSON format.
+             * 
+ * + * string json_result = 1; + * + * @param value + * The bytes for jsonResult to set. + * + * @return This builder for chaining. + */ + public Builder setJsonResultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jsonResult_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object yamlResult_ = ""; + + /** + *
+             * Result in YAML format.
+             * 
+ * + * string yaml_result = 2; + * + * @return The yamlResult. + */ + public java.lang.String getYamlResult() { + java.lang.Object ref = yamlResult_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + yamlResult_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Result in YAML format.
+             * 
+ * + * string yaml_result = 2; + * + * @return The bytes for yamlResult. + */ + public com.google.protobuf.ByteString getYamlResultBytes() { + java.lang.Object ref = yamlResult_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + yamlResult_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Result in YAML format.
+             * 
+ * + * string yaml_result = 2; + * + * @param value + * The yamlResult to set. + * + * @return This builder for chaining. + */ + public Builder setYamlResult(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + yamlResult_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Result in YAML format.
+             * 
+ * + * string yaml_result = 2; + * + * @return This builder for chaining. + */ + public Builder clearYamlResult() { + yamlResult_ = getDefaultInstance().getYamlResult(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Result in YAML format.
+             * 
+ * + * string yaml_result = 2; + * + * @param value + * The bytes for yamlResult to set. + * + * @return This builder for chaining. + */ + public Builder setYamlResultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + yamlResult_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object logMessage_ = ""; + + /** + *
+             * Log message from execution.
+             * 
+ * + * string log_message = 3; + * + * @return The logMessage. + */ + public java.lang.String getLogMessage() { + java.lang.Object ref = logMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Log message from execution.
+             * 
+ * + * string log_message = 3; + * + * @return The bytes for logMessage. + */ + public com.google.protobuf.ByteString getLogMessageBytes() { + java.lang.Object ref = logMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + logMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Log message from execution.
+             * 
+ * + * string log_message = 3; + * + * @param value + * The logMessage to set. + * + * @return This builder for chaining. + */ + public Builder setLogMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Log message from execution.
+             * 
+ * + * string log_message = 3; + * + * @return This builder for chaining. + */ + public Builder clearLogMessage() { + logMessage_ = getDefaultInstance().getLogMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Log message from execution.
+             * 
+ * + * string log_message = 3; + * + * @param value + * The bytes for logMessage to set. + * + * @return This builder for chaining. + */ + public Builder setLogMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object errMessage_ = ""; + + /** + *
+             * Error message from execution.
+             * 
+ * + * string err_message = 4; + * + * @return The errMessage. + */ + public java.lang.String getErrMessage() { + java.lang.Object ref = errMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Error message from execution.
+             * 
+ * + * string err_message = 4; + * + * @return The bytes for errMessage. + */ + public com.google.protobuf.ByteString getErrMessageBytes() { + java.lang.Object ref = errMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + errMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Error message from execution.
+             * 
+ * + * string err_message = 4; + * + * @param value + * The errMessage to set. + * + * @return This builder for chaining. + */ + public Builder setErrMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Error message from execution.
+             * 
+ * + * string err_message = 4; + * + * @return This builder for chaining. + */ + public Builder clearErrMessage() { + errMessage_ = getDefaultInstance().getErrMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + *
+             * Error message from execution.
+             * 
+ * + * string err_message = 4; + * + * @param value + * The bytes for errMessage to set. + * + * @return This builder for chaining. + */ + public Builder setErrMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ExecProgram_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ExecProgram_Result) + private static final com.kcl.api.Spec.ExecProgram_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ExecProgram_Result(); + } + + public static com.kcl.api.Spec.ExecProgram_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecProgram_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.ExecProgram_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BuildProgram_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.BuildProgram_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + boolean hasExecArgs(); + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + com.kcl.api.Spec.ExecProgram_Args getExecArgs(); + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder(); + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The output. + */ + java.lang.String getOutput(); + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The bytes for output. + */ + com.google.protobuf.ByteString getOutputBytes(); + } + + /** + *
+     * Message for build program request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.BuildProgram_Args} + */ + public static final class BuildProgram_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.BuildProgram_Args) + BuildProgram_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= */ "", BuildProgram_Args.class.getName()); + } + + // Use BuildProgram_Args.newBuilder() to construct. + private BuildProgram_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BuildProgram_Args() { + output_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.BuildProgram_Args.class, + com.kcl.api.Spec.BuildProgram_Args.Builder.class); + } + + private int bitField0_; + public static final int EXEC_ARGS_FIELD_NUMBER = 1; + private com.kcl.api.Spec.ExecProgram_Args execArgs_; + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + @java.lang.Override + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + public static final int OUTPUT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object output_ = ""; + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The output. + */ + @java.lang.Override + public java.lang.String getOutput() { + java.lang.Object ref = output_; + 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(); + output_ = s; + return s; + } + } + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The bytes for output. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + output_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExecArgs()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, output_); + } + 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, getExecArgs()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, output_); + } + 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.BuildProgram_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.BuildProgram_Args other = (com.kcl.api.Spec.BuildProgram_Args) obj; + + if (hasExecArgs() != other.hasExecArgs()) + return false; + if (hasExecArgs()) { + if (!getExecArgs().equals(other.getExecArgs())) + return false; + } + if (!getOutput().equals(other.getOutput())) + 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 (hasExecArgs()) { + hash = (37 * hash) + EXEC_ARGS_FIELD_NUMBER; + hash = (53 * hash) + getExecArgs().hashCode(); + } + hash = (37 * hash) + OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getOutput().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.BuildProgram_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_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.BuildProgram_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.BuildProgram_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 build program request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.BuildProgram_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.BuildProgram_Args) + com.kcl.api.Spec.BuildProgram_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.BuildProgram_Args.class, + com.kcl.api.Spec.BuildProgram_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.BuildProgram_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) { + getExecArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + output_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.BuildProgram_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.BuildProgram_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.BuildProgram_Args build() { + com.kcl.api.Spec.BuildProgram_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.BuildProgram_Args buildPartial() { + com.kcl.api.Spec.BuildProgram_Args result = new com.kcl.api.Spec.BuildProgram_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.BuildProgram_Args result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execArgs_ = execArgsBuilder_ == null ? execArgs_ : execArgsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.output_ = output_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.BuildProgram_Args) { + return mergeFrom((com.kcl.api.Spec.BuildProgram_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.BuildProgram_Args other) { + if (other == com.kcl.api.Spec.BuildProgram_Args.getDefaultInstance()) + return this; + if (other.hasExecArgs()) { + mergeExecArgs(other.getExecArgs()); + } + if (!other.getOutput().isEmpty()) { + output_ = other.output_; + 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: { + input.readMessage(getExecArgsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + output_ = 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 com.kcl.api.Spec.ExecProgram_Args execArgs_; + private com.google.protobuf.SingleFieldBuilder execArgsBuilder_; + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + if (execArgsBuilder_ == null) { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } else { + return execArgsBuilder_.getMessage(); + } + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execArgs_ = value; + } else { + execArgsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args.Builder builderForValue) { + if (execArgsBuilder_ == null) { + execArgs_ = builderForValue.build(); + } else { + execArgsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder mergeExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && execArgs_ != null + && execArgs_ != com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance()) { + getExecArgsBuilder().mergeFrom(value); + } else { + execArgs_ = value; + } + } else { + execArgsBuilder_.mergeFrom(value); + } + if (execArgs_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder clearExecArgs() { + bitField0_ = (bitField0_ & ~0x00000001); + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public com.kcl.api.Spec.ExecProgram_Args.Builder getExecArgsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExecArgsFieldBuilder().getBuilder(); + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + if (execArgsBuilder_ != null) { + return execArgsBuilder_.getMessageOrBuilder(); + } else { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + private com.google.protobuf.SingleFieldBuilder getExecArgsFieldBuilder() { + if (execArgsBuilder_ == null) { + execArgsBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getExecArgs(), getParentForChildren(), isClean()); + execArgs_ = null; + } + return execArgsBuilder_; + } + + private java.lang.Object output_ = ""; + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @return The output. + */ + public java.lang.String getOutput() { + java.lang.Object ref = output_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + output_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @return The bytes for output. + */ + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @param value + * The output to set. + * + * @return This builder for chaining. + */ + public Builder setOutput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @return This builder for chaining. + */ + public Builder clearOutput() { + output_ = getDefaultInstance().getOutput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @param value + * The bytes for output to set. + * + * @return This builder for chaining. + */ + public Builder setOutputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.BuildProgram_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.BuildProgram_Args) + private static final com.kcl.api.Spec.BuildProgram_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.BuildProgram_Args(); + } + + public static com.kcl.api.Spec.BuildProgram_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildProgram_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.BuildProgram_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BuildProgram_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.BuildProgram_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Path of the built program.
+         * 
+ * + * string path = 1; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + *
+         * Path of the built program.
+         * 
+ * + * string path = 1; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + } + + /** + *
+     * Message for build program response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.BuildProgram_Result} + */ + public static final class BuildProgram_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.BuildProgram_Result) + BuildProgram_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= */ "", BuildProgram_Result.class.getName()); + } + + // Use BuildProgram_Result.newBuilder() to construct. + private BuildProgram_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BuildProgram_Result() { + path_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.BuildProgram_Result.class, + com.kcl.api.Spec.BuildProgram_Result.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + *
+         * Path of the built program.
+         * 
+ * + * 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 built program.
+         * 
+ * + * 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; + } + } + + 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_); + } + 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_); + } + 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.BuildProgram_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.BuildProgram_Result other = (com.kcl.api.Spec.BuildProgram_Result) obj; + + if (!getPath().equals(other.getPath())) + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.BuildProgram_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.BuildProgram_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.BuildProgram_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.BuildProgram_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.BuildProgram_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 build program response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.BuildProgram_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.BuildProgram_Result) + com.kcl.api.Spec.BuildProgram_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.BuildProgram_Result.class, + com.kcl.api.Spec.BuildProgram_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.BuildProgram_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_BuildProgram_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.BuildProgram_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.BuildProgram_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.BuildProgram_Result build() { + com.kcl.api.Spec.BuildProgram_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.BuildProgram_Result buildPartial() { + com.kcl.api.Spec.BuildProgram_Result result = new com.kcl.api.Spec.BuildProgram_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.BuildProgram_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.BuildProgram_Result) { + return mergeFrom((com.kcl.api.Spec.BuildProgram_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.BuildProgram_Result other) { + if (other == com.kcl.api.Spec.BuildProgram_Result.getDefaultInstance()) + return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + 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: { + path_ = 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 path_ = ""; + + /** + *
+             * Path of the built program.
+             * 
+ * + * 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 built program.
+             * 
+ * + * 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 built program.
+             * 
+ * + * 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 built program.
+             * 
+ * + * string path = 1; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Path of the built program.
+             * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.BuildProgram_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.BuildProgram_Result) + private static final com.kcl.api.Spec.BuildProgram_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.BuildProgram_Result(); + } + + public static com.kcl.api.Spec.BuildProgram_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BuildProgram_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.BuildProgram_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecArtifact_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ExecArtifact_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Path of the artifact.
+         * 
+ * + * string path = 1; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + *
+         * Path of the artifact.
+         * 
+ * + * string path = 1; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + * + * @return Whether the execArgs field is set. + */ + boolean hasExecArgs(); + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + * + * @return The execArgs. + */ + com.kcl.api.Spec.ExecProgram_Args getExecArgs(); + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder(); + } + + /** + *
+     * Message for execute artifact request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ExecArtifact_Args} + */ + public static final class ExecArtifact_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ExecArtifact_Args) + ExecArtifact_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= */ "", ExecArtifact_Args.class.getName()); + } + + // Use ExecArtifact_Args.newBuilder() to construct. + private ExecArtifact_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecArtifact_Args() { + path_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecArtifact_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecArtifact_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExecArtifact_Args.class, + com.kcl.api.Spec.ExecArtifact_Args.Builder.class); + } + + private int bitField0_; + public static final int PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + *
+         * Path of the artifact.
+         * 
+ * + * 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 artifact.
+         * 
+ * + * 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 EXEC_ARGS_FIELD_NUMBER = 2; + private com.kcl.api.Spec.ExecProgram_Args execArgs_; + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + * + * @return Whether the execArgs field is set. + */ + @java.lang.Override + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + * + * @return The execArgs. + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExecArgs()); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecArgs()); + } + 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.ExecArtifact_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.ExecArtifact_Args other = (com.kcl.api.Spec.ExecArtifact_Args) obj; + + if (!getPath().equals(other.getPath())) + return false; + if (hasExecArgs() != other.hasExecArgs()) + return false; + if (hasExecArgs()) { + if (!getExecArgs().equals(other.getExecArgs())) + 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(); + if (hasExecArgs()) { + hash = (37 * hash) + EXEC_ARGS_FIELD_NUMBER; + hash = (53 * hash) + getExecArgs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ExecArtifact_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecArtifact_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.ExecArtifact_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecArtifact_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.ExecArtifact_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ExecArtifact_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.ExecArtifact_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ExecArtifact_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.ExecArtifact_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ExecArtifact_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.ExecArtifact_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.ExecArtifact_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.ExecArtifact_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 execute artifact request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ExecArtifact_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ExecArtifact_Args) + com.kcl.api.Spec.ExecArtifact_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecArtifact_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecArtifact_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ExecArtifact_Args.class, + com.kcl.api.Spec.ExecArtifact_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.ExecArtifact_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) { + getExecArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + path_ = ""; + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ExecArtifact_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ExecArtifact_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.ExecArtifact_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ExecArtifact_Args build() { + com.kcl.api.Spec.ExecArtifact_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ExecArtifact_Args buildPartial() { + com.kcl.api.Spec.ExecArtifact_Args result = new com.kcl.api.Spec.ExecArtifact_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ExecArtifact_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.execArgs_ = execArgsBuilder_ == null ? execArgs_ : execArgsBuilder_.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.ExecArtifact_Args) { + return mergeFrom((com.kcl.api.Spec.ExecArtifact_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ExecArtifact_Args other) { + if (other == com.kcl.api.Spec.ExecArtifact_Args.getDefaultInstance()) + return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExecArgs()) { + mergeExecArgs(other.getExecArgs()); + } + 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: { + input.readMessage(getExecArgsFieldBuilder().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 path_ = ""; + + /** + *
+             * Path of the artifact.
+             * 
+ * + * 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 artifact.
+             * 
+ * + * 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 artifact.
+             * 
+ * + * 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 artifact.
+             * 
+ * + * string path = 1; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Path of the artifact.
+             * 
+ * + * 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 com.kcl.api.Spec.ExecProgram_Args execArgs_; + private com.google.protobuf.SingleFieldBuilder execArgsBuilder_; + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + * + * @return Whether the execArgs field is set. + */ + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + * + * @return The execArgs. + */ + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + if (execArgsBuilder_ == null) { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } else { + return execArgsBuilder_.getMessage(); + } + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execArgs_ = value; + } else { + execArgsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args.Builder builderForValue) { + if (execArgsBuilder_ == null) { + execArgs_ = builderForValue.build(); + } else { + execArgsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + public Builder mergeExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && execArgs_ != null + && execArgs_ != com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance()) { + getExecArgsBuilder().mergeFrom(value); + } else { + execArgs_ = value; + } + } else { + execArgsBuilder_.mergeFrom(value); + } + if (execArgs_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + public Builder clearExecArgs() { + bitField0_ = (bitField0_ & ~0x00000002); + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + public com.kcl.api.Spec.ExecProgram_Args.Builder getExecArgsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExecArgsFieldBuilder().getBuilder(); + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + if (execArgsBuilder_ != null) { + return execArgsBuilder_.getMessageOrBuilder(); + } else { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 2; + */ + private com.google.protobuf.SingleFieldBuilder getExecArgsFieldBuilder() { + if (execArgsBuilder_ == null) { + execArgsBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getExecArgs(), getParentForChildren(), isClean()); + execArgs_ = null; + } + return execArgsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ExecArtifact_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ExecArtifact_Args) + private static final com.kcl.api.Spec.ExecArtifact_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ExecArtifact_Args(); + } + + public static com.kcl.api.Spec.ExecArtifact_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecArtifact_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.ExecArtifact_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FormatCode_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.FormatCode_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Source code to be formatted.
+         * 
+ * + * string source = 1; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + *
+         * Source code to be formatted.
+         * 
+ * + * string source = 1; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + } + + /** + *
+     * Message for format code request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.FormatCode_Args} + */ + public static final class FormatCode_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.FormatCode_Args) + FormatCode_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= */ "", FormatCode_Args.class.getName()); + } + + // Use FormatCode_Args.newBuilder() to construct. + private FormatCode_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FormatCode_Args() { + source_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatCode_Args.class, + com.kcl.api.Spec.FormatCode_Args.Builder.class); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + *
+         * Source code to be formatted.
+         * 
+ * + * string source = 1; + * + * @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 formatted.
+         * 
+ * + * string source = 1; + * + * @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; + } + } + + 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(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, source_); + } + 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(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, source_); + } + 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.FormatCode_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.FormatCode_Args other = (com.kcl.api.Spec.FormatCode_Args) obj; + + if (!getSource().equals(other.getSource())) + 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) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.FormatCode_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Args parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_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.FormatCode_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.FormatCode_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 format code request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.FormatCode_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.FormatCode_Args) + com.kcl.api.Spec.FormatCode_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatCode_Args.class, + com.kcl.api.Spec.FormatCode_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.FormatCode_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatCode_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.FormatCode_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.FormatCode_Args build() { + com.kcl.api.Spec.FormatCode_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatCode_Args buildPartial() { + com.kcl.api.Spec.FormatCode_Args result = new com.kcl.api.Spec.FormatCode_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.FormatCode_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = source_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.FormatCode_Args) { + return mergeFrom((com.kcl.api.Spec.FormatCode_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.FormatCode_Args other) { + if (other == com.kcl.api.Spec.FormatCode_Args.getDefaultInstance()) + return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + 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: { + source_ = 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 source_ = ""; + + /** + *
+             * Source code to be formatted.
+             * 
+ * + * string source = 1; + * + * @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 formatted.
+             * 
+ * + * string source = 1; + * + * @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 formatted.
+             * 
+ * + * string source = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Source code to be formatted.
+             * 
+ * + * string source = 1; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Source code to be formatted.
+             * 
+ * + * string source = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.FormatCode_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.FormatCode_Args) + private static final com.kcl.api.Spec.FormatCode_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.FormatCode_Args(); + } + + public static com.kcl.api.Spec.FormatCode_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FormatCode_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.FormatCode_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FormatCode_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.FormatCode_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Formatted code as bytes.
+         * 
+ * + * bytes formatted = 1; + * + * @return The formatted. + */ + com.google.protobuf.ByteString getFormatted(); + } + + /** + *
+     * Message for format code response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.FormatCode_Result} + */ + public static final class FormatCode_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.FormatCode_Result) + FormatCode_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= */ "", FormatCode_Result.class.getName()); + } + + // Use FormatCode_Result.newBuilder() to construct. + private FormatCode_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FormatCode_Result() { + formatted_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatCode_Result.class, + com.kcl.api.Spec.FormatCode_Result.Builder.class); + } + + public static final int FORMATTED_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString formatted_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+         * Formatted code as bytes.
+         * 
+ * + * bytes formatted = 1; + * + * @return The formatted. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFormatted() { + return formatted_; + } + + 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 (!formatted_.isEmpty()) { + output.writeBytes(1, formatted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (!formatted_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, formatted_); + } + 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.FormatCode_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.FormatCode_Result other = (com.kcl.api.Spec.FormatCode_Result) obj; + + if (!getFormatted().equals(other.getFormatted())) + 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) + FORMATTED_FIELD_NUMBER; + hash = (53 * hash) + getFormatted().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.FormatCode_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatCode_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.FormatCode_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.FormatCode_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.FormatCode_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 format code response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.FormatCode_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.FormatCode_Result) + com.kcl.api.Spec.FormatCode_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatCode_Result.class, + com.kcl.api.Spec.FormatCode_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.FormatCode_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + formatted_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatCode_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatCode_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.FormatCode_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.FormatCode_Result build() { + com.kcl.api.Spec.FormatCode_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatCode_Result buildPartial() { + com.kcl.api.Spec.FormatCode_Result result = new com.kcl.api.Spec.FormatCode_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.FormatCode_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.formatted_ = formatted_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.FormatCode_Result) { + return mergeFrom((com.kcl.api.Spec.FormatCode_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.FormatCode_Result other) { + if (other == com.kcl.api.Spec.FormatCode_Result.getDefaultInstance()) + return this; + if (other.getFormatted() != com.google.protobuf.ByteString.EMPTY) { + setFormatted(other.getFormatted()); + } + 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: { + formatted_ = input.readBytes(); + 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 com.google.protobuf.ByteString formatted_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
+             * Formatted code as bytes.
+             * 
+ * + * bytes formatted = 1; + * + * @return The formatted. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFormatted() { + return formatted_; + } + + /** + *
+             * Formatted code as bytes.
+             * 
+ * + * bytes formatted = 1; + * + * @param value + * The formatted to set. + * + * @return This builder for chaining. + */ + public Builder setFormatted(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + formatted_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Formatted code as bytes.
+             * 
+ * + * bytes formatted = 1; + * + * @return This builder for chaining. + */ + public Builder clearFormatted() { + bitField0_ = (bitField0_ & ~0x00000001); + formatted_ = getDefaultInstance().getFormatted(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.FormatCode_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.FormatCode_Result) + private static final com.kcl.api.Spec.FormatCode_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.FormatCode_Result(); + } + + public static com.kcl.api.Spec.FormatCode_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FormatCode_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.FormatCode_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FormatPath_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.FormatPath_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Path of the file to format.
+         * 
+ * + * string path = 1; + * + * @return The path. + */ + java.lang.String getPath(); + + /** + *
+         * Path of the file to format.
+         * 
+ * + * string path = 1; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + } + + /** + *
+     * Message for format file path request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.FormatPath_Args} + */ + public static final class FormatPath_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.FormatPath_Args) + FormatPath_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= */ "", FormatPath_Args.class.getName()); + } + + // Use FormatPath_Args.newBuilder() to construct. + private FormatPath_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FormatPath_Args() { + path_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatPath_Args.class, + com.kcl.api.Spec.FormatPath_Args.Builder.class); + } + + public static final int PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + + /** + *
+         * Path of the file to format.
+         * 
+ * + * 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 format.
+         * 
+ * + * 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; + } + } + + 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_); + } + 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_); + } + 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.FormatPath_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.FormatPath_Args other = (com.kcl.api.Spec.FormatPath_Args) obj; + + if (!getPath().equals(other.getPath())) + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.FormatPath_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Args parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_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.FormatPath_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.FormatPath_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 format file path request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.FormatPath_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.FormatPath_Args) + com.kcl.api.Spec.FormatPath_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatPath_Args.class, + com.kcl.api.Spec.FormatPath_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.FormatPath_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_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatPath_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.FormatPath_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.FormatPath_Args build() { + com.kcl.api.Spec.FormatPath_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatPath_Args buildPartial() { + com.kcl.api.Spec.FormatPath_Args result = new com.kcl.api.Spec.FormatPath_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.FormatPath_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.path_ = path_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.FormatPath_Args) { + return mergeFrom((com.kcl.api.Spec.FormatPath_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.FormatPath_Args other) { + if (other == com.kcl.api.Spec.FormatPath_Args.getDefaultInstance()) + return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + 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: { + path_ = 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 path_ = ""; + + /** + *
+             * Path of the file to format.
+             * 
+ * + * 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 format.
+             * 
+ * + * 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 format.
+             * 
+ * + * 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 format.
+             * 
+ * + * 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 format.
+             * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.FormatPath_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.FormatPath_Args) + private static final com.kcl.api.Spec.FormatPath_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.FormatPath_Args(); + } + + public static com.kcl.api.Spec.FormatPath_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FormatPath_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.FormatPath_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FormatPath_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.FormatPath_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @return A list containing the changedPaths. + */ + java.util.List getChangedPathsList(); + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @return The count of changedPaths. + */ + int getChangedPathsCount(); + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @param index + * The index of the element to return. + * + * @return The changedPaths at the given index. + */ + java.lang.String getChangedPaths(int index); + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the changedPaths at the given index. + */ + com.google.protobuf.ByteString getChangedPathsBytes(int index); + } + + /** + *
+     * Message for format file path response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.FormatPath_Result} + */ + public static final class FormatPath_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.FormatPath_Result) + FormatPath_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= */ "", FormatPath_Result.class.getName()); + } + + // Use FormatPath_Result.newBuilder() to construct. + private FormatPath_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FormatPath_Result() { + changedPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatPath_Result.class, + com.kcl.api.Spec.FormatPath_Result.Builder.class); + } + + public static final int CHANGED_PATHS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList changedPaths_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @return A list containing the changedPaths. + */ + public com.google.protobuf.ProtocolStringList getChangedPathsList() { + return changedPaths_; + } + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @return The count of changedPaths. + */ + public int getChangedPathsCount() { + return changedPaths_.size(); + } + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @param index + * The index of the element to return. + * + * @return The changedPaths at the given index. + */ + public java.lang.String getChangedPaths(int index) { + return changedPaths_.get(index); + } + + /** + *
+         * List of changed file paths.
+         * 
+ * + * repeated string changed_paths = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the changedPaths at the given index. + */ + public com.google.protobuf.ByteString getChangedPathsBytes(int index) { + return changedPaths_.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 < changedPaths_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, changedPaths_.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 < changedPaths_.size(); i++) { + dataSize += computeStringSizeNoTag(changedPaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getChangedPathsList().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.FormatPath_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.FormatPath_Result other = (com.kcl.api.Spec.FormatPath_Result) obj; + + if (!getChangedPathsList().equals(other.getChangedPathsList())) + 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 (getChangedPathsCount() > 0) { + hash = (37 * hash) + CHANGED_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getChangedPathsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.FormatPath_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.FormatPath_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.FormatPath_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.FormatPath_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.FormatPath_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 format file path response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.FormatPath_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.FormatPath_Result) + com.kcl.api.Spec.FormatPath_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_FormatPath_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.FormatPath_Result.class, + com.kcl.api.Spec.FormatPath_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.FormatPath_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + changedPaths_ = 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_FormatPath_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatPath_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.FormatPath_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.FormatPath_Result build() { + com.kcl.api.Spec.FormatPath_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.FormatPath_Result buildPartial() { + com.kcl.api.Spec.FormatPath_Result result = new com.kcl.api.Spec.FormatPath_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.FormatPath_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + changedPaths_.makeImmutable(); + result.changedPaths_ = changedPaths_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.FormatPath_Result) { + return mergeFrom((com.kcl.api.Spec.FormatPath_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.FormatPath_Result other) { + if (other == com.kcl.api.Spec.FormatPath_Result.getDefaultInstance()) + return this; + if (!other.changedPaths_.isEmpty()) { + if (changedPaths_.isEmpty()) { + changedPaths_ = other.changedPaths_; + bitField0_ |= 0x00000001; + } else { + ensureChangedPathsIsMutable(); + changedPaths_.addAll(other.changedPaths_); + } + 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(); + ensureChangedPathsIsMutable(); + changedPaths_.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 changedPaths_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureChangedPathsIsMutable() { + if (!changedPaths_.isModifiable()) { + changedPaths_ = new com.google.protobuf.LazyStringArrayList(changedPaths_); + } + bitField0_ |= 0x00000001; + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @return A list containing the changedPaths. + */ + public com.google.protobuf.ProtocolStringList getChangedPathsList() { + changedPaths_.makeImmutable(); + return changedPaths_; + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @return The count of changedPaths. + */ + public int getChangedPathsCount() { + return changedPaths_.size(); + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @param index + * The index of the element to return. + * + * @return The changedPaths at the given index. + */ + public java.lang.String getChangedPaths(int index) { + return changedPaths_.get(index); + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the changedPaths at the given index. + */ + public com.google.protobuf.ByteString getChangedPathsBytes(int index) { + return changedPaths_.getByteString(index); + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @param index + * The index to set the value at. + * @param value + * The changedPaths to set. + * + * @return This builder for chaining. + */ + public Builder setChangedPaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangedPathsIsMutable(); + changedPaths_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @param value + * The changedPaths to add. + * + * @return This builder for chaining. + */ + public Builder addChangedPaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangedPathsIsMutable(); + changedPaths_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @param values + * The changedPaths to add. + * + * @return This builder for chaining. + */ + public Builder addAllChangedPaths(java.lang.Iterable values) { + ensureChangedPathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changedPaths_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @return This builder for chaining. + */ + public Builder clearChangedPaths() { + changedPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + *
+             * List of changed file paths.
+             * 
+ * + * repeated string changed_paths = 1; + * + * @param value + * The bytes of the changedPaths to add. + * + * @return This builder for chaining. + */ + public Builder addChangedPathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureChangedPathsIsMutable(); + changedPaths_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.FormatPath_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.FormatPath_Result) + private static final com.kcl.api.Spec.FormatPath_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.FormatPath_Result(); + } + + public static com.kcl.api.Spec.FormatPath_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FormatPath_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.FormatPath_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LintPath_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.LintPath_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Paths of the files to lint.
+         * 
+ * + * repeated string paths = 1; + * + * @return A list containing the paths. + */ + java.util.List getPathsList(); + + /** + *
+         * Paths of the files to lint.
+         * 
+ * + * repeated string paths = 1; + * + * @return The count of paths. + */ + int getPathsCount(); + + /** + *
+         * Paths of the files to lint.
+         * 
+ * + * 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 files to lint.
+         * 
+ * + * 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); + } + + /** + *
+     * Message for lint file path request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.LintPath_Args} + */ + public static final class LintPath_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.LintPath_Args) + LintPath_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= */ "", LintPath_Args.class.getName()); + } + + // Use LintPath_Args.newBuilder() to construct. + private LintPath_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LintPath_Args() { + paths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LintPath_Args.class, + com.kcl.api.Spec.LintPath_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 files to lint.
+         * 
+ * + * repeated string paths = 1; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + return paths_; + } + + /** + *
+         * Paths of the files to lint.
+         * 
+ * + * repeated string paths = 1; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + + /** + *
+         * Paths of the files to lint.
+         * 
+ * + * 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 files to lint.
+         * 
+ * + * 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); + } + + 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)); + } + 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(); + } + 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.LintPath_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.LintPath_Args other = (com.kcl.api.Spec.LintPath_Args) obj; + + if (!getPathsList().equals(other.getPathsList())) + 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(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.LintPath_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Args parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_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.LintPath_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.LintPath_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 lint file path request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.LintPath_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.LintPath_Args) + com.kcl.api.Spec.LintPath_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LintPath_Args.class, + com.kcl.api.Spec.LintPath_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.LintPath_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(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.LintPath_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.LintPath_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.LintPath_Args build() { + com.kcl.api.Spec.LintPath_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.LintPath_Args buildPartial() { + com.kcl.api.Spec.LintPath_Args result = new com.kcl.api.Spec.LintPath_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.LintPath_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + paths_.makeImmutable(); + result.paths_ = paths_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.LintPath_Args) { + return mergeFrom((com.kcl.api.Spec.LintPath_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.LintPath_Args other) { + if (other == com.kcl.api.Spec.LintPath_Args.getDefaultInstance()) + return this; + if (!other.paths_.isEmpty()) { + if (paths_.isEmpty()) { + paths_ = other.paths_; + bitField0_ |= 0x00000001; + } else { + ensurePathsIsMutable(); + paths_.addAll(other.paths_); + } + 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(); + ensurePathsIsMutable(); + paths_.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 paths_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensurePathsIsMutable() { + if (!paths_.isModifiable()) { + paths_ = new com.google.protobuf.LazyStringArrayList(paths_); + } + bitField0_ |= 0x00000001; + } + + /** + *
+             * Paths of the files to lint.
+             * 
+ * + * repeated string paths = 1; + * + * @return A list containing the paths. + */ + public com.google.protobuf.ProtocolStringList getPathsList() { + paths_.makeImmutable(); + return paths_; + } + + /** + *
+             * Paths of the files to lint.
+             * 
+ * + * repeated string paths = 1; + * + * @return The count of paths. + */ + public int getPathsCount() { + return paths_.size(); + } + + /** + *
+             * Paths of the files to lint.
+             * 
+ * + * 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 files to lint.
+             * 
+ * + * 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 files to lint.
+             * 
+ * + * 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 files to lint.
+             * 
+ * + * 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 files to lint.
+             * 
+ * + * 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 files to lint.
+             * 
+ * + * 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 files to lint.
+             * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.LintPath_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.LintPath_Args) + private static final com.kcl.api.Spec.LintPath_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.LintPath_Args(); + } + + public static com.kcl.api.Spec.LintPath_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LintPath_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.LintPath_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LintPath_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.LintPath_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @return A list containing the results. + */ + java.util.List getResultsList(); + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @return The count of results. + */ + int getResultsCount(); + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @param index + * The index of the element to return. + * + * @return The results at the given index. + */ + java.lang.String getResults(int index); + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the results at the given index. + */ + com.google.protobuf.ByteString getResultsBytes(int index); + } + + /** + *
+     * Message for lint file path response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.LintPath_Result} + */ + public static final class LintPath_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.LintPath_Result) + LintPath_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= */ "", LintPath_Result.class.getName()); + } + + // Use LintPath_Result.newBuilder() to construct. + private LintPath_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LintPath_Result() { + results_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LintPath_Result.class, + com.kcl.api.Spec.LintPath_Result.Builder.class); + } + + public static final int RESULTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList results_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @return A list containing the results. + */ + public com.google.protobuf.ProtocolStringList getResultsList() { + return results_; + } + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @return The count of results. + */ + public int getResultsCount() { + return results_.size(); + } + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @param index + * The index of the element to return. + * + * @return The results at the given index. + */ + public java.lang.String getResults(int index) { + return results_.get(index); + } + + /** + *
+         * List of lint results.
+         * 
+ * + * repeated string results = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the results at the given index. + */ + public com.google.protobuf.ByteString getResultsBytes(int index) { + return results_.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 < results_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, results_.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 < results_.size(); i++) { + dataSize += computeStringSizeNoTag(results_.getRaw(i)); + } + size += dataSize; + size += 1 * getResultsList().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.LintPath_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.LintPath_Result other = (com.kcl.api.Spec.LintPath_Result) obj; + + if (!getResultsList().equals(other.getResultsList())) + 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 (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.LintPath_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Result parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LintPath_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.LintPath_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.LintPath_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.LintPath_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 lint file path response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.LintPath_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.LintPath_Result) + com.kcl.api.Spec.LintPath_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LintPath_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LintPath_Result.class, + com.kcl.api.Spec.LintPath_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.LintPath_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + results_ = 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_LintPath_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.LintPath_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.LintPath_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.LintPath_Result build() { + com.kcl.api.Spec.LintPath_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.LintPath_Result buildPartial() { + com.kcl.api.Spec.LintPath_Result result = new com.kcl.api.Spec.LintPath_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.LintPath_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + results_.makeImmutable(); + result.results_ = results_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.LintPath_Result) { + return mergeFrom((com.kcl.api.Spec.LintPath_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.LintPath_Result other) { + if (other == com.kcl.api.Spec.LintPath_Result.getDefaultInstance()) + return this; + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ |= 0x00000001; + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + 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(); + ensureResultsIsMutable(); + results_.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 results_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureResultsIsMutable() { + if (!results_.isModifiable()) { + results_ = new com.google.protobuf.LazyStringArrayList(results_); + } + bitField0_ |= 0x00000001; + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @return A list containing the results. + */ + public com.google.protobuf.ProtocolStringList getResultsList() { + results_.makeImmutable(); + return results_; + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @return The count of results. + */ + public int getResultsCount() { + return results_.size(); + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @param index + * The index of the element to return. + * + * @return The results at the given index. + */ + public java.lang.String getResults(int index) { + return results_.get(index); + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the results at the given index. + */ + public com.google.protobuf.ByteString getResultsBytes(int index) { + return results_.getByteString(index); + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @param index + * The index to set the value at. + * @param value + * The results to set. + * + * @return This builder for chaining. + */ + public Builder setResults(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @param value + * The results to add. + * + * @return This builder for chaining. + */ + public Builder addResults(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @param values + * The results to add. + * + * @return This builder for chaining. + */ + public Builder addAllResults(java.lang.Iterable values) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @return This builder for chaining. + */ + public Builder clearResults() { + results_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + *
+             * List of lint results.
+             * 
+ * + * repeated string results = 1; + * + * @param value + * The bytes of the results to add. + * + * @return This builder for chaining. + */ + public Builder addResultsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureResultsIsMutable(); + results_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.LintPath_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.LintPath_Result) + private static final com.kcl.api.Spec.LintPath_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.LintPath_Result(); + } + + public static com.kcl.api.Spec.LintPath_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LintPath_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.LintPath_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OverrideFile_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.OverrideFile_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Path of the file to override.
+         * 
+ * + * string file = 1; + * + * @return The file. + */ + java.lang.String getFile(); + + /** + *
+         * Path of the file to override.
+         * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + com.google.protobuf.ByteString getFileBytes(); + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @return A list containing the specs. + */ + java.util.List getSpecsList(); + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @return The count of specs. + */ + int getSpecsCount(); + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the element to return. + * + * @return The specs at the given index. + */ + java.lang.String getSpecs(int index); + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the specs at the given index. + */ + com.google.protobuf.ByteString getSpecsBytes(int index); + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @return A list containing the importPaths. + */ + java.util.List getImportPathsList(); + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @return The count of importPaths. + */ + int getImportPathsCount(); + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @param index + * The index of the element to return. + * + * @return The importPaths at the given index. + */ + java.lang.String getImportPaths(int index); + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the importPaths at the given index. + */ + com.google.protobuf.ByteString getImportPathsBytes(int index); + } + + /** + *
+     * Message for override file request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.OverrideFile_Args} + */ + public static final class OverrideFile_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.OverrideFile_Args) + OverrideFile_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= */ "", OverrideFile_Args.class.getName()); + } + + // Use OverrideFile_Args.newBuilder() to construct. + private OverrideFile_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OverrideFile_Args() { + file_ = ""; + specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + importPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.OverrideFile_Args.class, + com.kcl.api.Spec.OverrideFile_Args.Builder.class); + } + + public static final int FILE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object file_ = ""; + + /** + *
+         * Path of the file to override.
+         * 
+ * + * string file = 1; + * + * @return The file. + */ + @java.lang.Override + public java.lang.String getFile() { + java.lang.Object ref = file_; + 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(); + file_ = s; + return s; + } + } + + /** + *
+         * Path of the file to override.
+         * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPECS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @return A list containing the specs. + */ + public com.google.protobuf.ProtocolStringList getSpecsList() { + return specs_; + } + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @return The count of specs. + */ + public int getSpecsCount() { + return specs_.size(); + } + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the element to return. + * + * @return The specs at the given index. + */ + public java.lang.String getSpecs(int index) { + return specs_.get(index); + } + + /** + *
+         * List of override specifications.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the specs at the given index. + */ + public com.google.protobuf.ByteString getSpecsBytes(int index) { + return specs_.getByteString(index); + } + + public static final int IMPORT_PATHS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList importPaths_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @return A list containing the importPaths. + */ + public com.google.protobuf.ProtocolStringList getImportPathsList() { + return importPaths_; + } + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @return The count of importPaths. + */ + public int getImportPathsCount() { + return importPaths_.size(); + } + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @param index + * The index of the element to return. + * + * @return The importPaths at the given index. + */ + public java.lang.String getImportPaths(int index) { + return importPaths_.get(index); + } + + /** + *
+         * List of import paths.
+         * 
+ * + * repeated string import_paths = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the importPaths at the given index. + */ + public com.google.protobuf.ByteString getImportPathsBytes(int index) { + return importPaths_.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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, file_); + } + for (int i = 0; i < specs_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, specs_.getRaw(i)); + } + for (int i = 0; i < importPaths_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, importPaths_.getRaw(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(file_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, file_); + } + { + int dataSize = 0; + for (int i = 0; i < specs_.size(); i++) { + dataSize += computeStringSizeNoTag(specs_.getRaw(i)); + } + size += dataSize; + size += 1 * getSpecsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < importPaths_.size(); i++) { + dataSize += computeStringSizeNoTag(importPaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getImportPathsList().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.OverrideFile_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.OverrideFile_Args other = (com.kcl.api.Spec.OverrideFile_Args) obj; + + if (!getFile().equals(other.getFile())) + return false; + if (!getSpecsList().equals(other.getSpecsList())) + return false; + if (!getImportPathsList().equals(other.getImportPathsList())) + 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) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + if (getSpecsCount() > 0) { + hash = (37 * hash) + SPECS_FIELD_NUMBER; + hash = (53 * hash) + getSpecsList().hashCode(); + } + if (getImportPathsCount() > 0) { + hash = (37 * hash) + IMPORT_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getImportPathsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.OverrideFile_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_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.OverrideFile_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.OverrideFile_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 override file request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.OverrideFile_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.OverrideFile_Args) + com.kcl.api.Spec.OverrideFile_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.OverrideFile_Args.class, + com.kcl.api.Spec.OverrideFile_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.OverrideFile_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + file_ = ""; + specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + importPaths_ = 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_OverrideFile_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.OverrideFile_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.OverrideFile_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.OverrideFile_Args build() { + com.kcl.api.Spec.OverrideFile_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.OverrideFile_Args buildPartial() { + com.kcl.api.Spec.OverrideFile_Args result = new com.kcl.api.Spec.OverrideFile_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.OverrideFile_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.file_ = file_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + specs_.makeImmutable(); + result.specs_ = specs_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + importPaths_.makeImmutable(); + result.importPaths_ = importPaths_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.OverrideFile_Args) { + return mergeFrom((com.kcl.api.Spec.OverrideFile_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.OverrideFile_Args other) { + if (other == com.kcl.api.Spec.OverrideFile_Args.getDefaultInstance()) + return this; + if (!other.getFile().isEmpty()) { + file_ = other.file_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.specs_.isEmpty()) { + if (specs_.isEmpty()) { + specs_ = other.specs_; + bitField0_ |= 0x00000002; + } else { + ensureSpecsIsMutable(); + specs_.addAll(other.specs_); + } + onChanged(); + } + if (!other.importPaths_.isEmpty()) { + if (importPaths_.isEmpty()) { + importPaths_ = other.importPaths_; + bitField0_ |= 0x00000004; + } else { + ensureImportPathsIsMutable(); + importPaths_.addAll(other.importPaths_); + } + 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: { + file_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSpecsIsMutable(); + specs_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureImportPathsIsMutable(); + importPaths_.add(s); + 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 file_ = ""; + + /** + *
+             * Path of the file to override.
+             * 
+ * + * string file = 1; + * + * @return The file. + */ + public java.lang.String getFile() { + java.lang.Object ref = file_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + file_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Path of the file to override.
+             * 
+ * + * string file = 1; + * + * @return The bytes for file. + */ + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Path of the file to override.
+             * 
+ * + * string file = 1; + * + * @param value + * The file to set. + * + * @return This builder for chaining. + */ + public Builder setFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Path of the file to override.
+             * 
+ * + * string file = 1; + * + * @return This builder for chaining. + */ + public Builder clearFile() { + file_ = getDefaultInstance().getFile(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Path of the file to override.
+             * 
+ * + * string file = 1; + * + * @param value + * The bytes for file to set. + * + * @return This builder for chaining. + */ + public Builder setFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + file_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList specs_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureSpecsIsMutable() { + if (!specs_.isModifiable()) { + specs_ = new com.google.protobuf.LazyStringArrayList(specs_); + } + bitField0_ |= 0x00000002; + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @return A list containing the specs. + */ + public com.google.protobuf.ProtocolStringList getSpecsList() { + specs_.makeImmutable(); + return specs_; + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @return The count of specs. + */ + public int getSpecsCount() { + return specs_.size(); + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the element to return. + * + * @return The specs at the given index. + */ + public java.lang.String getSpecs(int index) { + return specs_.get(index); + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the specs at the given index. + */ + public com.google.protobuf.ByteString getSpecsBytes(int index) { + return specs_.getByteString(index); + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @param index + * The index to set the value at. + * @param value + * The specs to set. + * + * @return This builder for chaining. + */ + public Builder setSpecs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecsIsMutable(); + specs_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @param value + * The specs to add. + * + * @return This builder for chaining. + */ + public Builder addSpecs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecsIsMutable(); + specs_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @param values + * The specs to add. + * + * @return This builder for chaining. + */ + public Builder addAllSpecs(java.lang.Iterable values) { + ensureSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, specs_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @return This builder for chaining. + */ + public Builder clearSpecs() { + specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + *
+             * List of override specifications.
+             * 
+ * + * repeated string specs = 2; + * + * @param value + * The bytes of the specs to add. + * + * @return This builder for chaining. + */ + public Builder addSpecsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSpecsIsMutable(); + specs_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList importPaths_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureImportPathsIsMutable() { + if (!importPaths_.isModifiable()) { + importPaths_ = new com.google.protobuf.LazyStringArrayList(importPaths_); + } + bitField0_ |= 0x00000004; + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @return A list containing the importPaths. + */ + public com.google.protobuf.ProtocolStringList getImportPathsList() { + importPaths_.makeImmutable(); + return importPaths_; + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @return The count of importPaths. + */ + public int getImportPathsCount() { + return importPaths_.size(); + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @param index + * The index of the element to return. + * + * @return The importPaths at the given index. + */ + public java.lang.String getImportPaths(int index) { + return importPaths_.get(index); + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the importPaths at the given index. + */ + public com.google.protobuf.ByteString getImportPathsBytes(int index) { + return importPaths_.getByteString(index); + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @param index + * The index to set the value at. + * @param value + * The importPaths to set. + * + * @return This builder for chaining. + */ + public Builder setImportPaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImportPathsIsMutable(); + importPaths_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @param value + * The importPaths to add. + * + * @return This builder for chaining. + */ + public Builder addImportPaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureImportPathsIsMutable(); + importPaths_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @param values + * The importPaths to add. + * + * @return This builder for chaining. + */ + public Builder addAllImportPaths(java.lang.Iterable values) { + ensureImportPathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, importPaths_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @return This builder for chaining. + */ + public Builder clearImportPaths() { + importPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + *
+             * List of import paths.
+             * 
+ * + * repeated string import_paths = 3; + * + * @param value + * The bytes of the importPaths to add. + * + * @return This builder for chaining. + */ + public Builder addImportPathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureImportPathsIsMutable(); + importPaths_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.OverrideFile_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.OverrideFile_Args) + private static final com.kcl.api.Spec.OverrideFile_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.OverrideFile_Args(); + } + + public static com.kcl.api.Spec.OverrideFile_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OverrideFile_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.OverrideFile_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OverrideFile_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.OverrideFile_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Result of the override operation.
+         * 
+ * + * bool result = 1; + * + * @return The result. + */ + boolean getResult(); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + java.util.List getParseErrorsList(); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + com.kcl.api.Spec.Error getParseErrors(int index); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + int getParseErrorsCount(); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + java.util.List getParseErrorsOrBuilderList(); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + com.kcl.api.Spec.ErrorOrBuilder getParseErrorsOrBuilder(int index); + } + + /** + *
+     * Message for override file response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.OverrideFile_Result} + */ + public static final class OverrideFile_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.OverrideFile_Result) + OverrideFile_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= */ "", OverrideFile_Result.class.getName()); + } + + // Use OverrideFile_Result.newBuilder() to construct. + private OverrideFile_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OverrideFile_Result() { + parseErrors_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.OverrideFile_Result.class, + com.kcl.api.Spec.OverrideFile_Result.Builder.class); + } + + public static final int RESULT_FIELD_NUMBER = 1; + private boolean result_ = false; + + /** + *
+         * Result of the override operation.
+         * 
+ * + * bool result = 1; + * + * @return The result. + */ + @java.lang.Override + public boolean getResult() { + return result_; + } + + public static final int PARSE_ERRORS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List parseErrors_; + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + @java.lang.Override + public java.util.List getParseErrorsList() { + return parseErrors_; + } + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + @java.lang.Override + public java.util.List getParseErrorsOrBuilderList() { + return parseErrors_; + } + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + @java.lang.Override + public int getParseErrorsCount() { + return parseErrors_.size(); + } + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.Error getParseErrors(int index) { + return parseErrors_.get(index); + } + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.ErrorOrBuilder getParseErrorsOrBuilder(int index) { + return parseErrors_.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 (result_ != false) { + output.writeBool(1, result_); + } + for (int i = 0; i < parseErrors_.size(); i++) { + output.writeMessage(2, parseErrors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (result_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, result_); + } + for (int i = 0; i < parseErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parseErrors_.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.OverrideFile_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.OverrideFile_Result other = (com.kcl.api.Spec.OverrideFile_Result) obj; + + if (getResult() != other.getResult()) + return false; + if (!getParseErrorsList().equals(other.getParseErrorsList())) + 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) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResult()); + if (getParseErrorsCount() > 0) { + hash = (37 * hash) + PARSE_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getParseErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.OverrideFile_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.OverrideFile_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.OverrideFile_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.OverrideFile_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.OverrideFile_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 override file response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.OverrideFile_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.OverrideFile_Result) + com.kcl.api.Spec.OverrideFile_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.OverrideFile_Result.class, + com.kcl.api.Spec.OverrideFile_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.OverrideFile_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + result_ = false; + if (parseErrorsBuilder_ == null) { + parseErrors_ = java.util.Collections.emptyList(); + } else { + parseErrors_ = null; + parseErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_OverrideFile_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.OverrideFile_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.OverrideFile_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.OverrideFile_Result build() { + com.kcl.api.Spec.OverrideFile_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.OverrideFile_Result buildPartial() { + com.kcl.api.Spec.OverrideFile_Result result = new com.kcl.api.Spec.OverrideFile_Result(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.OverrideFile_Result result) { + if (parseErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + parseErrors_ = java.util.Collections.unmodifiableList(parseErrors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.parseErrors_ = parseErrors_; + } else { + result.parseErrors_ = parseErrorsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.OverrideFile_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = result_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.OverrideFile_Result) { + return mergeFrom((com.kcl.api.Spec.OverrideFile_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.OverrideFile_Result other) { + if (other == com.kcl.api.Spec.OverrideFile_Result.getDefaultInstance()) + return this; + if (other.getResult() != false) { + setResult(other.getResult()); + } + if (parseErrorsBuilder_ == null) { + if (!other.parseErrors_.isEmpty()) { + if (parseErrors_.isEmpty()) { + parseErrors_ = other.parseErrors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureParseErrorsIsMutable(); + parseErrors_.addAll(other.parseErrors_); + } + onChanged(); + } + } else { + if (!other.parseErrors_.isEmpty()) { + if (parseErrorsBuilder_.isEmpty()) { + parseErrorsBuilder_.dispose(); + parseErrorsBuilder_ = null; + parseErrors_ = other.parseErrors_; + bitField0_ = (bitField0_ & ~0x00000002); + parseErrorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getParseErrorsFieldBuilder() : null; + } else { + parseErrorsBuilder_.addAllMessages(other.parseErrors_); + } + } + } + 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 8: { + result_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + 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 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 boolean result_; + + /** + *
+             * Result of the override operation.
+             * 
+ * + * bool result = 1; + * + * @return The result. + */ + @java.lang.Override + public boolean getResult() { + return result_; + } + + /** + *
+             * Result of the override operation.
+             * 
+ * + * bool result = 1; + * + * @param value + * The result to set. + * + * @return This builder for chaining. + */ + public Builder setResult(boolean value) { + + result_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Result of the override operation.
+             * 
+ * + * bool result = 1; + * + * @return This builder for chaining. + */ + public Builder clearResult() { + bitField0_ = (bitField0_ & ~0x00000001); + result_ = false; + onChanged(); + return this; + } + + private java.util.List parseErrors_ = java.util.Collections.emptyList(); + + private void ensureParseErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + parseErrors_ = new java.util.ArrayList(parseErrors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder parseErrorsBuilder_; + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public java.util.List getParseErrorsList() { + if (parseErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(parseErrors_); + } else { + return parseErrorsBuilder_.getMessageList(); + } + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public int getParseErrorsCount() { + if (parseErrorsBuilder_ == null) { + return parseErrors_.size(); + } else { + return parseErrorsBuilder_.getCount(); + } + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public Builder addAllParseErrors(java.lang.Iterable values) { + if (parseErrorsBuilder_ == null) { + ensureParseErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parseErrors_); + onChanged(); + } else { + parseErrorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public Builder clearParseErrors() { + if (parseErrorsBuilder_ == null) { + parseErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + parseErrorsBuilder_.clear(); + } + return this; + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public Builder removeParseErrors(int index) { + if (parseErrorsBuilder_ == null) { + ensureParseErrorsIsMutable(); + parseErrors_.remove(index); + onChanged(); + } else { + parseErrorsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public com.kcl.api.Spec.Error.Builder getParseErrorsBuilder(int index) { + return getParseErrorsFieldBuilder().getBuilder(index); + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public java.util.List getParseErrorsOrBuilderList() { + if (parseErrorsBuilder_ != null) { + return parseErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parseErrors_); + } + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public com.kcl.api.Spec.Error.Builder addParseErrorsBuilder() { + return getParseErrorsFieldBuilder().addBuilder(com.kcl.api.Spec.Error.getDefaultInstance()); + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + public com.kcl.api.Spec.Error.Builder addParseErrorsBuilder(int index) { + return getParseErrorsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Error.getDefaultInstance()); + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 2; + */ + 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parseErrors_ = null; + } + return parseErrorsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.OverrideFile_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.OverrideFile_Result) + private static final com.kcl.api.Spec.OverrideFile_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.OverrideFile_Result(); + } + + public static com.kcl.api.Spec.OverrideFile_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OverrideFile_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.OverrideFile_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListVariables_OptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ListVariables_Options) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Flag to merge program configuration.
+         * 
+ * + * bool merge_program = 1; + * + * @return The mergeProgram. + */ + boolean getMergeProgram(); + } + + /** + *
+     * Message for list variables options.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ListVariables_Options} + */ + public static final class ListVariables_Options extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ListVariables_Options) + ListVariables_OptionsOrBuilder { + 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= */ "", ListVariables_Options.class.getName()); + } + + // Use ListVariables_Options.newBuilder() to construct. + private ListVariables_Options(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListVariables_Options() { + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Options_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Options_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListVariables_Options.class, + com.kcl.api.Spec.ListVariables_Options.Builder.class); + } + + public static final int MERGE_PROGRAM_FIELD_NUMBER = 1; + private boolean mergeProgram_ = false; + + /** + *
+         * Flag to merge program configuration.
+         * 
+ * + * bool merge_program = 1; + * + * @return The mergeProgram. + */ + @java.lang.Override + public boolean getMergeProgram() { + return mergeProgram_; + } + + 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 (mergeProgram_ != false) { + output.writeBool(1, mergeProgram_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (mergeProgram_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, mergeProgram_); + } + 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.ListVariables_Options)) { + return super.equals(obj); + } + com.kcl.api.Spec.ListVariables_Options other = (com.kcl.api.Spec.ListVariables_Options) obj; + + if (getMergeProgram() != other.getMergeProgram()) + 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) + MERGE_PROGRAM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMergeProgram()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ListVariables_Options parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_Options 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.ListVariables_Options parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_Options 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.ListVariables_Options parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_Options parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.ListVariables_Options parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListVariables_Options 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.ListVariables_Options parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListVariables_Options 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.ListVariables_Options parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListVariables_Options 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.ListVariables_Options 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 variables options.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ListVariables_Options} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ListVariables_Options) + com.kcl.api.Spec.ListVariables_OptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Options_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Options_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListVariables_Options.class, + com.kcl.api.Spec.ListVariables_Options.Builder.class); + } + + // Construct using com.kcl.api.Spec.ListVariables_Options.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mergeProgram_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Options_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Options getDefaultInstanceForType() { + return com.kcl.api.Spec.ListVariables_Options.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Options build() { + com.kcl.api.Spec.ListVariables_Options result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Options buildPartial() { + com.kcl.api.Spec.ListVariables_Options result = new com.kcl.api.Spec.ListVariables_Options(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ListVariables_Options result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mergeProgram_ = mergeProgram_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ListVariables_Options) { + return mergeFrom((com.kcl.api.Spec.ListVariables_Options) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ListVariables_Options other) { + if (other == com.kcl.api.Spec.ListVariables_Options.getDefaultInstance()) + return this; + if (other.getMergeProgram() != false) { + setMergeProgram(other.getMergeProgram()); + } + 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 8: { + mergeProgram_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 boolean mergeProgram_; + + /** + *
+             * Flag to merge program configuration.
+             * 
+ * + * bool merge_program = 1; + * + * @return The mergeProgram. + */ + @java.lang.Override + public boolean getMergeProgram() { + return mergeProgram_; + } + + /** + *
+             * Flag to merge program configuration.
+             * 
+ * + * bool merge_program = 1; + * + * @param value + * The mergeProgram to set. + * + * @return This builder for chaining. + */ + public Builder setMergeProgram(boolean value) { + + mergeProgram_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Flag to merge program configuration.
+             * 
+ * + * bool merge_program = 1; + * + * @return This builder for chaining. + */ + public Builder clearMergeProgram() { + bitField0_ = (bitField0_ & ~0x00000001); + mergeProgram_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ListVariables_Options) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ListVariables_Options) + private static final com.kcl.api.Spec.ListVariables_Options DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ListVariables_Options(); + } + + public static com.kcl.api.Spec.ListVariables_Options getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVariables_Options 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.ListVariables_Options getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VariableListOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.VariableList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + java.util.List getVariablesList(); + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + com.kcl.api.Spec.Variable getVariables(int index); + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + int getVariablesCount(); + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + java.util.List getVariablesOrBuilderList(); + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + com.kcl.api.Spec.VariableOrBuilder getVariablesOrBuilder(int index); + } + + /** + *
+     * Message representing a list of variables.
+     * 
+ * + * Protobuf type {@code com.kcl.api.VariableList} + */ + public static final class VariableList extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.VariableList) + VariableListOrBuilder { + 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= */ "", VariableList.class.getName()); + } + + // Use VariableList.newBuilder() to construct. + private VariableList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VariableList() { + variables_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_VariableList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_VariableList_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.VariableList.class, + com.kcl.api.Spec.VariableList.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List variables_; + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + @java.lang.Override + public java.util.List getVariablesList() { + return variables_; + } + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + @java.lang.Override + public java.util.List getVariablesOrBuilderList() { + return variables_; + } + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + @java.lang.Override + public int getVariablesCount() { + return variables_.size(); + } + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.Variable getVariables(int index) { + return variables_.get(index); + } + + /** + *
+         * List of variables.
+         * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.VariableOrBuilder getVariablesOrBuilder(int index) { + return variables_.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 < variables_.size(); i++) { + output.writeMessage(1, variables_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < variables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, variables_.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.VariableList)) { + return super.equals(obj); + } + com.kcl.api.Spec.VariableList other = (com.kcl.api.Spec.VariableList) obj; + + if (!getVariablesList().equals(other.getVariablesList())) + 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 (getVariablesCount() > 0) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.VariableList parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.VariableList 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.VariableList parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.VariableList 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.VariableList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.VariableList parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.VariableList parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.VariableList 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.VariableList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.VariableList 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.VariableList parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.VariableList 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.VariableList 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 list of variables.
+         * 
+ * + * Protobuf type {@code com.kcl.api.VariableList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.VariableList) + com.kcl.api.Spec.VariableListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_VariableList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_VariableList_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.VariableList.class, + com.kcl.api.Spec.VariableList.Builder.class); + } + + // Construct using com.kcl.api.Spec.VariableList.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + } else { + variables_ = null; + variablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_VariableList_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.VariableList getDefaultInstanceForType() { + return com.kcl.api.Spec.VariableList.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.VariableList build() { + com.kcl.api.Spec.VariableList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.VariableList buildPartial() { + com.kcl.api.Spec.VariableList result = new com.kcl.api.Spec.VariableList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.VariableList result) { + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + variables_ = java.util.Collections.unmodifiableList(variables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.variables_ = variables_; + } else { + result.variables_ = variablesBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.VariableList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.VariableList) { + return mergeFrom((com.kcl.api.Spec.VariableList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.VariableList other) { + if (other == com.kcl.api.Spec.VariableList.getDefaultInstance()) + return this; + if (variablesBuilder_ == null) { + if (!other.variables_.isEmpty()) { + if (variables_.isEmpty()) { + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVariablesIsMutable(); + variables_.addAll(other.variables_); + } + onChanged(); + } + } else { + if (!other.variables_.isEmpty()) { + if (variablesBuilder_.isEmpty()) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000001); + variablesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getVariablesFieldBuilder() : null; + } else { + variablesBuilder_.addAllMessages(other.variables_); + } + } + } + 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: { + com.kcl.api.Spec.Variable m = input.readMessage(com.kcl.api.Spec.Variable.parser(), + extensionRegistry); + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(m); + } else { + variablesBuilder_.addMessage(m); + } + 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.util.List variables_ = java.util.Collections.emptyList(); + + private void ensureVariablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + variables_ = new java.util.ArrayList(variables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder variablesBuilder_; + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public java.util.List getVariablesList() { + if (variablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(variables_); + } else { + return variablesBuilder_.getMessageList(); + } + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public int getVariablesCount() { + if (variablesBuilder_ == null) { + return variables_.size(); + } else { + return variablesBuilder_.getCount(); + } + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public com.kcl.api.Spec.Variable getVariables(int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); + } else { + return variablesBuilder_.getMessage(index); + } + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder setVariables(int index, com.kcl.api.Spec.Variable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.set(index, value); + onChanged(); + } else { + variablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder setVariables(int index, com.kcl.api.Spec.Variable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.set(index, builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder addVariables(com.kcl.api.Spec.Variable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(value); + onChanged(); + } else { + variablesBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder addVariables(int index, com.kcl.api.Spec.Variable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(index, value); + onChanged(); + } else { + variablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder addVariables(com.kcl.api.Spec.Variable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder addVariables(int index, com.kcl.api.Spec.Variable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(index, builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder addAllVariables(java.lang.Iterable values) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, variables_); + onChanged(); + } else { + variablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder clearVariables() { + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + variablesBuilder_.clear(); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public Builder removeVariables(int index) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.remove(index); + onChanged(); + } else { + variablesBuilder_.remove(index); + } + return this; + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public com.kcl.api.Spec.Variable.Builder getVariablesBuilder(int index) { + return getVariablesFieldBuilder().getBuilder(index); + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public com.kcl.api.Spec.VariableOrBuilder getVariablesOrBuilder(int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); + } else { + return variablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public java.util.List getVariablesOrBuilderList() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(variables_); + } + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public com.kcl.api.Spec.Variable.Builder addVariablesBuilder() { + return getVariablesFieldBuilder().addBuilder(com.kcl.api.Spec.Variable.getDefaultInstance()); + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public com.kcl.api.Spec.Variable.Builder addVariablesBuilder(int index) { + return getVariablesFieldBuilder().addBuilder(index, com.kcl.api.Spec.Variable.getDefaultInstance()); + } + + /** + *
+             * List of variables.
+             * 
+ * + * repeated .com.kcl.api.Variable variables = 1; + */ + public java.util.List getVariablesBuilderList() { + return getVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + variables_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + variables_ = null; + } + return variablesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.VariableList) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.VariableList) + private static final com.kcl.api.Spec.VariableList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.VariableList(); + } + + public static com.kcl.api.Spec.VariableList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableList 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.VariableList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListVariables_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ListVariables_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + java.util.List getFilesList(); + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + int getFilesCount(); + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + java.lang.String getFiles(int index); + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + com.google.protobuf.ByteString getFilesBytes(int index); + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @return A list containing the specs. + */ + java.util.List getSpecsList(); + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @return The count of specs. + */ + int getSpecsCount(); + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the element to return. + * + * @return The specs at the given index. + */ + java.lang.String getSpecs(int index); + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the specs at the given index. + */ + com.google.protobuf.ByteString getSpecsBytes(int index); + + /** + *
+         * Options for listing variables.
+         * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + * + * @return Whether the options field is set. + */ + boolean hasOptions(); + + /** + *
+         * Options for listing variables.
+         * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + * + * @return The options. + */ + com.kcl.api.Spec.ListVariables_Options getOptions(); + + /** + *
+         * Options for listing variables.
+         * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + com.kcl.api.Spec.ListVariables_OptionsOrBuilder getOptionsOrBuilder(); + } + + /** + *
+     * Message for list variables request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ListVariables_Args} + */ + public static final class ListVariables_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ListVariables_Args) + ListVariables_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= */ "", ListVariables_Args.class.getName()); + } + + // Use ListVariables_Args.newBuilder() to construct. + private ListVariables_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListVariables_Args() { + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListVariables_Args.class, + com.kcl.api.Spec.ListVariables_Args.Builder.class); + } + + private int bitField0_; + public static final int FILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + return files_; + } + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+         * Files to be processed.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + public static final int SPECS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @return A list containing the specs. + */ + public com.google.protobuf.ProtocolStringList getSpecsList() { + return specs_; + } + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @return The count of specs. + */ + public int getSpecsCount() { + return specs_.size(); + } + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the element to return. + * + * @return The specs at the given index. + */ + public java.lang.String getSpecs(int index) { + return specs_.get(index); + } + + /** + *
+         * Specifications for variables.
+         * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the specs at the given index. + */ + public com.google.protobuf.ByteString getSpecsBytes(int index) { + return specs_.getByteString(index); + } + + public static final int OPTIONS_FIELD_NUMBER = 3; + private com.kcl.api.Spec.ListVariables_Options options_; + + /** + *
+         * Options for listing variables.
+         * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + * + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Options for listing variables.
+         * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + * + * @return The options. + */ + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Options getOptions() { + return options_ == null ? com.kcl.api.Spec.ListVariables_Options.getDefaultInstance() : options_; + } + + /** + *
+         * Options for listing variables.
+         * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + @java.lang.Override + public com.kcl.api.Spec.ListVariables_OptionsOrBuilder getOptionsOrBuilder() { + return options_ == null ? com.kcl.api.Spec.ListVariables_Options.getDefaultInstance() : options_; + } + + 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 < files_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, files_.getRaw(i)); + } + for (int i = 0; i < specs_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, specs_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOptions()); + } + 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 < files_.size(); i++) { + dataSize += computeStringSizeNoTag(files_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < specs_.size(); i++) { + dataSize += computeStringSizeNoTag(specs_.getRaw(i)); + } + size += dataSize; + size += 1 * getSpecsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOptions()); + } + 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.ListVariables_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.ListVariables_Args other = (com.kcl.api.Spec.ListVariables_Args) obj; + + if (!getFilesList().equals(other.getFilesList())) + return false; + if (!getSpecsList().equals(other.getSpecsList())) + return false; + if (hasOptions() != other.hasOptions()) + return false; + if (hasOptions()) { + if (!getOptions().equals(other.getOptions())) + 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 (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + if (getSpecsCount() > 0) { + hash = (37 * hash) + SPECS_FIELD_NUMBER; + hash = (53 * hash) + getSpecsList().hashCode(); + } + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ListVariables_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_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.ListVariables_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.ListVariables_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 variables request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ListVariables_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ListVariables_Args) + com.kcl.api.Spec.ListVariables_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListVariables_Args.class, + com.kcl.api.Spec.ListVariables_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.ListVariables_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) { + getOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.ListVariables_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Args build() { + com.kcl.api.Spec.ListVariables_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Args buildPartial() { + com.kcl.api.Spec.ListVariables_Args result = new com.kcl.api.Spec.ListVariables_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ListVariables_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + files_.makeImmutable(); + result.files_ = files_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + specs_.makeImmutable(); + result.specs_ = specs_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.options_ = optionsBuilder_ == null ? options_ : optionsBuilder_.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.ListVariables_Args) { + return mergeFrom((com.kcl.api.Spec.ListVariables_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ListVariables_Args other) { + if (other == com.kcl.api.Spec.ListVariables_Args.getDefaultInstance()) + return this; + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ |= 0x00000001; + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + if (!other.specs_.isEmpty()) { + if (specs_.isEmpty()) { + specs_ = other.specs_; + bitField0_ |= 0x00000002; + } else { + ensureSpecsIsMutable(); + specs_.addAll(other.specs_); + } + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + 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(); + ensureFilesIsMutable(); + files_.add(s); + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSpecsIsMutable(); + specs_.add(s); + break; + } // case 18 + case 26: { + input.readMessage(getOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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 files_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureFilesIsMutable() { + if (!files_.isModifiable()) { + files_ = new com.google.protobuf.LazyStringArrayList(files_); + } + bitField0_ |= 0x00000001; + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + files_.makeImmutable(); + return files_; + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @param index + * The index to set the value at. + * @param value + * The files to set. + * + * @return This builder for chaining. + */ + public Builder setFiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @param value + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addFiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @param values + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addAllFiles(java.lang.Iterable values) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @return This builder for chaining. + */ + public Builder clearFiles() { + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + *
+             * Files to be processed.
+             * 
+ * + * repeated string files = 1; + * + * @param value + * The bytes of the files to add. + * + * @return This builder for chaining. + */ + public Builder addFilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList specs_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureSpecsIsMutable() { + if (!specs_.isModifiable()) { + specs_ = new com.google.protobuf.LazyStringArrayList(specs_); + } + bitField0_ |= 0x00000002; + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @return A list containing the specs. + */ + public com.google.protobuf.ProtocolStringList getSpecsList() { + specs_.makeImmutable(); + return specs_; + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @return The count of specs. + */ + public int getSpecsCount() { + return specs_.size(); + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the element to return. + * + * @return The specs at the given index. + */ + public java.lang.String getSpecs(int index) { + return specs_.get(index); + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the specs at the given index. + */ + public com.google.protobuf.ByteString getSpecsBytes(int index) { + return specs_.getByteString(index); + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @param index + * The index to set the value at. + * @param value + * The specs to set. + * + * @return This builder for chaining. + */ + public Builder setSpecs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecsIsMutable(); + specs_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @param value + * The specs to add. + * + * @return This builder for chaining. + */ + public Builder addSpecs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpecsIsMutable(); + specs_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @param values + * The specs to add. + * + * @return This builder for chaining. + */ + public Builder addAllSpecs(java.lang.Iterable values) { + ensureSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, specs_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @return This builder for chaining. + */ + public Builder clearSpecs() { + specs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + *
+             * Specifications for variables.
+             * 
+ * + * repeated string specs = 2; + * + * @param value + * The bytes of the specs to add. + * + * @return This builder for chaining. + */ + public Builder addSpecsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSpecsIsMutable(); + specs_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.kcl.api.Spec.ListVariables_Options options_; + private com.google.protobuf.SingleFieldBuilder optionsBuilder_; + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + * + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + * + * @return The options. + */ + public com.kcl.api.Spec.ListVariables_Options getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? com.kcl.api.Spec.ListVariables_Options.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + public Builder setOptions(com.kcl.api.Spec.ListVariables_Options value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + } else { + optionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + public Builder setOptions(com.kcl.api.Spec.ListVariables_Options.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + public Builder mergeOptions(com.kcl.api.Spec.ListVariables_Options value) { + if (optionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && options_ != null + && options_ != com.kcl.api.Spec.ListVariables_Options.getDefaultInstance()) { + getOptionsBuilder().mergeFrom(value); + } else { + options_ = value; + } + } else { + optionsBuilder_.mergeFrom(value); + } + if (options_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + public Builder clearOptions() { + bitField0_ = (bitField0_ & ~0x00000004); + options_ = null; + if (optionsBuilder_ != null) { + optionsBuilder_.dispose(); + optionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + public com.kcl.api.Spec.ListVariables_Options.Builder getOptionsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + public com.kcl.api.Spec.ListVariables_OptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null ? com.kcl.api.Spec.ListVariables_Options.getDefaultInstance() : options_; + } + } + + /** + *
+             * Options for listing variables.
+             * 
+ * + * .com.kcl.api.ListVariables_Options options = 3; + */ + private com.google.protobuf.SingleFieldBuilder getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getOptions(), getParentForChildren(), isClean()); + options_ = null; + } + return optionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ListVariables_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ListVariables_Args) + private static final com.kcl.api.Spec.ListVariables_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ListVariables_Args(); + } + + public static com.kcl.api.Spec.ListVariables_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVariables_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.ListVariables_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListVariables_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ListVariables_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + int getVariablesCount(); + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + boolean containsVariables(java.lang.String key); + + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getVariables(); + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + java.util.Map getVariablesMap(); + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + /* nullable */ + com.kcl.api.Spec.VariableList getVariablesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.VariableList defaultValue); + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + com.kcl.api.Spec.VariableList getVariablesOrThrow(java.lang.String key); + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @return A list containing the unsupportedCodes. + */ + java.util.List getUnsupportedCodesList(); + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @return The count of unsupportedCodes. + */ + int getUnsupportedCodesCount(); + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @param index + * The index of the element to return. + * + * @return The unsupportedCodes at the given index. + */ + java.lang.String getUnsupportedCodes(int index); + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the unsupportedCodes at the given index. + */ + com.google.protobuf.ByteString getUnsupportedCodesBytes(int index); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + java.util.List getParseErrorsList(); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + com.kcl.api.Spec.Error getParseErrors(int index); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + int getParseErrorsCount(); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + java.util.List getParseErrorsOrBuilderList(); + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + com.kcl.api.Spec.ErrorOrBuilder getParseErrorsOrBuilder(int index); + } + + /** + *
+     * Message for list variables response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ListVariables_Result} + */ + public static final class ListVariables_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ListVariables_Result) + ListVariables_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= */ "", ListVariables_Result.class.getName()); + } + + // Use ListVariables_Result.newBuilder() to construct. + private ListVariables_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListVariables_Result() { + unsupportedCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + parseErrors_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Result_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetVariables(); + 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_ListVariables_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListVariables_Result.class, + com.kcl.api.Spec.ListVariables_Result.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + + private static final class VariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Result_VariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.kcl.api.Spec.VariableList.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField variables_; + + private com.google.protobuf.MapField internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField(VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public boolean containsVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetVariables().getMap().containsKey(key); + } + + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.VariableList getVariablesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.VariableList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * Map of variable lists by file.
+         * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.VariableList getVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UNSUPPORTED_CODES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unsupportedCodes_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @return A list containing the unsupportedCodes. + */ + public com.google.protobuf.ProtocolStringList getUnsupportedCodesList() { + return unsupportedCodes_; + } + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @return The count of unsupportedCodes. + */ + public int getUnsupportedCodesCount() { + return unsupportedCodes_.size(); + } + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @param index + * The index of the element to return. + * + * @return The unsupportedCodes at the given index. + */ + public java.lang.String getUnsupportedCodes(int index) { + return unsupportedCodes_.get(index); + } + + /** + *
+         * List of unsupported codes.
+         * 
+ * + * repeated string unsupported_codes = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the unsupportedCodes at the given index. + */ + public com.google.protobuf.ByteString getUnsupportedCodesBytes(int index) { + return unsupportedCodes_.getByteString(index); + } + + public static final int PARSE_ERRORS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List parseErrors_; + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + @java.lang.Override + public java.util.List getParseErrorsList() { + return parseErrors_; + } + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + @java.lang.Override + public java.util.List getParseErrorsOrBuilderList() { + return parseErrors_; + } + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + @java.lang.Override + public int getParseErrorsCount() { + return parseErrors_.size(); + } + + /** + *
+         * List of parse errors encountered.
+         * 
+ * + * 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 encountered.
+         * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + @java.lang.Override + public com.kcl.api.Spec.ErrorOrBuilder getParseErrorsOrBuilder(int index) { + return parseErrors_.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 { + com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetVariables(), + VariablesDefaultEntryHolder.defaultEntry, 1); + for (int i = 0; i < unsupportedCodes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, unsupportedCodes_.getRaw(i)); + } + for (int i = 0; i < parseErrors_.size(); i++) { + output.writeMessage(3, parseErrors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (java.util.Map.Entry entry : internalGetVariables() + .getMap().entrySet()) { + com.google.protobuf.MapEntry variables__ = VariablesDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, variables__); + } + { + int dataSize = 0; + for (int i = 0; i < unsupportedCodes_.size(); i++) { + dataSize += computeStringSizeNoTag(unsupportedCodes_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnsupportedCodesList().size(); + } + for (int i = 0; i < parseErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parseErrors_.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.ListVariables_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.ListVariables_Result other = (com.kcl.api.Spec.ListVariables_Result) obj; + + if (!internalGetVariables().equals(other.internalGetVariables())) + return false; + if (!getUnsupportedCodesList().equals(other.getUnsupportedCodesList())) + return false; + if (!getParseErrorsList().equals(other.getParseErrorsList())) + 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 (!internalGetVariables().getMap().isEmpty()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetVariables().hashCode(); + } + if (getUnsupportedCodesCount() > 0) { + hash = (37 * hash) + UNSUPPORTED_CODES_FIELD_NUMBER; + hash = (53 * hash) + getUnsupportedCodesList().hashCode(); + } + if (getParseErrorsCount() > 0) { + hash = (37 * hash) + PARSE_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getParseErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ListVariables_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListVariables_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.ListVariables_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.ListVariables_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.ListVariables_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 variables response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ListVariables_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ListVariables_Result) + com.kcl.api.Spec.ListVariables_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListVariables_Result_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetMutableVariables(); + 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_ListVariables_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListVariables_Result.class, + com.kcl.api.Spec.ListVariables_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.ListVariables_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableVariables().clear(); + unsupportedCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (parseErrorsBuilder_ == null) { + parseErrors_ = java.util.Collections.emptyList(); + } else { + parseErrors_ = null; + parseErrorsBuilder_.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_ListVariables_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.ListVariables_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Result build() { + com.kcl.api.Spec.ListVariables_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ListVariables_Result buildPartial() { + com.kcl.api.Spec.ListVariables_Result result = new com.kcl.api.Spec.ListVariables_Result(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.ListVariables_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(); + } + } + + private void buildPartial0(com.kcl.api.Spec.ListVariables_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variables_ = internalGetVariables().build(VariablesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + unsupportedCodes_.makeImmutable(); + result.unsupportedCodes_ = unsupportedCodes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ListVariables_Result) { + return mergeFrom((com.kcl.api.Spec.ListVariables_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ListVariables_Result other) { + if (other == com.kcl.api.Spec.ListVariables_Result.getDefaultInstance()) + return this; + internalGetMutableVariables().mergeFrom(other.internalGetVariables()); + bitField0_ |= 0x00000001; + if (!other.unsupportedCodes_.isEmpty()) { + if (unsupportedCodes_.isEmpty()) { + unsupportedCodes_ = other.unsupportedCodes_; + bitField0_ |= 0x00000002; + } else { + ensureUnsupportedCodesIsMutable(); + unsupportedCodes_.addAll(other.unsupportedCodes_); + } + 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_); + } + } + } + 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: { + com.google.protobuf.MapEntry variables__ = input + .readMessage(VariablesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableVariables().ensureBuilderMap().put(variables__.getKey(), + variables__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnsupportedCodesIsMutable(); + unsupportedCodes_.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 + 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 static final class VariablesConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.VariableList build(com.kcl.api.Spec.VariableListOrBuilder val) { + if (val instanceof com.kcl.api.Spec.VariableList) { + return (com.kcl.api.Spec.VariableList) val; + } + return ((com.kcl.api.Spec.VariableList.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return VariablesDefaultEntryHolder.defaultEntry; + } + }; + + private static final VariablesConverter variablesConverter = new VariablesConverter(); + + private com.google.protobuf.MapFieldBuilder variables_; + + private com.google.protobuf.MapFieldBuilder internalGetVariables() { + if (variables_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(variablesConverter); + } + return variables_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutableVariables() { + if (variables_ == null) { + variables_ = new com.google.protobuf.MapFieldBuilder<>(variablesConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().ensureBuilderMap().size(); + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public boolean containsVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetVariables().ensureBuilderMap().containsKey(key); + } + + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public java.util.Map getVariablesMap() { + return internalGetVariables().getImmutableMap(); + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.VariableList getVariablesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.VariableList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableVariables() + .ensureBuilderMap(); + return map.containsKey(key) ? variablesConverter.build(map.get(key)) : defaultValue; + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.VariableList getVariablesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableVariables() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return variablesConverter.build(map.get(key)); + } + + public Builder clearVariables() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableVariables().clear(); + return this; + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + public Builder removeVariables(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableVariables().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableVariables() { + bitField0_ |= 0x00000001; + return internalGetMutableVariables().ensureMessageMap(); + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + public Builder putVariables(java.lang.String key, com.kcl.api.Spec.VariableList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableVariables().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + public Builder putAllVariables(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableVariables().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + *
+             * Map of variable lists by file.
+             * 
+ * + * map<string, .com.kcl.api.VariableList> variables = 1; + */ + public com.kcl.api.Spec.VariableList.Builder putVariablesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableVariables() + .ensureBuilderMap(); + com.kcl.api.Spec.VariableListOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.VariableList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.VariableList) { + entry = ((com.kcl.api.Spec.VariableList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.VariableList.Builder) entry; + } + + private com.google.protobuf.LazyStringArrayList unsupportedCodes_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureUnsupportedCodesIsMutable() { + if (!unsupportedCodes_.isModifiable()) { + unsupportedCodes_ = new com.google.protobuf.LazyStringArrayList(unsupportedCodes_); + } + bitField0_ |= 0x00000002; + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @return A list containing the unsupportedCodes. + */ + public com.google.protobuf.ProtocolStringList getUnsupportedCodesList() { + unsupportedCodes_.makeImmutable(); + return unsupportedCodes_; + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @return The count of unsupportedCodes. + */ + public int getUnsupportedCodesCount() { + return unsupportedCodes_.size(); + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @param index + * The index of the element to return. + * + * @return The unsupportedCodes at the given index. + */ + public java.lang.String getUnsupportedCodes(int index) { + return unsupportedCodes_.get(index); + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the unsupportedCodes at the given index. + */ + public com.google.protobuf.ByteString getUnsupportedCodesBytes(int index) { + return unsupportedCodes_.getByteString(index); + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @param index + * The index to set the value at. + * @param value + * The unsupportedCodes to set. + * + * @return This builder for chaining. + */ + public Builder setUnsupportedCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnsupportedCodesIsMutable(); + unsupportedCodes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @param value + * The unsupportedCodes to add. + * + * @return This builder for chaining. + */ + public Builder addUnsupportedCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnsupportedCodesIsMutable(); + unsupportedCodes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @param values + * The unsupportedCodes to add. + * + * @return This builder for chaining. + */ + public Builder addAllUnsupportedCodes(java.lang.Iterable values) { + ensureUnsupportedCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unsupportedCodes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @return This builder for chaining. + */ + public Builder clearUnsupportedCodes() { + unsupportedCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + *
+             * List of unsupported codes.
+             * 
+ * + * repeated string unsupported_codes = 2; + * + * @param value + * The bytes of the unsupportedCodes to add. + * + * @return This builder for chaining. + */ + public Builder addUnsupportedCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnsupportedCodesIsMutable(); + unsupportedCodes_.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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + public Builder addAllParseErrors(java.lang.Iterable values) { + if (parseErrorsBuilder_ == null) { + ensureParseErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parseErrors_); + onChanged(); + } else { + parseErrorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * repeated .com.kcl.api.Error parse_errors = 3; + */ + public java.util.List getParseErrorsOrBuilderList() { + if (parseErrorsBuilder_ != null) { + return parseErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parseErrors_); + } + } + + /** + *
+             * List of parse errors encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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 encountered.
+             * 
+ * + * 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_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ListVariables_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ListVariables_Result) + private static final com.kcl.api.Spec.ListVariables_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ListVariables_Result(); + } + + public static com.kcl.api.Spec.ListVariables_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListVariables_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.ListVariables_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Variable) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Value of the variable.
+         * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * Value of the variable.
+         * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + *
+         * Type name of the variable.
+         * 
+ * + * string type_name = 2; + * + * @return The typeName. + */ + java.lang.String getTypeName(); + + /** + *
+         * Type name of the variable.
+         * 
+ * + * string type_name = 2; + * + * @return The bytes for typeName. + */ + com.google.protobuf.ByteString getTypeNameBytes(); + + /** + *
+         * Operation symbol associated with the variable.
+         * 
+ * + * string op_sym = 3; + * + * @return The opSym. + */ + java.lang.String getOpSym(); + + /** + *
+         * Operation symbol associated with the variable.
+         * 
+ * + * string op_sym = 3; + * + * @return The bytes for opSym. + */ + com.google.protobuf.ByteString getOpSymBytes(); + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + java.util.List getListItemsList(); + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + com.kcl.api.Spec.Variable getListItems(int index); + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + int getListItemsCount(); + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + java.util.List getListItemsOrBuilderList(); + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + com.kcl.api.Spec.VariableOrBuilder getListItemsOrBuilder(int index); + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + java.util.List getDictEntriesList(); + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + com.kcl.api.Spec.MapEntry getDictEntries(int index); + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + int getDictEntriesCount(); + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + java.util.List getDictEntriesOrBuilderList(); + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + com.kcl.api.Spec.MapEntryOrBuilder getDictEntriesOrBuilder(int index); + } + + /** + *
+     * Message representing a variable.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Variable} + */ + public static final class Variable extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Variable) + VariableOrBuilder { + 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= */ "", Variable.class.getName()); + } + + // Use Variable.newBuilder() to construct. + private Variable(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Variable() { + value_ = ""; + typeName_ = ""; + opSym_ = ""; + listItems_ = java.util.Collections.emptyList(); + dictEntries_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Variable.class, + com.kcl.api.Spec.Variable.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + *
+         * Value of the variable.
+         * 
+ * + * 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 of the variable.
+         * 
+ * + * 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; + } + } + + public static final int TYPE_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object typeName_ = ""; + + /** + *
+         * Type name of the variable.
+         * 
+ * + * string type_name = 2; + * + * @return The typeName. + */ + @java.lang.Override + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + 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(); + typeName_ = s; + return s; + } + } + + /** + *
+         * Type name of the variable.
+         * 
+ * + * string type_name = 2; + * + * @return The bytes for typeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OP_SYM_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object opSym_ = ""; + + /** + *
+         * Operation symbol associated with the variable.
+         * 
+ * + * string op_sym = 3; + * + * @return The opSym. + */ + @java.lang.Override + public java.lang.String getOpSym() { + java.lang.Object ref = opSym_; + 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(); + opSym_ = s; + return s; + } + } + + /** + *
+         * Operation symbol associated with the variable.
+         * 
+ * + * string op_sym = 3; + * + * @return The bytes for opSym. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOpSymBytes() { + java.lang.Object ref = opSym_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + opSym_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIST_ITEMS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List listItems_; + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + @java.lang.Override + public java.util.List getListItemsList() { + return listItems_; + } + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + @java.lang.Override + public java.util.List getListItemsOrBuilderList() { + return listItems_; + } + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + @java.lang.Override + public int getListItemsCount() { + return listItems_.size(); + } + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + @java.lang.Override + public com.kcl.api.Spec.Variable getListItems(int index) { + return listItems_.get(index); + } + + /** + *
+         * List items if the variable is a list.
+         * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + @java.lang.Override + public com.kcl.api.Spec.VariableOrBuilder getListItemsOrBuilder(int index) { + return listItems_.get(index); + } + + public static final int DICT_ENTRIES_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private java.util.List dictEntries_; + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + @java.lang.Override + public java.util.List getDictEntriesList() { + return dictEntries_; + } + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + @java.lang.Override + public java.util.List getDictEntriesOrBuilderList() { + return dictEntries_; + } + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + @java.lang.Override + public int getDictEntriesCount() { + return dictEntries_.size(); + } + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + @java.lang.Override + public com.kcl.api.Spec.MapEntry getDictEntries(int index) { + return dictEntries_.get(index); + } + + /** + *
+         * Dictionary entries if the variable is a dictionary.
+         * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + @java.lang.Override + public com.kcl.api.Spec.MapEntryOrBuilder getDictEntriesOrBuilder(int index) { + return dictEntries_.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(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(typeName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, typeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(opSym_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, opSym_); + } + for (int i = 0; i < listItems_.size(); i++) { + output.writeMessage(4, listItems_.get(i)); + } + for (int i = 0; i < dictEntries_.size(); i++) { + output.writeMessage(5, dictEntries_.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(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, value_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(typeName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, typeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(opSym_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, opSym_); + } + for (int i = 0; i < listItems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, listItems_.get(i)); + } + for (int i = 0; i < dictEntries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, dictEntries_.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.Variable)) { + return super.equals(obj); + } + com.kcl.api.Spec.Variable other = (com.kcl.api.Spec.Variable) obj; + + if (!getValue().equals(other.getValue())) + return false; + if (!getTypeName().equals(other.getTypeName())) + return false; + if (!getOpSym().equals(other.getOpSym())) + return false; + if (!getListItemsList().equals(other.getListItemsList())) + return false; + if (!getDictEntriesList().equals(other.getDictEntriesList())) + 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 = (37 * hash) + TYPE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTypeName().hashCode(); + hash = (37 * hash) + OP_SYM_FIELD_NUMBER; + hash = (53 * hash) + getOpSym().hashCode(); + if (getListItemsCount() > 0) { + hash = (37 * hash) + LIST_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getListItemsList().hashCode(); + } + if (getDictEntriesCount() > 0) { + hash = (37 * hash) + DICT_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getDictEntriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Variable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Variable 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.Variable parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Variable 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.Variable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Variable parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.Variable parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Variable 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.Variable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Variable 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.Variable parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Variable 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.Variable 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 variable.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Variable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Variable) + com.kcl.api.Spec.VariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Variable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Variable.class, + com.kcl.api.Spec.Variable.Builder.class); + } + + // Construct using com.kcl.api.Spec.Variable.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + typeName_ = ""; + opSym_ = ""; + if (listItemsBuilder_ == null) { + listItems_ = java.util.Collections.emptyList(); + } else { + listItems_ = null; + listItemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (dictEntriesBuilder_ == null) { + dictEntries_ = java.util.Collections.emptyList(); + } else { + dictEntries_ = null; + dictEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Variable_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Variable getDefaultInstanceForType() { + return com.kcl.api.Spec.Variable.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Variable build() { + com.kcl.api.Spec.Variable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Variable buildPartial() { + com.kcl.api.Spec.Variable result = new com.kcl.api.Spec.Variable(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.Variable result) { + if (listItemsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + listItems_ = java.util.Collections.unmodifiableList(listItems_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.listItems_ = listItems_; + } else { + result.listItems_ = listItemsBuilder_.build(); + } + if (dictEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + dictEntries_ = java.util.Collections.unmodifiableList(dictEntries_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.dictEntries_ = dictEntries_; + } else { + result.dictEntries_ = dictEntriesBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.Variable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.typeName_ = typeName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.opSym_ = opSym_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Variable) { + return mergeFrom((com.kcl.api.Spec.Variable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Variable other) { + if (other == com.kcl.api.Spec.Variable.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTypeName().isEmpty()) { + typeName_ = other.typeName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOpSym().isEmpty()) { + opSym_ = other.opSym_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (listItemsBuilder_ == null) { + if (!other.listItems_.isEmpty()) { + if (listItems_.isEmpty()) { + listItems_ = other.listItems_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureListItemsIsMutable(); + listItems_.addAll(other.listItems_); + } + onChanged(); + } + } else { + if (!other.listItems_.isEmpty()) { + if (listItemsBuilder_.isEmpty()) { + listItemsBuilder_.dispose(); + listItemsBuilder_ = null; + listItems_ = other.listItems_; + bitField0_ = (bitField0_ & ~0x00000008); + listItemsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getListItemsFieldBuilder() : null; + } else { + listItemsBuilder_.addAllMessages(other.listItems_); + } + } + } + if (dictEntriesBuilder_ == null) { + if (!other.dictEntries_.isEmpty()) { + if (dictEntries_.isEmpty()) { + dictEntries_ = other.dictEntries_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDictEntriesIsMutable(); + dictEntries_.addAll(other.dictEntries_); + } + onChanged(); + } + } else { + if (!other.dictEntries_.isEmpty()) { + if (dictEntriesBuilder_.isEmpty()) { + dictEntriesBuilder_.dispose(); + dictEntriesBuilder_ = null; + dictEntries_ = other.dictEntries_; + bitField0_ = (bitField0_ & ~0x00000010); + dictEntriesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getDictEntriesFieldBuilder() : null; + } else { + dictEntriesBuilder_.addAllMessages(other.dictEntries_); + } + } + } + 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 + case 18: { + typeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + opSym_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.kcl.api.Spec.Variable m = input.readMessage(com.kcl.api.Spec.Variable.parser(), + extensionRegistry); + if (listItemsBuilder_ == null) { + ensureListItemsIsMutable(); + listItems_.add(m); + } else { + listItemsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + com.kcl.api.Spec.MapEntry m = input.readMessage(com.kcl.api.Spec.MapEntry.parser(), + extensionRegistry); + if (dictEntriesBuilder_ == null) { + ensureDictEntriesIsMutable(); + dictEntries_.add(m); + } else { + dictEntriesBuilder_.addMessage(m); + } + break; + } // case 42 + 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 of the variable.
+             * 
+ * + * 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 of the variable.
+             * 
+ * + * 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 of the variable.
+             * 
+ * + * 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 of the variable.
+             * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Value of the variable.
+             * 
+ * + * 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; + } + + private java.lang.Object typeName_ = ""; + + /** + *
+             * Type name of the variable.
+             * 
+ * + * string type_name = 2; + * + * @return The typeName. + */ + public java.lang.String getTypeName() { + java.lang.Object ref = typeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + typeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Type name of the variable.
+             * 
+ * + * string type_name = 2; + * + * @return The bytes for typeName. + */ + public com.google.protobuf.ByteString getTypeNameBytes() { + java.lang.Object ref = typeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + typeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Type name of the variable.
+             * 
+ * + * string type_name = 2; + * + * @param value + * The typeName to set. + * + * @return This builder for chaining. + */ + public Builder setTypeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + typeName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Type name of the variable.
+             * 
+ * + * string type_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearTypeName() { + typeName_ = getDefaultInstance().getTypeName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Type name of the variable.
+             * 
+ * + * string type_name = 2; + * + * @param value + * The bytes for typeName to set. + * + * @return This builder for chaining. + */ + public Builder setTypeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + typeName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object opSym_ = ""; + + /** + *
+             * Operation symbol associated with the variable.
+             * 
+ * + * string op_sym = 3; + * + * @return The opSym. + */ + public java.lang.String getOpSym() { + java.lang.Object ref = opSym_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + opSym_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Operation symbol associated with the variable.
+             * 
+ * + * string op_sym = 3; + * + * @return The bytes for opSym. + */ + public com.google.protobuf.ByteString getOpSymBytes() { + java.lang.Object ref = opSym_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + opSym_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Operation symbol associated with the variable.
+             * 
+ * + * string op_sym = 3; + * + * @param value + * The opSym to set. + * + * @return This builder for chaining. + */ + public Builder setOpSym(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + opSym_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Operation symbol associated with the variable.
+             * 
+ * + * string op_sym = 3; + * + * @return This builder for chaining. + */ + public Builder clearOpSym() { + opSym_ = getDefaultInstance().getOpSym(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Operation symbol associated with the variable.
+             * 
+ * + * string op_sym = 3; + * + * @param value + * The bytes for opSym to set. + * + * @return This builder for chaining. + */ + public Builder setOpSymBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + opSym_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List listItems_ = java.util.Collections.emptyList(); + + private void ensureListItemsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + listItems_ = new java.util.ArrayList(listItems_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder listItemsBuilder_; + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public java.util.List getListItemsList() { + if (listItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(listItems_); + } else { + return listItemsBuilder_.getMessageList(); + } + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public int getListItemsCount() { + if (listItemsBuilder_ == null) { + return listItems_.size(); + } else { + return listItemsBuilder_.getCount(); + } + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public com.kcl.api.Spec.Variable getListItems(int index) { + if (listItemsBuilder_ == null) { + return listItems_.get(index); + } else { + return listItemsBuilder_.getMessage(index); + } + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder setListItems(int index, com.kcl.api.Spec.Variable value) { + if (listItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListItemsIsMutable(); + listItems_.set(index, value); + onChanged(); + } else { + listItemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder setListItems(int index, com.kcl.api.Spec.Variable.Builder builderForValue) { + if (listItemsBuilder_ == null) { + ensureListItemsIsMutable(); + listItems_.set(index, builderForValue.build()); + onChanged(); + } else { + listItemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder addListItems(com.kcl.api.Spec.Variable value) { + if (listItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListItemsIsMutable(); + listItems_.add(value); + onChanged(); + } else { + listItemsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder addListItems(int index, com.kcl.api.Spec.Variable value) { + if (listItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListItemsIsMutable(); + listItems_.add(index, value); + onChanged(); + } else { + listItemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder addListItems(com.kcl.api.Spec.Variable.Builder builderForValue) { + if (listItemsBuilder_ == null) { + ensureListItemsIsMutable(); + listItems_.add(builderForValue.build()); + onChanged(); + } else { + listItemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder addListItems(int index, com.kcl.api.Spec.Variable.Builder builderForValue) { + if (listItemsBuilder_ == null) { + ensureListItemsIsMutable(); + listItems_.add(index, builderForValue.build()); + onChanged(); + } else { + listItemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder addAllListItems(java.lang.Iterable values) { + if (listItemsBuilder_ == null) { + ensureListItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listItems_); + onChanged(); + } else { + listItemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder clearListItems() { + if (listItemsBuilder_ == null) { + listItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + listItemsBuilder_.clear(); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public Builder removeListItems(int index) { + if (listItemsBuilder_ == null) { + ensureListItemsIsMutable(); + listItems_.remove(index); + onChanged(); + } else { + listItemsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public com.kcl.api.Spec.Variable.Builder getListItemsBuilder(int index) { + return getListItemsFieldBuilder().getBuilder(index); + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public com.kcl.api.Spec.VariableOrBuilder getListItemsOrBuilder(int index) { + if (listItemsBuilder_ == null) { + return listItems_.get(index); + } else { + return listItemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public java.util.List getListItemsOrBuilderList() { + if (listItemsBuilder_ != null) { + return listItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(listItems_); + } + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public com.kcl.api.Spec.Variable.Builder addListItemsBuilder() { + return getListItemsFieldBuilder().addBuilder(com.kcl.api.Spec.Variable.getDefaultInstance()); + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public com.kcl.api.Spec.Variable.Builder addListItemsBuilder(int index) { + return getListItemsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Variable.getDefaultInstance()); + } + + /** + *
+             * List items if the variable is a list.
+             * 
+ * + * repeated .com.kcl.api.Variable list_items = 4; + */ + public java.util.List getListItemsBuilderList() { + return getListItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getListItemsFieldBuilder() { + if (listItemsBuilder_ == null) { + listItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + listItems_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + listItems_ = null; + } + return listItemsBuilder_; + } + + private java.util.List dictEntries_ = java.util.Collections.emptyList(); + + private void ensureDictEntriesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + dictEntries_ = new java.util.ArrayList(dictEntries_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder dictEntriesBuilder_; + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public java.util.List getDictEntriesList() { + if (dictEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dictEntries_); + } else { + return dictEntriesBuilder_.getMessageList(); + } + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public int getDictEntriesCount() { + if (dictEntriesBuilder_ == null) { + return dictEntries_.size(); + } else { + return dictEntriesBuilder_.getCount(); + } + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public com.kcl.api.Spec.MapEntry getDictEntries(int index) { + if (dictEntriesBuilder_ == null) { + return dictEntries_.get(index); + } else { + return dictEntriesBuilder_.getMessage(index); + } + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder setDictEntries(int index, com.kcl.api.Spec.MapEntry value) { + if (dictEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDictEntriesIsMutable(); + dictEntries_.set(index, value); + onChanged(); + } else { + dictEntriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder setDictEntries(int index, com.kcl.api.Spec.MapEntry.Builder builderForValue) { + if (dictEntriesBuilder_ == null) { + ensureDictEntriesIsMutable(); + dictEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + dictEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder addDictEntries(com.kcl.api.Spec.MapEntry value) { + if (dictEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDictEntriesIsMutable(); + dictEntries_.add(value); + onChanged(); + } else { + dictEntriesBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder addDictEntries(int index, com.kcl.api.Spec.MapEntry value) { + if (dictEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDictEntriesIsMutable(); + dictEntries_.add(index, value); + onChanged(); + } else { + dictEntriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder addDictEntries(com.kcl.api.Spec.MapEntry.Builder builderForValue) { + if (dictEntriesBuilder_ == null) { + ensureDictEntriesIsMutable(); + dictEntries_.add(builderForValue.build()); + onChanged(); + } else { + dictEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder addDictEntries(int index, com.kcl.api.Spec.MapEntry.Builder builderForValue) { + if (dictEntriesBuilder_ == null) { + ensureDictEntriesIsMutable(); + dictEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + dictEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder addAllDictEntries(java.lang.Iterable values) { + if (dictEntriesBuilder_ == null) { + ensureDictEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dictEntries_); + onChanged(); + } else { + dictEntriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder clearDictEntries() { + if (dictEntriesBuilder_ == null) { + dictEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + dictEntriesBuilder_.clear(); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public Builder removeDictEntries(int index) { + if (dictEntriesBuilder_ == null) { + ensureDictEntriesIsMutable(); + dictEntries_.remove(index); + onChanged(); + } else { + dictEntriesBuilder_.remove(index); + } + return this; + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public com.kcl.api.Spec.MapEntry.Builder getDictEntriesBuilder(int index) { + return getDictEntriesFieldBuilder().getBuilder(index); + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public com.kcl.api.Spec.MapEntryOrBuilder getDictEntriesOrBuilder(int index) { + if (dictEntriesBuilder_ == null) { + return dictEntries_.get(index); + } else { + return dictEntriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public java.util.List getDictEntriesOrBuilderList() { + if (dictEntriesBuilder_ != null) { + return dictEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dictEntries_); + } + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public com.kcl.api.Spec.MapEntry.Builder addDictEntriesBuilder() { + return getDictEntriesFieldBuilder().addBuilder(com.kcl.api.Spec.MapEntry.getDefaultInstance()); + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public com.kcl.api.Spec.MapEntry.Builder addDictEntriesBuilder(int index) { + return getDictEntriesFieldBuilder().addBuilder(index, com.kcl.api.Spec.MapEntry.getDefaultInstance()); + } + + /** + *
+             * Dictionary entries if the variable is a dictionary.
+             * 
+ * + * repeated .com.kcl.api.MapEntry dict_entries = 5; + */ + public java.util.List getDictEntriesBuilderList() { + return getDictEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getDictEntriesFieldBuilder() { + if (dictEntriesBuilder_ == null) { + dictEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + dictEntries_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + dictEntries_ = null; + } + return dictEntriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Variable) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Variable) + private static final com.kcl.api.Spec.Variable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Variable(); + } + + public static com.kcl.api.Spec.Variable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Variable 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.Variable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MapEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.MapEntry) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Key of the map entry.
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         * Key of the map entry.
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * Value of the map entry.
+         * 
+ * + * .com.kcl.api.Variable value = 2; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + + /** + *
+         * Value of the map entry.
+         * 
+ * + * .com.kcl.api.Variable value = 2; + * + * @return The value. + */ + com.kcl.api.Spec.Variable getValue(); + + /** + *
+         * Value of the map entry.
+         * 
+ * + * .com.kcl.api.Variable value = 2; + */ + com.kcl.api.Spec.VariableOrBuilder getValueOrBuilder(); + } + + /** + *
+     * Message representing a map entry.
+     * 
+ * + * Protobuf type {@code com.kcl.api.MapEntry} + */ + public static final class MapEntry extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.MapEntry) + MapEntryOrBuilder { + 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= */ "", MapEntry.class.getName()); + } + + // Use MapEntry.newBuilder() to construct. + private MapEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MapEntry() { + key_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_MapEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_MapEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.MapEntry.class, + com.kcl.api.Spec.MapEntry.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + *
+         * Key of the map entry.
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + + /** + *
+         * Key of the map entry.
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.kcl.api.Spec.Variable value_; + + /** + *
+         * Value of the map entry.
+         * 
+ * + * .com.kcl.api.Variable value = 2; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Value of the map entry.
+         * 
+ * + * .com.kcl.api.Variable value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.kcl.api.Spec.Variable getValue() { + return value_ == null ? com.kcl.api.Spec.Variable.getDefaultInstance() : value_; + } + + /** + *
+         * Value of the map entry.
+         * 
+ * + * .com.kcl.api.Variable value = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.VariableOrBuilder getValueOrBuilder() { + return value_ == null ? com.kcl.api.Spec.Variable.getDefaultInstance() : value_; + } + + 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(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getValue()); + } + 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(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.MapEntry)) { + return super.equals(obj); + } + com.kcl.api.Spec.MapEntry other = (com.kcl.api.Spec.MapEntry) obj; + + if (!getKey().equals(other.getKey())) + return false; + if (hasValue() != other.hasValue()) + return false; + if (hasValue()) { + 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (hasValue()) { + 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.MapEntry parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.MapEntry 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.MapEntry parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.MapEntry 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.MapEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.MapEntry parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.MapEntry parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.MapEntry 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.MapEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.MapEntry 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.MapEntry parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.MapEntry 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.MapEntry 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 map entry.
+         * 
+ * + * Protobuf type {@code com.kcl.api.MapEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.MapEntry) + com.kcl.api.Spec.MapEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_MapEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_MapEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.MapEntry.class, + com.kcl.api.Spec.MapEntry.Builder.class); + } + + // Construct using com.kcl.api.Spec.MapEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getValueFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_MapEntry_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.MapEntry getDefaultInstanceForType() { + return com.kcl.api.Spec.MapEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.MapEntry build() { + com.kcl.api.Spec.MapEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.MapEntry buildPartial() { + com.kcl.api.Spec.MapEntry result = new com.kcl.api.Spec.MapEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.MapEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.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.MapEntry) { + return mergeFrom((com.kcl.api.Spec.MapEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.MapEntry other) { + if (other == com.kcl.api.Spec.MapEntry.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage(getValueFieldBuilder().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 key_ = ""; + + /** + *
+             * Key of the map entry.
+             * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Key of the map entry.
+             * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Key of the map entry.
+             * 
+ * + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Key of the map entry.
+             * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Key of the map entry.
+             * 
+ * + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.kcl.api.Spec.Variable value_; + private com.google.protobuf.SingleFieldBuilder valueBuilder_; + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + * + * @return The value. + */ + public com.kcl.api.Spec.Variable getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.kcl.api.Spec.Variable.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + */ + public Builder setValue(com.kcl.api.Spec.Variable value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + */ + public Builder setValue(com.kcl.api.Spec.Variable.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + */ + public Builder mergeValue(com.kcl.api.Spec.Variable value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && value_ != null + && value_ != com.kcl.api.Spec.Variable.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + */ + public com.kcl.api.Spec.Variable.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + */ + public com.kcl.api.Spec.VariableOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? com.kcl.api.Spec.Variable.getDefaultInstance() : value_; + } + } + + /** + *
+             * Value of the map entry.
+             * 
+ * + * .com.kcl.api.Variable value = 2; + */ + private com.google.protobuf.SingleFieldBuilder getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.MapEntry) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.MapEntry) + private static final com.kcl.api.Spec.MapEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.MapEntry(); + } + + public static com.kcl.api.Spec.MapEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MapEntry 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.MapEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetSchemaTypeMapping_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.GetSchemaTypeMapping_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + boolean hasExecArgs(); + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + com.kcl.api.Spec.ExecProgram_Args getExecArgs(); + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder(); + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema_name = 2; + * + * @return The schemaName. + */ + java.lang.String getSchemaName(); + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema_name = 2; + * + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString getSchemaNameBytes(); + } + + /** + *
+     * Message for get schema type mapping request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.GetSchemaTypeMapping_Args} + */ + public static final class GetSchemaTypeMapping_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.GetSchemaTypeMapping_Args) + GetSchemaTypeMapping_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= */ "", GetSchemaTypeMapping_Args.class.getName()); + } + + // Use GetSchemaTypeMapping_Args.newBuilder() to construct. + private GetSchemaTypeMapping_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSchemaTypeMapping_Args() { + schemaName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetSchemaTypeMapping_Args.class, + com.kcl.api.Spec.GetSchemaTypeMapping_Args.Builder.class); + } + + private int bitField0_; + public static final int EXEC_ARGS_FIELD_NUMBER = 1; + private com.kcl.api.Spec.ExecProgram_Args execArgs_; + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + @java.lang.Override + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + /** + *
+         * Arguments for executing the program.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object schemaName_ = ""; + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema_name = 2; + * + * @return The schemaName. + */ + @java.lang.Override + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + 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(); + schemaName_ = s; + return s; + } + } + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema_name = 2; + * + * @return The bytes for schemaName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaName_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExecArgs()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, schemaName_); + } + 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, getExecArgs()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, schemaName_); + } + 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.GetSchemaTypeMapping_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.GetSchemaTypeMapping_Args other = (com.kcl.api.Spec.GetSchemaTypeMapping_Args) obj; + + if (hasExecArgs() != other.hasExecArgs()) + return false; + if (hasExecArgs()) { + if (!getExecArgs().equals(other.getExecArgs())) + return false; + } + if (!getSchemaName().equals(other.getSchemaName())) + 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 (hasExecArgs()) { + hash = (37 * hash) + EXEC_ARGS_FIELD_NUMBER; + hash = (53 * hash) + getExecArgs().hashCode(); + } + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_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.GetSchemaTypeMapping_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.GetSchemaTypeMapping_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 get schema type mapping request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.GetSchemaTypeMapping_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.GetSchemaTypeMapping_Args) + com.kcl.api.Spec.GetSchemaTypeMapping_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetSchemaTypeMapping_Args.class, + com.kcl.api.Spec.GetSchemaTypeMapping_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.GetSchemaTypeMapping_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) { + getExecArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + schemaName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.GetSchemaTypeMapping_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.GetSchemaTypeMapping_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.GetSchemaTypeMapping_Args build() { + com.kcl.api.Spec.GetSchemaTypeMapping_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.GetSchemaTypeMapping_Args buildPartial() { + com.kcl.api.Spec.GetSchemaTypeMapping_Args result = new com.kcl.api.Spec.GetSchemaTypeMapping_Args( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.GetSchemaTypeMapping_Args result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execArgs_ = execArgsBuilder_ == null ? execArgs_ : execArgsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schemaName_ = schemaName_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.GetSchemaTypeMapping_Args) { + return mergeFrom((com.kcl.api.Spec.GetSchemaTypeMapping_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.GetSchemaTypeMapping_Args other) { + if (other == com.kcl.api.Spec.GetSchemaTypeMapping_Args.getDefaultInstance()) + return this; + if (other.hasExecArgs()) { + mergeExecArgs(other.getExecArgs()); + } + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + 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: { + input.readMessage(getExecArgsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + schemaName_ = 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 com.kcl.api.Spec.ExecProgram_Args execArgs_; + private com.google.protobuf.SingleFieldBuilder execArgsBuilder_; + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + if (execArgsBuilder_ == null) { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } else { + return execArgsBuilder_.getMessage(); + } + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execArgs_ = value; + } else { + execArgsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args.Builder builderForValue) { + if (execArgsBuilder_ == null) { + execArgs_ = builderForValue.build(); + } else { + execArgsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder mergeExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && execArgs_ != null + && execArgs_ != com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance()) { + getExecArgsBuilder().mergeFrom(value); + } else { + execArgs_ = value; + } + } else { + execArgsBuilder_.mergeFrom(value); + } + if (execArgs_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder clearExecArgs() { + bitField0_ = (bitField0_ & ~0x00000001); + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public com.kcl.api.Spec.ExecProgram_Args.Builder getExecArgsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExecArgsFieldBuilder().getBuilder(); + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + if (execArgsBuilder_ != null) { + return execArgsBuilder_.getMessageOrBuilder(); + } else { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + } + + /** + *
+             * Arguments for executing the program.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + private com.google.protobuf.SingleFieldBuilder getExecArgsFieldBuilder() { + if (execArgsBuilder_ == null) { + execArgsBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getExecArgs(), getParentForChildren(), isClean()); + execArgs_ = null; + } + return execArgsBuilder_; + } + + private java.lang.Object schemaName_ = ""; + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema_name = 2; + * + * @return The schemaName. + */ + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema_name = 2; + * + * @return The bytes for schemaName. + */ + public com.google.protobuf.ByteString getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema_name = 2; + * + * @param value + * The schemaName to set. + * + * @return This builder for chaining. + */ + public Builder setSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schemaName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearSchemaName() { + schemaName_ = getDefaultInstance().getSchemaName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema_name = 2; + * + * @param value + * The bytes for schemaName to set. + * + * @return This builder for chaining. + */ + public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.GetSchemaTypeMapping_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.GetSchemaTypeMapping_Args) + private static final com.kcl.api.Spec.GetSchemaTypeMapping_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.GetSchemaTypeMapping_Args(); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaTypeMapping_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.GetSchemaTypeMapping_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetSchemaTypeMapping_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.GetSchemaTypeMapping_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + int getSchemaTypeMappingCount(); + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + boolean containsSchemaTypeMapping(java.lang.String key); + + /** + * Use {@link #getSchemaTypeMappingMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getSchemaTypeMapping(); + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + java.util.Map getSchemaTypeMappingMap(); + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + /* nullable */ + com.kcl.api.Spec.KclType getSchemaTypeMappingOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.KclType defaultValue); + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + com.kcl.api.Spec.KclType getSchemaTypeMappingOrThrow(java.lang.String key); + } + + /** + *
+     * Message for get schema type mapping response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.GetSchemaTypeMapping_Result} + */ + public static final class GetSchemaTypeMapping_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.GetSchemaTypeMapping_Result) + GetSchemaTypeMapping_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= */ "", GetSchemaTypeMapping_Result.class.getName()); + } + + // Use GetSchemaTypeMapping_Result.newBuilder() to construct. + private GetSchemaTypeMapping_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetSchemaTypeMapping_Result() { + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Result_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetSchemaTypeMapping(); + 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_GetSchemaTypeMapping_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetSchemaTypeMapping_Result.class, + com.kcl.api.Spec.GetSchemaTypeMapping_Result.Builder.class); + } + + public static final int SCHEMA_TYPE_MAPPING_FIELD_NUMBER = 1; + + private static final class SchemaTypeMappingDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Result_SchemaTypeMappingEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, com.kcl.api.Spec.KclType.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField schemaTypeMapping_; + + private com.google.protobuf.MapField internalGetSchemaTypeMapping() { + if (schemaTypeMapping_ == null) { + return com.google.protobuf.MapField.emptyMapField(SchemaTypeMappingDefaultEntryHolder.defaultEntry); + } + return schemaTypeMapping_; + } + + public int getSchemaTypeMappingCount() { + return internalGetSchemaTypeMapping().getMap().size(); + } + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public boolean containsSchemaTypeMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSchemaTypeMapping().getMap().containsKey(key); + } + + /** + * Use {@link #getSchemaTypeMappingMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSchemaTypeMapping() { + return getSchemaTypeMappingMap(); + } + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public java.util.Map getSchemaTypeMappingMap() { + return internalGetSchemaTypeMapping().getMap(); + } + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.KclType getSchemaTypeMappingOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.KclType defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSchemaTypeMapping().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * Map of schema type mappings.
+         * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getSchemaTypeMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSchemaTypeMapping().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 { + com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetSchemaTypeMapping(), + SchemaTypeMappingDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (java.util.Map.Entry entry : internalGetSchemaTypeMapping() + .getMap().entrySet()) { + com.google.protobuf.MapEntry schemaTypeMapping__ = SchemaTypeMappingDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemaTypeMapping__); + } + 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.GetSchemaTypeMapping_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.GetSchemaTypeMapping_Result other = (com.kcl.api.Spec.GetSchemaTypeMapping_Result) obj; + + if (!internalGetSchemaTypeMapping().equals(other.internalGetSchemaTypeMapping())) + 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 (!internalGetSchemaTypeMapping().getMap().isEmpty()) { + hash = (37 * hash) + SCHEMA_TYPE_MAPPING_FIELD_NUMBER; + hash = (53 * hash) + internalGetSchemaTypeMapping().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_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.GetSchemaTypeMapping_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.GetSchemaTypeMapping_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.GetSchemaTypeMapping_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 get schema type mapping response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.GetSchemaTypeMapping_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.GetSchemaTypeMapping_Result) + com.kcl.api.Spec.GetSchemaTypeMapping_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Result_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetSchemaTypeMapping(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetMutableSchemaTypeMapping(); + 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_GetSchemaTypeMapping_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.GetSchemaTypeMapping_Result.class, + com.kcl.api.Spec.GetSchemaTypeMapping_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.GetSchemaTypeMapping_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableSchemaTypeMapping().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_GetSchemaTypeMapping_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.GetSchemaTypeMapping_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.GetSchemaTypeMapping_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.GetSchemaTypeMapping_Result build() { + com.kcl.api.Spec.GetSchemaTypeMapping_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.GetSchemaTypeMapping_Result buildPartial() { + com.kcl.api.Spec.GetSchemaTypeMapping_Result result = new com.kcl.api.Spec.GetSchemaTypeMapping_Result( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.GetSchemaTypeMapping_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schemaTypeMapping_ = internalGetSchemaTypeMapping() + .build(SchemaTypeMappingDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.GetSchemaTypeMapping_Result) { + return mergeFrom((com.kcl.api.Spec.GetSchemaTypeMapping_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.GetSchemaTypeMapping_Result other) { + if (other == com.kcl.api.Spec.GetSchemaTypeMapping_Result.getDefaultInstance()) + return this; + internalGetMutableSchemaTypeMapping().mergeFrom(other.internalGetSchemaTypeMapping()); + bitField0_ |= 0x00000001; + 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: { + com.google.protobuf.MapEntry schemaTypeMapping__ = input + .readMessage(SchemaTypeMappingDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableSchemaTypeMapping().ensureBuilderMap().put(schemaTypeMapping__.getKey(), + schemaTypeMapping__.getValue()); + 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 static final class SchemaTypeMappingConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.KclType build(com.kcl.api.Spec.KclTypeOrBuilder val) { + if (val instanceof com.kcl.api.Spec.KclType) { + return (com.kcl.api.Spec.KclType) val; + } + return ((com.kcl.api.Spec.KclType.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return SchemaTypeMappingDefaultEntryHolder.defaultEntry; + } + }; + + private static final SchemaTypeMappingConverter schemaTypeMappingConverter = new SchemaTypeMappingConverter(); + + private com.google.protobuf.MapFieldBuilder schemaTypeMapping_; + + private com.google.protobuf.MapFieldBuilder internalGetSchemaTypeMapping() { + if (schemaTypeMapping_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(schemaTypeMappingConverter); + } + return schemaTypeMapping_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutableSchemaTypeMapping() { + if (schemaTypeMapping_ == null) { + schemaTypeMapping_ = new com.google.protobuf.MapFieldBuilder<>(schemaTypeMappingConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return schemaTypeMapping_; + } + + public int getSchemaTypeMappingCount() { + return internalGetSchemaTypeMapping().ensureBuilderMap().size(); + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public boolean containsSchemaTypeMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSchemaTypeMapping().ensureBuilderMap().containsKey(key); + } + + /** + * Use {@link #getSchemaTypeMappingMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSchemaTypeMapping() { + return getSchemaTypeMappingMap(); + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public java.util.Map getSchemaTypeMappingMap() { + return internalGetSchemaTypeMapping().getImmutableMap(); + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.KclType getSchemaTypeMappingOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.KclType defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableSchemaTypeMapping() + .ensureBuilderMap(); + return map.containsKey(key) ? schemaTypeMappingConverter.build(map.get(key)) : defaultValue; + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getSchemaTypeMappingOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableSchemaTypeMapping() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return schemaTypeMappingConverter.build(map.get(key)); + } + + public Builder clearSchemaTypeMapping() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableSchemaTypeMapping().clear(); + return this; + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + public Builder removeSchemaTypeMapping(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSchemaTypeMapping().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableSchemaTypeMapping() { + bitField0_ |= 0x00000001; + return internalGetMutableSchemaTypeMapping().ensureMessageMap(); + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + public Builder putSchemaTypeMapping(java.lang.String key, com.kcl.api.Spec.KclType value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableSchemaTypeMapping().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + public Builder putAllSchemaTypeMapping(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableSchemaTypeMapping().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + *
+             * Map of schema type mappings.
+             * 
+ * + * map<string, .com.kcl.api.KclType> schema_type_mapping = 1; + */ + public com.kcl.api.Spec.KclType.Builder putSchemaTypeMappingBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableSchemaTypeMapping() + .ensureBuilderMap(); + com.kcl.api.Spec.KclTypeOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.KclType.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.KclType) { + entry = ((com.kcl.api.Spec.KclType) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.KclType.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.GetSchemaTypeMapping_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.GetSchemaTypeMapping_Result) + private static final com.kcl.api.Spec.GetSchemaTypeMapping_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.GetSchemaTypeMapping_Result(); + } + + public static com.kcl.api.Spec.GetSchemaTypeMapping_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaTypeMapping_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.GetSchemaTypeMapping_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ValidateCode_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ValidateCode_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Path to the data file.
+         * 
+ * + * string datafile = 1; + * + * @return The datafile. + */ + java.lang.String getDatafile(); + + /** + *
+         * Path to the data file.
+         * 
+ * + * string datafile = 1; + * + * @return The bytes for datafile. + */ + com.google.protobuf.ByteString getDatafileBytes(); + + /** + *
+         * Data content.
+         * 
+ * + * string data = 2; + * + * @return The data. + */ + java.lang.String getData(); + + /** + *
+         * Data content.
+         * 
+ * + * string data = 2; + * + * @return The bytes for data. + */ + com.google.protobuf.ByteString getDataBytes(); + + /** + *
+         * Path to the code file.
+         * 
+ * + * string file = 3; + * + * @return The file. + */ + java.lang.String getFile(); + + /** + *
+         * Path to the code file.
+         * 
+ * + * string file = 3; + * + * @return The bytes for file. + */ + com.google.protobuf.ByteString getFileBytes(); + + /** + *
+         * Source code content.
+         * 
+ * + * string code = 4; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + *
+         * Source code content.
+         * 
+ * + * string code = 4; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema = 5; + * + * @return The schema. + */ + java.lang.String getSchema(); + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema = 5; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + *
+         * Name of the attribute.
+         * 
+ * + * string attribute_name = 6; + * + * @return The attributeName. + */ + java.lang.String getAttributeName(); + + /** + *
+         * Name of the attribute.
+         * 
+ * + * string attribute_name = 6; + * + * @return The bytes for attributeName. + */ + com.google.protobuf.ByteString getAttributeNameBytes(); + + /** + *
+         * Format of the validation (e.g., "json", "yaml").
+         * 
+ * + * string format = 7; + * + * @return The format. + */ + java.lang.String getFormat(); + + /** + *
+         * Format of the validation (e.g., "json", "yaml").
+         * 
+ * + * string format = 7; + * + * @return The bytes for format. + */ + com.google.protobuf.ByteString getFormatBytes(); + } + + /** + *
+     * Message for validate code request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ValidateCode_Args} + */ + public static final class ValidateCode_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ValidateCode_Args) + ValidateCode_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= */ "", ValidateCode_Args.class.getName()); + } + + // Use ValidateCode_Args.newBuilder() to construct. + private ValidateCode_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ValidateCode_Args() { + datafile_ = ""; + data_ = ""; + file_ = ""; + code_ = ""; + schema_ = ""; + attributeName_ = ""; + format_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ValidateCode_Args.class, + com.kcl.api.Spec.ValidateCode_Args.Builder.class); + } + + public static final int DATAFILE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object datafile_ = ""; + + /** + *
+         * Path to the data file.
+         * 
+ * + * string datafile = 1; + * + * @return The datafile. + */ + @java.lang.Override + public java.lang.String getDatafile() { + java.lang.Object ref = datafile_; + 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(); + datafile_ = s; + return s; + } + } + + /** + *
+         * Path to the data file.
+         * 
+ * + * string datafile = 1; + * + * @return The bytes for datafile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatafileBytes() { + java.lang.Object ref = datafile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datafile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object data_ = ""; + + /** + *
+         * Data content.
+         * 
+ * + * string data = 2; + * + * @return The data. + */ + @java.lang.Override + public java.lang.String getData() { + java.lang.Object ref = data_; + 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(); + data_ = s; + return s; + } + } + + /** + *
+         * Data content.
+         * 
+ * + * string data = 2; + * + * @return The bytes for data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object file_ = ""; + + /** + *
+         * Path to the code file.
+         * 
+ * + * string file = 3; + * + * @return The file. + */ + @java.lang.Override + public java.lang.String getFile() { + java.lang.Object ref = file_; + 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(); + file_ = s; + return s; + } + } + + /** + *
+         * Path to the code file.
+         * 
+ * + * string file = 3; + * + * @return The bytes for file. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + + /** + *
+         * Source code content.
+         * 
+ * + * string code = 4; + * + * @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; + } + } + + /** + *
+         * Source code content.
+         * 
+ * + * string code = 4; + * + * @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 SCHEMA_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema = 5; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + + /** + *
+         * Name of the schema.
+         * 
+ * + * string schema = 5; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTE_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object attributeName_ = ""; + + /** + *
+         * Name of the attribute.
+         * 
+ * + * string attribute_name = 6; + * + * @return The attributeName. + */ + @java.lang.Override + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + 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(); + attributeName_ = s; + return s; + } + } + + /** + *
+         * Name of the attribute.
+         * 
+ * + * string attribute_name = 6; + * + * @return The bytes for attributeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORMAT_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object format_ = ""; + + /** + *
+         * Format of the validation (e.g., "json", "yaml").
+         * 
+ * + * string format = 7; + * + * @return The format. + */ + @java.lang.Override + public java.lang.String getFormat() { + java.lang.Object ref = format_; + 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(); + format_ = s; + return s; + } + } + + /** + *
+         * Format of the validation (e.g., "json", "yaml").
+         * 
+ * + * string format = 7; + * + * @return The bytes for format. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + format_ = 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(datafile_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, datafile_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(data_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, data_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, file_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, code_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schema_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, schema_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attributeName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, attributeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(format_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, format_); + } + 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(datafile_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, datafile_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(data_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, data_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(file_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, file_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, code_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, schema_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(attributeName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, attributeName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(format_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, format_); + } + 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.ValidateCode_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.ValidateCode_Args other = (com.kcl.api.Spec.ValidateCode_Args) obj; + + if (!getDatafile().equals(other.getDatafile())) + return false; + if (!getData().equals(other.getData())) + return false; + if (!getFile().equals(other.getFile())) + return false; + if (!getCode().equals(other.getCode())) + return false; + if (!getSchema().equals(other.getSchema())) + return false; + if (!getAttributeName().equals(other.getAttributeName())) + return false; + if (!getFormat().equals(other.getFormat())) + 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) + DATAFILE_FIELD_NUMBER; + hash = (53 * hash) + getDatafile().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + ATTRIBUTE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAttributeName().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFormat().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ValidateCode_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_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.ValidateCode_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.ValidateCode_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 validate code request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ValidateCode_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ValidateCode_Args) + com.kcl.api.Spec.ValidateCode_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ValidateCode_Args.class, + com.kcl.api.Spec.ValidateCode_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.ValidateCode_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datafile_ = ""; + data_ = ""; + file_ = ""; + code_ = ""; + schema_ = ""; + attributeName_ = ""; + format_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ValidateCode_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.ValidateCode_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ValidateCode_Args build() { + com.kcl.api.Spec.ValidateCode_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ValidateCode_Args buildPartial() { + com.kcl.api.Spec.ValidateCode_Args result = new com.kcl.api.Spec.ValidateCode_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ValidateCode_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datafile_ = datafile_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.file_ = file_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.schema_ = schema_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.attributeName_ = attributeName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.format_ = format_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ValidateCode_Args) { + return mergeFrom((com.kcl.api.Spec.ValidateCode_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ValidateCode_Args other) { + if (other == com.kcl.api.Spec.ValidateCode_Args.getDefaultInstance()) + return this; + if (!other.getDatafile().isEmpty()) { + datafile_ = other.datafile_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getData().isEmpty()) { + data_ = other.data_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFile().isEmpty()) { + file_ = other.file_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getAttributeName().isEmpty()) { + attributeName_ = other.attributeName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getFormat().isEmpty()) { + format_ = other.format_; + bitField0_ |= 0x00000040; + 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: { + datafile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + data_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + file_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + attributeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + format_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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 datafile_ = ""; + + /** + *
+             * Path to the data file.
+             * 
+ * + * string datafile = 1; + * + * @return The datafile. + */ + public java.lang.String getDatafile() { + java.lang.Object ref = datafile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datafile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Path to the data file.
+             * 
+ * + * string datafile = 1; + * + * @return The bytes for datafile. + */ + public com.google.protobuf.ByteString getDatafileBytes() { + java.lang.Object ref = datafile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + datafile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Path to the data file.
+             * 
+ * + * string datafile = 1; + * + * @param value + * The datafile to set. + * + * @return This builder for chaining. + */ + public Builder setDatafile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datafile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Path to the data file.
+             * 
+ * + * string datafile = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatafile() { + datafile_ = getDefaultInstance().getDatafile(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Path to the data file.
+             * 
+ * + * string datafile = 1; + * + * @param value + * The bytes for datafile to set. + * + * @return This builder for chaining. + */ + public Builder setDatafileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datafile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object data_ = ""; + + /** + *
+             * Data content.
+             * 
+ * + * string data = 2; + * + * @return The data. + */ + public java.lang.String getData() { + java.lang.Object ref = data_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + data_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Data content.
+             * 
+ * + * string data = 2; + * + * @return The bytes for data. + */ + public com.google.protobuf.ByteString getDataBytes() { + java.lang.Object ref = data_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + data_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Data content.
+             * 
+ * + * string data = 2; + * + * @param value + * The data to set. + * + * @return This builder for chaining. + */ + public Builder setData(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Data content.
+             * 
+ * + * string data = 2; + * + * @return This builder for chaining. + */ + public Builder clearData() { + data_ = getDefaultInstance().getData(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Data content.
+             * 
+ * + * string data = 2; + * + * @param value + * The bytes for data to set. + * + * @return This builder for chaining. + */ + public Builder setDataBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + data_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object file_ = ""; + + /** + *
+             * Path to the code file.
+             * 
+ * + * string file = 3; + * + * @return The file. + */ + public java.lang.String getFile() { + java.lang.Object ref = file_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + file_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Path to the code file.
+             * 
+ * + * string file = 3; + * + * @return The bytes for file. + */ + public com.google.protobuf.ByteString getFileBytes() { + java.lang.Object ref = file_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + file_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Path to the code file.
+             * 
+ * + * string file = 3; + * + * @param value + * The file to set. + * + * @return This builder for chaining. + */ + public Builder setFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + file_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Path to the code file.
+             * 
+ * + * string file = 3; + * + * @return This builder for chaining. + */ + public Builder clearFile() { + file_ = getDefaultInstance().getFile(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Path to the code file.
+             * 
+ * + * string file = 3; + * + * @param value + * The bytes for file to set. + * + * @return This builder for chaining. + */ + public Builder setFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + file_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object code_ = ""; + + /** + *
+             * Source code content.
+             * 
+ * + * string code = 4; + * + * @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; + } + } + + /** + *
+             * Source code content.
+             * 
+ * + * string code = 4; + * + * @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; + } + } + + /** + *
+             * Source code content.
+             * 
+ * + * string code = 4; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Source code content.
+             * 
+ * + * string code = 4; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + *
+             * Source code content.
+             * 
+ * + * string code = 4; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object schema_ = ""; + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema = 5; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema = 5; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema = 5; + * + * @param value + * The schema to set. + * + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema = 5; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + *
+             * Name of the schema.
+             * 
+ * + * string schema = 5; + * + * @param value + * The bytes for schema to set. + * + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object attributeName_ = ""; + + /** + *
+             * Name of the attribute.
+             * 
+ * + * string attribute_name = 6; + * + * @return The attributeName. + */ + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Name of the attribute.
+             * 
+ * + * string attribute_name = 6; + * + * @return The bytes for attributeName. + */ + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Name of the attribute.
+             * 
+ * + * string attribute_name = 6; + * + * @param value + * The attributeName to set. + * + * @return This builder for chaining. + */ + public Builder setAttributeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attributeName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + *
+             * Name of the attribute.
+             * 
+ * + * string attribute_name = 6; + * + * @return This builder for chaining. + */ + public Builder clearAttributeName() { + attributeName_ = getDefaultInstance().getAttributeName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + *
+             * Name of the attribute.
+             * 
+ * + * string attribute_name = 6; + * + * @param value + * The bytes for attributeName to set. + * + * @return This builder for chaining. + */ + public Builder setAttributeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attributeName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object format_ = ""; + + /** + *
+             * Format of the validation (e.g., "json", "yaml").
+             * 
+ * + * string format = 7; + * + * @return The format. + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Format of the validation (e.g., "json", "yaml").
+             * 
+ * + * string format = 7; + * + * @return The bytes for format. + */ + public com.google.protobuf.ByteString getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Format of the validation (e.g., "json", "yaml").
+             * 
+ * + * string format = 7; + * + * @param value + * The format to set. + * + * @return This builder for chaining. + */ + public Builder setFormat(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + format_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + *
+             * Format of the validation (e.g., "json", "yaml").
+             * 
+ * + * string format = 7; + * + * @return This builder for chaining. + */ + public Builder clearFormat() { + format_ = getDefaultInstance().getFormat(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + *
+             * Format of the validation (e.g., "json", "yaml").
+             * 
+ * + * string format = 7; + * + * @param value + * The bytes for format to set. + * + * @return This builder for chaining. + */ + public Builder setFormatBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + format_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ValidateCode_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ValidateCode_Args) + private static final com.kcl.api.Spec.ValidateCode_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ValidateCode_Args(); + } + + public static com.kcl.api.Spec.ValidateCode_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateCode_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.ValidateCode_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ValidateCode_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ValidateCode_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Flag indicating if validation was successful.
+         * 
+ * + * bool success = 1; + * + * @return The success. + */ + boolean getSuccess(); + + /** + *
+         * Error message from validation.
+         * 
+ * + * string err_message = 2; + * + * @return The errMessage. + */ + java.lang.String getErrMessage(); + + /** + *
+         * Error message from validation.
+         * 
+ * + * string err_message = 2; + * + * @return The bytes for errMessage. + */ + com.google.protobuf.ByteString getErrMessageBytes(); + } + + /** + *
+     * Message for validate code response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ValidateCode_Result} + */ + public static final class ValidateCode_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ValidateCode_Result) + ValidateCode_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= */ "", ValidateCode_Result.class.getName()); + } + + // Use ValidateCode_Result.newBuilder() to construct. + private ValidateCode_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ValidateCode_Result() { + errMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ValidateCode_Result.class, + com.kcl.api.Spec.ValidateCode_Result.Builder.class); + } + + public static final int SUCCESS_FIELD_NUMBER = 1; + private boolean success_ = false; + + /** + *
+         * Flag indicating if validation was successful.
+         * 
+ * + * bool success = 1; + * + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + public static final int ERR_MESSAGE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object errMessage_ = ""; + + /** + *
+         * Error message from validation.
+         * 
+ * + * string err_message = 2; + * + * @return The errMessage. + */ + @java.lang.Override + public java.lang.String getErrMessage() { + java.lang.Object ref = errMessage_; + 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(); + errMessage_ = s; + return s; + } + } + + /** + *
+         * Error message from validation.
+         * 
+ * + * string err_message = 2; + * + * @return The bytes for errMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrMessageBytes() { + java.lang.Object ref = errMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errMessage_ = 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 (success_ != false) { + output.writeBool(1, success_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, errMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, success_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errMessage_); + } + 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.ValidateCode_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.ValidateCode_Result other = (com.kcl.api.Spec.ValidateCode_Result) obj; + + if (getSuccess() != other.getSuccess()) + return false; + if (!getErrMessage().equals(other.getErrMessage())) + 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) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuccess()); + hash = (37 * hash) + ERR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ValidateCode_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ValidateCode_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.ValidateCode_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.ValidateCode_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.ValidateCode_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 validate code response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ValidateCode_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ValidateCode_Result) + com.kcl.api.Spec.ValidateCode_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ValidateCode_Result.class, + com.kcl.api.Spec.ValidateCode_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.ValidateCode_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + success_ = false; + errMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ValidateCode_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ValidateCode_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.ValidateCode_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ValidateCode_Result build() { + com.kcl.api.Spec.ValidateCode_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ValidateCode_Result buildPartial() { + com.kcl.api.Spec.ValidateCode_Result result = new com.kcl.api.Spec.ValidateCode_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ValidateCode_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.success_ = success_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errMessage_ = errMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ValidateCode_Result) { + return mergeFrom((com.kcl.api.Spec.ValidateCode_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ValidateCode_Result other) { + if (other == com.kcl.api.Spec.ValidateCode_Result.getDefaultInstance()) + return this; + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + if (!other.getErrMessage().isEmpty()) { + errMessage_ = other.errMessage_; + 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 8: { + success_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + errMessage_ = 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 boolean success_; + + /** + *
+             * Flag indicating if validation was successful.
+             * 
+ * + * bool success = 1; + * + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + /** + *
+             * Flag indicating if validation was successful.
+             * 
+ * + * bool success = 1; + * + * @param value + * The success to set. + * + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Flag indicating if validation was successful.
+             * 
+ * + * bool success = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000001); + success_ = false; + onChanged(); + return this; + } + + private java.lang.Object errMessage_ = ""; + + /** + *
+             * Error message from validation.
+             * 
+ * + * string err_message = 2; + * + * @return The errMessage. + */ + public java.lang.String getErrMessage() { + java.lang.Object ref = errMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Error message from validation.
+             * 
+ * + * string err_message = 2; + * + * @return The bytes for errMessage. + */ + public com.google.protobuf.ByteString getErrMessageBytes() { + java.lang.Object ref = errMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + errMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Error message from validation.
+             * 
+ * + * string err_message = 2; + * + * @param value + * The errMessage to set. + * + * @return This builder for chaining. + */ + public Builder setErrMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Error message from validation.
+             * 
+ * + * string err_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearErrMessage() { + errMessage_ = getDefaultInstance().getErrMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Error message from validation.
+             * 
+ * + * string err_message = 2; + * + * @param value + * The bytes for errMessage to set. + * + * @return This builder for chaining. + */ + public Builder setErrMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ValidateCode_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ValidateCode_Result) + private static final com.kcl.api.Spec.ValidateCode_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ValidateCode_Result(); + } + + public static com.kcl.api.Spec.ValidateCode_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateCode_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.ValidateCode_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PositionOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Position) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Line number.
+         * 
+ * + * int64 line = 1; + * + * @return The line. + */ + long getLine(); + + /** + *
+         * Column number.
+         * 
+ * + * int64 column = 2; + * + * @return The column. + */ + long getColumn(); + + /** + *
+         * Filename the position refers to.
+         * 
+ * + * string filename = 3; + * + * @return The filename. + */ + java.lang.String getFilename(); + + /** + *
+         * Filename the position refers to.
+         * 
+ * + * string filename = 3; + * + * @return The bytes for filename. + */ + com.google.protobuf.ByteString getFilenameBytes(); + } + + /** + *
+     * Message representing a position in the source code.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Position} + */ + public static final class Position extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Position) + PositionOrBuilder { + 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= */ "", Position.class.getName()); + } + + // Use Position.newBuilder() to construct. + private Position(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Position() { + filename_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Position.class, + com.kcl.api.Spec.Position.Builder.class); + } + + public static final int LINE_FIELD_NUMBER = 1; + private long line_ = 0L; + + /** + *
+         * Line number.
+         * 
+ * + * int64 line = 1; + * + * @return The line. + */ + @java.lang.Override + public long getLine() { + return line_; + } + + public static final int COLUMN_FIELD_NUMBER = 2; + private long column_ = 0L; + + /** + *
+         * Column number.
+         * 
+ * + * int64 column = 2; + * + * @return The column. + */ + @java.lang.Override + public long getColumn() { + return column_; + } + + public static final int FILENAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object filename_ = ""; + + /** + *
+         * Filename the position refers to.
+         * 
+ * + * string filename = 3; + * + * @return The filename. + */ + @java.lang.Override + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + 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(); + filename_ = s; + return s; + } + } + + /** + *
+         * Filename the position refers to.
+         * 
+ * + * string filename = 3; + * + * @return The bytes for filename. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filename_ = 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 (line_ != 0L) { + output.writeInt64(1, line_); + } + if (column_ != 0L) { + output.writeInt64(2, column_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filename_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, filename_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + if (line_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, line_); + } + if (column_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, column_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filename_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, filename_); + } + 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.Position)) { + return super.equals(obj); + } + com.kcl.api.Spec.Position other = (com.kcl.api.Spec.Position) obj; + + if (getLine() != other.getLine()) + return false; + if (getColumn() != other.getColumn()) + return false; + if (!getFilename().equals(other.getFilename())) + 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) + LINE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLine()); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumn()); + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFilename().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Position parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Position 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.Position parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Position 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.Position parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Position parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.Position parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Position 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.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Position 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.Position parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Position 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.Position 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 position in the source code.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Position} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Position) + com.kcl.api.Spec.PositionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Position.class, + com.kcl.api.Spec.Position.Builder.class); + } + + // Construct using com.kcl.api.Spec.Position.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + line_ = 0L; + column_ = 0L; + filename_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Position_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Position getDefaultInstanceForType() { + return com.kcl.api.Spec.Position.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Position build() { + com.kcl.api.Spec.Position result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Position buildPartial() { + com.kcl.api.Spec.Position result = new com.kcl.api.Spec.Position(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.Position result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.line_ = line_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.column_ = column_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filename_ = filename_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Position) { + return mergeFrom((com.kcl.api.Spec.Position) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Position other) { + if (other == com.kcl.api.Spec.Position.getDefaultInstance()) + return this; + if (other.getLine() != 0L) { + setLine(other.getLine()); + } + if (other.getColumn() != 0L) { + setColumn(other.getColumn()); + } + if (!other.getFilename().isEmpty()) { + filename_ = other.filename_; + bitField0_ |= 0x00000004; + 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 8: { + line_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + column_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + filename_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 long line_; + + /** + *
+             * Line number.
+             * 
+ * + * int64 line = 1; + * + * @return The line. + */ + @java.lang.Override + public long getLine() { + return line_; + } + + /** + *
+             * Line number.
+             * 
+ * + * int64 line = 1; + * + * @param value + * The line to set. + * + * @return This builder for chaining. + */ + public Builder setLine(long value) { + + line_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Line number.
+             * 
+ * + * int64 line = 1; + * + * @return This builder for chaining. + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00000001); + line_ = 0L; + onChanged(); + return this; + } + + private long column_; + + /** + *
+             * Column number.
+             * 
+ * + * int64 column = 2; + * + * @return The column. + */ + @java.lang.Override + public long getColumn() { + return column_; + } + + /** + *
+             * Column number.
+             * 
+ * + * int64 column = 2; + * + * @param value + * The column to set. + * + * @return This builder for chaining. + */ + public Builder setColumn(long value) { + + column_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Column number.
+             * 
+ * + * int64 column = 2; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + bitField0_ = (bitField0_ & ~0x00000002); + column_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object filename_ = ""; + + /** + *
+             * Filename the position refers to.
+             * 
+ * + * string filename = 3; + * + * @return The filename. + */ + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Filename the position refers to.
+             * 
+ * + * string filename = 3; + * + * @return The bytes for filename. + */ + public com.google.protobuf.ByteString getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Filename the position refers to.
+             * 
+ * + * string filename = 3; + * + * @param value + * The filename to set. + * + * @return This builder for chaining. + */ + public Builder setFilename(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filename_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Filename the position refers to.
+             * 
+ * + * string filename = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilename() { + filename_ = getDefaultInstance().getFilename(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Filename the position refers to.
+             * 
+ * + * string filename = 3; + * + * @param value + * The bytes for filename to set. + * + * @return This builder for chaining. + */ + public Builder setFilenameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filename_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Position) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Position) + private static final com.kcl.api.Spec.Position DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Position(); + } + + public static com.kcl.api.Spec.Position getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position 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.Position getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListDepFiles_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ListDepFiles_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + java.lang.String getWorkDir(); + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + com.google.protobuf.ByteString getWorkDirBytes(); + + /** + *
+         * Flag to use absolute paths.
+         * 
+ * + * bool use_abs_path = 2; + * + * @return The useAbsPath. + */ + boolean getUseAbsPath(); + + /** + *
+         * Flag to include all files.
+         * 
+ * + * bool include_all = 3; + * + * @return The includeAll. + */ + boolean getIncludeAll(); + + /** + *
+         * Flag to use fast parser.
+         * 
+ * + * bool use_fast_parser = 4; + * + * @return The useFastParser. + */ + boolean getUseFastParser(); + } + + /** + *
+     * Message for list dependency files request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ListDepFiles_Args} + */ + public static final class ListDepFiles_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ListDepFiles_Args) + ListDepFiles_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= */ "", ListDepFiles_Args.class.getName()); + } + + // Use ListDepFiles_Args.newBuilder() to construct. + private ListDepFiles_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDepFiles_Args() { + workDir_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListDepFiles_Args.class, + com.kcl.api.Spec.ListDepFiles_Args.Builder.class); + } + + public static final int WORK_DIR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workDir_ = ""; + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + @java.lang.Override + public java.lang.String getWorkDir() { + java.lang.Object ref = workDir_; + 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(); + workDir_ = s; + return s; + } + } + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkDirBytes() { + java.lang.Object ref = workDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_ABS_PATH_FIELD_NUMBER = 2; + private boolean useAbsPath_ = false; + + /** + *
+         * Flag to use absolute paths.
+         * 
+ * + * bool use_abs_path = 2; + * + * @return The useAbsPath. + */ + @java.lang.Override + public boolean getUseAbsPath() { + return useAbsPath_; + } + + public static final int INCLUDE_ALL_FIELD_NUMBER = 3; + private boolean includeAll_ = false; + + /** + *
+         * Flag to include all files.
+         * 
+ * + * bool include_all = 3; + * + * @return The includeAll. + */ + @java.lang.Override + public boolean getIncludeAll() { + return includeAll_; + } + + public static final int USE_FAST_PARSER_FIELD_NUMBER = 4; + private boolean useFastParser_ = false; + + /** + *
+         * Flag to use fast parser.
+         * 
+ * + * bool use_fast_parser = 4; + * + * @return The useFastParser. + */ + @java.lang.Override + public boolean getUseFastParser() { + return useFastParser_; + } + + 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(workDir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workDir_); + } + if (useAbsPath_ != false) { + output.writeBool(2, useAbsPath_); + } + if (includeAll_ != false) { + output.writeBool(3, includeAll_); + } + if (useFastParser_ != false) { + output.writeBool(4, useFastParser_); + } + 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(workDir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workDir_); + } + if (useAbsPath_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useAbsPath_); + } + if (includeAll_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, includeAll_); + } + if (useFastParser_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, useFastParser_); + } + 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.ListDepFiles_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.ListDepFiles_Args other = (com.kcl.api.Spec.ListDepFiles_Args) obj; + + if (!getWorkDir().equals(other.getWorkDir())) + return false; + if (getUseAbsPath() != other.getUseAbsPath()) + return false; + if (getIncludeAll() != other.getIncludeAll()) + return false; + if (getUseFastParser() != other.getUseFastParser()) + 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) + WORK_DIR_FIELD_NUMBER; + hash = (53 * hash) + getWorkDir().hashCode(); + hash = (37 * hash) + USE_ABS_PATH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseAbsPath()); + hash = (37 * hash) + INCLUDE_ALL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAll()); + hash = (37 * hash) + USE_FAST_PARSER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseFastParser()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ListDepFiles_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_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.ListDepFiles_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.ListDepFiles_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 dependency files request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ListDepFiles_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ListDepFiles_Args) + com.kcl.api.Spec.ListDepFiles_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListDepFiles_Args.class, + com.kcl.api.Spec.ListDepFiles_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.ListDepFiles_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workDir_ = ""; + useAbsPath_ = false; + includeAll_ = false; + useFastParser_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ListDepFiles_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.ListDepFiles_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ListDepFiles_Args build() { + com.kcl.api.Spec.ListDepFiles_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ListDepFiles_Args buildPartial() { + com.kcl.api.Spec.ListDepFiles_Args result = new com.kcl.api.Spec.ListDepFiles_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ListDepFiles_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workDir_ = workDir_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useAbsPath_ = useAbsPath_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.includeAll_ = includeAll_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.useFastParser_ = useFastParser_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ListDepFiles_Args) { + return mergeFrom((com.kcl.api.Spec.ListDepFiles_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ListDepFiles_Args other) { + if (other == com.kcl.api.Spec.ListDepFiles_Args.getDefaultInstance()) + return this; + if (!other.getWorkDir().isEmpty()) { + workDir_ = other.workDir_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUseAbsPath() != false) { + setUseAbsPath(other.getUseAbsPath()); + } + if (other.getIncludeAll() != false) { + setIncludeAll(other.getIncludeAll()); + } + if (other.getUseFastParser() != false) { + setUseFastParser(other.getUseFastParser()); + } + 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: { + workDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + useAbsPath_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + includeAll_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + useFastParser_ = 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 java.lang.Object workDir_ = ""; + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + public java.lang.String getWorkDir() { + java.lang.Object ref = workDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + public com.google.protobuf.ByteString getWorkDirBytes() { + java.lang.Object ref = workDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + workDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @param value + * The workDir to set. + * + * @return This builder for chaining. + */ + public Builder setWorkDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkDir() { + workDir_ = getDefaultInstance().getWorkDir(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @param value + * The bytes for workDir to set. + * + * @return This builder for chaining. + */ + public Builder setWorkDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean useAbsPath_; + + /** + *
+             * Flag to use absolute paths.
+             * 
+ * + * bool use_abs_path = 2; + * + * @return The useAbsPath. + */ + @java.lang.Override + public boolean getUseAbsPath() { + return useAbsPath_; + } + + /** + *
+             * Flag to use absolute paths.
+             * 
+ * + * bool use_abs_path = 2; + * + * @param value + * The useAbsPath to set. + * + * @return This builder for chaining. + */ + public Builder setUseAbsPath(boolean value) { + + useAbsPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Flag to use absolute paths.
+             * 
+ * + * bool use_abs_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearUseAbsPath() { + bitField0_ = (bitField0_ & ~0x00000002); + useAbsPath_ = false; + onChanged(); + return this; + } + + private boolean includeAll_; + + /** + *
+             * Flag to include all files.
+             * 
+ * + * bool include_all = 3; + * + * @return The includeAll. + */ + @java.lang.Override + public boolean getIncludeAll() { + return includeAll_; + } + + /** + *
+             * Flag to include all files.
+             * 
+ * + * bool include_all = 3; + * + * @param value + * The includeAll to set. + * + * @return This builder for chaining. + */ + public Builder setIncludeAll(boolean value) { + + includeAll_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Flag to include all files.
+             * 
+ * + * bool include_all = 3; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAll() { + bitField0_ = (bitField0_ & ~0x00000004); + includeAll_ = false; + onChanged(); + return this; + } + + private boolean useFastParser_; + + /** + *
+             * Flag to use fast parser.
+             * 
+ * + * bool use_fast_parser = 4; + * + * @return The useFastParser. + */ + @java.lang.Override + public boolean getUseFastParser() { + return useFastParser_; + } + + /** + *
+             * Flag to use fast parser.
+             * 
+ * + * bool use_fast_parser = 4; + * + * @param value + * The useFastParser to set. + * + * @return This builder for chaining. + */ + public Builder setUseFastParser(boolean value) { + + useFastParser_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Flag to use fast parser.
+             * 
+ * + * bool use_fast_parser = 4; + * + * @return This builder for chaining. + */ + public Builder clearUseFastParser() { + bitField0_ = (bitField0_ & ~0x00000008); + useFastParser_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ListDepFiles_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ListDepFiles_Args) + private static final com.kcl.api.Spec.ListDepFiles_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ListDepFiles_Args(); + } + + public static com.kcl.api.Spec.ListDepFiles_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDepFiles_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.ListDepFiles_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListDepFiles_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.ListDepFiles_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Root package path.
+         * 
+ * + * string pkgroot = 1; + * + * @return The pkgroot. + */ + java.lang.String getPkgroot(); + + /** + *
+         * Root package path.
+         * 
+ * + * string pkgroot = 1; + * + * @return The bytes for pkgroot. + */ + com.google.protobuf.ByteString getPkgrootBytes(); + + /** + *
+         * Package path.
+         * 
+ * + * string pkgpath = 2; + * + * @return The pkgpath. + */ + java.lang.String getPkgpath(); + + /** + *
+         * Package path.
+         * 
+ * + * string pkgpath = 2; + * + * @return The bytes for pkgpath. + */ + com.google.protobuf.ByteString getPkgpathBytes(); + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @return A list containing the files. + */ + java.util.List getFilesList(); + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @return The count of files. + */ + int getFilesCount(); + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + java.lang.String getFiles(int index); + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + com.google.protobuf.ByteString getFilesBytes(int index); + } + + /** + *
+     * Message for list dependency files response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.ListDepFiles_Result} + */ + public static final class ListDepFiles_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.ListDepFiles_Result) + ListDepFiles_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= */ "", ListDepFiles_Result.class.getName()); + } + + // Use ListDepFiles_Result.newBuilder() to construct. + private ListDepFiles_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListDepFiles_Result() { + pkgroot_ = ""; + pkgpath_ = ""; + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListDepFiles_Result.class, + com.kcl.api.Spec.ListDepFiles_Result.Builder.class); + } + + public static final int PKGROOT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object pkgroot_ = ""; + + /** + *
+         * Root package path.
+         * 
+ * + * string pkgroot = 1; + * + * @return The pkgroot. + */ + @java.lang.Override + public java.lang.String getPkgroot() { + java.lang.Object ref = pkgroot_; + 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(); + pkgroot_ = s; + return s; + } + } + + /** + *
+         * Root package path.
+         * 
+ * + * string pkgroot = 1; + * + * @return The bytes for pkgroot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPkgrootBytes() { + java.lang.Object ref = pkgroot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pkgroot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PKGPATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object pkgpath_ = ""; + + /** + *
+         * Package path.
+         * 
+ * + * string pkgpath = 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; + } + } + + /** + *
+         * Package path.
+         * 
+ * + * string pkgpath = 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; + } + } + + public static final int FILES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + return files_; + } + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+         * List of file paths in the package.
+         * 
+ * + * repeated string files = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgroot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pkgroot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgpath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pkgpath_); + } + for (int i = 0; i < files_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, files_.getRaw(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(pkgroot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pkgroot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgpath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pkgpath_); + } + { + int dataSize = 0; + for (int i = 0; i < files_.size(); i++) { + dataSize += computeStringSizeNoTag(files_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilesList().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.ListDepFiles_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.ListDepFiles_Result other = (com.kcl.api.Spec.ListDepFiles_Result) obj; + + if (!getPkgroot().equals(other.getPkgroot())) + return false; + if (!getPkgpath().equals(other.getPkgpath())) + return false; + if (!getFilesList().equals(other.getFilesList())) + 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) + PKGROOT_FIELD_NUMBER; + hash = (53 * hash) + getPkgroot().hashCode(); + hash = (37 * hash) + PKGPATH_FIELD_NUMBER; + hash = (53 * hash) + getPkgpath().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.ListDepFiles_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.ListDepFiles_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.ListDepFiles_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.ListDepFiles_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.ListDepFiles_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 dependency files response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.ListDepFiles_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.ListDepFiles_Result) + com.kcl.api.Spec.ListDepFiles_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_ListDepFiles_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.ListDepFiles_Result.class, + com.kcl.api.Spec.ListDepFiles_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.ListDepFiles_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pkgroot_ = ""; + pkgpath_ = ""; + files_ = 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_ListDepFiles_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.ListDepFiles_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.ListDepFiles_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.ListDepFiles_Result build() { + com.kcl.api.Spec.ListDepFiles_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.ListDepFiles_Result buildPartial() { + com.kcl.api.Spec.ListDepFiles_Result result = new com.kcl.api.Spec.ListDepFiles_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.ListDepFiles_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pkgroot_ = pkgroot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pkgpath_ = pkgpath_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + files_.makeImmutable(); + result.files_ = files_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.ListDepFiles_Result) { + return mergeFrom((com.kcl.api.Spec.ListDepFiles_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.ListDepFiles_Result other) { + if (other == com.kcl.api.Spec.ListDepFiles_Result.getDefaultInstance()) + return this; + if (!other.getPkgroot().isEmpty()) { + pkgroot_ = other.pkgroot_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPkgpath().isEmpty()) { + pkgpath_ = other.pkgpath_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ |= 0x00000004; + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + 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: { + pkgroot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pkgpath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFilesIsMutable(); + files_.add(s); + 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 pkgroot_ = ""; + + /** + *
+             * Root package path.
+             * 
+ * + * string pkgroot = 1; + * + * @return The pkgroot. + */ + public java.lang.String getPkgroot() { + java.lang.Object ref = pkgroot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pkgroot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Root package path.
+             * 
+ * + * string pkgroot = 1; + * + * @return The bytes for pkgroot. + */ + public com.google.protobuf.ByteString getPkgrootBytes() { + java.lang.Object ref = pkgroot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + pkgroot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Root package path.
+             * 
+ * + * string pkgroot = 1; + * + * @param value + * The pkgroot to set. + * + * @return This builder for chaining. + */ + public Builder setPkgroot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pkgroot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Root package path.
+             * 
+ * + * string pkgroot = 1; + * + * @return This builder for chaining. + */ + public Builder clearPkgroot() { + pkgroot_ = getDefaultInstance().getPkgroot(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Root package path.
+             * 
+ * + * string pkgroot = 1; + * + * @param value + * The bytes for pkgroot to set. + * + * @return This builder for chaining. + */ + public Builder setPkgrootBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pkgroot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object pkgpath_ = ""; + + /** + *
+             * Package path.
+             * 
+ * + * string pkgpath = 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; + } + } + + /** + *
+             * Package path.
+             * 
+ * + * string pkgpath = 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; + } + } + + /** + *
+             * Package path.
+             * 
+ * + * string pkgpath = 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; + } + + /** + *
+             * Package path.
+             * 
+ * + * string pkgpath = 2; + * + * @return This builder for chaining. + */ + public Builder clearPkgpath() { + pkgpath_ = getDefaultInstance().getPkgpath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Package path.
+             * 
+ * + * string pkgpath = 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; + } + + private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureFilesIsMutable() { + if (!files_.isModifiable()) { + files_ = new com.google.protobuf.LazyStringArrayList(files_); + } + bitField0_ |= 0x00000004; + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + files_.makeImmutable(); + return files_; + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @param index + * The index to set the value at. + * @param value + * The files to set. + * + * @return This builder for chaining. + */ + public Builder setFiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @param value + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addFiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @param values + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addAllFiles(java.lang.Iterable values) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @return This builder for chaining. + */ + public Builder clearFiles() { + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + *
+             * List of file paths in the package.
+             * 
+ * + * repeated string files = 3; + * + * @param value + * The bytes of the files to add. + * + * @return This builder for chaining. + */ + public Builder addFilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.ListDepFiles_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.ListDepFiles_Result) + private static final com.kcl.api.Spec.ListDepFiles_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.ListDepFiles_Result(); + } + + public static com.kcl.api.Spec.ListDepFiles_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDepFiles_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.ListDepFiles_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LoadSettingsFiles_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.LoadSettingsFiles_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + java.lang.String getWorkDir(); + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + com.google.protobuf.ByteString getWorkDirBytes(); + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @return A list containing the files. + */ + java.util.List getFilesList(); + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @return The count of files. + */ + int getFilesCount(); + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + java.lang.String getFiles(int index); + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + com.google.protobuf.ByteString getFilesBytes(int index); + } + + /** + *
+     * Message for load settings files request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.LoadSettingsFiles_Args} + */ + public static final class LoadSettingsFiles_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.LoadSettingsFiles_Args) + LoadSettingsFiles_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= */ "", LoadSettingsFiles_Args.class.getName()); + } + + // Use LoadSettingsFiles_Args.newBuilder() to construct. + private LoadSettingsFiles_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LoadSettingsFiles_Args() { + workDir_ = ""; + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadSettingsFiles_Args.class, + com.kcl.api.Spec.LoadSettingsFiles_Args.Builder.class); + } + + public static final int WORK_DIR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object workDir_ = ""; + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + @java.lang.Override + public java.lang.String getWorkDir() { + java.lang.Object ref = workDir_; + 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(); + workDir_ = s; + return s; + } + } + + /** + *
+         * Working directory.
+         * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkDirBytes() { + java.lang.Object ref = workDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + return files_; + } + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+         * Setting files to load.
+         * 
+ * + * repeated string files = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workDir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workDir_); + } + for (int i = 0; i < files_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, files_.getRaw(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(workDir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workDir_); + } + { + int dataSize = 0; + for (int i = 0; i < files_.size(); i++) { + dataSize += computeStringSizeNoTag(files_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilesList().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.LoadSettingsFiles_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.LoadSettingsFiles_Args other = (com.kcl.api.Spec.LoadSettingsFiles_Args) obj; + + if (!getWorkDir().equals(other.getWorkDir())) + return false; + if (!getFilesList().equals(other.getFilesList())) + 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) + WORK_DIR_FIELD_NUMBER; + hash = (53 * hash) + getWorkDir().hashCode(); + if (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.LoadSettingsFiles_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_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.LoadSettingsFiles_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.LoadSettingsFiles_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 settings files request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.LoadSettingsFiles_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.LoadSettingsFiles_Args) + com.kcl.api.Spec.LoadSettingsFiles_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadSettingsFiles_Args.class, + com.kcl.api.Spec.LoadSettingsFiles_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.LoadSettingsFiles_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workDir_ = ""; + files_ = 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_LoadSettingsFiles_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.LoadSettingsFiles_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.LoadSettingsFiles_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.LoadSettingsFiles_Args build() { + com.kcl.api.Spec.LoadSettingsFiles_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.LoadSettingsFiles_Args buildPartial() { + com.kcl.api.Spec.LoadSettingsFiles_Args result = new com.kcl.api.Spec.LoadSettingsFiles_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.LoadSettingsFiles_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workDir_ = workDir_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + files_.makeImmutable(); + result.files_ = files_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.LoadSettingsFiles_Args) { + return mergeFrom((com.kcl.api.Spec.LoadSettingsFiles_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.LoadSettingsFiles_Args other) { + if (other == com.kcl.api.Spec.LoadSettingsFiles_Args.getDefaultInstance()) + return this; + if (!other.getWorkDir().isEmpty()) { + workDir_ = other.workDir_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ |= 0x00000002; + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + 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: { + workDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFilesIsMutable(); + files_.add(s); + 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 workDir_ = ""; + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return The workDir. + */ + public java.lang.String getWorkDir() { + java.lang.Object ref = workDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return The bytes for workDir. + */ + public com.google.protobuf.ByteString getWorkDirBytes() { + java.lang.Object ref = workDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + workDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @param value + * The workDir to set. + * + * @return This builder for chaining. + */ + public Builder setWorkDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkDir() { + workDir_ = getDefaultInstance().getWorkDir(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Working directory.
+             * 
+ * + * string work_dir = 1; + * + * @param value + * The bytes for workDir to set. + * + * @return This builder for chaining. + */ + public Builder setWorkDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureFilesIsMutable() { + if (!files_.isModifiable()) { + files_ = new com.google.protobuf.LazyStringArrayList(files_); + } + bitField0_ |= 0x00000002; + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + files_.makeImmutable(); + return files_; + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @param index + * The index to set the value at. + * @param value + * The files to set. + * + * @return This builder for chaining. + */ + public Builder setFiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @param value + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addFiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @param values + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addAllFiles(java.lang.Iterable values) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @return This builder for chaining. + */ + public Builder clearFiles() { + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + *
+             * Setting files to load.
+             * 
+ * + * repeated string files = 2; + * + * @param value + * The bytes of the files to add. + * + * @return This builder for chaining. + */ + public Builder addFilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.LoadSettingsFiles_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.LoadSettingsFiles_Args) + private static final com.kcl.api.Spec.LoadSettingsFiles_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.LoadSettingsFiles_Args(); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadSettingsFiles_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.LoadSettingsFiles_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LoadSettingsFiles_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.LoadSettingsFiles_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * KCL CLI configuration.
+         * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + * + * @return Whether the kclCliConfigs field is set. + */ + boolean hasKclCliConfigs(); + + /** + *
+         * KCL CLI configuration.
+         * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + * + * @return The kclCliConfigs. + */ + com.kcl.api.Spec.CliConfig getKclCliConfigs(); + + /** + *
+         * KCL CLI configuration.
+         * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + com.kcl.api.Spec.CliConfigOrBuilder getKclCliConfigsOrBuilder(); + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + java.util.List getKclOptionsList(); + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + com.kcl.api.Spec.KeyValuePair getKclOptions(int index); + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + int getKclOptionsCount(); + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + java.util.List getKclOptionsOrBuilderList(); + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + com.kcl.api.Spec.KeyValuePairOrBuilder getKclOptionsOrBuilder(int index); + } + + /** + *
+     * Message for load settings files response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.LoadSettingsFiles_Result} + */ + public static final class LoadSettingsFiles_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.LoadSettingsFiles_Result) + LoadSettingsFiles_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= */ "", LoadSettingsFiles_Result.class.getName()); + } + + // Use LoadSettingsFiles_Result.newBuilder() to construct. + private LoadSettingsFiles_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LoadSettingsFiles_Result() { + kclOptions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadSettingsFiles_Result.class, + com.kcl.api.Spec.LoadSettingsFiles_Result.Builder.class); + } + + private int bitField0_; + public static final int KCL_CLI_CONFIGS_FIELD_NUMBER = 1; + private com.kcl.api.Spec.CliConfig kclCliConfigs_; + + /** + *
+         * KCL CLI configuration.
+         * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + * + * @return Whether the kclCliConfigs field is set. + */ + @java.lang.Override + public boolean hasKclCliConfigs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * KCL CLI configuration.
+         * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + * + * @return The kclCliConfigs. + */ + @java.lang.Override + public com.kcl.api.Spec.CliConfig getKclCliConfigs() { + return kclCliConfigs_ == null ? com.kcl.api.Spec.CliConfig.getDefaultInstance() : kclCliConfigs_; + } + + /** + *
+         * KCL CLI configuration.
+         * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.CliConfigOrBuilder getKclCliConfigsOrBuilder() { + return kclCliConfigs_ == null ? com.kcl.api.Spec.CliConfig.getDefaultInstance() : kclCliConfigs_; + } + + public static final int KCL_OPTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List kclOptions_; + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + @java.lang.Override + public java.util.List getKclOptionsList() { + return kclOptions_; + } + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + @java.lang.Override + public java.util.List getKclOptionsOrBuilderList() { + return kclOptions_; + } + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + @java.lang.Override + public int getKclOptionsCount() { + return kclOptions_.size(); + } + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.KeyValuePair getKclOptions(int index) { + return kclOptions_.get(index); + } + + /** + *
+         * List of KCL options as key-value pairs.
+         * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.KeyValuePairOrBuilder getKclOptionsOrBuilder(int index) { + return kclOptions_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getKclCliConfigs()); + } + for (int i = 0; i < kclOptions_.size(); i++) { + output.writeMessage(2, kclOptions_.get(i)); + } + 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, getKclCliConfigs()); + } + for (int i = 0; i < kclOptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, kclOptions_.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.LoadSettingsFiles_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.LoadSettingsFiles_Result other = (com.kcl.api.Spec.LoadSettingsFiles_Result) obj; + + if (hasKclCliConfigs() != other.hasKclCliConfigs()) + return false; + if (hasKclCliConfigs()) { + if (!getKclCliConfigs().equals(other.getKclCliConfigs())) + return false; + } + if (!getKclOptionsList().equals(other.getKclOptionsList())) + 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 (hasKclCliConfigs()) { + hash = (37 * hash) + KCL_CLI_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getKclCliConfigs().hashCode(); + } + if (getKclOptionsCount() > 0) { + hash = (37 * hash) + KCL_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getKclOptionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.LoadSettingsFiles_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_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.LoadSettingsFiles_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.LoadSettingsFiles_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.LoadSettingsFiles_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 settings files response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.LoadSettingsFiles_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.LoadSettingsFiles_Result) + com.kcl.api.Spec.LoadSettingsFiles_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.LoadSettingsFiles_Result.class, + com.kcl.api.Spec.LoadSettingsFiles_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.LoadSettingsFiles_Result.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getKclCliConfigsFieldBuilder(); + getKclOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kclCliConfigs_ = null; + if (kclCliConfigsBuilder_ != null) { + kclCliConfigsBuilder_.dispose(); + kclCliConfigsBuilder_ = null; + } + if (kclOptionsBuilder_ == null) { + kclOptions_ = java.util.Collections.emptyList(); + } else { + kclOptions_ = null; + kclOptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_LoadSettingsFiles_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.LoadSettingsFiles_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.LoadSettingsFiles_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.LoadSettingsFiles_Result build() { + com.kcl.api.Spec.LoadSettingsFiles_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.LoadSettingsFiles_Result buildPartial() { + com.kcl.api.Spec.LoadSettingsFiles_Result result = new com.kcl.api.Spec.LoadSettingsFiles_Result(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.LoadSettingsFiles_Result result) { + if (kclOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + kclOptions_ = java.util.Collections.unmodifiableList(kclOptions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.kclOptions_ = kclOptions_; + } else { + result.kclOptions_ = kclOptionsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.LoadSettingsFiles_Result result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kclCliConfigs_ = kclCliConfigsBuilder_ == null ? kclCliConfigs_ + : kclCliConfigsBuilder_.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.LoadSettingsFiles_Result) { + return mergeFrom((com.kcl.api.Spec.LoadSettingsFiles_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.LoadSettingsFiles_Result other) { + if (other == com.kcl.api.Spec.LoadSettingsFiles_Result.getDefaultInstance()) + return this; + if (other.hasKclCliConfigs()) { + mergeKclCliConfigs(other.getKclCliConfigs()); + } + if (kclOptionsBuilder_ == null) { + if (!other.kclOptions_.isEmpty()) { + if (kclOptions_.isEmpty()) { + kclOptions_ = other.kclOptions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureKclOptionsIsMutable(); + kclOptions_.addAll(other.kclOptions_); + } + onChanged(); + } + } else { + if (!other.kclOptions_.isEmpty()) { + if (kclOptionsBuilder_.isEmpty()) { + kclOptionsBuilder_.dispose(); + kclOptionsBuilder_ = null; + kclOptions_ = other.kclOptions_; + bitField0_ = (bitField0_ & ~0x00000002); + kclOptionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getKclOptionsFieldBuilder() : null; + } else { + kclOptionsBuilder_.addAllMessages(other.kclOptions_); + } + } + } + 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(getKclCliConfigsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.kcl.api.Spec.KeyValuePair m = input.readMessage(com.kcl.api.Spec.KeyValuePair.parser(), + extensionRegistry); + if (kclOptionsBuilder_ == null) { + ensureKclOptionsIsMutable(); + kclOptions_.add(m); + } else { + kclOptionsBuilder_.addMessage(m); + } + 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 com.kcl.api.Spec.CliConfig kclCliConfigs_; + private com.google.protobuf.SingleFieldBuilder kclCliConfigsBuilder_; + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + * + * @return Whether the kclCliConfigs field is set. + */ + public boolean hasKclCliConfigs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + * + * @return The kclCliConfigs. + */ + public com.kcl.api.Spec.CliConfig getKclCliConfigs() { + if (kclCliConfigsBuilder_ == null) { + return kclCliConfigs_ == null ? com.kcl.api.Spec.CliConfig.getDefaultInstance() : kclCliConfigs_; + } else { + return kclCliConfigsBuilder_.getMessage(); + } + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + public Builder setKclCliConfigs(com.kcl.api.Spec.CliConfig value) { + if (kclCliConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kclCliConfigs_ = value; + } else { + kclCliConfigsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + public Builder setKclCliConfigs(com.kcl.api.Spec.CliConfig.Builder builderForValue) { + if (kclCliConfigsBuilder_ == null) { + kclCliConfigs_ = builderForValue.build(); + } else { + kclCliConfigsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + public Builder mergeKclCliConfigs(com.kcl.api.Spec.CliConfig value) { + if (kclCliConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && kclCliConfigs_ != null + && kclCliConfigs_ != com.kcl.api.Spec.CliConfig.getDefaultInstance()) { + getKclCliConfigsBuilder().mergeFrom(value); + } else { + kclCliConfigs_ = value; + } + } else { + kclCliConfigsBuilder_.mergeFrom(value); + } + if (kclCliConfigs_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + public Builder clearKclCliConfigs() { + bitField0_ = (bitField0_ & ~0x00000001); + kclCliConfigs_ = null; + if (kclCliConfigsBuilder_ != null) { + kclCliConfigsBuilder_.dispose(); + kclCliConfigsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + public com.kcl.api.Spec.CliConfig.Builder getKclCliConfigsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getKclCliConfigsFieldBuilder().getBuilder(); + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + public com.kcl.api.Spec.CliConfigOrBuilder getKclCliConfigsOrBuilder() { + if (kclCliConfigsBuilder_ != null) { + return kclCliConfigsBuilder_.getMessageOrBuilder(); + } else { + return kclCliConfigs_ == null ? com.kcl.api.Spec.CliConfig.getDefaultInstance() : kclCliConfigs_; + } + } + + /** + *
+             * KCL CLI configuration.
+             * 
+ * + * .com.kcl.api.CliConfig kcl_cli_configs = 1; + */ + private com.google.protobuf.SingleFieldBuilder getKclCliConfigsFieldBuilder() { + if (kclCliConfigsBuilder_ == null) { + kclCliConfigsBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getKclCliConfigs(), getParentForChildren(), isClean()); + kclCliConfigs_ = null; + } + return kclCliConfigsBuilder_; + } + + private java.util.List kclOptions_ = java.util.Collections.emptyList(); + + private void ensureKclOptionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + kclOptions_ = new java.util.ArrayList(kclOptions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder kclOptionsBuilder_; + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public java.util.List getKclOptionsList() { + if (kclOptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(kclOptions_); + } else { + return kclOptionsBuilder_.getMessageList(); + } + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public int getKclOptionsCount() { + if (kclOptionsBuilder_ == null) { + return kclOptions_.size(); + } else { + return kclOptionsBuilder_.getCount(); + } + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public com.kcl.api.Spec.KeyValuePair getKclOptions(int index) { + if (kclOptionsBuilder_ == null) { + return kclOptions_.get(index); + } else { + return kclOptionsBuilder_.getMessage(index); + } + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder setKclOptions(int index, com.kcl.api.Spec.KeyValuePair value) { + if (kclOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKclOptionsIsMutable(); + kclOptions_.set(index, value); + onChanged(); + } else { + kclOptionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder setKclOptions(int index, com.kcl.api.Spec.KeyValuePair.Builder builderForValue) { + if (kclOptionsBuilder_ == null) { + ensureKclOptionsIsMutable(); + kclOptions_.set(index, builderForValue.build()); + onChanged(); + } else { + kclOptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder addKclOptions(com.kcl.api.Spec.KeyValuePair value) { + if (kclOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKclOptionsIsMutable(); + kclOptions_.add(value); + onChanged(); + } else { + kclOptionsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder addKclOptions(int index, com.kcl.api.Spec.KeyValuePair value) { + if (kclOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureKclOptionsIsMutable(); + kclOptions_.add(index, value); + onChanged(); + } else { + kclOptionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder addKclOptions(com.kcl.api.Spec.KeyValuePair.Builder builderForValue) { + if (kclOptionsBuilder_ == null) { + ensureKclOptionsIsMutable(); + kclOptions_.add(builderForValue.build()); + onChanged(); + } else { + kclOptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder addKclOptions(int index, com.kcl.api.Spec.KeyValuePair.Builder builderForValue) { + if (kclOptionsBuilder_ == null) { + ensureKclOptionsIsMutable(); + kclOptions_.add(index, builderForValue.build()); + onChanged(); + } else { + kclOptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder addAllKclOptions(java.lang.Iterable values) { + if (kclOptionsBuilder_ == null) { + ensureKclOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kclOptions_); + onChanged(); + } else { + kclOptionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder clearKclOptions() { + if (kclOptionsBuilder_ == null) { + kclOptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + kclOptionsBuilder_.clear(); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public Builder removeKclOptions(int index) { + if (kclOptionsBuilder_ == null) { + ensureKclOptionsIsMutable(); + kclOptions_.remove(index); + onChanged(); + } else { + kclOptionsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public com.kcl.api.Spec.KeyValuePair.Builder getKclOptionsBuilder(int index) { + return getKclOptionsFieldBuilder().getBuilder(index); + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public com.kcl.api.Spec.KeyValuePairOrBuilder getKclOptionsOrBuilder(int index) { + if (kclOptionsBuilder_ == null) { + return kclOptions_.get(index); + } else { + return kclOptionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public java.util.List getKclOptionsOrBuilderList() { + if (kclOptionsBuilder_ != null) { + return kclOptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(kclOptions_); + } + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public com.kcl.api.Spec.KeyValuePair.Builder addKclOptionsBuilder() { + return getKclOptionsFieldBuilder().addBuilder(com.kcl.api.Spec.KeyValuePair.getDefaultInstance()); + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public com.kcl.api.Spec.KeyValuePair.Builder addKclOptionsBuilder(int index) { + return getKclOptionsFieldBuilder().addBuilder(index, + com.kcl.api.Spec.KeyValuePair.getDefaultInstance()); + } + + /** + *
+             * List of KCL options as key-value pairs.
+             * 
+ * + * repeated .com.kcl.api.KeyValuePair kcl_options = 2; + */ + public java.util.List getKclOptionsBuilderList() { + return getKclOptionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getKclOptionsFieldBuilder() { + if (kclOptionsBuilder_ == null) { + kclOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + kclOptions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + kclOptions_ = null; + } + return kclOptionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.LoadSettingsFiles_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.LoadSettingsFiles_Result) + private static final com.kcl.api.Spec.LoadSettingsFiles_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.LoadSettingsFiles_Result(); + } + + public static com.kcl.api.Spec.LoadSettingsFiles_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadSettingsFiles_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.LoadSettingsFiles_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CliConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.CliConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + java.util.List getFilesList(); + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + int getFilesCount(); + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + java.lang.String getFiles(int index); + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + com.google.protobuf.ByteString getFilesBytes(int index); + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The output. + */ + java.lang.String getOutput(); + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The bytes for output. + */ + com.google.protobuf.ByteString getOutputBytes(); + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @return A list containing the overrides. + */ + java.util.List getOverridesList(); + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @return The count of overrides. + */ + int getOverridesCount(); + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @param index + * The index of the element to return. + * + * @return The overrides at the given index. + */ + java.lang.String getOverrides(int index); + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the overrides at the given index. + */ + com.google.protobuf.ByteString getOverridesBytes(int index); + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @return A list containing the pathSelector. + */ + java.util.List getPathSelectorList(); + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @return The count of pathSelector. + */ + int getPathSelectorCount(); + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @param index + * The index of the element to return. + * + * @return The pathSelector at the given index. + */ + java.lang.String getPathSelector(int index); + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pathSelector at the given index. + */ + com.google.protobuf.ByteString getPathSelectorBytes(int index); + + /** + *
+         * Flag for strict range check.
+         * 
+ * + * bool strict_range_check = 5; + * + * @return The strictRangeCheck. + */ + boolean getStrictRangeCheck(); + + /** + *
+         * Flag to disable none values.
+         * 
+ * + * bool disable_none = 6; + * + * @return The disableNone. + */ + boolean getDisableNone(); + + /** + *
+         * Verbose level.
+         * 
+ * + * int64 verbose = 7; + * + * @return The verbose. + */ + long getVerbose(); + + /** + *
+         * Debug flag.
+         * 
+ * + * bool debug = 8; + * + * @return The debug. + */ + boolean getDebug(); + + /** + *
+         * Flag to sort keys in YAML/JSON results.
+         * 
+ * + * bool sort_keys = 9; + * + * @return The sortKeys. + */ + boolean getSortKeys(); + + /** + *
+         * Flag to show hidden attributes.
+         * 
+ * + * bool show_hidden = 10; + * + * @return The showHidden. + */ + boolean getShowHidden(); + + /** + *
+         * Flag to include schema type path in results.
+         * 
+ * + * bool include_schema_type_path = 11; + * + * @return The includeSchemaTypePath. + */ + boolean getIncludeSchemaTypePath(); + + /** + *
+         * Flag for fast evaluation.
+         * 
+ * + * bool fast_eval = 12; + * + * @return The fastEval. + */ + boolean getFastEval(); + } + + /** + *
+     * Message representing KCL CLI configuration.
+     * 
+ * + * Protobuf type {@code com.kcl.api.CliConfig} + */ + public static final class CliConfig extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.CliConfig) + CliConfigOrBuilder { + 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= */ "", CliConfig.class.getName()); + } + + // Use CliConfig.newBuilder() to construct. + private CliConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CliConfig() { + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + output_ = ""; + overrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pathSelector_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_CliConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_CliConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.CliConfig.class, + com.kcl.api.Spec.CliConfig.Builder.class); + } + + public static final int FILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + return files_; + } + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+         * List of files.
+         * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + public static final int OUTPUT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object output_ = ""; + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The output. + */ + @java.lang.Override + public java.lang.String getOutput() { + java.lang.Object ref = output_; + 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(); + output_ = s; + return s; + } + } + + /** + *
+         * Output path.
+         * 
+ * + * string output = 2; + * + * @return The bytes for output. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERRIDES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList overrides_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @return A list containing the overrides. + */ + public com.google.protobuf.ProtocolStringList getOverridesList() { + return overrides_; + } + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @return The count of overrides. + */ + public int getOverridesCount() { + return overrides_.size(); + } + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @param index + * The index of the element to return. + * + * @return The overrides at the given index. + */ + public java.lang.String getOverrides(int index) { + return overrides_.get(index); + } + + /** + *
+         * List of overrides.
+         * 
+ * + * repeated string overrides = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the overrides at the given index. + */ + public com.google.protobuf.ByteString getOverridesBytes(int index) { + return overrides_.getByteString(index); + } + + public static final int PATH_SELECTOR_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pathSelector_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @return A list containing the pathSelector. + */ + public com.google.protobuf.ProtocolStringList getPathSelectorList() { + return pathSelector_; + } + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @return The count of pathSelector. + */ + public int getPathSelectorCount() { + return pathSelector_.size(); + } + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @param index + * The index of the element to return. + * + * @return The pathSelector at the given index. + */ + public java.lang.String getPathSelector(int index) { + return pathSelector_.get(index); + } + + /** + *
+         * Path selectors.
+         * 
+ * + * repeated string path_selector = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pathSelector at the given index. + */ + public com.google.protobuf.ByteString getPathSelectorBytes(int index) { + return pathSelector_.getByteString(index); + } + + public static final int STRICT_RANGE_CHECK_FIELD_NUMBER = 5; + private boolean strictRangeCheck_ = false; + + /** + *
+         * Flag for strict range check.
+         * 
+ * + * bool strict_range_check = 5; + * + * @return The strictRangeCheck. + */ + @java.lang.Override + public boolean getStrictRangeCheck() { + return strictRangeCheck_; + } + + public static final int DISABLE_NONE_FIELD_NUMBER = 6; + private boolean disableNone_ = false; + + /** + *
+         * Flag to disable none values.
+         * 
+ * + * bool disable_none = 6; + * + * @return The disableNone. + */ + @java.lang.Override + public boolean getDisableNone() { + return disableNone_; + } + + public static final int VERBOSE_FIELD_NUMBER = 7; + private long verbose_ = 0L; + + /** + *
+         * Verbose level.
+         * 
+ * + * int64 verbose = 7; + * + * @return The verbose. + */ + @java.lang.Override + public long getVerbose() { + return verbose_; + } + + public static final int DEBUG_FIELD_NUMBER = 8; + private boolean debug_ = false; + + /** + *
+         * Debug flag.
+         * 
+ * + * bool debug = 8; + * + * @return The debug. + */ + @java.lang.Override + public boolean getDebug() { + return debug_; + } + + public static final int SORT_KEYS_FIELD_NUMBER = 9; + private boolean sortKeys_ = false; + + /** + *
+         * Flag to sort keys in YAML/JSON results.
+         * 
+ * + * bool sort_keys = 9; + * + * @return The sortKeys. + */ + @java.lang.Override + public boolean getSortKeys() { + return sortKeys_; + } + + public static final int SHOW_HIDDEN_FIELD_NUMBER = 10; + private boolean showHidden_ = false; + + /** + *
+         * Flag to show hidden attributes.
+         * 
+ * + * bool show_hidden = 10; + * + * @return The showHidden. + */ + @java.lang.Override + public boolean getShowHidden() { + return showHidden_; + } + + public static final int INCLUDE_SCHEMA_TYPE_PATH_FIELD_NUMBER = 11; + private boolean includeSchemaTypePath_ = false; + + /** + *
+         * Flag to include schema type path in results.
+         * 
+ * + * bool include_schema_type_path = 11; + * + * @return The includeSchemaTypePath. + */ + @java.lang.Override + public boolean getIncludeSchemaTypePath() { + return includeSchemaTypePath_; + } + + public static final int FAST_EVAL_FIELD_NUMBER = 12; + private boolean fastEval_ = false; + + /** + *
+         * Flag for fast evaluation.
+         * 
+ * + * bool fast_eval = 12; + * + * @return The fastEval. + */ + @java.lang.Override + public boolean getFastEval() { + return fastEval_; + } + + 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 < files_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, files_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, output_); + } + for (int i = 0; i < overrides_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, overrides_.getRaw(i)); + } + for (int i = 0; i < pathSelector_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pathSelector_.getRaw(i)); + } + if (strictRangeCheck_ != false) { + output.writeBool(5, strictRangeCheck_); + } + if (disableNone_ != false) { + output.writeBool(6, disableNone_); + } + if (verbose_ != 0L) { + output.writeInt64(7, verbose_); + } + if (debug_ != false) { + output.writeBool(8, debug_); + } + if (sortKeys_ != false) { + output.writeBool(9, sortKeys_); + } + if (showHidden_ != false) { + output.writeBool(10, showHidden_); + } + if (includeSchemaTypePath_ != false) { + output.writeBool(11, includeSchemaTypePath_); + } + if (fastEval_ != false) { + output.writeBool(12, fastEval_); + } + 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 < files_.size(); i++) { + dataSize += computeStringSizeNoTag(files_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, output_); + } + { + int dataSize = 0; + for (int i = 0; i < overrides_.size(); i++) { + dataSize += computeStringSizeNoTag(overrides_.getRaw(i)); + } + size += dataSize; + size += 1 * getOverridesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < pathSelector_.size(); i++) { + dataSize += computeStringSizeNoTag(pathSelector_.getRaw(i)); + } + size += dataSize; + size += 1 * getPathSelectorList().size(); + } + if (strictRangeCheck_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, strictRangeCheck_); + } + if (disableNone_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disableNone_); + } + if (verbose_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, verbose_); + } + if (debug_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, debug_); + } + if (sortKeys_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, sortKeys_); + } + if (showHidden_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, showHidden_); + } + if (includeSchemaTypePath_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, includeSchemaTypePath_); + } + if (fastEval_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, fastEval_); + } + 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.CliConfig)) { + return super.equals(obj); + } + com.kcl.api.Spec.CliConfig other = (com.kcl.api.Spec.CliConfig) obj; + + if (!getFilesList().equals(other.getFilesList())) + return false; + if (!getOutput().equals(other.getOutput())) + return false; + if (!getOverridesList().equals(other.getOverridesList())) + return false; + if (!getPathSelectorList().equals(other.getPathSelectorList())) + return false; + if (getStrictRangeCheck() != other.getStrictRangeCheck()) + return false; + if (getDisableNone() != other.getDisableNone()) + return false; + if (getVerbose() != other.getVerbose()) + return false; + if (getDebug() != other.getDebug()) + return false; + if (getSortKeys() != other.getSortKeys()) + return false; + if (getShowHidden() != other.getShowHidden()) + return false; + if (getIncludeSchemaTypePath() != other.getIncludeSchemaTypePath()) + return false; + if (getFastEval() != other.getFastEval()) + 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 (getFilesCount() > 0) { + hash = (37 * hash) + FILES_FIELD_NUMBER; + hash = (53 * hash) + getFilesList().hashCode(); + } + hash = (37 * hash) + OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getOutput().hashCode(); + if (getOverridesCount() > 0) { + hash = (37 * hash) + OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + getOverridesList().hashCode(); + } + if (getPathSelectorCount() > 0) { + hash = (37 * hash) + PATH_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getPathSelectorList().hashCode(); + } + hash = (37 * hash) + STRICT_RANGE_CHECK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrictRangeCheck()); + hash = (37 * hash) + DISABLE_NONE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableNone()); + hash = (37 * hash) + VERBOSE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getVerbose()); + hash = (37 * hash) + DEBUG_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDebug()); + hash = (37 * hash) + SORT_KEYS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSortKeys()); + hash = (37 * hash) + SHOW_HIDDEN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowHidden()); + hash = (37 * hash) + INCLUDE_SCHEMA_TYPE_PATH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeSchemaTypePath()); + hash = (37 * hash) + FAST_EVAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFastEval()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.CliConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.CliConfig 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.CliConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.CliConfig 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.CliConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.CliConfig parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.CliConfig parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.CliConfig 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.CliConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.CliConfig 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.CliConfig parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.CliConfig 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.CliConfig 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 KCL CLI configuration.
+         * 
+ * + * Protobuf type {@code com.kcl.api.CliConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.CliConfig) + com.kcl.api.Spec.CliConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_CliConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_CliConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.CliConfig.class, + com.kcl.api.Spec.CliConfig.Builder.class); + } + + // Construct using com.kcl.api.Spec.CliConfig.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + output_ = ""; + overrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pathSelector_ = com.google.protobuf.LazyStringArrayList.emptyList(); + strictRangeCheck_ = false; + disableNone_ = false; + verbose_ = 0L; + debug_ = false; + sortKeys_ = false; + showHidden_ = false; + includeSchemaTypePath_ = false; + fastEval_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_CliConfig_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.CliConfig getDefaultInstanceForType() { + return com.kcl.api.Spec.CliConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.CliConfig build() { + com.kcl.api.Spec.CliConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.CliConfig buildPartial() { + com.kcl.api.Spec.CliConfig result = new com.kcl.api.Spec.CliConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.CliConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + files_.makeImmutable(); + result.files_ = files_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.output_ = output_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + overrides_.makeImmutable(); + result.overrides_ = overrides_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + pathSelector_.makeImmutable(); + result.pathSelector_ = pathSelector_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.strictRangeCheck_ = strictRangeCheck_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disableNone_ = disableNone_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.verbose_ = verbose_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.debug_ = debug_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.sortKeys_ = sortKeys_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.showHidden_ = showHidden_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.includeSchemaTypePath_ = includeSchemaTypePath_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.fastEval_ = fastEval_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.CliConfig) { + return mergeFrom((com.kcl.api.Spec.CliConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.CliConfig other) { + if (other == com.kcl.api.Spec.CliConfig.getDefaultInstance()) + return this; + if (!other.files_.isEmpty()) { + if (files_.isEmpty()) { + files_ = other.files_; + bitField0_ |= 0x00000001; + } else { + ensureFilesIsMutable(); + files_.addAll(other.files_); + } + onChanged(); + } + if (!other.getOutput().isEmpty()) { + output_ = other.output_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.overrides_.isEmpty()) { + if (overrides_.isEmpty()) { + overrides_ = other.overrides_; + bitField0_ |= 0x00000004; + } else { + ensureOverridesIsMutable(); + overrides_.addAll(other.overrides_); + } + onChanged(); + } + if (!other.pathSelector_.isEmpty()) { + if (pathSelector_.isEmpty()) { + pathSelector_ = other.pathSelector_; + bitField0_ |= 0x00000008; + } else { + ensurePathSelectorIsMutable(); + pathSelector_.addAll(other.pathSelector_); + } + onChanged(); + } + if (other.getStrictRangeCheck() != false) { + setStrictRangeCheck(other.getStrictRangeCheck()); + } + if (other.getDisableNone() != false) { + setDisableNone(other.getDisableNone()); + } + if (other.getVerbose() != 0L) { + setVerbose(other.getVerbose()); + } + if (other.getDebug() != false) { + setDebug(other.getDebug()); + } + if (other.getSortKeys() != false) { + setSortKeys(other.getSortKeys()); + } + if (other.getShowHidden() != false) { + setShowHidden(other.getShowHidden()); + } + if (other.getIncludeSchemaTypePath() != false) { + setIncludeSchemaTypePath(other.getIncludeSchemaTypePath()); + } + if (other.getFastEval() != false) { + setFastEval(other.getFastEval()); + } + 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(); + ensureFilesIsMutable(); + files_.add(s); + break; + } // case 10 + case 18: { + output_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureOverridesIsMutable(); + overrides_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePathSelectorIsMutable(); + pathSelector_.add(s); + break; + } // case 34 + case 40: { + strictRangeCheck_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + disableNone_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + verbose_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + debug_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + sortKeys_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: { + showHidden_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: { + includeSchemaTypePath_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: { + fastEval_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + 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 files_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureFilesIsMutable() { + if (!files_.isModifiable()) { + files_ = new com.google.protobuf.LazyStringArrayList(files_); + } + bitField0_ |= 0x00000001; + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @return A list containing the files. + */ + public com.google.protobuf.ProtocolStringList getFilesList() { + files_.makeImmutable(); + return files_; + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @return The count of files. + */ + public int getFilesCount() { + return files_.size(); + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the element to return. + * + * @return The files at the given index. + */ + public java.lang.String getFiles(int index) { + return files_.get(index); + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the files at the given index. + */ + public com.google.protobuf.ByteString getFilesBytes(int index) { + return files_.getByteString(index); + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @param index + * The index to set the value at. + * @param value + * The files to set. + * + * @return This builder for chaining. + */ + public Builder setFiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @param value + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addFiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @param values + * The files to add. + * + * @return This builder for chaining. + */ + public Builder addAllFiles(java.lang.Iterable values) { + ensureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @return This builder for chaining. + */ + public Builder clearFiles() { + files_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + *
+             * List of files.
+             * 
+ * + * repeated string files = 1; + * + * @param value + * The bytes of the files to add. + * + * @return This builder for chaining. + */ + public Builder addFilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilesIsMutable(); + files_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object output_ = ""; + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @return The output. + */ + public java.lang.String getOutput() { + java.lang.Object ref = output_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + output_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @return The bytes for output. + */ + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @param value + * The output to set. + * + * @return This builder for chaining. + */ + public Builder setOutput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @return This builder for chaining. + */ + public Builder clearOutput() { + output_ = getDefaultInstance().getOutput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Output path.
+             * 
+ * + * string output = 2; + * + * @param value + * The bytes for output to set. + * + * @return This builder for chaining. + */ + public Builder setOutputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList overrides_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureOverridesIsMutable() { + if (!overrides_.isModifiable()) { + overrides_ = new com.google.protobuf.LazyStringArrayList(overrides_); + } + bitField0_ |= 0x00000004; + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @return A list containing the overrides. + */ + public com.google.protobuf.ProtocolStringList getOverridesList() { + overrides_.makeImmutable(); + return overrides_; + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @return The count of overrides. + */ + public int getOverridesCount() { + return overrides_.size(); + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @param index + * The index of the element to return. + * + * @return The overrides at the given index. + */ + public java.lang.String getOverrides(int index) { + return overrides_.get(index); + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the overrides at the given index. + */ + public com.google.protobuf.ByteString getOverridesBytes(int index) { + return overrides_.getByteString(index); + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @param index + * The index to set the value at. + * @param value + * The overrides to set. + * + * @return This builder for chaining. + */ + public Builder setOverrides(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverridesIsMutable(); + overrides_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @param value + * The overrides to add. + * + * @return This builder for chaining. + */ + public Builder addOverrides(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOverridesIsMutable(); + overrides_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @param values + * The overrides to add. + * + * @return This builder for chaining. + */ + public Builder addAllOverrides(java.lang.Iterable values) { + ensureOverridesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, overrides_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @return This builder for chaining. + */ + public Builder clearOverrides() { + overrides_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + *
+             * List of overrides.
+             * 
+ * + * repeated string overrides = 3; + * + * @param value + * The bytes of the overrides to add. + * + * @return This builder for chaining. + */ + public Builder addOverridesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOverridesIsMutable(); + overrides_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pathSelector_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensurePathSelectorIsMutable() { + if (!pathSelector_.isModifiable()) { + pathSelector_ = new com.google.protobuf.LazyStringArrayList(pathSelector_); + } + bitField0_ |= 0x00000008; + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @return A list containing the pathSelector. + */ + public com.google.protobuf.ProtocolStringList getPathSelectorList() { + pathSelector_.makeImmutable(); + return pathSelector_; + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @return The count of pathSelector. + */ + public int getPathSelectorCount() { + return pathSelector_.size(); + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @param index + * The index of the element to return. + * + * @return The pathSelector at the given index. + */ + public java.lang.String getPathSelector(int index) { + return pathSelector_.get(index); + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pathSelector at the given index. + */ + public com.google.protobuf.ByteString getPathSelectorBytes(int index) { + return pathSelector_.getByteString(index); + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @param index + * The index to set the value at. + * @param value + * The pathSelector to set. + * + * @return This builder for chaining. + */ + public Builder setPathSelector(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathSelectorIsMutable(); + pathSelector_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @param value + * The pathSelector to add. + * + * @return This builder for chaining. + */ + public Builder addPathSelector(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePathSelectorIsMutable(); + pathSelector_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @param values + * The pathSelector to add. + * + * @return This builder for chaining. + */ + public Builder addAllPathSelector(java.lang.Iterable values) { + ensurePathSelectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pathSelector_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @return This builder for chaining. + */ + public Builder clearPathSelector() { + pathSelector_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + *
+             * Path selectors.
+             * 
+ * + * repeated string path_selector = 4; + * + * @param value + * The bytes of the pathSelector to add. + * + * @return This builder for chaining. + */ + public Builder addPathSelectorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePathSelectorIsMutable(); + pathSelector_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean strictRangeCheck_; + + /** + *
+             * Flag for strict range check.
+             * 
+ * + * bool strict_range_check = 5; + * + * @return The strictRangeCheck. + */ + @java.lang.Override + public boolean getStrictRangeCheck() { + return strictRangeCheck_; + } + + /** + *
+             * Flag for strict range check.
+             * 
+ * + * bool strict_range_check = 5; + * + * @param value + * The strictRangeCheck to set. + * + * @return This builder for chaining. + */ + public Builder setStrictRangeCheck(boolean value) { + + strictRangeCheck_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + *
+             * Flag for strict range check.
+             * 
+ * + * bool strict_range_check = 5; + * + * @return This builder for chaining. + */ + public Builder clearStrictRangeCheck() { + bitField0_ = (bitField0_ & ~0x00000010); + strictRangeCheck_ = false; + onChanged(); + return this; + } + + private boolean disableNone_; + + /** + *
+             * Flag to disable none values.
+             * 
+ * + * bool disable_none = 6; + * + * @return The disableNone. + */ + @java.lang.Override + public boolean getDisableNone() { + return disableNone_; + } + + /** + *
+             * Flag to disable none values.
+             * 
+ * + * bool disable_none = 6; + * + * @param value + * The disableNone to set. + * + * @return This builder for chaining. + */ + public Builder setDisableNone(boolean value) { + + disableNone_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + *
+             * Flag to disable none values.
+             * 
+ * + * bool disable_none = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableNone() { + bitField0_ = (bitField0_ & ~0x00000020); + disableNone_ = false; + onChanged(); + return this; + } + + private long verbose_; + + /** + *
+             * Verbose level.
+             * 
+ * + * int64 verbose = 7; + * + * @return The verbose. + */ + @java.lang.Override + public long getVerbose() { + return verbose_; + } + + /** + *
+             * Verbose level.
+             * 
+ * + * int64 verbose = 7; + * + * @param value + * The verbose to set. + * + * @return This builder for chaining. + */ + public Builder setVerbose(long value) { + + verbose_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + *
+             * Verbose level.
+             * 
+ * + * int64 verbose = 7; + * + * @return This builder for chaining. + */ + public Builder clearVerbose() { + bitField0_ = (bitField0_ & ~0x00000040); + verbose_ = 0L; + onChanged(); + return this; + } + + private boolean debug_; + + /** + *
+             * Debug flag.
+             * 
+ * + * bool debug = 8; + * + * @return The debug. + */ + @java.lang.Override + public boolean getDebug() { + return debug_; + } + + /** + *
+             * Debug flag.
+             * 
+ * + * bool debug = 8; + * + * @param value + * The debug to set. + * + * @return This builder for chaining. + */ + public Builder setDebug(boolean value) { + + debug_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + *
+             * Debug flag.
+             * 
+ * + * bool debug = 8; + * + * @return This builder for chaining. + */ + public Builder clearDebug() { + bitField0_ = (bitField0_ & ~0x00000080); + debug_ = false; + onChanged(); + return this; + } + + private boolean sortKeys_; + + /** + *
+             * Flag to sort keys in YAML/JSON results.
+             * 
+ * + * bool sort_keys = 9; + * + * @return The sortKeys. + */ + @java.lang.Override + public boolean getSortKeys() { + return sortKeys_; + } + + /** + *
+             * Flag to sort keys in YAML/JSON results.
+             * 
+ * + * bool sort_keys = 9; + * + * @param value + * The sortKeys to set. + * + * @return This builder for chaining. + */ + public Builder setSortKeys(boolean value) { + + sortKeys_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + *
+             * Flag to sort keys in YAML/JSON results.
+             * 
+ * + * bool sort_keys = 9; + * + * @return This builder for chaining. + */ + public Builder clearSortKeys() { + bitField0_ = (bitField0_ & ~0x00000100); + sortKeys_ = false; + onChanged(); + return this; + } + + private boolean showHidden_; + + /** + *
+             * Flag to show hidden attributes.
+             * 
+ * + * bool show_hidden = 10; + * + * @return The showHidden. + */ + @java.lang.Override + public boolean getShowHidden() { + return showHidden_; + } + + /** + *
+             * Flag to show hidden attributes.
+             * 
+ * + * bool show_hidden = 10; + * + * @param value + * The showHidden to set. + * + * @return This builder for chaining. + */ + public Builder setShowHidden(boolean value) { + + showHidden_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + *
+             * Flag to show hidden attributes.
+             * 
+ * + * bool show_hidden = 10; + * + * @return This builder for chaining. + */ + public Builder clearShowHidden() { + bitField0_ = (bitField0_ & ~0x00000200); + showHidden_ = false; + onChanged(); + return this; + } + + private boolean includeSchemaTypePath_; + + /** + *
+             * Flag to include schema type path in results.
+             * 
+ * + * bool include_schema_type_path = 11; + * + * @return The includeSchemaTypePath. + */ + @java.lang.Override + public boolean getIncludeSchemaTypePath() { + return includeSchemaTypePath_; + } + + /** + *
+             * Flag to include schema type path in results.
+             * 
+ * + * bool include_schema_type_path = 11; + * + * @param value + * The includeSchemaTypePath to set. + * + * @return This builder for chaining. + */ + public Builder setIncludeSchemaTypePath(boolean value) { + + includeSchemaTypePath_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + *
+             * Flag to include schema type path in results.
+             * 
+ * + * bool include_schema_type_path = 11; + * + * @return This builder for chaining. + */ + public Builder clearIncludeSchemaTypePath() { + bitField0_ = (bitField0_ & ~0x00000400); + includeSchemaTypePath_ = false; + onChanged(); + return this; + } + + private boolean fastEval_; + + /** + *
+             * Flag for fast evaluation.
+             * 
+ * + * bool fast_eval = 12; + * + * @return The fastEval. + */ + @java.lang.Override + public boolean getFastEval() { + return fastEval_; + } + + /** + *
+             * Flag for fast evaluation.
+             * 
+ * + * bool fast_eval = 12; + * + * @param value + * The fastEval to set. + * + * @return This builder for chaining. + */ + public Builder setFastEval(boolean value) { + + fastEval_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + *
+             * Flag for fast evaluation.
+             * 
+ * + * bool fast_eval = 12; + * + * @return This builder for chaining. + */ + public Builder clearFastEval() { + bitField0_ = (bitField0_ & ~0x00000800); + fastEval_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.CliConfig) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.CliConfig) + private static final com.kcl.api.Spec.CliConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.CliConfig(); + } + + public static com.kcl.api.Spec.CliConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CliConfig 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.CliConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValuePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Key of the pair.
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + java.lang.String getKey(); + + /** + *
+         * Key of the pair.
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + *
+         * Value of the pair.
+         * 
+ * + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * Value of the pair.
+         * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + *
+     * Message representing a key-value pair.
+     * 
+ * + * Protobuf type {@code com.kcl.api.KeyValuePair} + */ + public static final class KeyValuePair extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.KeyValuePair) + KeyValuePairOrBuilder { + 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= */ "", KeyValuePair.class.getName()); + } + + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KeyValuePair() { + key_ = ""; + value_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.KeyValuePair.class, + com.kcl.api.Spec.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + *
+         * Key of the pair.
+         * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + + /** + *
+         * Key of the pair.
+         * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = 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 pair.
+         * 
+ * + * 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 pair.
+         * 
+ * + * 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(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + 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(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + 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.KeyValuePair)) { + return super.equals(obj); + } + com.kcl.api.Spec.KeyValuePair other = (com.kcl.api.Spec.KeyValuePair) obj; + + if (!getKey().equals(other.getKey())) + 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().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.KeyValuePair parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.KeyValuePair 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.KeyValuePair parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.KeyValuePair 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.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.KeyValuePair parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.KeyValuePair parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.KeyValuePair 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.KeyValuePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.KeyValuePair 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.KeyValuePair parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.KeyValuePair 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.KeyValuePair 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 pair.
+         * 
+ * + * Protobuf type {@code com.kcl.api.KeyValuePair} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.KeyValuePair) + com.kcl.api.Spec.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KeyValuePair_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.KeyValuePair.class, + com.kcl.api.Spec.KeyValuePair.Builder.class); + } + + // Construct using com.kcl.api.Spec.KeyValuePair.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KeyValuePair_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.KeyValuePair getDefaultInstanceForType() { + return com.kcl.api.Spec.KeyValuePair.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.KeyValuePair build() { + com.kcl.api.Spec.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.KeyValuePair buildPartial() { + com.kcl.api.Spec.KeyValuePair result = new com.kcl.api.Spec.KeyValuePair(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.KeyValuePair result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + 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.KeyValuePair) { + return mergeFrom((com.kcl.api.Spec.KeyValuePair) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.KeyValuePair other) { + if (other == com.kcl.api.Spec.KeyValuePair.getDefaultInstance()) + return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + 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: { + key_ = 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 key_ = ""; + + /** + *
+             * Key of the pair.
+             * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Key of the pair.
+             * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Key of the pair.
+             * 
+ * + * string key = 1; + * + * @param value + * The key to set. + * + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Key of the pair.
+             * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Key of the pair.
+             * 
+ * + * string key = 1; + * + * @param value + * The bytes for key to set. + * + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + *
+             * Value of the pair.
+             * 
+ * + * 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 pair.
+             * 
+ * + * 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 pair.
+             * 
+ * + * 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 pair.
+             * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Value of the pair.
+             * 
+ * + * 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.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.KeyValuePair) + private static final com.kcl.api.Spec.KeyValuePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.KeyValuePair(); + } + + public static com.kcl.api.Spec.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyValuePair 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.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Rename_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Rename_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The packageRoot. + */ + java.lang.String getPackageRoot(); + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The bytes for packageRoot. + */ + com.google.protobuf.ByteString getPackageRootBytes(); + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The symbolPath. + */ + java.lang.String getSymbolPath(); + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The bytes for symbolPath. + */ + com.google.protobuf.ByteString getSymbolPathBytes(); + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @return A list containing the filePaths. + */ + java.util.List getFilePathsList(); + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @return The count of filePaths. + */ + int getFilePathsCount(); + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @param index + * The index of the element to return. + * + * @return The filePaths at the given index. + */ + java.lang.String getFilePaths(int index); + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the filePaths at the given index. + */ + com.google.protobuf.ByteString getFilePathsBytes(int index); + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The newName. + */ + java.lang.String getNewName(); + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The bytes for newName. + */ + com.google.protobuf.ByteString getNewNameBytes(); + } + + /** + *
+     * Message for rename request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Rename_Args} + */ + public static final class Rename_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Rename_Args) + Rename_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= */ "", Rename_Args.class.getName()); + } + + // Use Rename_Args.newBuilder() to construct. + private Rename_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Rename_Args() { + packageRoot_ = ""; + symbolPath_ = ""; + filePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + newName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Rename_Args.class, + com.kcl.api.Spec.Rename_Args.Builder.class); + } + + public static final int PACKAGE_ROOT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object packageRoot_ = ""; + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The packageRoot. + */ + @java.lang.Override + public java.lang.String getPackageRoot() { + java.lang.Object ref = packageRoot_; + 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(); + packageRoot_ = s; + return s; + } + } + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The bytes for packageRoot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageRootBytes() { + java.lang.Object ref = packageRoot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageRoot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYMBOL_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object symbolPath_ = ""; + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The symbolPath. + */ + @java.lang.Override + public java.lang.String getSymbolPath() { + java.lang.Object ref = symbolPath_; + 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(); + symbolPath_ = s; + return s; + } + } + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The bytes for symbolPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSymbolPathBytes() { + java.lang.Object ref = symbolPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbolPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_PATHS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList filePaths_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @return A list containing the filePaths. + */ + public com.google.protobuf.ProtocolStringList getFilePathsList() { + return filePaths_; + } + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @return The count of filePaths. + */ + public int getFilePathsCount() { + return filePaths_.size(); + } + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @param index + * The index of the element to return. + * + * @return The filePaths at the given index. + */ + public java.lang.String getFilePaths(int index) { + return filePaths_.get(index); + } + + /** + *
+         * Paths to the source code files.
+         * 
+ * + * repeated string file_paths = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the filePaths at the given index. + */ + public com.google.protobuf.ByteString getFilePathsBytes(int index) { + return filePaths_.getByteString(index); + } + + public static final int NEW_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object newName_ = ""; + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The newName. + */ + @java.lang.Override + public java.lang.String getNewName() { + java.lang.Object ref = newName_; + 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(); + newName_ = s; + return s; + } + } + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The bytes for newName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewNameBytes() { + java.lang.Object ref = newName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newName_ = 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(packageRoot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, packageRoot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbolPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, symbolPath_); + } + for (int i = 0; i < filePaths_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, filePaths_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(newName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, newName_); + } + 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(packageRoot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, packageRoot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbolPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, symbolPath_); + } + { + int dataSize = 0; + for (int i = 0; i < filePaths_.size(); i++) { + dataSize += computeStringSizeNoTag(filePaths_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilePathsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(newName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, newName_); + } + 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.Rename_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.Rename_Args other = (com.kcl.api.Spec.Rename_Args) obj; + + if (!getPackageRoot().equals(other.getPackageRoot())) + return false; + if (!getSymbolPath().equals(other.getSymbolPath())) + return false; + if (!getFilePathsList().equals(other.getFilePathsList())) + return false; + if (!getNewName().equals(other.getNewName())) + 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) + PACKAGE_ROOT_FIELD_NUMBER; + hash = (53 * hash) + getPackageRoot().hashCode(); + hash = (37 * hash) + SYMBOL_PATH_FIELD_NUMBER; + hash = (53 * hash) + getSymbolPath().hashCode(); + if (getFilePathsCount() > 0) { + hash = (37 * hash) + FILE_PATHS_FIELD_NUMBER; + hash = (53 * hash) + getFilePathsList().hashCode(); + } + hash = (37 * hash) + NEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNewName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Rename_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Args parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Rename_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.Rename_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.Rename_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.Rename_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 rename request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Rename_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Rename_Args) + com.kcl.api.Spec.Rename_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Rename_Args.class, + com.kcl.api.Spec.Rename_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.Rename_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + packageRoot_ = ""; + symbolPath_ = ""; + filePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + newName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Rename_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.Rename_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Rename_Args build() { + com.kcl.api.Spec.Rename_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Rename_Args buildPartial() { + com.kcl.api.Spec.Rename_Args result = new com.kcl.api.Spec.Rename_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.Rename_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.packageRoot_ = packageRoot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.symbolPath_ = symbolPath_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + filePaths_.makeImmutable(); + result.filePaths_ = filePaths_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.newName_ = newName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Rename_Args) { + return mergeFrom((com.kcl.api.Spec.Rename_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Rename_Args other) { + if (other == com.kcl.api.Spec.Rename_Args.getDefaultInstance()) + return this; + if (!other.getPackageRoot().isEmpty()) { + packageRoot_ = other.packageRoot_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSymbolPath().isEmpty()) { + symbolPath_ = other.symbolPath_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.filePaths_.isEmpty()) { + if (filePaths_.isEmpty()) { + filePaths_ = other.filePaths_; + bitField0_ |= 0x00000004; + } else { + ensureFilePathsIsMutable(); + filePaths_.addAll(other.filePaths_); + } + onChanged(); + } + if (!other.getNewName().isEmpty()) { + newName_ = other.newName_; + 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: { + packageRoot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + symbolPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFilePathsIsMutable(); + filePaths_.add(s); + break; + } // case 26 + case 34: { + newName_ = 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 packageRoot_ = ""; + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @return The packageRoot. + */ + public java.lang.String getPackageRoot() { + java.lang.Object ref = packageRoot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageRoot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @return The bytes for packageRoot. + */ + public com.google.protobuf.ByteString getPackageRootBytes() { + java.lang.Object ref = packageRoot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + packageRoot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @param value + * The packageRoot to set. + * + * @return This builder for chaining. + */ + public Builder setPackageRoot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageRoot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @return This builder for chaining. + */ + public Builder clearPackageRoot() { + packageRoot_ = getDefaultInstance().getPackageRoot(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @param value + * The bytes for packageRoot to set. + * + * @return This builder for chaining. + */ + public Builder setPackageRootBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageRoot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object symbolPath_ = ""; + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @return The symbolPath. + */ + public java.lang.String getSymbolPath() { + java.lang.Object ref = symbolPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbolPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @return The bytes for symbolPath. + */ + public com.google.protobuf.ByteString getSymbolPathBytes() { + java.lang.Object ref = symbolPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbolPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @param value + * The symbolPath to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + symbolPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearSymbolPath() { + symbolPath_ = getDefaultInstance().getSymbolPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @param value + * The bytes for symbolPath to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + symbolPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList filePaths_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureFilePathsIsMutable() { + if (!filePaths_.isModifiable()) { + filePaths_ = new com.google.protobuf.LazyStringArrayList(filePaths_); + } + bitField0_ |= 0x00000004; + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @return A list containing the filePaths. + */ + public com.google.protobuf.ProtocolStringList getFilePathsList() { + filePaths_.makeImmutable(); + return filePaths_; + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @return The count of filePaths. + */ + public int getFilePathsCount() { + return filePaths_.size(); + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @param index + * The index of the element to return. + * + * @return The filePaths at the given index. + */ + public java.lang.String getFilePaths(int index) { + return filePaths_.get(index); + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the filePaths at the given index. + */ + public com.google.protobuf.ByteString getFilePathsBytes(int index) { + return filePaths_.getByteString(index); + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @param index + * The index to set the value at. + * @param value + * The filePaths to set. + * + * @return This builder for chaining. + */ + public Builder setFilePaths(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilePathsIsMutable(); + filePaths_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @param value + * The filePaths to add. + * + * @return This builder for chaining. + */ + public Builder addFilePaths(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilePathsIsMutable(); + filePaths_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @param values + * The filePaths to add. + * + * @return This builder for chaining. + */ + public Builder addAllFilePaths(java.lang.Iterable values) { + ensureFilePathsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filePaths_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilePaths() { + filePaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + *
+             * Paths to the source code files.
+             * 
+ * + * repeated string file_paths = 3; + * + * @param value + * The bytes of the filePaths to add. + * + * @return This builder for chaining. + */ + public Builder addFilePathsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilePathsIsMutable(); + filePaths_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object newName_ = ""; + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @return The newName. + */ + public java.lang.String getNewName() { + java.lang.Object ref = newName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @return The bytes for newName. + */ + public com.google.protobuf.ByteString getNewNameBytes() { + java.lang.Object ref = newName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + newName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @param value + * The newName to set. + * + * @return This builder for chaining. + */ + public Builder setNewName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearNewName() { + newName_ = getDefaultInstance().getNewName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @param value + * The bytes for newName to set. + * + * @return This builder for chaining. + */ + public Builder setNewNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Rename_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Rename_Args) + private static final com.kcl.api.Spec.Rename_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Rename_Args(); + } + + public static com.kcl.api.Spec.Rename_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rename_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.Rename_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Rename_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Rename_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @return A list containing the changedFiles. + */ + java.util.List getChangedFilesList(); + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @return The count of changedFiles. + */ + int getChangedFilesCount(); + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @param index + * The index of the element to return. + * + * @return The changedFiles at the given index. + */ + java.lang.String getChangedFiles(int index); + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the changedFiles at the given index. + */ + com.google.protobuf.ByteString getChangedFilesBytes(int index); + } + + /** + *
+     * Message for rename response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Rename_Result} + */ + public static final class Rename_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Rename_Result) + Rename_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= */ "", Rename_Result.class.getName()); + } + + // Use Rename_Result.newBuilder() to construct. + private Rename_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Rename_Result() { + changedFiles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Rename_Result.class, + com.kcl.api.Spec.Rename_Result.Builder.class); + } + + public static final int CHANGED_FILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList changedFiles_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @return A list containing the changedFiles. + */ + public com.google.protobuf.ProtocolStringList getChangedFilesList() { + return changedFiles_; + } + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @return The count of changedFiles. + */ + public int getChangedFilesCount() { + return changedFiles_.size(); + } + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @param index + * The index of the element to return. + * + * @return The changedFiles at the given index. + */ + public java.lang.String getChangedFiles(int index) { + return changedFiles_.get(index); + } + + /** + *
+         * List of file paths that got changed.
+         * 
+ * + * repeated string changed_files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the changedFiles at the given index. + */ + public com.google.protobuf.ByteString getChangedFilesBytes(int index) { + return changedFiles_.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 < changedFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, changedFiles_.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 < changedFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(changedFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getChangedFilesList().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.Rename_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.Rename_Result other = (com.kcl.api.Spec.Rename_Result) obj; + + if (!getChangedFilesList().equals(other.getChangedFilesList())) + 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 (getChangedFilesCount() > 0) { + hash = (37 * hash) + CHANGED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getChangedFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Rename_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Result parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Rename_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.Rename_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Rename_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.Rename_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.Rename_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.Rename_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 rename response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Rename_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Rename_Result) + com.kcl.api.Spec.Rename_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Rename_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Rename_Result.class, + com.kcl.api.Spec.Rename_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.Rename_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + changedFiles_ = 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_Rename_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Rename_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.Rename_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Rename_Result build() { + com.kcl.api.Spec.Rename_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Rename_Result buildPartial() { + com.kcl.api.Spec.Rename_Result result = new com.kcl.api.Spec.Rename_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.Rename_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + changedFiles_.makeImmutable(); + result.changedFiles_ = changedFiles_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Rename_Result) { + return mergeFrom((com.kcl.api.Spec.Rename_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Rename_Result other) { + if (other == com.kcl.api.Spec.Rename_Result.getDefaultInstance()) + return this; + if (!other.changedFiles_.isEmpty()) { + if (changedFiles_.isEmpty()) { + changedFiles_ = other.changedFiles_; + bitField0_ |= 0x00000001; + } else { + ensureChangedFilesIsMutable(); + changedFiles_.addAll(other.changedFiles_); + } + 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(); + ensureChangedFilesIsMutable(); + changedFiles_.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 changedFiles_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureChangedFilesIsMutable() { + if (!changedFiles_.isModifiable()) { + changedFiles_ = new com.google.protobuf.LazyStringArrayList(changedFiles_); + } + bitField0_ |= 0x00000001; + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @return A list containing the changedFiles. + */ + public com.google.protobuf.ProtocolStringList getChangedFilesList() { + changedFiles_.makeImmutable(); + return changedFiles_; + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @return The count of changedFiles. + */ + public int getChangedFilesCount() { + return changedFiles_.size(); + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @param index + * The index of the element to return. + * + * @return The changedFiles at the given index. + */ + public java.lang.String getChangedFiles(int index) { + return changedFiles_.get(index); + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the changedFiles at the given index. + */ + public com.google.protobuf.ByteString getChangedFilesBytes(int index) { + return changedFiles_.getByteString(index); + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @param index + * The index to set the value at. + * @param value + * The changedFiles to set. + * + * @return This builder for chaining. + */ + public Builder setChangedFiles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangedFilesIsMutable(); + changedFiles_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @param value + * The changedFiles to add. + * + * @return This builder for chaining. + */ + public Builder addChangedFiles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangedFilesIsMutable(); + changedFiles_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @param values + * The changedFiles to add. + * + * @return This builder for chaining. + */ + public Builder addAllChangedFiles(java.lang.Iterable values) { + ensureChangedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changedFiles_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @return This builder for chaining. + */ + public Builder clearChangedFiles() { + changedFiles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + *
+             * List of file paths that got changed.
+             * 
+ * + * repeated string changed_files = 1; + * + * @param value + * The bytes of the changedFiles to add. + * + * @return This builder for chaining. + */ + public Builder addChangedFilesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureChangedFilesIsMutable(); + changedFiles_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Rename_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Rename_Result) + private static final com.kcl.api.Spec.Rename_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Rename_Result(); + } + + public static com.kcl.api.Spec.Rename_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rename_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.Rename_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RenameCode_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.RenameCode_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The packageRoot. + */ + java.lang.String getPackageRoot(); + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The bytes for packageRoot. + */ + com.google.protobuf.ByteString getPackageRootBytes(); + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The symbolPath. + */ + java.lang.String getSymbolPath(); + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The bytes for symbolPath. + */ + com.google.protobuf.ByteString getSymbolPathBytes(); + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + int getSourceCodesCount(); + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + boolean containsSourceCodes(java.lang.String key); + + /** + * Use {@link #getSourceCodesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getSourceCodes(); + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + java.util.Map getSourceCodesMap(); + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + /* nullable */ + java.lang.String getSourceCodesOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + java.lang.String getSourceCodesOrThrow(java.lang.String key); + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The newName. + */ + java.lang.String getNewName(); + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The bytes for newName. + */ + com.google.protobuf.ByteString getNewNameBytes(); + } + + /** + *
+     * Message for rename code request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.RenameCode_Args} + */ + public static final class RenameCode_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.RenameCode_Args) + RenameCode_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= */ "", RenameCode_Args.class.getName()); + } + + // Use RenameCode_Args.newBuilder() to construct. + private RenameCode_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RenameCode_Args() { + packageRoot_ = ""; + symbolPath_ = ""; + newName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Args_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 3: + return internalGetSourceCodes(); + 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_RenameCode_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.RenameCode_Args.class, + com.kcl.api.Spec.RenameCode_Args.Builder.class); + } + + public static final int PACKAGE_ROOT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object packageRoot_ = ""; + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The packageRoot. + */ + @java.lang.Override + public java.lang.String getPackageRoot() { + java.lang.Object ref = packageRoot_; + 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(); + packageRoot_ = s; + return s; + } + } + + /** + *
+         * File path to the package root.
+         * 
+ * + * string package_root = 1; + * + * @return The bytes for packageRoot. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageRootBytes() { + java.lang.Object ref = packageRoot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageRoot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYMBOL_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object symbolPath_ = ""; + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The symbolPath. + */ + @java.lang.Override + public java.lang.String getSymbolPath() { + java.lang.Object ref = symbolPath_; + 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(); + symbolPath_ = s; + return s; + } + } + + /** + *
+         * Path to the target symbol to be renamed.
+         * 
+ * + * string symbol_path = 2; + * + * @return The bytes for symbolPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSymbolPathBytes() { + java.lang.Object ref = symbolPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + symbolPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_CODES_FIELD_NUMBER = 3; + + private static final class SourceCodesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Args_SourceCodesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.STRING, ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField sourceCodes_; + + private com.google.protobuf.MapField internalGetSourceCodes() { + if (sourceCodes_ == null) { + return com.google.protobuf.MapField.emptyMapField(SourceCodesDefaultEntryHolder.defaultEntry); + } + return sourceCodes_; + } + + public int getSourceCodesCount() { + return internalGetSourceCodes().getMap().size(); + } + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public boolean containsSourceCodes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSourceCodes().getMap().containsKey(key); + } + + /** + * Use {@link #getSourceCodesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSourceCodes() { + return getSourceCodesMap(); + } + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public java.util.Map getSourceCodesMap() { + return internalGetSourceCodes().getMap(); + } + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public /* nullable */ + java.lang.String getSourceCodesOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSourceCodes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * Map of source code with filename as key and code as value.
+         * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public java.lang.String getSourceCodesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSourceCodes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NEW_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object newName_ = ""; + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The newName. + */ + @java.lang.Override + public java.lang.String getNewName() { + java.lang.Object ref = newName_; + 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(); + newName_ = s; + return s; + } + } + + /** + *
+         * New name of the symbol.
+         * 
+ * + * string new_name = 4; + * + * @return The bytes for newName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewNameBytes() { + java.lang.Object ref = newName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newName_ = 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(packageRoot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, packageRoot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbolPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, symbolPath_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetSourceCodes(), + SourceCodesDefaultEntryHolder.defaultEntry, 3); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(newName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, newName_); + } + 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(packageRoot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, packageRoot_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbolPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, symbolPath_); + } + for (java.util.Map.Entry entry : internalGetSourceCodes().getMap() + .entrySet()) { + com.google.protobuf.MapEntry sourceCodes__ = SourceCodesDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sourceCodes__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(newName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, newName_); + } + 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.RenameCode_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.RenameCode_Args other = (com.kcl.api.Spec.RenameCode_Args) obj; + + if (!getPackageRoot().equals(other.getPackageRoot())) + return false; + if (!getSymbolPath().equals(other.getSymbolPath())) + return false; + if (!internalGetSourceCodes().equals(other.internalGetSourceCodes())) + return false; + if (!getNewName().equals(other.getNewName())) + 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) + PACKAGE_ROOT_FIELD_NUMBER; + hash = (53 * hash) + getPackageRoot().hashCode(); + hash = (37 * hash) + SYMBOL_PATH_FIELD_NUMBER; + hash = (53 * hash) + getSymbolPath().hashCode(); + if (!internalGetSourceCodes().getMap().isEmpty()) { + hash = (37 * hash) + SOURCE_CODES_FIELD_NUMBER; + hash = (53 * hash) + internalGetSourceCodes().hashCode(); + } + hash = (37 * hash) + NEW_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNewName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.RenameCode_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Args parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_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.RenameCode_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.RenameCode_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 rename code request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.RenameCode_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.RenameCode_Args) + com.kcl.api.Spec.RenameCode_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Args_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 3: + return internalGetSourceCodes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) { + switch (number) { + case 3: + return internalGetMutableSourceCodes(); + 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_RenameCode_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.RenameCode_Args.class, + com.kcl.api.Spec.RenameCode_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.RenameCode_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + packageRoot_ = ""; + symbolPath_ = ""; + internalGetMutableSourceCodes().clear(); + newName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.RenameCode_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.RenameCode_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.RenameCode_Args build() { + com.kcl.api.Spec.RenameCode_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.RenameCode_Args buildPartial() { + com.kcl.api.Spec.RenameCode_Args result = new com.kcl.api.Spec.RenameCode_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.RenameCode_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.packageRoot_ = packageRoot_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.symbolPath_ = symbolPath_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceCodes_ = internalGetSourceCodes(); + result.sourceCodes_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.newName_ = newName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.RenameCode_Args) { + return mergeFrom((com.kcl.api.Spec.RenameCode_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.RenameCode_Args other) { + if (other == com.kcl.api.Spec.RenameCode_Args.getDefaultInstance()) + return this; + if (!other.getPackageRoot().isEmpty()) { + packageRoot_ = other.packageRoot_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSymbolPath().isEmpty()) { + symbolPath_ = other.symbolPath_; + bitField0_ |= 0x00000002; + onChanged(); + } + internalGetMutableSourceCodes().mergeFrom(other.internalGetSourceCodes()); + bitField0_ |= 0x00000004; + if (!other.getNewName().isEmpty()) { + newName_ = other.newName_; + 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: { + packageRoot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + symbolPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry sourceCodes__ = input + .readMessage(SourceCodesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableSourceCodes().getMutableMap().put(sourceCodes__.getKey(), + sourceCodes__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + newName_ = 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 packageRoot_ = ""; + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @return The packageRoot. + */ + public java.lang.String getPackageRoot() { + java.lang.Object ref = packageRoot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageRoot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @return The bytes for packageRoot. + */ + public com.google.protobuf.ByteString getPackageRootBytes() { + java.lang.Object ref = packageRoot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + packageRoot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @param value + * The packageRoot to set. + * + * @return This builder for chaining. + */ + public Builder setPackageRoot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageRoot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @return This builder for chaining. + */ + public Builder clearPackageRoot() { + packageRoot_ = getDefaultInstance().getPackageRoot(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * File path to the package root.
+             * 
+ * + * string package_root = 1; + * + * @param value + * The bytes for packageRoot to set. + * + * @return This builder for chaining. + */ + public Builder setPackageRootBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageRoot_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object symbolPath_ = ""; + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @return The symbolPath. + */ + public java.lang.String getSymbolPath() { + java.lang.Object ref = symbolPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + symbolPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @return The bytes for symbolPath. + */ + public com.google.protobuf.ByteString getSymbolPathBytes() { + java.lang.Object ref = symbolPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + symbolPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @param value + * The symbolPath to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + symbolPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearSymbolPath() { + symbolPath_ = getDefaultInstance().getSymbolPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Path to the target symbol to be renamed.
+             * 
+ * + * string symbol_path = 2; + * + * @param value + * The bytes for symbolPath to set. + * + * @return This builder for chaining. + */ + public Builder setSymbolPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + symbolPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.MapField sourceCodes_; + + private com.google.protobuf.MapField internalGetSourceCodes() { + if (sourceCodes_ == null) { + return com.google.protobuf.MapField.emptyMapField(SourceCodesDefaultEntryHolder.defaultEntry); + } + return sourceCodes_; + } + + private com.google.protobuf.MapField internalGetMutableSourceCodes() { + if (sourceCodes_ == null) { + sourceCodes_ = com.google.protobuf.MapField.newMapField(SourceCodesDefaultEntryHolder.defaultEntry); + } + if (!sourceCodes_.isMutable()) { + sourceCodes_ = sourceCodes_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return sourceCodes_; + } + + public int getSourceCodesCount() { + return internalGetSourceCodes().getMap().size(); + } + + /** + *
+             * Map of source code with filename as key and code as value.
+             * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public boolean containsSourceCodes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSourceCodes().getMap().containsKey(key); + } + + /** + * Use {@link #getSourceCodesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSourceCodes() { + return getSourceCodesMap(); + } + + /** + *
+             * Map of source code with filename as key and code as value.
+             * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public java.util.Map getSourceCodesMap() { + return internalGetSourceCodes().getMap(); + } + + /** + *
+             * Map of source code with filename as key and code as value.
+             * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public /* nullable */ + java.lang.String getSourceCodesOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSourceCodes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+             * Map of source code with filename as key and code as value.
+             * 
+ * + * map<string, string> source_codes = 3; + */ + @java.lang.Override + public java.lang.String getSourceCodesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSourceCodes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSourceCodes() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableSourceCodes().getMutableMap().clear(); + return this; + } + + /** + *
+             * Map of source code with filename as key and code as value.
+             * 
+ * + * map<string, string> source_codes = 3; + */ + public Builder removeSourceCodes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSourceCodes().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableSourceCodes() { + bitField0_ |= 0x00000004; + return internalGetMutableSourceCodes().getMutableMap(); + } + + /** + *
+             * Map of source code with filename as key and code as value.
+             * 
+ * + * map<string, string> source_codes = 3; + */ + public Builder putSourceCodes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableSourceCodes().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + *
+             * Map of source code with filename as key and code as value.
+             * 
+ * + * map<string, string> source_codes = 3; + */ + public Builder putAllSourceCodes(java.util.Map values) { + internalGetMutableSourceCodes().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private java.lang.Object newName_ = ""; + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @return The newName. + */ + public java.lang.String getNewName() { + java.lang.Object ref = newName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @return The bytes for newName. + */ + public com.google.protobuf.ByteString getNewNameBytes() { + java.lang.Object ref = newName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + newName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @param value + * The newName to set. + * + * @return This builder for chaining. + */ + public Builder setNewName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearNewName() { + newName_ = getDefaultInstance().getNewName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + *
+             * New name of the symbol.
+             * 
+ * + * string new_name = 4; + * + * @param value + * The bytes for newName to set. + * + * @return This builder for chaining. + */ + public Builder setNewNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.RenameCode_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.RenameCode_Args) + private static final com.kcl.api.Spec.RenameCode_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.RenameCode_Args(); + } + + public static com.kcl.api.Spec.RenameCode_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameCode_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.RenameCode_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RenameCode_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.RenameCode_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + int getChangedCodesCount(); + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + boolean containsChangedCodes(java.lang.String key); + + /** + * Use {@link #getChangedCodesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getChangedCodes(); + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + java.util.Map getChangedCodesMap(); + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + /* nullable */ + java.lang.String getChangedCodesOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + java.lang.String getChangedCodesOrThrow(java.lang.String key); + } + + /** + *
+     * Message for rename code response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.RenameCode_Result} + */ + public static final class RenameCode_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.RenameCode_Result) + RenameCode_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= */ "", RenameCode_Result.class.getName()); + } + + // Use RenameCode_Result.newBuilder() to construct. + private RenameCode_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RenameCode_Result() { + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Result_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetChangedCodes(); + 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_RenameCode_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.RenameCode_Result.class, + com.kcl.api.Spec.RenameCode_Result.Builder.class); + } + + public static final int CHANGED_CODES_FIELD_NUMBER = 1; + + private static final class ChangedCodesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Result_ChangedCodesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.STRING, ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField changedCodes_; + + private com.google.protobuf.MapField internalGetChangedCodes() { + if (changedCodes_ == null) { + return com.google.protobuf.MapField.emptyMapField(ChangedCodesDefaultEntryHolder.defaultEntry); + } + return changedCodes_; + } + + public int getChangedCodesCount() { + return internalGetChangedCodes().getMap().size(); + } + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public boolean containsChangedCodes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetChangedCodes().getMap().containsKey(key); + } + + /** + * Use {@link #getChangedCodesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getChangedCodes() { + return getChangedCodesMap(); + } + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public java.util.Map getChangedCodesMap() { + return internalGetChangedCodes().getMap(); + } + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public /* nullable */ + java.lang.String getChangedCodesOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetChangedCodes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * Map of changed code with filename as key and modified code as value.
+         * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public java.lang.String getChangedCodesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetChangedCodes().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 { + com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetChangedCodes(), + ChangedCodesDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (java.util.Map.Entry entry : internalGetChangedCodes().getMap() + .entrySet()) { + com.google.protobuf.MapEntry changedCodes__ = ChangedCodesDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, changedCodes__); + } + 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.RenameCode_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.RenameCode_Result other = (com.kcl.api.Spec.RenameCode_Result) obj; + + if (!internalGetChangedCodes().equals(other.internalGetChangedCodes())) + 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 (!internalGetChangedCodes().getMap().isEmpty()) { + hash = (37 * hash) + CHANGED_CODES_FIELD_NUMBER; + hash = (53 * hash) + internalGetChangedCodes().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.RenameCode_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.RenameCode_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.RenameCode_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.RenameCode_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.RenameCode_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 rename code response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.RenameCode_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.RenameCode_Result) + com.kcl.api.Spec.RenameCode_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Result_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetChangedCodes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) { + switch (number) { + case 1: + return internalGetMutableChangedCodes(); + 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_RenameCode_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.RenameCode_Result.class, + com.kcl.api.Spec.RenameCode_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.RenameCode_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableChangedCodes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_RenameCode_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.RenameCode_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.RenameCode_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.RenameCode_Result build() { + com.kcl.api.Spec.RenameCode_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.RenameCode_Result buildPartial() { + com.kcl.api.Spec.RenameCode_Result result = new com.kcl.api.Spec.RenameCode_Result(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.RenameCode_Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.changedCodes_ = internalGetChangedCodes(); + result.changedCodes_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.RenameCode_Result) { + return mergeFrom((com.kcl.api.Spec.RenameCode_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.RenameCode_Result other) { + if (other == com.kcl.api.Spec.RenameCode_Result.getDefaultInstance()) + return this; + internalGetMutableChangedCodes().mergeFrom(other.internalGetChangedCodes()); + bitField0_ |= 0x00000001; + 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: { + com.google.protobuf.MapEntry changedCodes__ = input + .readMessage(ChangedCodesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableChangedCodes().getMutableMap().put(changedCodes__.getKey(), + changedCodes__.getValue()); + 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 com.google.protobuf.MapField changedCodes_; + + private com.google.protobuf.MapField internalGetChangedCodes() { + if (changedCodes_ == null) { + return com.google.protobuf.MapField.emptyMapField(ChangedCodesDefaultEntryHolder.defaultEntry); + } + return changedCodes_; + } + + private com.google.protobuf.MapField internalGetMutableChangedCodes() { + if (changedCodes_ == null) { + changedCodes_ = com.google.protobuf.MapField + .newMapField(ChangedCodesDefaultEntryHolder.defaultEntry); + } + if (!changedCodes_.isMutable()) { + changedCodes_ = changedCodes_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return changedCodes_; + } + + public int getChangedCodesCount() { + return internalGetChangedCodes().getMap().size(); + } + + /** + *
+             * Map of changed code with filename as key and modified code as value.
+             * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public boolean containsChangedCodes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetChangedCodes().getMap().containsKey(key); + } + + /** + * Use {@link #getChangedCodesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getChangedCodes() { + return getChangedCodesMap(); + } + + /** + *
+             * Map of changed code with filename as key and modified code as value.
+             * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public java.util.Map getChangedCodesMap() { + return internalGetChangedCodes().getMap(); + } + + /** + *
+             * Map of changed code with filename as key and modified code as value.
+             * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public /* nullable */ + java.lang.String getChangedCodesOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetChangedCodes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+             * Map of changed code with filename as key and modified code as value.
+             * 
+ * + * map<string, string> changed_codes = 1; + */ + @java.lang.Override + public java.lang.String getChangedCodesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetChangedCodes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearChangedCodes() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableChangedCodes().getMutableMap().clear(); + return this; + } + + /** + *
+             * Map of changed code with filename as key and modified code as value.
+             * 
+ * + * map<string, string> changed_codes = 1; + */ + public Builder removeChangedCodes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableChangedCodes().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableChangedCodes() { + bitField0_ |= 0x00000001; + return internalGetMutableChangedCodes().getMutableMap(); + } + + /** + *
+             * Map of changed code with filename as key and modified code as value.
+             * 
+ * + * map<string, string> changed_codes = 1; + */ + public Builder putChangedCodes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableChangedCodes().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + *
+             * Map of changed code with filename as key and modified code as value.
+             * 
+ * + * map<string, string> changed_codes = 1; + */ + public Builder putAllChangedCodes(java.util.Map values) { + internalGetMutableChangedCodes().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.RenameCode_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.RenameCode_Result) + private static final com.kcl.api.Spec.RenameCode_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.RenameCode_Result(); + } + + public static com.kcl.api.Spec.RenameCode_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameCode_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.RenameCode_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Test_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Test_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Execution program arguments.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + boolean hasExecArgs(); + + /** + *
+         * Execution program arguments.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + com.kcl.api.Spec.ExecProgram_Args getExecArgs(); + + /** + *
+         * Execution program arguments.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder(); + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @return A list containing the pkgList. + */ + java.util.List getPkgListList(); + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @return The count of pkgList. + */ + int getPkgListCount(); + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @param index + * The index of the element to return. + * + * @return The pkgList at the given index. + */ + java.lang.String getPkgList(int index); + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pkgList at the given index. + */ + com.google.protobuf.ByteString getPkgListBytes(int index); + + /** + *
+         * Regular expression for filtering tests to run.
+         * 
+ * + * string run_regexp = 3; + * + * @return The runRegexp. + */ + java.lang.String getRunRegexp(); + + /** + *
+         * Regular expression for filtering tests to run.
+         * 
+ * + * string run_regexp = 3; + * + * @return The bytes for runRegexp. + */ + com.google.protobuf.ByteString getRunRegexpBytes(); + + /** + *
+         * Flag to stop the test run on the first failure.
+         * 
+ * + * bool fail_fast = 4; + * + * @return The failFast. + */ + boolean getFailFast(); + } + + /** + *
+     * Message for test request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Test_Args} + */ + public static final class Test_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Test_Args) + Test_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= */ "", Test_Args.class.getName()); + } + + // Use Test_Args.newBuilder() to construct. + private Test_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Test_Args() { + pkgList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + runRegexp_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Test_Args.class, + com.kcl.api.Spec.Test_Args.Builder.class); + } + + private int bitField0_; + public static final int EXEC_ARGS_FIELD_NUMBER = 1; + private com.kcl.api.Spec.ExecProgram_Args execArgs_; + + /** + *
+         * Execution program arguments.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + @java.lang.Override + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Execution program arguments.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + /** + *
+         * Execution program arguments.
+         * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + @java.lang.Override + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + + public static final int PKG_LIST_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pkgList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @return A list containing the pkgList. + */ + public com.google.protobuf.ProtocolStringList getPkgListList() { + return pkgList_; + } + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @return The count of pkgList. + */ + public int getPkgListCount() { + return pkgList_.size(); + } + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @param index + * The index of the element to return. + * + * @return The pkgList at the given index. + */ + public java.lang.String getPkgList(int index) { + return pkgList_.get(index); + } + + /** + *
+         * List of KCL package paths to be tested.
+         * 
+ * + * repeated string pkg_list = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pkgList at the given index. + */ + public com.google.protobuf.ByteString getPkgListBytes(int index) { + return pkgList_.getByteString(index); + } + + public static final int RUN_REGEXP_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object runRegexp_ = ""; + + /** + *
+         * Regular expression for filtering tests to run.
+         * 
+ * + * string run_regexp = 3; + * + * @return The runRegexp. + */ + @java.lang.Override + public java.lang.String getRunRegexp() { + java.lang.Object ref = runRegexp_; + 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(); + runRegexp_ = s; + return s; + } + } + + /** + *
+         * Regular expression for filtering tests to run.
+         * 
+ * + * string run_regexp = 3; + * + * @return The bytes for runRegexp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRunRegexpBytes() { + java.lang.Object ref = runRegexp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + runRegexp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAIL_FAST_FIELD_NUMBER = 4; + private boolean failFast_ = false; + + /** + *
+         * Flag to stop the test run on the first failure.
+         * 
+ * + * bool fail_fast = 4; + * + * @return The failFast. + */ + @java.lang.Override + public boolean getFailFast() { + return failFast_; + } + + 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, getExecArgs()); + } + for (int i = 0; i < pkgList_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pkgList_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(runRegexp_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, runRegexp_); + } + if (failFast_ != false) { + output.writeBool(4, failFast_); + } + 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, getExecArgs()); + } + { + int dataSize = 0; + for (int i = 0; i < pkgList_.size(); i++) { + dataSize += computeStringSizeNoTag(pkgList_.getRaw(i)); + } + size += dataSize; + size += 1 * getPkgListList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(runRegexp_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, runRegexp_); + } + if (failFast_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, failFast_); + } + 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.Test_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.Test_Args other = (com.kcl.api.Spec.Test_Args) obj; + + if (hasExecArgs() != other.hasExecArgs()) + return false; + if (hasExecArgs()) { + if (!getExecArgs().equals(other.getExecArgs())) + return false; + } + if (!getPkgListList().equals(other.getPkgListList())) + return false; + if (!getRunRegexp().equals(other.getRunRegexp())) + return false; + if (getFailFast() != other.getFailFast()) + 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 (hasExecArgs()) { + hash = (37 * hash) + EXEC_ARGS_FIELD_NUMBER; + hash = (53 * hash) + getExecArgs().hashCode(); + } + if (getPkgListCount() > 0) { + hash = (37 * hash) + PKG_LIST_FIELD_NUMBER; + hash = (53 * hash) + getPkgListList().hashCode(); + } + hash = (37 * hash) + RUN_REGEXP_FIELD_NUMBER; + hash = (53 * hash) + getRunRegexp().hashCode(); + hash = (37 * hash) + FAIL_FAST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFailFast()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Test_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Test_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.Test_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Test_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.Test_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Test_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.Test_Args parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Test_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.Test_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Test_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.Test_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.Test_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.Test_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 test request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Test_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Test_Args) + com.kcl.api.Spec.Test_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Test_Args.class, + com.kcl.api.Spec.Test_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.Test_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) { + getExecArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + pkgList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + runRegexp_ = ""; + failFast_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Test_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.Test_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Test_Args build() { + com.kcl.api.Spec.Test_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Test_Args buildPartial() { + com.kcl.api.Spec.Test_Args result = new com.kcl.api.Spec.Test_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.Test_Args result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.execArgs_ = execArgsBuilder_ == null ? execArgs_ : execArgsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + pkgList_.makeImmutable(); + result.pkgList_ = pkgList_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.runRegexp_ = runRegexp_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failFast_ = failFast_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Test_Args) { + return mergeFrom((com.kcl.api.Spec.Test_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Test_Args other) { + if (other == com.kcl.api.Spec.Test_Args.getDefaultInstance()) + return this; + if (other.hasExecArgs()) { + mergeExecArgs(other.getExecArgs()); + } + if (!other.pkgList_.isEmpty()) { + if (pkgList_.isEmpty()) { + pkgList_ = other.pkgList_; + bitField0_ |= 0x00000002; + } else { + ensurePkgListIsMutable(); + pkgList_.addAll(other.pkgList_); + } + onChanged(); + } + if (!other.getRunRegexp().isEmpty()) { + runRegexp_ = other.runRegexp_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getFailFast() != false) { + setFailFast(other.getFailFast()); + } + 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(getExecArgsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePkgListIsMutable(); + pkgList_.add(s); + break; + } // case 18 + case 26: { + runRegexp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + failFast_ = 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.ExecProgram_Args execArgs_; + private com.google.protobuf.SingleFieldBuilder execArgsBuilder_; + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return Whether the execArgs field is set. + */ + public boolean hasExecArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + * + * @return The execArgs. + */ + public com.kcl.api.Spec.ExecProgram_Args getExecArgs() { + if (execArgsBuilder_ == null) { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } else { + return execArgsBuilder_.getMessage(); + } + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + execArgs_ = value; + } else { + execArgsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder setExecArgs(com.kcl.api.Spec.ExecProgram_Args.Builder builderForValue) { + if (execArgsBuilder_ == null) { + execArgs_ = builderForValue.build(); + } else { + execArgsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder mergeExecArgs(com.kcl.api.Spec.ExecProgram_Args value) { + if (execArgsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && execArgs_ != null + && execArgs_ != com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance()) { + getExecArgsBuilder().mergeFrom(value); + } else { + execArgs_ = value; + } + } else { + execArgsBuilder_.mergeFrom(value); + } + if (execArgs_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public Builder clearExecArgs() { + bitField0_ = (bitField0_ & ~0x00000001); + execArgs_ = null; + if (execArgsBuilder_ != null) { + execArgsBuilder_.dispose(); + execArgsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public com.kcl.api.Spec.ExecProgram_Args.Builder getExecArgsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExecArgsFieldBuilder().getBuilder(); + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + public com.kcl.api.Spec.ExecProgram_ArgsOrBuilder getExecArgsOrBuilder() { + if (execArgsBuilder_ != null) { + return execArgsBuilder_.getMessageOrBuilder(); + } else { + return execArgs_ == null ? com.kcl.api.Spec.ExecProgram_Args.getDefaultInstance() : execArgs_; + } + } + + /** + *
+             * Execution program arguments.
+             * 
+ * + * .com.kcl.api.ExecProgram_Args exec_args = 1; + */ + private com.google.protobuf.SingleFieldBuilder getExecArgsFieldBuilder() { + if (execArgsBuilder_ == null) { + execArgsBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getExecArgs(), getParentForChildren(), isClean()); + execArgs_ = null; + } + return execArgsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList pkgList_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensurePkgListIsMutable() { + if (!pkgList_.isModifiable()) { + pkgList_ = new com.google.protobuf.LazyStringArrayList(pkgList_); + } + bitField0_ |= 0x00000002; + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @return A list containing the pkgList. + */ + public com.google.protobuf.ProtocolStringList getPkgListList() { + pkgList_.makeImmutable(); + return pkgList_; + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @return The count of pkgList. + */ + public int getPkgListCount() { + return pkgList_.size(); + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @param index + * The index of the element to return. + * + * @return The pkgList at the given index. + */ + public java.lang.String getPkgList(int index) { + return pkgList_.get(index); + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the pkgList at the given index. + */ + public com.google.protobuf.ByteString getPkgListBytes(int index) { + return pkgList_.getByteString(index); + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @param index + * The index to set the value at. + * @param value + * The pkgList to set. + * + * @return This builder for chaining. + */ + public Builder setPkgList(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePkgListIsMutable(); + pkgList_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @param value + * The pkgList to add. + * + * @return This builder for chaining. + */ + public Builder addPkgList(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePkgListIsMutable(); + pkgList_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @param values + * The pkgList to add. + * + * @return This builder for chaining. + */ + public Builder addAllPkgList(java.lang.Iterable values) { + ensurePkgListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pkgList_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @return This builder for chaining. + */ + public Builder clearPkgList() { + pkgList_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + *
+             * List of KCL package paths to be tested.
+             * 
+ * + * repeated string pkg_list = 2; + * + * @param value + * The bytes of the pkgList to add. + * + * @return This builder for chaining. + */ + public Builder addPkgListBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePkgListIsMutable(); + pkgList_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object runRegexp_ = ""; + + /** + *
+             * Regular expression for filtering tests to run.
+             * 
+ * + * string run_regexp = 3; + * + * @return The runRegexp. + */ + public java.lang.String getRunRegexp() { + java.lang.Object ref = runRegexp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + runRegexp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Regular expression for filtering tests to run.
+             * 
+ * + * string run_regexp = 3; + * + * @return The bytes for runRegexp. + */ + public com.google.protobuf.ByteString getRunRegexpBytes() { + java.lang.Object ref = runRegexp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + runRegexp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Regular expression for filtering tests to run.
+             * 
+ * + * string run_regexp = 3; + * + * @param value + * The runRegexp to set. + * + * @return This builder for chaining. + */ + public Builder setRunRegexp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + runRegexp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Regular expression for filtering tests to run.
+             * 
+ * + * string run_regexp = 3; + * + * @return This builder for chaining. + */ + public Builder clearRunRegexp() { + runRegexp_ = getDefaultInstance().getRunRegexp(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Regular expression for filtering tests to run.
+             * 
+ * + * string run_regexp = 3; + * + * @param value + * The bytes for runRegexp to set. + * + * @return This builder for chaining. + */ + public Builder setRunRegexpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runRegexp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean failFast_; + + /** + *
+             * Flag to stop the test run on the first failure.
+             * 
+ * + * bool fail_fast = 4; + * + * @return The failFast. + */ + @java.lang.Override + public boolean getFailFast() { + return failFast_; + } + + /** + *
+             * Flag to stop the test run on the first failure.
+             * 
+ * + * bool fail_fast = 4; + * + * @param value + * The failFast to set. + * + * @return This builder for chaining. + */ + public Builder setFailFast(boolean value) { + + failFast_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Flag to stop the test run on the first failure.
+             * 
+ * + * bool fail_fast = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailFast() { + bitField0_ = (bitField0_ & ~0x00000008); + failFast_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Test_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Test_Args) + private static final com.kcl.api.Spec.Test_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Test_Args(); + } + + public static com.kcl.api.Spec.Test_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Test_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.Test_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface Test_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Test_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + java.util.List getInfoList(); + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + com.kcl.api.Spec.TestCaseInfo getInfo(int index); + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + int getInfoCount(); + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + java.util.List getInfoOrBuilderList(); + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + com.kcl.api.Spec.TestCaseInfoOrBuilder getInfoOrBuilder(int index); + } + + /** + *
+     * Message for test response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Test_Result} + */ + public static final class Test_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Test_Result) + Test_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= */ "", Test_Result.class.getName()); + } + + // Use Test_Result.newBuilder() to construct. + private Test_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Test_Result() { + info_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Test_Result.class, + com.kcl.api.Spec.Test_Result.Builder.class); + } + + public static final int INFO_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List info_; + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + @java.lang.Override + public java.util.List getInfoList() { + return info_; + } + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + @java.lang.Override + public java.util.List getInfoOrBuilderList() { + return info_; + } + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + @java.lang.Override + public int getInfoCount() { + return info_.size(); + } + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.TestCaseInfo getInfo(int index) { + return info_.get(index); + } + + /** + *
+         * List of test case information.
+         * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.TestCaseInfoOrBuilder getInfoOrBuilder(int index) { + return info_.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 < info_.size(); i++) { + output.writeMessage(2, info_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + + size = 0; + for (int i = 0; i < info_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, info_.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.Test_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.Test_Result other = (com.kcl.api.Spec.Test_Result) obj; + + if (!getInfoList().equals(other.getInfoList())) + 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 (getInfoCount() > 0) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Test_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Test_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.Test_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Test_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.Test_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Test_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.Test_Result parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Test_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.Test_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Test_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.Test_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.Test_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.Test_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 test response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Test_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Test_Result) + com.kcl.api.Spec.Test_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Test_Result.class, + com.kcl.api.Spec.Test_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.Test_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (infoBuilder_ == null) { + info_ = java.util.Collections.emptyList(); + } else { + info_ = null; + infoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Test_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Test_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.Test_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Test_Result build() { + com.kcl.api.Spec.Test_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Test_Result buildPartial() { + com.kcl.api.Spec.Test_Result result = new com.kcl.api.Spec.Test_Result(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.Test_Result result) { + if (infoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + info_ = java.util.Collections.unmodifiableList(info_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.info_ = info_; + } else { + result.info_ = infoBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.Test_Result result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Test_Result) { + return mergeFrom((com.kcl.api.Spec.Test_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Test_Result other) { + if (other == com.kcl.api.Spec.Test_Result.getDefaultInstance()) + return this; + if (infoBuilder_ == null) { + if (!other.info_.isEmpty()) { + if (info_.isEmpty()) { + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureInfoIsMutable(); + info_.addAll(other.info_); + } + onChanged(); + } + } else { + if (!other.info_.isEmpty()) { + if (infoBuilder_.isEmpty()) { + infoBuilder_.dispose(); + infoBuilder_ = null; + info_ = other.info_; + bitField0_ = (bitField0_ & ~0x00000001); + infoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getInfoFieldBuilder() : null; + } else { + infoBuilder_.addAllMessages(other.info_); + } + } + } + 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 18: { + com.kcl.api.Spec.TestCaseInfo m = input.readMessage(com.kcl.api.Spec.TestCaseInfo.parser(), + extensionRegistry); + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.add(m); + } else { + infoBuilder_.addMessage(m); + } + 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.util.List info_ = java.util.Collections.emptyList(); + + private void ensureInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + info_ = new java.util.ArrayList(info_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder infoBuilder_; + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public java.util.List getInfoList() { + if (infoBuilder_ == null) { + return java.util.Collections.unmodifiableList(info_); + } else { + return infoBuilder_.getMessageList(); + } + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public int getInfoCount() { + if (infoBuilder_ == null) { + return info_.size(); + } else { + return infoBuilder_.getCount(); + } + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public com.kcl.api.Spec.TestCaseInfo getInfo(int index) { + if (infoBuilder_ == null) { + return info_.get(index); + } else { + return infoBuilder_.getMessage(index); + } + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder setInfo(int index, com.kcl.api.Spec.TestCaseInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.set(index, value); + onChanged(); + } else { + infoBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder setInfo(int index, com.kcl.api.Spec.TestCaseInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.set(index, builderForValue.build()); + onChanged(); + } else { + infoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder addInfo(com.kcl.api.Spec.TestCaseInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(value); + onChanged(); + } else { + infoBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder addInfo(int index, com.kcl.api.Spec.TestCaseInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInfoIsMutable(); + info_.add(index, value); + onChanged(); + } else { + infoBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder addInfo(com.kcl.api.Spec.TestCaseInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.add(builderForValue.build()); + onChanged(); + } else { + infoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder addInfo(int index, com.kcl.api.Spec.TestCaseInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.add(index, builderForValue.build()); + onChanged(); + } else { + infoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder addAllInfo(java.lang.Iterable values) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, info_); + onChanged(); + } else { + infoBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder clearInfo() { + if (infoBuilder_ == null) { + info_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + infoBuilder_.clear(); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public Builder removeInfo(int index) { + if (infoBuilder_ == null) { + ensureInfoIsMutable(); + info_.remove(index); + onChanged(); + } else { + infoBuilder_.remove(index); + } + return this; + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public com.kcl.api.Spec.TestCaseInfo.Builder getInfoBuilder(int index) { + return getInfoFieldBuilder().getBuilder(index); + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public com.kcl.api.Spec.TestCaseInfoOrBuilder getInfoOrBuilder(int index) { + if (infoBuilder_ == null) { + return info_.get(index); + } else { + return infoBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public java.util.List getInfoOrBuilderList() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(info_); + } + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public com.kcl.api.Spec.TestCaseInfo.Builder addInfoBuilder() { + return getInfoFieldBuilder().addBuilder(com.kcl.api.Spec.TestCaseInfo.getDefaultInstance()); + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public com.kcl.api.Spec.TestCaseInfo.Builder addInfoBuilder(int index) { + return getInfoFieldBuilder().addBuilder(index, com.kcl.api.Spec.TestCaseInfo.getDefaultInstance()); + } + + /** + *
+             * List of test case information.
+             * 
+ * + * repeated .com.kcl.api.TestCaseInfo info = 2; + */ + public java.util.List getInfoBuilderList() { + return getInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + info_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + info_ = null; + } + return infoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Test_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Test_Result) + private static final com.kcl.api.Spec.Test_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Test_Result(); + } + + public static com.kcl.api.Spec.Test_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Test_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.Test_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TestCaseInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.TestCaseInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Name of the test case.
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + *
+         * Name of the test case.
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + *
+         * Error message if any.
+         * 
+ * + * string error = 2; + * + * @return The error. + */ + java.lang.String getError(); + + /** + *
+         * Error message if any.
+         * 
+ * + * string error = 2; + * + * @return The bytes for error. + */ + com.google.protobuf.ByteString getErrorBytes(); + + /** + *
+         * Duration of the test case in microseconds.
+         * 
+ * + * uint64 duration = 3; + * + * @return The duration. + */ + long getDuration(); + + /** + *
+         * Log message from the test case.
+         * 
+ * + * string log_message = 4; + * + * @return The logMessage. + */ + java.lang.String getLogMessage(); + + /** + *
+         * Log message from the test case.
+         * 
+ * + * string log_message = 4; + * + * @return The bytes for logMessage. + */ + com.google.protobuf.ByteString getLogMessageBytes(); + } + + /** + *
+     * Message representing information about a single test case.
+     * 
+ * + * Protobuf type {@code com.kcl.api.TestCaseInfo} + */ + public static final class TestCaseInfo extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.TestCaseInfo) + TestCaseInfoOrBuilder { + 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= */ "", TestCaseInfo.class.getName()); + } + + // Use TestCaseInfo.newBuilder() to construct. + private TestCaseInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TestCaseInfo() { + name_ = ""; + error_ = ""; + logMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_TestCaseInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_TestCaseInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.TestCaseInfo.class, + com.kcl.api.Spec.TestCaseInfo.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + *
+         * Name of the test case.
+         * 
+ * + * 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 test case.
+         * 
+ * + * 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 ERROR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object error_ = ""; + + /** + *
+         * Error message if any.
+         * 
+ * + * string error = 2; + * + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + 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(); + error_ = s; + return s; + } + } + + /** + *
+         * Error message if any.
+         * 
+ * + * string error = 2; + * + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_FIELD_NUMBER = 3; + private long duration_ = 0L; + + /** + *
+         * Duration of the test case in microseconds.
+         * 
+ * + * uint64 duration = 3; + * + * @return The duration. + */ + @java.lang.Override + public long getDuration() { + return duration_; + } + + public static final int LOG_MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object logMessage_ = ""; + + /** + *
+         * Log message from the test case.
+         * 
+ * + * string log_message = 4; + * + * @return The logMessage. + */ + @java.lang.Override + public java.lang.String getLogMessage() { + java.lang.Object ref = logMessage_; + 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(); + logMessage_ = s; + return s; + } + } + + /** + *
+         * Log message from the test case.
+         * 
+ * + * string log_message = 4; + * + * @return The bytes for logMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogMessageBytes() { + java.lang.Object ref = logMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logMessage_ = 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(error_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, error_); + } + if (duration_ != 0L) { + output.writeUInt64(3, duration_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, logMessage_); + } + 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(error_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, error_); + } + if (duration_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, duration_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, logMessage_); + } + 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.TestCaseInfo)) { + return super.equals(obj); + } + com.kcl.api.Spec.TestCaseInfo other = (com.kcl.api.Spec.TestCaseInfo) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getError().equals(other.getError())) + return false; + if (getDuration() != other.getDuration()) + return false; + if (!getLogMessage().equals(other.getLogMessage())) + 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) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDuration()); + hash = (37 * hash) + LOG_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getLogMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.TestCaseInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.TestCaseInfo 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.TestCaseInfo parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.TestCaseInfo 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.TestCaseInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.TestCaseInfo parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.TestCaseInfo parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.TestCaseInfo 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.TestCaseInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.TestCaseInfo 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.TestCaseInfo parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.TestCaseInfo 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.TestCaseInfo 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 information about a single test case.
+         * 
+ * + * Protobuf type {@code com.kcl.api.TestCaseInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.TestCaseInfo) + com.kcl.api.Spec.TestCaseInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_TestCaseInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_TestCaseInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.TestCaseInfo.class, + com.kcl.api.Spec.TestCaseInfo.Builder.class); + } + + // Construct using com.kcl.api.Spec.TestCaseInfo.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + error_ = ""; + duration_ = 0L; + logMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_TestCaseInfo_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.TestCaseInfo getDefaultInstanceForType() { + return com.kcl.api.Spec.TestCaseInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.TestCaseInfo build() { + com.kcl.api.Spec.TestCaseInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.TestCaseInfo buildPartial() { + com.kcl.api.Spec.TestCaseInfo result = new com.kcl.api.Spec.TestCaseInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.TestCaseInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.error_ = error_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.duration_ = duration_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.logMessage_ = logMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.TestCaseInfo) { + return mergeFrom((com.kcl.api.Spec.TestCaseInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.TestCaseInfo other) { + if (other == com.kcl.api.Spec.TestCaseInfo.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDuration() != 0L) { + setDuration(other.getDuration()); + } + if (!other.getLogMessage().isEmpty()) { + logMessage_ = other.logMessage_; + 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: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + error_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + duration_ = input.readUInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + logMessage_ = 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 name_ = ""; + + /** + *
+             * Name of the test case.
+             * 
+ * + * 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 test case.
+             * 
+ * + * 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 test case.
+             * 
+ * + * 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 test case.
+             * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Name of the test case.
+             * 
+ * + * 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 error_ = ""; + + /** + *
+             * Error message if any.
+             * 
+ * + * string error = 2; + * + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Error message if any.
+             * 
+ * + * string error = 2; + * + * @return The bytes for error. + */ + public com.google.protobuf.ByteString getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Error message if any.
+             * 
+ * + * string error = 2; + * + * @param value + * The error to set. + * + * @return This builder for chaining. + */ + public Builder setError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Error message if any.
+             * 
+ * + * string error = 2; + * + * @return This builder for chaining. + */ + public Builder clearError() { + error_ = getDefaultInstance().getError(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Error message if any.
+             * 
+ * + * string error = 2; + * + * @param value + * The bytes for error to set. + * + * @return This builder for chaining. + */ + public Builder setErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + error_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long duration_; + + /** + *
+             * Duration of the test case in microseconds.
+             * 
+ * + * uint64 duration = 3; + * + * @return The duration. + */ + @java.lang.Override + public long getDuration() { + return duration_; + } + + /** + *
+             * Duration of the test case in microseconds.
+             * 
+ * + * uint64 duration = 3; + * + * @param value + * The duration to set. + * + * @return This builder for chaining. + */ + public Builder setDuration(long value) { + + duration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Duration of the test case in microseconds.
+             * 
+ * + * uint64 duration = 3; + * + * @return This builder for chaining. + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + duration_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object logMessage_ = ""; + + /** + *
+             * Log message from the test case.
+             * 
+ * + * string log_message = 4; + * + * @return The logMessage. + */ + public java.lang.String getLogMessage() { + java.lang.Object ref = logMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Log message from the test case.
+             * 
+ * + * string log_message = 4; + * + * @return The bytes for logMessage. + */ + public com.google.protobuf.ByteString getLogMessageBytes() { + java.lang.Object ref = logMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + logMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Log message from the test case.
+             * 
+ * + * string log_message = 4; + * + * @param value + * The logMessage to set. + * + * @return This builder for chaining. + */ + public Builder setLogMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Log message from the test case.
+             * 
+ * + * string log_message = 4; + * + * @return This builder for chaining. + */ + public Builder clearLogMessage() { + logMessage_ = getDefaultInstance().getLogMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + *
+             * Log message from the test case.
+             * 
+ * + * string log_message = 4; + * + * @param value + * The bytes for logMessage to set. + * + * @return This builder for chaining. + */ + public Builder setLogMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.TestCaseInfo) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.TestCaseInfo) + private static final com.kcl.api.Spec.TestCaseInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.TestCaseInfo(); + } + + public static com.kcl.api.Spec.TestCaseInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TestCaseInfo 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.TestCaseInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateDependencies_ArgsOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.UpdateDependencies_Args) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Path to the manifest file.
+         * 
+ * + * string manifest_path = 1; + * + * @return The manifestPath. + */ + java.lang.String getManifestPath(); + + /** + *
+         * Path to the manifest file.
+         * 
+ * + * string manifest_path = 1; + * + * @return The bytes for manifestPath. + */ + com.google.protobuf.ByteString getManifestPathBytes(); + + /** + *
+         * Flag to vendor dependencies locally.
+         * 
+ * + * bool vendor = 2; + * + * @return The vendor. + */ + boolean getVendor(); + } + + /** + *
+     * Message for update dependencies request arguments.
+     * 
+ * + * Protobuf type {@code com.kcl.api.UpdateDependencies_Args} + */ + public static final class UpdateDependencies_Args extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.UpdateDependencies_Args) + UpdateDependencies_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= */ "", UpdateDependencies_Args.class.getName()); + } + + // Use UpdateDependencies_Args.newBuilder() to construct. + private UpdateDependencies_Args(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDependencies_Args() { + manifestPath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.UpdateDependencies_Args.class, + com.kcl.api.Spec.UpdateDependencies_Args.Builder.class); + } + + public static final int MANIFEST_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object manifestPath_ = ""; + + /** + *
+         * Path to the manifest file.
+         * 
+ * + * string manifest_path = 1; + * + * @return The manifestPath. + */ + @java.lang.Override + public java.lang.String getManifestPath() { + java.lang.Object ref = manifestPath_; + 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(); + manifestPath_ = s; + return s; + } + } + + /** + *
+         * Path to the manifest file.
+         * 
+ * + * string manifest_path = 1; + * + * @return The bytes for manifestPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getManifestPathBytes() { + java.lang.Object ref = manifestPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + manifestPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VENDOR_FIELD_NUMBER = 2; + private boolean vendor_ = false; + + /** + *
+         * Flag to vendor dependencies locally.
+         * 
+ * + * bool vendor = 2; + * + * @return The vendor. + */ + @java.lang.Override + public boolean getVendor() { + return vendor_; + } + + 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(manifestPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, manifestPath_); + } + if (vendor_ != false) { + output.writeBool(2, vendor_); + } + 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(manifestPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, manifestPath_); + } + if (vendor_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, vendor_); + } + 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.UpdateDependencies_Args)) { + return super.equals(obj); + } + com.kcl.api.Spec.UpdateDependencies_Args other = (com.kcl.api.Spec.UpdateDependencies_Args) obj; + + if (!getManifestPath().equals(other.getManifestPath())) + return false; + if (getVendor() != other.getVendor()) + 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) + MANIFEST_PATH_FIELD_NUMBER; + hash = (53 * hash) + getManifestPath().hashCode(); + hash = (37 * hash) + VENDOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVendor()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.UpdateDependencies_Args parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Args parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Args parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Args parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Args parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_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.UpdateDependencies_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.UpdateDependencies_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 update dependencies request arguments.
+         * 
+ * + * Protobuf type {@code com.kcl.api.UpdateDependencies_Args} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.UpdateDependencies_Args) + com.kcl.api.Spec.UpdateDependencies_ArgsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Args_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Args_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.UpdateDependencies_Args.class, + com.kcl.api.Spec.UpdateDependencies_Args.Builder.class); + } + + // Construct using com.kcl.api.Spec.UpdateDependencies_Args.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + manifestPath_ = ""; + vendor_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Args_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.UpdateDependencies_Args getDefaultInstanceForType() { + return com.kcl.api.Spec.UpdateDependencies_Args.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.UpdateDependencies_Args build() { + com.kcl.api.Spec.UpdateDependencies_Args result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.UpdateDependencies_Args buildPartial() { + com.kcl.api.Spec.UpdateDependencies_Args result = new com.kcl.api.Spec.UpdateDependencies_Args(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.UpdateDependencies_Args result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.manifestPath_ = manifestPath_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.vendor_ = vendor_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.UpdateDependencies_Args) { + return mergeFrom((com.kcl.api.Spec.UpdateDependencies_Args) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.UpdateDependencies_Args other) { + if (other == com.kcl.api.Spec.UpdateDependencies_Args.getDefaultInstance()) + return this; + if (!other.getManifestPath().isEmpty()) { + manifestPath_ = other.manifestPath_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getVendor() != false) { + setVendor(other.getVendor()); + } + 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: { + manifestPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + vendor_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 manifestPath_ = ""; + + /** + *
+             * Path to the manifest file.
+             * 
+ * + * string manifest_path = 1; + * + * @return The manifestPath. + */ + public java.lang.String getManifestPath() { + java.lang.Object ref = manifestPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manifestPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Path to the manifest file.
+             * 
+ * + * string manifest_path = 1; + * + * @return The bytes for manifestPath. + */ + public com.google.protobuf.ByteString getManifestPathBytes() { + java.lang.Object ref = manifestPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + manifestPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Path to the manifest file.
+             * 
+ * + * string manifest_path = 1; + * + * @param value + * The manifestPath to set. + * + * @return This builder for chaining. + */ + public Builder setManifestPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + manifestPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Path to the manifest file.
+             * 
+ * + * string manifest_path = 1; + * + * @return This builder for chaining. + */ + public Builder clearManifestPath() { + manifestPath_ = getDefaultInstance().getManifestPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Path to the manifest file.
+             * 
+ * + * string manifest_path = 1; + * + * @param value + * The bytes for manifestPath to set. + * + * @return This builder for chaining. + */ + public Builder setManifestPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifestPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean vendor_; + + /** + *
+             * Flag to vendor dependencies locally.
+             * 
+ * + * bool vendor = 2; + * + * @return The vendor. + */ + @java.lang.Override + public boolean getVendor() { + return vendor_; + } + + /** + *
+             * Flag to vendor dependencies locally.
+             * 
+ * + * bool vendor = 2; + * + * @param value + * The vendor to set. + * + * @return This builder for chaining. + */ + public Builder setVendor(boolean value) { + + vendor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Flag to vendor dependencies locally.
+             * 
+ * + * bool vendor = 2; + * + * @return This builder for chaining. + */ + public Builder clearVendor() { + bitField0_ = (bitField0_ & ~0x00000002); + vendor_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.UpdateDependencies_Args) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.UpdateDependencies_Args) + private static final com.kcl.api.Spec.UpdateDependencies_Args DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.UpdateDependencies_Args(); + } + + public static com.kcl.api.Spec.UpdateDependencies_Args getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDependencies_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.UpdateDependencies_Args getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UpdateDependencies_ResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.UpdateDependencies_Result) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + java.util.List getExternalPkgsList(); + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index); + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + int getExternalPkgsCount(); + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + java.util.List getExternalPkgsOrBuilderList(); + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + com.kcl.api.Spec.ExternalPkgOrBuilder getExternalPkgsOrBuilder(int index); + } + + /** + *
+     * Message for update dependencies response.
+     * 
+ * + * Protobuf type {@code com.kcl.api.UpdateDependencies_Result} + */ + public static final class UpdateDependencies_Result extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.UpdateDependencies_Result) + UpdateDependencies_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= */ "", UpdateDependencies_Result.class.getName()); + } + + // Use UpdateDependencies_Result.newBuilder() to construct. + private UpdateDependencies_Result(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateDependencies_Result() { + externalPkgs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.UpdateDependencies_Result.class, + com.kcl.api.Spec.UpdateDependencies_Result.Builder.class); + } + + public static final int EXTERNAL_PKGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List externalPkgs_; + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + @java.lang.Override + public java.util.List getExternalPkgsList() { + return externalPkgs_; + } + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + @java.lang.Override + public java.util.List getExternalPkgsOrBuilderList() { + return externalPkgs_; + } + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + @java.lang.Override + public int getExternalPkgsCount() { + return externalPkgs_.size(); + } + + /** + *
+         * List of external packages updated.
+         * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + @java.lang.Override + public com.kcl.api.Spec.ExternalPkg getExternalPkgs(int index) { + return externalPkgs_.get(index); + } + + /** + *
+         * List of external packages updated.
+         * 
+ * + * 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 < 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; + 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.UpdateDependencies_Result)) { + return super.equals(obj); + } + com.kcl.api.Spec.UpdateDependencies_Result other = (com.kcl.api.Spec.UpdateDependencies_Result) obj; + + 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 (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.UpdateDependencies_Result parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Result parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Result parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Result parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_Result parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.UpdateDependencies_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.UpdateDependencies_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.UpdateDependencies_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.UpdateDependencies_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 update dependencies response.
+         * 
+ * + * Protobuf type {@code com.kcl.api.UpdateDependencies_Result} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.UpdateDependencies_Result) + com.kcl.api.Spec.UpdateDependencies_ResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Result_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Result_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.UpdateDependencies_Result.class, + com.kcl.api.Spec.UpdateDependencies_Result.Builder.class); + } + + // Construct using com.kcl.api.Spec.UpdateDependencies_Result.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (externalPkgsBuilder_ == null) { + externalPkgs_ = java.util.Collections.emptyList(); + } else { + externalPkgs_ = null; + externalPkgsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_UpdateDependencies_Result_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.UpdateDependencies_Result getDefaultInstanceForType() { + return com.kcl.api.Spec.UpdateDependencies_Result.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.UpdateDependencies_Result build() { + com.kcl.api.Spec.UpdateDependencies_Result result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.UpdateDependencies_Result buildPartial() { + com.kcl.api.Spec.UpdateDependencies_Result result = new com.kcl.api.Spec.UpdateDependencies_Result( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.UpdateDependencies_Result result) { + if (externalPkgsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + externalPkgs_ = java.util.Collections.unmodifiableList(externalPkgs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.externalPkgs_ = externalPkgs_; + } else { + result.externalPkgs_ = externalPkgsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.UpdateDependencies_Result result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.UpdateDependencies_Result) { + return mergeFrom((com.kcl.api.Spec.UpdateDependencies_Result) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.UpdateDependencies_Result other) { + if (other == com.kcl.api.Spec.UpdateDependencies_Result.getDefaultInstance()) + return this; + if (externalPkgsBuilder_ == null) { + if (!other.externalPkgs_.isEmpty()) { + if (externalPkgs_.isEmpty()) { + externalPkgs_ = other.externalPkgs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExternalPkgsIsMutable(); + externalPkgs_.addAll(other.externalPkgs_); + } + onChanged(); + } + } else { + if (!other.externalPkgs_.isEmpty()) { + if (externalPkgsBuilder_.isEmpty()) { + externalPkgsBuilder_.dispose(); + externalPkgsBuilder_ = null; + externalPkgs_ = other.externalPkgs_; + bitField0_ = (bitField0_ & ~0x00000001); + 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 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.util.List externalPkgs_ = java.util.Collections.emptyList(); + + private void ensureExternalPkgsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + externalPkgs_ = new java.util.ArrayList(externalPkgs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder externalPkgsBuilder_; + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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(); + } + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + public int getExternalPkgsCount() { + if (externalPkgsBuilder_ == null) { + return externalPkgs_.size(); + } else { + return externalPkgsBuilder_.getCount(); + } + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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); + } + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + public Builder addAllExternalPkgs(java.lang.Iterable values) { + if (externalPkgsBuilder_ == null) { + ensureExternalPkgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalPkgs_); + onChanged(); + } else { + externalPkgsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + public Builder clearExternalPkgs() { + if (externalPkgsBuilder_ == null) { + externalPkgs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + externalPkgsBuilder_.clear(); + } + return this; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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; + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + public com.kcl.api.Spec.ExternalPkg.Builder getExternalPkgsBuilder(int index) { + return getExternalPkgsFieldBuilder().getBuilder(index); + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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); + } + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * repeated .com.kcl.api.ExternalPkg external_pkgs = 3; + */ + public java.util.List getExternalPkgsOrBuilderList() { + if (externalPkgsBuilder_ != null) { + return externalPkgsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(externalPkgs_); + } + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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()); + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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()); + } + + /** + *
+             * List of external packages updated.
+             * 
+ * + * 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); + externalPkgs_ = null; + } + return externalPkgsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.UpdateDependencies_Result) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.UpdateDependencies_Result) + private static final com.kcl.api.Spec.UpdateDependencies_Result DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.UpdateDependencies_Result(); + } + + public static com.kcl.api.Spec.UpdateDependencies_Result getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDependencies_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.UpdateDependencies_Result getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KclTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.KclType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+         * 
+ * + * string type = 1; + * + * @return The type. + */ + java.lang.String getType(); + + /** + *
+         * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+         * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + java.util.List getUnionTypesList(); + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + com.kcl.api.Spec.KclType getUnionTypes(int index); + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + int getUnionTypesCount(); + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + java.util.List getUnionTypesOrBuilderList(); + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + com.kcl.api.Spec.KclTypeOrBuilder getUnionTypesOrBuilder(int index); + + /** + *
+         * Default value of the type.
+         * 
+ * + * string default = 3; + * + * @return The default. + */ + java.lang.String getDefault(); + + /** + *
+         * Default value of the type.
+         * 
+ * + * string default = 3; + * + * @return The bytes for default. + */ + com.google.protobuf.ByteString getDefaultBytes(); + + /** + *
+         * Name of the schema if applicable.
+         * 
+ * + * string schema_name = 4; + * + * @return The schemaName. + */ + java.lang.String getSchemaName(); + + /** + *
+         * Name of the schema if applicable.
+         * 
+ * + * string schema_name = 4; + * + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString getSchemaNameBytes(); + + /** + *
+         * Documentation for the schema.
+         * 
+ * + * string schema_doc = 5; + * + * @return The schemaDoc. + */ + java.lang.String getSchemaDoc(); + + /** + *
+         * Documentation for the schema.
+         * 
+ * + * string schema_doc = 5; + * + * @return The bytes for schemaDoc. + */ + com.google.protobuf.ByteString getSchemaDocBytes(); + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + int getPropertiesCount(); + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + boolean containsProperties(java.lang.String key); + + /** + * Use {@link #getPropertiesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getProperties(); + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + java.util.Map getPropertiesMap(); + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + /* nullable */ + com.kcl.api.Spec.KclType getPropertiesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.KclType defaultValue); + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + com.kcl.api.Spec.KclType getPropertiesOrThrow(java.lang.String key); + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @return A list containing the required. + */ + java.util.List getRequiredList(); + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @return The count of required. + */ + int getRequiredCount(); + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @param index + * The index of the element to return. + * + * @return The required at the given index. + */ + java.lang.String getRequired(int index); + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the required at the given index. + */ + com.google.protobuf.ByteString getRequiredBytes(int index); + + /** + *
+         * Key type if the KclType is a dictionary.
+         * 
+ * + * .com.kcl.api.KclType key = 8; + * + * @return Whether the key field is set. + */ + boolean hasKey(); + + /** + *
+         * Key type if the KclType is a dictionary.
+         * 
+ * + * .com.kcl.api.KclType key = 8; + * + * @return The key. + */ + com.kcl.api.Spec.KclType getKey(); + + /** + *
+         * Key type if the KclType is a dictionary.
+         * 
+ * + * .com.kcl.api.KclType key = 8; + */ + com.kcl.api.Spec.KclTypeOrBuilder getKeyOrBuilder(); + + /** + *
+         * Item type if the KclType is a list or dictionary.
+         * 
+ * + * .com.kcl.api.KclType item = 9; + * + * @return Whether the item field is set. + */ + boolean hasItem(); + + /** + *
+         * Item type if the KclType is a list or dictionary.
+         * 
+ * + * .com.kcl.api.KclType item = 9; + * + * @return The item. + */ + com.kcl.api.Spec.KclType getItem(); + + /** + *
+         * Item type if the KclType is a list or dictionary.
+         * 
+ * + * .com.kcl.api.KclType item = 9; + */ + com.kcl.api.Spec.KclTypeOrBuilder getItemOrBuilder(); + + /** + *
+         * Line number where the type is defined.
+         * 
+ * + * int32 line = 10; + * + * @return The line. + */ + int getLine(); + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + java.util.List getDecoratorsList(); + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + com.kcl.api.Spec.Decorator getDecorators(int index); + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + int getDecoratorsCount(); + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + java.util.List getDecoratorsOrBuilderList(); + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + com.kcl.api.Spec.DecoratorOrBuilder getDecoratorsOrBuilder(int index); + + /** + *
+         * Absolute path of the file where the attribute is located.
+         * 
+ * + * string filename = 12; + * + * @return The filename. + */ + java.lang.String getFilename(); + + /** + *
+         * Absolute path of the file where the attribute is located.
+         * 
+ * + * string filename = 12; + * + * @return The bytes for filename. + */ + com.google.protobuf.ByteString getFilenameBytes(); + + /** + *
+         * Path of the package where the attribute is located.
+         * 
+ * + * string pkg_path = 13; + * + * @return The pkgPath. + */ + java.lang.String getPkgPath(); + + /** + *
+         * Path of the package where the attribute is located.
+         * 
+ * + * string pkg_path = 13; + * + * @return The bytes for pkgPath. + */ + com.google.protobuf.ByteString getPkgPathBytes(); + + /** + *
+         * Documentation for the attribute.
+         * 
+ * + * string description = 14; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + *
+         * Documentation for the attribute.
+         * 
+ * + * string description = 14; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + int getExamplesCount(); + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + boolean containsExamples(java.lang.String key); + + /** + * Use {@link #getExamplesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getExamples(); + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + java.util.Map getExamplesMap(); + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + /* nullable */ + com.kcl.api.Spec.Example getExamplesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.Example defaultValue); + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + com.kcl.api.Spec.Example getExamplesOrThrow(java.lang.String key); + + /** + *
+         * Base schema if applicable.
+         * 
+ * + * .com.kcl.api.KclType base_schema = 16; + * + * @return Whether the baseSchema field is set. + */ + boolean hasBaseSchema(); + + /** + *
+         * Base schema if applicable.
+         * 
+ * + * .com.kcl.api.KclType base_schema = 16; + * + * @return The baseSchema. + */ + com.kcl.api.Spec.KclType getBaseSchema(); + + /** + *
+         * Base schema if applicable.
+         * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + com.kcl.api.Spec.KclTypeOrBuilder getBaseSchemaOrBuilder(); + } + + /** + *
+     * Message representing a KCL type.
+     * 
+ * + * Protobuf type {@code com.kcl.api.KclType} + */ + public static final class KclType extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.KclType) + KclTypeOrBuilder { + 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= */ "", KclType.class.getName()); + } + + // Use KclType.newBuilder() to construct. + private KclType(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KclType() { + type_ = ""; + unionTypes_ = java.util.Collections.emptyList(); + default_ = ""; + schemaName_ = ""; + schemaDoc_ = ""; + required_ = com.google.protobuf.LazyStringArrayList.emptyList(); + decorators_ = java.util.Collections.emptyList(); + filename_ = ""; + pkgPath_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KclType_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 6: + return internalGetProperties(); + case 15: + return internalGetExamples(); + 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_KclType_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.KclType.class, + com.kcl.api.Spec.KclType.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + *
+         * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+         * 
+ * + * string type = 1; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + + /** + *
+         * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+         * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNION_TYPES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List unionTypes_; + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + @java.lang.Override + public java.util.List getUnionTypesList() { + return unionTypes_; + } + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + @java.lang.Override + public java.util.List getUnionTypesOrBuilderList() { + return unionTypes_; + } + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + @java.lang.Override + public int getUnionTypesCount() { + return unionTypes_.size(); + } + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getUnionTypes(int index) { + return unionTypes_.get(index); + } + + /** + *
+         * Union types if applicable.
+         * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + @java.lang.Override + public com.kcl.api.Spec.KclTypeOrBuilder getUnionTypesOrBuilder(int index) { + return unionTypes_.get(index); + } + + public static final int DEFAULT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object default_ = ""; + + /** + *
+         * Default value of the type.
+         * 
+ * + * string default = 3; + * + * @return The default. + */ + @java.lang.Override + public java.lang.String getDefault() { + java.lang.Object ref = default_; + 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(); + default_ = s; + return s; + } + } + + /** + *
+         * Default value of the type.
+         * 
+ * + * string default = 3; + * + * @return The bytes for default. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultBytes() { + java.lang.Object ref = default_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + default_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object schemaName_ = ""; + + /** + *
+         * Name of the schema if applicable.
+         * 
+ * + * string schema_name = 4; + * + * @return The schemaName. + */ + @java.lang.Override + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + 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(); + schemaName_ = s; + return s; + } + } + + /** + *
+         * Name of the schema if applicable.
+         * 
+ * + * string schema_name = 4; + * + * @return The bytes for schemaName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_DOC_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object schemaDoc_ = ""; + + /** + *
+         * Documentation for the schema.
+         * 
+ * + * string schema_doc = 5; + * + * @return The schemaDoc. + */ + @java.lang.Override + public java.lang.String getSchemaDoc() { + java.lang.Object ref = schemaDoc_; + 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(); + schemaDoc_ = s; + return s; + } + } + + /** + *
+         * Documentation for the schema.
+         * 
+ * + * string schema_doc = 5; + * + * @return The bytes for schemaDoc. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaDocBytes() { + java.lang.Object ref = schemaDoc_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaDoc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 6; + + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + com.kcl.api.Spec.internal_static_com_kcl_api_KclType_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, com.kcl.api.Spec.KclType.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField properties_; + + private com.google.protobuf.MapField internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField(PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().getMap().containsKey(key); + } + + /** + * Use {@link #getPropertiesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.KclType getPropertiesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.KclType defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * Properties of the schema as a map with property name as key.
+         * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int REQUIRED_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList required_ = com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @return A list containing the required. + */ + public com.google.protobuf.ProtocolStringList getRequiredList() { + return required_; + } + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @return The count of required. + */ + public int getRequiredCount() { + return required_.size(); + } + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @param index + * The index of the element to return. + * + * @return The required at the given index. + */ + public java.lang.String getRequired(int index) { + return required_.get(index); + } + + /** + *
+         * List of required schema properties.
+         * 
+ * + * repeated string required = 7; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the required at the given index. + */ + public com.google.protobuf.ByteString getRequiredBytes(int index) { + return required_.getByteString(index); + } + + public static final int KEY_FIELD_NUMBER = 8; + private com.kcl.api.Spec.KclType key_; + + /** + *
+         * Key type if the KclType is a dictionary.
+         * 
+ * + * .com.kcl.api.KclType key = 8; + * + * @return Whether the key field is set. + */ + @java.lang.Override + public boolean hasKey() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + *
+         * Key type if the KclType is a dictionary.
+         * 
+ * + * .com.kcl.api.KclType key = 8; + * + * @return The key. + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getKey() { + return key_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : key_; + } + + /** + *
+         * Key type if the KclType is a dictionary.
+         * 
+ * + * .com.kcl.api.KclType key = 8; + */ + @java.lang.Override + public com.kcl.api.Spec.KclTypeOrBuilder getKeyOrBuilder() { + return key_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : key_; + } + + public static final int ITEM_FIELD_NUMBER = 9; + private com.kcl.api.Spec.KclType item_; + + /** + *
+         * Item type if the KclType is a list or dictionary.
+         * 
+ * + * .com.kcl.api.KclType item = 9; + * + * @return Whether the item field is set. + */ + @java.lang.Override + public boolean hasItem() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + *
+         * Item type if the KclType is a list or dictionary.
+         * 
+ * + * .com.kcl.api.KclType item = 9; + * + * @return The item. + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getItem() { + return item_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : item_; + } + + /** + *
+         * Item type if the KclType is a list or dictionary.
+         * 
+ * + * .com.kcl.api.KclType item = 9; + */ + @java.lang.Override + public com.kcl.api.Spec.KclTypeOrBuilder getItemOrBuilder() { + return item_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : item_; + } + + public static final int LINE_FIELD_NUMBER = 10; + private int line_ = 0; + + /** + *
+         * Line number where the type is defined.
+         * 
+ * + * int32 line = 10; + * + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + public static final int DECORATORS_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private java.util.List decorators_; + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + @java.lang.Override + public java.util.List getDecoratorsList() { + return decorators_; + } + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + @java.lang.Override + public java.util.List getDecoratorsOrBuilderList() { + return decorators_; + } + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + @java.lang.Override + public int getDecoratorsCount() { + return decorators_.size(); + } + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + @java.lang.Override + public com.kcl.api.Spec.Decorator getDecorators(int index) { + return decorators_.get(index); + } + + /** + *
+         * List of decorators for the schema.
+         * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + @java.lang.Override + public com.kcl.api.Spec.DecoratorOrBuilder getDecoratorsOrBuilder(int index) { + return decorators_.get(index); + } + + public static final int FILENAME_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object filename_ = ""; + + /** + *
+         * Absolute path of the file where the attribute is located.
+         * 
+ * + * string filename = 12; + * + * @return The filename. + */ + @java.lang.Override + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + 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(); + filename_ = s; + return s; + } + } + + /** + *
+         * Absolute path of the file where the attribute is located.
+         * 
+ * + * string filename = 12; + * + * @return The bytes for filename. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PKG_PATH_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object pkgPath_ = ""; + + /** + *
+         * Path of the package where the attribute is located.
+         * 
+ * + * string pkg_path = 13; + * + * @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 where the attribute is located.
+         * 
+ * + * string pkg_path = 13; + * + * @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; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + *
+         * Documentation for the attribute.
+         * 
+ * + * string description = 14; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + *
+         * Documentation for the attribute.
+         * 
+ * + * string description = 14; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXAMPLES_FIELD_NUMBER = 15; + + private static final class ExamplesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + com.kcl.api.Spec.internal_static_com_kcl_api_KclType_ExamplesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, com.kcl.api.Spec.Example.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField examples_; + + private com.google.protobuf.MapField internalGetExamples() { + if (examples_ == null) { + return com.google.protobuf.MapField.emptyMapField(ExamplesDefaultEntryHolder.defaultEntry); + } + return examples_; + } + + public int getExamplesCount() { + return internalGetExamples().getMap().size(); + } + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public boolean containsExamples(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetExamples().getMap().containsKey(key); + } + + /** + * Use {@link #getExamplesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getExamples() { + return getExamplesMap(); + } + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public java.util.Map getExamplesMap() { + return internalGetExamples().getMap(); + } + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.Example getExamplesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.Example defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetExamples().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * Map of examples with example name as key.
+         * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public com.kcl.api.Spec.Example getExamplesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetExamples().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int BASE_SCHEMA_FIELD_NUMBER = 16; + private com.kcl.api.Spec.KclType baseSchema_; + + /** + *
+         * Base schema if applicable.
+         * 
+ * + * .com.kcl.api.KclType base_schema = 16; + * + * @return Whether the baseSchema field is set. + */ + @java.lang.Override + public boolean hasBaseSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + *
+         * Base schema if applicable.
+         * 
+ * + * .com.kcl.api.KclType base_schema = 16; + * + * @return The baseSchema. + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getBaseSchema() { + return baseSchema_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : baseSchema_; + } + + /** + *
+         * Base schema if applicable.
+         * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + @java.lang.Override + public com.kcl.api.Spec.KclTypeOrBuilder getBaseSchemaOrBuilder() { + return baseSchema_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : baseSchema_; + } + + 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(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); + } + for (int i = 0; i < unionTypes_.size(); i++) { + output.writeMessage(2, unionTypes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(default_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, default_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, schemaName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaDoc_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, schemaDoc_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, 6); + for (int i = 0; i < required_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, required_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getKey()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getItem()); + } + if (line_ != 0) { + output.writeInt32(10, line_); + } + for (int i = 0; i < decorators_.size(); i++) { + output.writeMessage(11, decorators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filename_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, filename_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, pkgPath_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, description_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetExamples(), + ExamplesDefaultEntryHolder.defaultEntry, 15); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(16, getBaseSchema()); + } + 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(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); + } + for (int i = 0; i < unionTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, unionTypes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(default_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, default_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, schemaName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaDoc_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, schemaDoc_); + } + for (java.util.Map.Entry entry : internalGetProperties() + .getMap().entrySet()) { + com.google.protobuf.MapEntry properties__ = PropertiesDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, properties__); + } + { + int dataSize = 0; + for (int i = 0; i < required_.size(); i++) { + dataSize += computeStringSizeNoTag(required_.getRaw(i)); + } + size += dataSize; + size += 1 * getRequiredList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getKey()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getItem()); + } + if (line_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, line_); + } + for (int i = 0; i < decorators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, decorators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filename_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, filename_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pkgPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, pkgPath_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, description_); + } + for (java.util.Map.Entry entry : internalGetExamples().getMap() + .entrySet()) { + com.google.protobuf.MapEntry examples__ = ExamplesDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, examples__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getBaseSchema()); + } + 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.KclType)) { + return super.equals(obj); + } + com.kcl.api.Spec.KclType other = (com.kcl.api.Spec.KclType) obj; + + if (!getType().equals(other.getType())) + return false; + if (!getUnionTypesList().equals(other.getUnionTypesList())) + return false; + if (!getDefault().equals(other.getDefault())) + return false; + if (!getSchemaName().equals(other.getSchemaName())) + return false; + if (!getSchemaDoc().equals(other.getSchemaDoc())) + return false; + if (!internalGetProperties().equals(other.internalGetProperties())) + return false; + if (!getRequiredList().equals(other.getRequiredList())) + return false; + if (hasKey() != other.hasKey()) + return false; + if (hasKey()) { + if (!getKey().equals(other.getKey())) + return false; + } + if (hasItem() != other.hasItem()) + return false; + if (hasItem()) { + if (!getItem().equals(other.getItem())) + return false; + } + if (getLine() != other.getLine()) + return false; + if (!getDecoratorsList().equals(other.getDecoratorsList())) + return false; + if (!getFilename().equals(other.getFilename())) + return false; + if (!getPkgPath().equals(other.getPkgPath())) + return false; + if (!getDescription().equals(other.getDescription())) + return false; + if (!internalGetExamples().equals(other.internalGetExamples())) + return false; + if (hasBaseSchema() != other.hasBaseSchema()) + return false; + if (hasBaseSchema()) { + if (!getBaseSchema().equals(other.getBaseSchema())) + 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (getUnionTypesCount() > 0) { + hash = (37 * hash) + UNION_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getUnionTypesList().hashCode(); + } + hash = (37 * hash) + DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getDefault().hashCode(); + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (37 * hash) + SCHEMA_DOC_FIELD_NUMBER; + hash = (53 * hash) + getSchemaDoc().hashCode(); + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + if (getRequiredCount() > 0) { + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + getRequiredList().hashCode(); + } + if (hasKey()) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + } + if (hasItem()) { + hash = (37 * hash) + ITEM_FIELD_NUMBER; + hash = (53 * hash) + getItem().hashCode(); + } + hash = (37 * hash) + LINE_FIELD_NUMBER; + hash = (53 * hash) + getLine(); + if (getDecoratorsCount() > 0) { + hash = (37 * hash) + DECORATORS_FIELD_NUMBER; + hash = (53 * hash) + getDecoratorsList().hashCode(); + } + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFilename().hashCode(); + hash = (37 * hash) + PKG_PATH_FIELD_NUMBER; + hash = (53 * hash) + getPkgPath().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetExamples().getMap().isEmpty()) { + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetExamples().hashCode(); + } + if (hasBaseSchema()) { + hash = (37 * hash) + BASE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getBaseSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.KclType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.KclType 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.KclType parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.KclType 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.KclType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.KclType parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.KclType parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.KclType 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.KclType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.KclType 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.KclType parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.KclType 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.KclType 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 KCL type.
+         * 
+ * + * Protobuf type {@code com.kcl.api.KclType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.KclType) + com.kcl.api.Spec.KclTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KclType_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 6: + return internalGetProperties(); + case 15: + return internalGetExamples(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) { + switch (number) { + case 6: + return internalGetMutableProperties(); + case 15: + return internalGetMutableExamples(); + 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_KclType_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.KclType.class, + com.kcl.api.Spec.KclType.Builder.class); + } + + // Construct using com.kcl.api.Spec.KclType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getUnionTypesFieldBuilder(); + getKeyFieldBuilder(); + getItemFieldBuilder(); + getDecoratorsFieldBuilder(); + getBaseSchemaFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + if (unionTypesBuilder_ == null) { + unionTypes_ = java.util.Collections.emptyList(); + } else { + unionTypes_ = null; + unionTypesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + default_ = ""; + schemaName_ = ""; + schemaDoc_ = ""; + internalGetMutableProperties().clear(); + required_ = com.google.protobuf.LazyStringArrayList.emptyList(); + key_ = null; + if (keyBuilder_ != null) { + keyBuilder_.dispose(); + keyBuilder_ = null; + } + item_ = null; + if (itemBuilder_ != null) { + itemBuilder_.dispose(); + itemBuilder_ = null; + } + line_ = 0; + if (decoratorsBuilder_ == null) { + decorators_ = java.util.Collections.emptyList(); + } else { + decorators_ = null; + decoratorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + filename_ = ""; + pkgPath_ = ""; + description_ = ""; + internalGetMutableExamples().clear(); + baseSchema_ = null; + if (baseSchemaBuilder_ != null) { + baseSchemaBuilder_.dispose(); + baseSchemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_KclType_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.KclType getDefaultInstanceForType() { + return com.kcl.api.Spec.KclType.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.KclType build() { + com.kcl.api.Spec.KclType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.KclType buildPartial() { + com.kcl.api.Spec.KclType result = new com.kcl.api.Spec.KclType(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.kcl.api.Spec.KclType result) { + if (unionTypesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + unionTypes_ = java.util.Collections.unmodifiableList(unionTypes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unionTypes_ = unionTypes_; + } else { + result.unionTypes_ = unionTypesBuilder_.build(); + } + if (decoratorsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + decorators_ = java.util.Collections.unmodifiableList(decorators_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.decorators_ = decorators_; + } else { + result.decorators_ = decoratorsBuilder_.build(); + } + } + + private void buildPartial0(com.kcl.api.Spec.KclType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.default_ = default_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.schemaName_ = schemaName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.schemaDoc_ = schemaDoc_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.properties_ = internalGetProperties().build(PropertiesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + required_.makeImmutable(); + result.required_ = required_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.key_ = keyBuilder_ == null ? key_ : keyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.item_ = itemBuilder_ == null ? item_ : itemBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.line_ = line_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.filename_ = filename_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.pkgPath_ = pkgPath_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.examples_ = internalGetExamples().build(ExamplesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.baseSchema_ = baseSchemaBuilder_ == null ? baseSchema_ : baseSchemaBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.KclType) { + return mergeFrom((com.kcl.api.Spec.KclType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.KclType other) { + if (other == com.kcl.api.Spec.KclType.getDefaultInstance()) + return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (unionTypesBuilder_ == null) { + if (!other.unionTypes_.isEmpty()) { + if (unionTypes_.isEmpty()) { + unionTypes_ = other.unionTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnionTypesIsMutable(); + unionTypes_.addAll(other.unionTypes_); + } + onChanged(); + } + } else { + if (!other.unionTypes_.isEmpty()) { + if (unionTypesBuilder_.isEmpty()) { + unionTypesBuilder_.dispose(); + unionTypesBuilder_ = null; + unionTypes_ = other.unionTypes_; + bitField0_ = (bitField0_ & ~0x00000002); + unionTypesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getUnionTypesFieldBuilder() : null; + } else { + unionTypesBuilder_.addAllMessages(other.unionTypes_); + } + } + } + if (!other.getDefault().isEmpty()) { + default_ = other.default_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getSchemaDoc().isEmpty()) { + schemaDoc_ = other.schemaDoc_; + bitField0_ |= 0x00000010; + onChanged(); + } + internalGetMutableProperties().mergeFrom(other.internalGetProperties()); + bitField0_ |= 0x00000020; + if (!other.required_.isEmpty()) { + if (required_.isEmpty()) { + required_ = other.required_; + bitField0_ |= 0x00000040; + } else { + ensureRequiredIsMutable(); + required_.addAll(other.required_); + } + onChanged(); + } + if (other.hasKey()) { + mergeKey(other.getKey()); + } + if (other.hasItem()) { + mergeItem(other.getItem()); + } + if (other.getLine() != 0) { + setLine(other.getLine()); + } + if (decoratorsBuilder_ == null) { + if (!other.decorators_.isEmpty()) { + if (decorators_.isEmpty()) { + decorators_ = other.decorators_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureDecoratorsIsMutable(); + decorators_.addAll(other.decorators_); + } + onChanged(); + } + } else { + if (!other.decorators_.isEmpty()) { + if (decoratorsBuilder_.isEmpty()) { + decoratorsBuilder_.dispose(); + decoratorsBuilder_ = null; + decorators_ = other.decorators_; + bitField0_ = (bitField0_ & ~0x00000400); + decoratorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? getDecoratorsFieldBuilder() : null; + } else { + decoratorsBuilder_.addAllMessages(other.decorators_); + } + } + } + if (!other.getFilename().isEmpty()) { + filename_ = other.filename_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getPkgPath().isEmpty()) { + pkgPath_ = other.pkgPath_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00002000; + onChanged(); + } + internalGetMutableExamples().mergeFrom(other.internalGetExamples()); + bitField0_ |= 0x00004000; + if (other.hasBaseSchema()) { + mergeBaseSchema(other.getBaseSchema()); + } + 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: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.kcl.api.Spec.KclType m = input.readMessage(com.kcl.api.Spec.KclType.parser(), + extensionRegistry); + if (unionTypesBuilder_ == null) { + ensureUnionTypesIsMutable(); + unionTypes_.add(m); + } else { + unionTypesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + default_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + schemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + schemaDoc_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry properties__ = input + .readMessage(PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableProperties().ensureBuilderMap().put(properties__.getKey(), + properties__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRequiredIsMutable(); + required_.add(s); + break; + } // case 58 + case 66: { + input.readMessage(getKeyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage(getItemFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + line_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + com.kcl.api.Spec.Decorator m = input.readMessage(com.kcl.api.Spec.Decorator.parser(), + extensionRegistry); + if (decoratorsBuilder_ == null) { + ensureDecoratorsIsMutable(); + decorators_.add(m); + } else { + decoratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 98: { + filename_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + pkgPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + com.google.protobuf.MapEntry examples__ = input + .readMessage(ExamplesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableExamples().ensureBuilderMap().put(examples__.getKey(), + examples__.getValue()); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + input.readMessage(getBaseSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + 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 type_ = ""; + + /** + *
+             * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+             * 
+ * + * string type = 1; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+             * 
+ * + * string type = 1; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+             * 
+ * + * string type = 1; + * + * @param value + * The type to set. + * + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+             * 
+ * + * string type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Type name (e.g., schema, dict, list, str, int, float, bool, any, union, number_multiplier).
+             * 
+ * + * string type = 1; + * + * @param value + * The bytes for type to set. + * + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List unionTypes_ = java.util.Collections.emptyList(); + + private void ensureUnionTypesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unionTypes_ = new java.util.ArrayList(unionTypes_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder unionTypesBuilder_; + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public java.util.List getUnionTypesList() { + if (unionTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(unionTypes_); + } else { + return unionTypesBuilder_.getMessageList(); + } + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public int getUnionTypesCount() { + if (unionTypesBuilder_ == null) { + return unionTypes_.size(); + } else { + return unionTypesBuilder_.getCount(); + } + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public com.kcl.api.Spec.KclType getUnionTypes(int index) { + if (unionTypesBuilder_ == null) { + return unionTypes_.get(index); + } else { + return unionTypesBuilder_.getMessage(index); + } + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder setUnionTypes(int index, com.kcl.api.Spec.KclType value) { + if (unionTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnionTypesIsMutable(); + unionTypes_.set(index, value); + onChanged(); + } else { + unionTypesBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder setUnionTypes(int index, com.kcl.api.Spec.KclType.Builder builderForValue) { + if (unionTypesBuilder_ == null) { + ensureUnionTypesIsMutable(); + unionTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + unionTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder addUnionTypes(com.kcl.api.Spec.KclType value) { + if (unionTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnionTypesIsMutable(); + unionTypes_.add(value); + onChanged(); + } else { + unionTypesBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder addUnionTypes(int index, com.kcl.api.Spec.KclType value) { + if (unionTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnionTypesIsMutable(); + unionTypes_.add(index, value); + onChanged(); + } else { + unionTypesBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder addUnionTypes(com.kcl.api.Spec.KclType.Builder builderForValue) { + if (unionTypesBuilder_ == null) { + ensureUnionTypesIsMutable(); + unionTypes_.add(builderForValue.build()); + onChanged(); + } else { + unionTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder addUnionTypes(int index, com.kcl.api.Spec.KclType.Builder builderForValue) { + if (unionTypesBuilder_ == null) { + ensureUnionTypesIsMutable(); + unionTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + unionTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder addAllUnionTypes(java.lang.Iterable values) { + if (unionTypesBuilder_ == null) { + ensureUnionTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unionTypes_); + onChanged(); + } else { + unionTypesBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder clearUnionTypes() { + if (unionTypesBuilder_ == null) { + unionTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + unionTypesBuilder_.clear(); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public Builder removeUnionTypes(int index) { + if (unionTypesBuilder_ == null) { + ensureUnionTypesIsMutable(); + unionTypes_.remove(index); + onChanged(); + } else { + unionTypesBuilder_.remove(index); + } + return this; + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public com.kcl.api.Spec.KclType.Builder getUnionTypesBuilder(int index) { + return getUnionTypesFieldBuilder().getBuilder(index); + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public com.kcl.api.Spec.KclTypeOrBuilder getUnionTypesOrBuilder(int index) { + if (unionTypesBuilder_ == null) { + return unionTypes_.get(index); + } else { + return unionTypesBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public java.util.List getUnionTypesOrBuilderList() { + if (unionTypesBuilder_ != null) { + return unionTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(unionTypes_); + } + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public com.kcl.api.Spec.KclType.Builder addUnionTypesBuilder() { + return getUnionTypesFieldBuilder().addBuilder(com.kcl.api.Spec.KclType.getDefaultInstance()); + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public com.kcl.api.Spec.KclType.Builder addUnionTypesBuilder(int index) { + return getUnionTypesFieldBuilder().addBuilder(index, com.kcl.api.Spec.KclType.getDefaultInstance()); + } + + /** + *
+             * Union types if applicable.
+             * 
+ * + * repeated .com.kcl.api.KclType union_types = 2; + */ + public java.util.List getUnionTypesBuilderList() { + return getUnionTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getUnionTypesFieldBuilder() { + if (unionTypesBuilder_ == null) { + unionTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + unionTypes_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + unionTypes_ = null; + } + return unionTypesBuilder_; + } + + private java.lang.Object default_ = ""; + + /** + *
+             * Default value of the type.
+             * 
+ * + * string default = 3; + * + * @return The default. + */ + public java.lang.String getDefault() { + java.lang.Object ref = default_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + default_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Default value of the type.
+             * 
+ * + * string default = 3; + * + * @return The bytes for default. + */ + public com.google.protobuf.ByteString getDefaultBytes() { + java.lang.Object ref = default_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + default_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Default value of the type.
+             * 
+ * + * string default = 3; + * + * @param value + * The default to set. + * + * @return This builder for chaining. + */ + public Builder setDefault(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Default value of the type.
+             * 
+ * + * string default = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefault() { + default_ = getDefaultInstance().getDefault(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Default value of the type.
+             * 
+ * + * string default = 3; + * + * @param value + * The bytes for default to set. + * + * @return This builder for chaining. + */ + public Builder setDefaultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + default_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object schemaName_ = ""; + + /** + *
+             * Name of the schema if applicable.
+             * 
+ * + * string schema_name = 4; + * + * @return The schemaName. + */ + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Name of the schema if applicable.
+             * 
+ * + * string schema_name = 4; + * + * @return The bytes for schemaName. + */ + public com.google.protobuf.ByteString getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Name of the schema if applicable.
+             * 
+ * + * string schema_name = 4; + * + * @param value + * The schemaName to set. + * + * @return This builder for chaining. + */ + public Builder setSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schemaName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + *
+             * Name of the schema if applicable.
+             * 
+ * + * string schema_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearSchemaName() { + schemaName_ = getDefaultInstance().getSchemaName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + *
+             * Name of the schema if applicable.
+             * 
+ * + * string schema_name = 4; + * + * @param value + * The bytes for schemaName to set. + * + * @return This builder for chaining. + */ + public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object schemaDoc_ = ""; + + /** + *
+             * Documentation for the schema.
+             * 
+ * + * string schema_doc = 5; + * + * @return The schemaDoc. + */ + public java.lang.String getSchemaDoc() { + java.lang.Object ref = schemaDoc_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaDoc_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Documentation for the schema.
+             * 
+ * + * string schema_doc = 5; + * + * @return The bytes for schemaDoc. + */ + public com.google.protobuf.ByteString getSchemaDocBytes() { + java.lang.Object ref = schemaDoc_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + schemaDoc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Documentation for the schema.
+             * 
+ * + * string schema_doc = 5; + * + * @param value + * The schemaDoc to set. + * + * @return This builder for chaining. + */ + public Builder setSchemaDoc(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schemaDoc_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + *
+             * Documentation for the schema.
+             * 
+ * + * string schema_doc = 5; + * + * @return This builder for chaining. + */ + public Builder clearSchemaDoc() { + schemaDoc_ = getDefaultInstance().getSchemaDoc(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + *
+             * Documentation for the schema.
+             * 
+ * + * string schema_doc = 5; + * + * @param value + * The bytes for schemaDoc to set. + * + * @return This builder for chaining. + */ + public Builder setSchemaDocBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaDoc_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private static final class PropertiesConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.KclType build(com.kcl.api.Spec.KclTypeOrBuilder val) { + if (val instanceof com.kcl.api.Spec.KclType) { + return (com.kcl.api.Spec.KclType) val; + } + return ((com.kcl.api.Spec.KclType.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return PropertiesDefaultEntryHolder.defaultEntry; + } + }; + + private static final PropertiesConverter propertiesConverter = new PropertiesConverter(); + + private com.google.protobuf.MapFieldBuilder properties_; + + private com.google.protobuf.MapFieldBuilder internalGetProperties() { + if (properties_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + return properties_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutableProperties() { + if (properties_ == null) { + properties_ = new com.google.protobuf.MapFieldBuilder<>(propertiesConverter); + } + bitField0_ |= 0x00000020; + onChanged(); + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().ensureBuilderMap().size(); + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public boolean containsProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetProperties().ensureBuilderMap().containsKey(key); + } + + /** + * Use {@link #getPropertiesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public java.util.Map getPropertiesMap() { + return internalGetProperties().getImmutableMap(); + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.KclType getPropertiesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.KclType defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableProperties() + .ensureBuilderMap(); + return map.containsKey(key) ? propertiesConverter.build(map.get(key)) : defaultValue; + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + @java.lang.Override + public com.kcl.api.Spec.KclType getPropertiesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableProperties() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return propertiesConverter.build(map.get(key)); + } + + public Builder clearProperties() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableProperties().clear(); + return this; + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + public Builder removeProperties(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableProperties().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableProperties() { + bitField0_ |= 0x00000020; + return internalGetMutableProperties().ensureMessageMap(); + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + public Builder putProperties(java.lang.String key, com.kcl.api.Spec.KclType value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableProperties().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + public Builder putAllProperties(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableProperties().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + /** + *
+             * Properties of the schema as a map with property name as key.
+             * 
+ * + * map<string, .com.kcl.api.KclType> properties = 6; + */ + public com.kcl.api.Spec.KclType.Builder putPropertiesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableProperties() + .ensureBuilderMap(); + com.kcl.api.Spec.KclTypeOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.KclType.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.KclType) { + entry = ((com.kcl.api.Spec.KclType) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.KclType.Builder) entry; + } + + private com.google.protobuf.LazyStringArrayList required_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureRequiredIsMutable() { + if (!required_.isModifiable()) { + required_ = new com.google.protobuf.LazyStringArrayList(required_); + } + bitField0_ |= 0x00000040; + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @return A list containing the required. + */ + public com.google.protobuf.ProtocolStringList getRequiredList() { + required_.makeImmutable(); + return required_; + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @return The count of required. + */ + public int getRequiredCount() { + return required_.size(); + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @param index + * The index of the element to return. + * + * @return The required at the given index. + */ + public java.lang.String getRequired(int index) { + return required_.get(index); + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the required at the given index. + */ + public com.google.protobuf.ByteString getRequiredBytes(int index) { + return required_.getByteString(index); + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @param index + * The index to set the value at. + * @param value + * The required to set. + * + * @return This builder for chaining. + */ + public Builder setRequired(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredIsMutable(); + required_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @param value + * The required to add. + * + * @return This builder for chaining. + */ + public Builder addRequired(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequiredIsMutable(); + required_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @param values + * The required to add. + * + * @return This builder for chaining. + */ + public Builder addAllRequired(java.lang.Iterable values) { + ensureRequiredIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, required_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @return This builder for chaining. + */ + public Builder clearRequired() { + required_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + *
+             * List of required schema properties.
+             * 
+ * + * repeated string required = 7; + * + * @param value + * The bytes of the required to add. + * + * @return This builder for chaining. + */ + public Builder addRequiredBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRequiredIsMutable(); + required_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.kcl.api.Spec.KclType key_; + private com.google.protobuf.SingleFieldBuilder keyBuilder_; + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + * + * @return Whether the key field is set. + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + * + * @return The key. + */ + public com.kcl.api.Spec.KclType getKey() { + if (keyBuilder_ == null) { + return key_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : key_; + } else { + return keyBuilder_.getMessage(); + } + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + */ + public Builder setKey(com.kcl.api.Spec.KclType value) { + if (keyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + } else { + keyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + */ + public Builder setKey(com.kcl.api.Spec.KclType.Builder builderForValue) { + if (keyBuilder_ == null) { + key_ = builderForValue.build(); + } else { + keyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + */ + public Builder mergeKey(com.kcl.api.Spec.KclType value) { + if (keyBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && key_ != null + && key_ != com.kcl.api.Spec.KclType.getDefaultInstance()) { + getKeyBuilder().mergeFrom(value); + } else { + key_ = value; + } + } else { + keyBuilder_.mergeFrom(value); + } + if (key_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000080); + key_ = null; + if (keyBuilder_ != null) { + keyBuilder_.dispose(); + keyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + */ + public com.kcl.api.Spec.KclType.Builder getKeyBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getKeyFieldBuilder().getBuilder(); + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + */ + public com.kcl.api.Spec.KclTypeOrBuilder getKeyOrBuilder() { + if (keyBuilder_ != null) { + return keyBuilder_.getMessageOrBuilder(); + } else { + return key_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : key_; + } + } + + /** + *
+             * Key type if the KclType is a dictionary.
+             * 
+ * + * .com.kcl.api.KclType key = 8; + */ + private com.google.protobuf.SingleFieldBuilder getKeyFieldBuilder() { + if (keyBuilder_ == null) { + keyBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getKey(), getParentForChildren(), isClean()); + key_ = null; + } + return keyBuilder_; + } + + private com.kcl.api.Spec.KclType item_; + private com.google.protobuf.SingleFieldBuilder itemBuilder_; + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + * + * @return Whether the item field is set. + */ + public boolean hasItem() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + * + * @return The item. + */ + public com.kcl.api.Spec.KclType getItem() { + if (itemBuilder_ == null) { + return item_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : item_; + } else { + return itemBuilder_.getMessage(); + } + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + */ + public Builder setItem(com.kcl.api.Spec.KclType value) { + if (itemBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + item_ = value; + } else { + itemBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + */ + public Builder setItem(com.kcl.api.Spec.KclType.Builder builderForValue) { + if (itemBuilder_ == null) { + item_ = builderForValue.build(); + } else { + itemBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + */ + public Builder mergeItem(com.kcl.api.Spec.KclType value) { + if (itemBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && item_ != null + && item_ != com.kcl.api.Spec.KclType.getDefaultInstance()) { + getItemBuilder().mergeFrom(value); + } else { + item_ = value; + } + } else { + itemBuilder_.mergeFrom(value); + } + if (item_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + */ + public Builder clearItem() { + bitField0_ = (bitField0_ & ~0x00000100); + item_ = null; + if (itemBuilder_ != null) { + itemBuilder_.dispose(); + itemBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + */ + public com.kcl.api.Spec.KclType.Builder getItemBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getItemFieldBuilder().getBuilder(); + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + */ + public com.kcl.api.Spec.KclTypeOrBuilder getItemOrBuilder() { + if (itemBuilder_ != null) { + return itemBuilder_.getMessageOrBuilder(); + } else { + return item_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : item_; + } + } + + /** + *
+             * Item type if the KclType is a list or dictionary.
+             * 
+ * + * .com.kcl.api.KclType item = 9; + */ + private com.google.protobuf.SingleFieldBuilder getItemFieldBuilder() { + if (itemBuilder_ == null) { + itemBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getItem(), getParentForChildren(), isClean()); + item_ = null; + } + return itemBuilder_; + } + + private int line_; + + /** + *
+             * Line number where the type is defined.
+             * 
+ * + * int32 line = 10; + * + * @return The line. + */ + @java.lang.Override + public int getLine() { + return line_; + } + + /** + *
+             * Line number where the type is defined.
+             * 
+ * + * int32 line = 10; + * + * @param value + * The line to set. + * + * @return This builder for chaining. + */ + public Builder setLine(int value) { + + line_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + *
+             * Line number where the type is defined.
+             * 
+ * + * int32 line = 10; + * + * @return This builder for chaining. + */ + public Builder clearLine() { + bitField0_ = (bitField0_ & ~0x00000200); + line_ = 0; + onChanged(); + return this; + } + + private java.util.List decorators_ = java.util.Collections.emptyList(); + + private void ensureDecoratorsIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + decorators_ = new java.util.ArrayList(decorators_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder decoratorsBuilder_; + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public java.util.List getDecoratorsList() { + if (decoratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(decorators_); + } else { + return decoratorsBuilder_.getMessageList(); + } + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public int getDecoratorsCount() { + if (decoratorsBuilder_ == null) { + return decorators_.size(); + } else { + return decoratorsBuilder_.getCount(); + } + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public com.kcl.api.Spec.Decorator getDecorators(int index) { + if (decoratorsBuilder_ == null) { + return decorators_.get(index); + } else { + return decoratorsBuilder_.getMessage(index); + } + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder setDecorators(int index, com.kcl.api.Spec.Decorator value) { + if (decoratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecoratorsIsMutable(); + decorators_.set(index, value); + onChanged(); + } else { + decoratorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder setDecorators(int index, com.kcl.api.Spec.Decorator.Builder builderForValue) { + if (decoratorsBuilder_ == null) { + ensureDecoratorsIsMutable(); + decorators_.set(index, builderForValue.build()); + onChanged(); + } else { + decoratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder addDecorators(com.kcl.api.Spec.Decorator value) { + if (decoratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecoratorsIsMutable(); + decorators_.add(value); + onChanged(); + } else { + decoratorsBuilder_.addMessage(value); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder addDecorators(int index, com.kcl.api.Spec.Decorator value) { + if (decoratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecoratorsIsMutable(); + decorators_.add(index, value); + onChanged(); + } else { + decoratorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder addDecorators(com.kcl.api.Spec.Decorator.Builder builderForValue) { + if (decoratorsBuilder_ == null) { + ensureDecoratorsIsMutable(); + decorators_.add(builderForValue.build()); + onChanged(); + } else { + decoratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder addDecorators(int index, com.kcl.api.Spec.Decorator.Builder builderForValue) { + if (decoratorsBuilder_ == null) { + ensureDecoratorsIsMutable(); + decorators_.add(index, builderForValue.build()); + onChanged(); + } else { + decoratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder addAllDecorators(java.lang.Iterable values) { + if (decoratorsBuilder_ == null) { + ensureDecoratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, decorators_); + onChanged(); + } else { + decoratorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder clearDecorators() { + if (decoratorsBuilder_ == null) { + decorators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + decoratorsBuilder_.clear(); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public Builder removeDecorators(int index) { + if (decoratorsBuilder_ == null) { + ensureDecoratorsIsMutable(); + decorators_.remove(index); + onChanged(); + } else { + decoratorsBuilder_.remove(index); + } + return this; + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public com.kcl.api.Spec.Decorator.Builder getDecoratorsBuilder(int index) { + return getDecoratorsFieldBuilder().getBuilder(index); + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public com.kcl.api.Spec.DecoratorOrBuilder getDecoratorsOrBuilder(int index) { + if (decoratorsBuilder_ == null) { + return decorators_.get(index); + } else { + return decoratorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public java.util.List getDecoratorsOrBuilderList() { + if (decoratorsBuilder_ != null) { + return decoratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(decorators_); + } + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public com.kcl.api.Spec.Decorator.Builder addDecoratorsBuilder() { + return getDecoratorsFieldBuilder().addBuilder(com.kcl.api.Spec.Decorator.getDefaultInstance()); + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public com.kcl.api.Spec.Decorator.Builder addDecoratorsBuilder(int index) { + return getDecoratorsFieldBuilder().addBuilder(index, com.kcl.api.Spec.Decorator.getDefaultInstance()); + } + + /** + *
+             * List of decorators for the schema.
+             * 
+ * + * repeated .com.kcl.api.Decorator decorators = 11; + */ + public java.util.List getDecoratorsBuilderList() { + return getDecoratorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder getDecoratorsFieldBuilder() { + if (decoratorsBuilder_ == null) { + decoratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder( + decorators_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + decorators_ = null; + } + return decoratorsBuilder_; + } + + private java.lang.Object filename_ = ""; + + /** + *
+             * Absolute path of the file where the attribute is located.
+             * 
+ * + * string filename = 12; + * + * @return The filename. + */ + public java.lang.String getFilename() { + java.lang.Object ref = filename_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filename_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Absolute path of the file where the attribute is located.
+             * 
+ * + * string filename = 12; + * + * @return The bytes for filename. + */ + public com.google.protobuf.ByteString getFilenameBytes() { + java.lang.Object ref = filename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Absolute path of the file where the attribute is located.
+             * 
+ * + * string filename = 12; + * + * @param value + * The filename to set. + * + * @return This builder for chaining. + */ + public Builder setFilename(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filename_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + *
+             * Absolute path of the file where the attribute is located.
+             * 
+ * + * string filename = 12; + * + * @return This builder for chaining. + */ + public Builder clearFilename() { + filename_ = getDefaultInstance().getFilename(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + *
+             * Absolute path of the file where the attribute is located.
+             * 
+ * + * string filename = 12; + * + * @param value + * The bytes for filename to set. + * + * @return This builder for chaining. + */ + public Builder setFilenameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filename_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object pkgPath_ = ""; + + /** + *
+             * Path of the package where the attribute is located.
+             * 
+ * + * string pkg_path = 13; + * + * @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 where the attribute is located.
+             * 
+ * + * string pkg_path = 13; + * + * @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 where the attribute is located.
+             * 
+ * + * string pkg_path = 13; + * + * @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_ |= 0x00001000; + onChanged(); + return this; + } + + /** + *
+             * Path of the package where the attribute is located.
+             * 
+ * + * string pkg_path = 13; + * + * @return This builder for chaining. + */ + public Builder clearPkgPath() { + pkgPath_ = getDefaultInstance().getPkgPath(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + *
+             * Path of the package where the attribute is located.
+             * 
+ * + * string pkg_path = 13; + * + * @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_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + *
+             * Documentation for the attribute.
+             * 
+ * + * string description = 14; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Documentation for the attribute.
+             * 
+ * + * string description = 14; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Documentation for the attribute.
+             * 
+ * + * string description = 14; + * + * @param value + * The description to set. + * + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + *
+             * Documentation for the attribute.
+             * 
+ * + * string description = 14; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + *
+             * Documentation for the attribute.
+             * 
+ * + * string description = 14; + * + * @param value + * The bytes for description to set. + * + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private static final class ExamplesConverter implements + com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public com.kcl.api.Spec.Example build(com.kcl.api.Spec.ExampleOrBuilder val) { + if (val instanceof com.kcl.api.Spec.Example) { + return (com.kcl.api.Spec.Example) val; + } + return ((com.kcl.api.Spec.Example.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ExamplesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ExamplesConverter examplesConverter = new ExamplesConverter(); + + private com.google.protobuf.MapFieldBuilder examples_; + + private com.google.protobuf.MapFieldBuilder internalGetExamples() { + if (examples_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(examplesConverter); + } + return examples_; + } + + private com.google.protobuf.MapFieldBuilder internalGetMutableExamples() { + if (examples_ == null) { + examples_ = new com.google.protobuf.MapFieldBuilder<>(examplesConverter); + } + bitField0_ |= 0x00004000; + onChanged(); + return examples_; + } + + public int getExamplesCount() { + return internalGetExamples().ensureBuilderMap().size(); + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public boolean containsExamples(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetExamples().ensureBuilderMap().containsKey(key); + } + + /** + * Use {@link #getExamplesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getExamples() { + return getExamplesMap(); + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public java.util.Map getExamplesMap() { + return internalGetExamples().getImmutableMap(); + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public /* nullable */ + com.kcl.api.Spec.Example getExamplesOrDefault(java.lang.String key, + /* nullable */ + com.kcl.api.Spec.Example defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableExamples() + .ensureBuilderMap(); + return map.containsKey(key) ? examplesConverter.build(map.get(key)) : defaultValue; + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + @java.lang.Override + public com.kcl.api.Spec.Example getExamplesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMutableExamples() + .ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return examplesConverter.build(map.get(key)); + } + + public Builder clearExamples() { + bitField0_ = (bitField0_ & ~0x00004000); + internalGetMutableExamples().clear(); + return this; + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + public Builder removeExamples(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableExamples().ensureBuilderMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableExamples() { + bitField0_ |= 0x00004000; + return internalGetMutableExamples().ensureMessageMap(); + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + public Builder putExamples(java.lang.String key, com.kcl.api.Spec.Example value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableExamples().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00004000; + return this; + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + public Builder putAllExamples(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableExamples().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00004000; + return this; + } + + /** + *
+             * Map of examples with example name as key.
+             * 
+ * + * map<string, .com.kcl.api.Example> examples = 15; + */ + public com.kcl.api.Spec.Example.Builder putExamplesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = internalGetMutableExamples() + .ensureBuilderMap(); + com.kcl.api.Spec.ExampleOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.kcl.api.Spec.Example.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.kcl.api.Spec.Example) { + entry = ((com.kcl.api.Spec.Example) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.kcl.api.Spec.Example.Builder) entry; + } + + private com.kcl.api.Spec.KclType baseSchema_; + private com.google.protobuf.SingleFieldBuilder baseSchemaBuilder_; + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + * + * @return Whether the baseSchema field is set. + */ + public boolean hasBaseSchema() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + * + * @return The baseSchema. + */ + public com.kcl.api.Spec.KclType getBaseSchema() { + if (baseSchemaBuilder_ == null) { + return baseSchema_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : baseSchema_; + } else { + return baseSchemaBuilder_.getMessage(); + } + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + public Builder setBaseSchema(com.kcl.api.Spec.KclType value) { + if (baseSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + baseSchema_ = value; + } else { + baseSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + public Builder setBaseSchema(com.kcl.api.Spec.KclType.Builder builderForValue) { + if (baseSchemaBuilder_ == null) { + baseSchema_ = builderForValue.build(); + } else { + baseSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + public Builder mergeBaseSchema(com.kcl.api.Spec.KclType value) { + if (baseSchemaBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && baseSchema_ != null + && baseSchema_ != com.kcl.api.Spec.KclType.getDefaultInstance()) { + getBaseSchemaBuilder().mergeFrom(value); + } else { + baseSchema_ = value; + } + } else { + baseSchemaBuilder_.mergeFrom(value); + } + if (baseSchema_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + public Builder clearBaseSchema() { + bitField0_ = (bitField0_ & ~0x00008000); + baseSchema_ = null; + if (baseSchemaBuilder_ != null) { + baseSchemaBuilder_.dispose(); + baseSchemaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + public com.kcl.api.Spec.KclType.Builder getBaseSchemaBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getBaseSchemaFieldBuilder().getBuilder(); + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + public com.kcl.api.Spec.KclTypeOrBuilder getBaseSchemaOrBuilder() { + if (baseSchemaBuilder_ != null) { + return baseSchemaBuilder_.getMessageOrBuilder(); + } else { + return baseSchema_ == null ? com.kcl.api.Spec.KclType.getDefaultInstance() : baseSchema_; + } + } + + /** + *
+             * Base schema if applicable.
+             * 
+ * + * .com.kcl.api.KclType base_schema = 16; + */ + private com.google.protobuf.SingleFieldBuilder getBaseSchemaFieldBuilder() { + if (baseSchemaBuilder_ == null) { + baseSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilder( + getBaseSchema(), getParentForChildren(), isClean()); + baseSchema_ = null; + } + return baseSchemaBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.KclType) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.KclType) + private static final com.kcl.api.Spec.KclType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.KclType(); + } + + public static com.kcl.api.Spec.KclType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KclType 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.KclType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DecoratorOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Decorator) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Name of the decorator.
+         * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + *
+         * Name of the decorator.
+         * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @return A list containing the arguments. + */ + java.util.List getArgumentsList(); + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @return The count of arguments. + */ + int getArgumentsCount(); + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @param index + * The index of the element to return. + * + * @return The arguments at the given index. + */ + java.lang.String getArguments(int index); + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the arguments at the given index. + */ + com.google.protobuf.ByteString getArgumentsBytes(int index); + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + int getKeywordsCount(); + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + boolean containsKeywords(java.lang.String key); + + /** + * Use {@link #getKeywordsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map getKeywords(); + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + java.util.Map getKeywordsMap(); + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + /* nullable */ + java.lang.String getKeywordsOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + java.lang.String getKeywordsOrThrow(java.lang.String key); + } + + /** + *
+     * Message representing a decorator in KCL.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Decorator} + */ + public static final class Decorator extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Decorator) + DecoratorOrBuilder { + 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= */ "", Decorator.class.getName()); + } + + // Use Decorator.newBuilder() to construct. + private Decorator(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Decorator() { + name_ = ""; + arguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Decorator_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 3: + return internalGetKeywords(); + 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_Decorator_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Decorator.class, + com.kcl.api.Spec.Decorator.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + *
+         * Name of the decorator.
+         * 
+ * + * 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 decorator.
+         * 
+ * + * 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 ARGUMENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList arguments_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @return A list containing the arguments. + */ + public com.google.protobuf.ProtocolStringList getArgumentsList() { + return arguments_; + } + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @return The count of arguments. + */ + public int getArgumentsCount() { + return arguments_.size(); + } + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @param index + * The index of the element to return. + * + * @return The arguments at the given index. + */ + public java.lang.String getArguments(int index) { + return arguments_.get(index); + } + + /** + *
+         * Arguments for the decorator.
+         * 
+ * + * repeated string arguments = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the arguments at the given index. + */ + public com.google.protobuf.ByteString getArgumentsBytes(int index) { + return arguments_.getByteString(index); + } + + public static final int KEYWORDS_FIELD_NUMBER = 3; + + private static final class KeywordsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry. newDefaultInstance( + com.kcl.api.Spec.internal_static_com_kcl_api_Decorator_KeywordsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, "", + com.google.protobuf.WireFormat.FieldType.STRING, ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField keywords_; + + private com.google.protobuf.MapField internalGetKeywords() { + if (keywords_ == null) { + return com.google.protobuf.MapField.emptyMapField(KeywordsDefaultEntryHolder.defaultEntry); + } + return keywords_; + } + + public int getKeywordsCount() { + return internalGetKeywords().getMap().size(); + } + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public boolean containsKeywords(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetKeywords().getMap().containsKey(key); + } + + /** + * Use {@link #getKeywordsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getKeywords() { + return getKeywordsMap(); + } + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public java.util.Map getKeywordsMap() { + return internalGetKeywords().getMap(); + } + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public /* nullable */ + java.lang.String getKeywordsOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetKeywords().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+         * Keyword arguments for the decorator as a map with keyword name as key.
+         * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public java.lang.String getKeywordsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetKeywords().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(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < arguments_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, arguments_.getRaw(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetKeywords(), + KeywordsDefaultEntryHolder.defaultEntry, 3); + 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_); + } + { + int dataSize = 0; + for (int i = 0; i < arguments_.size(); i++) { + dataSize += computeStringSizeNoTag(arguments_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgumentsList().size(); + } + for (java.util.Map.Entry entry : internalGetKeywords().getMap() + .entrySet()) { + com.google.protobuf.MapEntry keywords__ = KeywordsDefaultEntryHolder.defaultEntry + .newBuilderForType().setKey(entry.getKey()).setValue(entry.getValue()).build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, keywords__); + } + 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.Decorator)) { + return super.equals(obj); + } + com.kcl.api.Spec.Decorator other = (com.kcl.api.Spec.Decorator) obj; + + if (!getName().equals(other.getName())) + return false; + if (!getArgumentsList().equals(other.getArgumentsList())) + return false; + if (!internalGetKeywords().equals(other.internalGetKeywords())) + 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(); + if (getArgumentsCount() > 0) { + hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; + hash = (53 * hash) + getArgumentsList().hashCode(); + } + if (!internalGetKeywords().getMap().isEmpty()) { + hash = (37 * hash) + KEYWORDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetKeywords().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.kcl.api.Spec.Decorator parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Decorator 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.Decorator parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Decorator 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.Decorator parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Decorator parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.Decorator parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Decorator 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.Decorator parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Decorator 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.Decorator parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Decorator 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.Decorator 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 decorator in KCL.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Decorator} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Decorator) + com.kcl.api.Spec.DecoratorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Decorator_descriptor; + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) { + switch (number) { + case 3: + return internalGetKeywords(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({ "rawtypes" }) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) { + switch (number) { + case 3: + return internalGetMutableKeywords(); + 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_Decorator_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Decorator.class, + com.kcl.api.Spec.Decorator.Builder.class); + } + + // Construct using com.kcl.api.Spec.Decorator.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + arguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + internalGetMutableKeywords().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Decorator_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Decorator getDefaultInstanceForType() { + return com.kcl.api.Spec.Decorator.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Decorator build() { + com.kcl.api.Spec.Decorator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Decorator buildPartial() { + com.kcl.api.Spec.Decorator result = new com.kcl.api.Spec.Decorator(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.Decorator result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + arguments_.makeImmutable(); + result.arguments_ = arguments_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.keywords_ = internalGetKeywords(); + result.keywords_.makeImmutable(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Decorator) { + return mergeFrom((com.kcl.api.Spec.Decorator) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Decorator other) { + if (other == com.kcl.api.Spec.Decorator.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.arguments_.isEmpty()) { + if (arguments_.isEmpty()) { + arguments_ = other.arguments_; + bitField0_ |= 0x00000002; + } else { + ensureArgumentsIsMutable(); + arguments_.addAll(other.arguments_); + } + onChanged(); + } + internalGetMutableKeywords().mergeFrom(other.internalGetKeywords()); + bitField0_ |= 0x00000004; + 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: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgumentsIsMutable(); + arguments_.add(s); + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry keywords__ = input + .readMessage(KeywordsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableKeywords().getMutableMap().put(keywords__.getKey(), + keywords__.getValue()); + bitField0_ |= 0x00000004; + 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 name_ = ""; + + /** + *
+             * Name of the decorator.
+             * 
+ * + * 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 decorator.
+             * 
+ * + * 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 decorator.
+             * 
+ * + * 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 decorator.
+             * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Name of the decorator.
+             * 
+ * + * 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 com.google.protobuf.LazyStringArrayList arguments_ = com.google.protobuf.LazyStringArrayList + .emptyList(); + + private void ensureArgumentsIsMutable() { + if (!arguments_.isModifiable()) { + arguments_ = new com.google.protobuf.LazyStringArrayList(arguments_); + } + bitField0_ |= 0x00000002; + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @return A list containing the arguments. + */ + public com.google.protobuf.ProtocolStringList getArgumentsList() { + arguments_.makeImmutable(); + return arguments_; + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @return The count of arguments. + */ + public int getArgumentsCount() { + return arguments_.size(); + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @param index + * The index of the element to return. + * + * @return The arguments at the given index. + */ + public java.lang.String getArguments(int index) { + return arguments_.get(index); + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @param index + * The index of the value to return. + * + * @return The bytes of the arguments at the given index. + */ + public com.google.protobuf.ByteString getArgumentsBytes(int index) { + return arguments_.getByteString(index); + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @param index + * The index to set the value at. + * @param value + * The arguments to set. + * + * @return This builder for chaining. + */ + public Builder setArguments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgumentsIsMutable(); + arguments_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @param value + * The arguments to add. + * + * @return This builder for chaining. + */ + public Builder addArguments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgumentsIsMutable(); + arguments_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @param values + * The arguments to add. + * + * @return This builder for chaining. + */ + public Builder addAllArguments(java.lang.Iterable values) { + ensureArgumentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, arguments_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @return This builder for chaining. + */ + public Builder clearArguments() { + arguments_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + *
+             * Arguments for the decorator.
+             * 
+ * + * repeated string arguments = 2; + * + * @param value + * The bytes of the arguments to add. + * + * @return This builder for chaining. + */ + public Builder addArgumentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgumentsIsMutable(); + arguments_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.MapField keywords_; + + private com.google.protobuf.MapField internalGetKeywords() { + if (keywords_ == null) { + return com.google.protobuf.MapField.emptyMapField(KeywordsDefaultEntryHolder.defaultEntry); + } + return keywords_; + } + + private com.google.protobuf.MapField internalGetMutableKeywords() { + if (keywords_ == null) { + keywords_ = com.google.protobuf.MapField.newMapField(KeywordsDefaultEntryHolder.defaultEntry); + } + if (!keywords_.isMutable()) { + keywords_ = keywords_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return keywords_; + } + + public int getKeywordsCount() { + return internalGetKeywords().getMap().size(); + } + + /** + *
+             * Keyword arguments for the decorator as a map with keyword name as key.
+             * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public boolean containsKeywords(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetKeywords().getMap().containsKey(key); + } + + /** + * Use {@link #getKeywordsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getKeywords() { + return getKeywordsMap(); + } + + /** + *
+             * Keyword arguments for the decorator as a map with keyword name as key.
+             * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public java.util.Map getKeywordsMap() { + return internalGetKeywords().getMap(); + } + + /** + *
+             * Keyword arguments for the decorator as a map with keyword name as key.
+             * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public /* nullable */ + java.lang.String getKeywordsOrDefault(java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetKeywords().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + *
+             * Keyword arguments for the decorator as a map with keyword name as key.
+             * 
+ * + * map<string, string> keywords = 3; + */ + @java.lang.Override + public java.lang.String getKeywordsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetKeywords().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearKeywords() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableKeywords().getMutableMap().clear(); + return this; + } + + /** + *
+             * Keyword arguments for the decorator as a map with keyword name as key.
+             * 
+ * + * map<string, string> keywords = 3; + */ + public Builder removeKeywords(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableKeywords().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableKeywords() { + bitField0_ |= 0x00000004; + return internalGetMutableKeywords().getMutableMap(); + } + + /** + *
+             * Keyword arguments for the decorator as a map with keyword name as key.
+             * 
+ * + * map<string, string> keywords = 3; + */ + public Builder putKeywords(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableKeywords().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + *
+             * Keyword arguments for the decorator as a map with keyword name as key.
+             * 
+ * + * map<string, string> keywords = 3; + */ + public Builder putAllKeywords(java.util.Map values) { + internalGetMutableKeywords().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Decorator) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Decorator) + private static final com.kcl.api.Spec.Decorator DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Decorator(); + } + + public static com.kcl.api.Spec.Decorator getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Decorator 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.Decorator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExampleOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.kcl.api.Example) + com.google.protobuf.MessageOrBuilder { + + /** + *
+         * Short description for the example.
+         * 
+ * + * string summary = 1; + * + * @return The summary. + */ + java.lang.String getSummary(); + + /** + *
+         * Short description for the example.
+         * 
+ * + * string summary = 1; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + + /** + *
+         * Long description for the example.
+         * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + *
+         * Long description for the example.
+         * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + *
+         * Embedded literal example.
+         * 
+ * + * string value = 3; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + *
+         * Embedded literal example.
+         * 
+ * + * string value = 3; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + *
+     * Message representing an example in KCL.
+     * 
+ * + * Protobuf type {@code com.kcl.api.Example} + */ + public static final class Example extends com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:com.kcl.api.Example) + ExampleOrBuilder { + 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= */ "", Example.class.getName()); + } + + // Use Example.newBuilder() to construct. + private Example(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Example() { + summary_ = ""; + description_ = ""; + value_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Example_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Example_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Example.class, + com.kcl.api.Spec.Example.Builder.class); + } + + public static final int SUMMARY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + + /** + *
+         * Short description for the example.
+         * 
+ * + * string summary = 1; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + 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(); + summary_ = s; + return s; + } + } + + /** + *
+         * Short description for the example.
+         * 
+ * + * string summary = 1; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + *
+         * Long description for the example.
+         * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + *
+         * Long description for the example.
+         * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + *
+         * Embedded literal example.
+         * 
+ * + * string value = 3; + * + * @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; + } + } + + /** + *
+         * Embedded literal example.
+         * 
+ * + * string value = 3; + * + * @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(summary_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, summary_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, 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(summary_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, summary_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, 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.Example)) { + return super.equals(obj); + } + com.kcl.api.Spec.Example other = (com.kcl.api.Spec.Example) obj; + + if (!getSummary().equals(other.getSummary())) + return false; + if (!getDescription().equals(other.getDescription())) + 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) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().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.Example parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Example 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.Example parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Example 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.Example parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.kcl.api.Spec.Example parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.kcl.api.Spec.Example parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Example 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.Example parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Example 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.Example parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.kcl.api.Spec.Example 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.Example 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 example in KCL.
+         * 
+ * + * Protobuf type {@code com.kcl.api.Example} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:com.kcl.api.Example) + com.kcl.api.Spec.ExampleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Example_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Example_fieldAccessorTable + .ensureFieldAccessorsInitialized(com.kcl.api.Spec.Example.class, + com.kcl.api.Spec.Example.Builder.class); + } + + // Construct using com.kcl.api.Spec.Example.newBuilder() + private Builder() { + + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + summary_ = ""; + description_ = ""; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.kcl.api.Spec.internal_static_com_kcl_api_Example_descriptor; + } + + @java.lang.Override + public com.kcl.api.Spec.Example getDefaultInstanceForType() { + return com.kcl.api.Spec.Example.getDefaultInstance(); + } + + @java.lang.Override + public com.kcl.api.Spec.Example build() { + com.kcl.api.Spec.Example result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.kcl.api.Spec.Example buildPartial() { + com.kcl.api.Spec.Example result = new com.kcl.api.Spec.Example(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.kcl.api.Spec.Example result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.summary_ = summary_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.kcl.api.Spec.Example) { + return mergeFrom((com.kcl.api.Spec.Example) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.kcl.api.Spec.Example other) { + if (other == com.kcl.api.Spec.Example.getDefaultInstance()) + return this; + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000004; + 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: { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 summary_ = ""; + + /** + *
+             * Short description for the example.
+             * 
+ * + * string summary = 1; + * + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Short description for the example.
+             * 
+ * + * string summary = 1; + * + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Short description for the example.
+             * 
+ * + * string summary = 1; + * + * @param value + * The summary to set. + * + * @return This builder for chaining. + */ + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + summary_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + *
+             * Short description for the example.
+             * 
+ * + * string summary = 1; + * + * @return This builder for chaining. + */ + public Builder clearSummary() { + summary_ = getDefaultInstance().getSummary(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + *
+             * Short description for the example.
+             * 
+ * + * string summary = 1; + * + * @param value + * The bytes for summary to set. + * + * @return This builder for chaining. + */ + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + *
+             * Long description for the example.
+             * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
+             * Long description for the example.
+             * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString + .copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
+             * Long description for the example.
+             * 
+ * + * string description = 2; + * + * @param value + * The description to set. + * + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + *
+             * Long description for the example.
+             * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + *
+             * Long description for the example.
+             * 
+ * + * string description = 2; + * + * @param value + * The bytes for description to set. + * + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + *
+             * Embedded literal example.
+             * 
+ * + * string value = 3; + * + * @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; + } + } + + /** + *
+             * Embedded literal example.
+             * 
+ * + * string value = 3; + * + * @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; + } + } + + /** + *
+             * Embedded literal example.
+             * 
+ * + * string value = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + *
+             * Embedded literal example.
+             * 
+ * + * string value = 3; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + *
+             * Embedded literal example.
+             * 
+ * + * string value = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.kcl.api.Example) + } + + // @@protoc_insertion_point(class_scope:com.kcl.api.Example) + private static final com.kcl.api.Spec.Example DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.kcl.api.Spec.Example(); + } + + public static com.kcl.api.Spec.Example getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Example 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.Example getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ExternalPkg_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ExternalPkg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Argument_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Argument_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Error_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Error_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Message_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Message_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Ping_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Ping_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Ping_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Ping_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_GetVersion_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_GetVersion_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_GetVersion_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_GetVersion_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListMethod_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListMethod_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListMethod_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListMethod_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ParseFile_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ParseFile_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ParseFile_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ParseFile_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ParseProgram_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ParseProgram_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ParseProgram_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ParseProgram_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Result_ScopesEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Result_ScopesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Result_SymbolsEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Result_SymbolsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Result_NodeSymbolMapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Result_NodeSymbolMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Result_SymbolNodeMapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Result_SymbolNodeMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Result_FullyQualifiedNameMapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Result_FullyQualifiedNameMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadPackage_Result_PkgScopeMapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadPackage_Result_PkgScopeMapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListOptions_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListOptions_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_OptionHelp_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_OptionHelp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Symbol_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Symbol_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Scope_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Scope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_SymbolIndex_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_SymbolIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ScopeIndex_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ScopeIndex_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ExecProgram_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ExecProgram_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ExecProgram_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ExecProgram_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_BuildProgram_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_BuildProgram_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_BuildProgram_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_BuildProgram_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ExecArtifact_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ExecArtifact_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_FormatCode_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_FormatCode_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_FormatCode_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_FormatCode_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_FormatPath_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_FormatPath_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_FormatPath_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_FormatPath_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LintPath_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LintPath_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LintPath_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LintPath_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_OverrideFile_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_OverrideFile_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_OverrideFile_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_OverrideFile_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListVariables_Options_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListVariables_Options_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_VariableList_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_VariableList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListVariables_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListVariables_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListVariables_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListVariables_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListVariables_Result_VariablesEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListVariables_Result_VariablesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Variable_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Variable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_MapEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_MapEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_GetSchemaTypeMapping_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_GetSchemaTypeMapping_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_GetSchemaTypeMapping_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_GetSchemaTypeMapping_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_GetSchemaTypeMapping_Result_SchemaTypeMappingEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_GetSchemaTypeMapping_Result_SchemaTypeMappingEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ValidateCode_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ValidateCode_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ValidateCode_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ValidateCode_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Position_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Position_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListDepFiles_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListDepFiles_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_ListDepFiles_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_ListDepFiles_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadSettingsFiles_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadSettingsFiles_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_LoadSettingsFiles_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_LoadSettingsFiles_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_CliConfig_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_CliConfig_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_KeyValuePair_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_KeyValuePair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Rename_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Rename_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Rename_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Rename_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_RenameCode_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_RenameCode_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_RenameCode_Args_SourceCodesEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_RenameCode_Args_SourceCodesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_RenameCode_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_RenameCode_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_RenameCode_Result_ChangedCodesEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_RenameCode_Result_ChangedCodesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Test_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Test_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Test_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Test_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_TestCaseInfo_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_TestCaseInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_UpdateDependencies_Args_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_UpdateDependencies_Args_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_UpdateDependencies_Result_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_UpdateDependencies_Result_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_KclType_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_KclType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_KclType_PropertiesEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_KclType_PropertiesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_KclType_ExamplesEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_KclType_ExamplesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Decorator_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Decorator_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Decorator_KeywordsEntry_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Decorator_KeywordsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_kcl_api_Example_descriptor; + private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_kcl_api_Example_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { + java.lang.String[] descriptorData = { "\n\nspec.proto\022\013com.kcl.api\"1\n\013ExternalPkg" + + "\022\020\n\010pkg_name\030\001 \001(\t\022\020\n\010pkg_path\030\002 \001(\t\"\'\n\010" + + "Argument\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"L\n" + + "\005Error\022\r\n\005level\030\001 \001(\t\022\014\n\004code\030\002 \001(\t\022&\n\010m" + + "essages\030\003 \003(\0132\024.com.kcl.api.Message\":\n\007M" + + "essage\022\013\n\003msg\030\001 \001(\t\022\"\n\003pos\030\002 \001(\0132\025.com.k" + + "cl.api.Position\"\032\n\tPing_Args\022\r\n\005value\030\001 " + + "\001(\t\"\034\n\013Ping_Result\022\r\n\005value\030\001 \001(\t\"\021\n\017Get" + + "Version_Args\"]\n\021GetVersion_Result\022\017\n\007ver" + + "sion\030\001 \001(\t\022\020\n\010checksum\030\002 \001(\t\022\017\n\007git_sha\030" + + "\003 \001(\t\022\024\n\014version_info\030\004 \001(\t\"\021\n\017ListMetho" + + "d_Args\"-\n\021ListMethod_Result\022\030\n\020method_na" + + "me_list\030\001 \003(\t\"_\n\016ParseFile_Args\022\014\n\004path\030" + + "\001 \001(\t\022\016\n\006source\030\002 \001(\t\022/\n\rexternal_pkgs\030\003" + + " \003(\0132\030.com.kcl.api.ExternalPkg\"V\n\020ParseF" + + "ile_Result\022\020\n\010ast_json\030\001 \001(\t\022\014\n\004deps\030\002 \003" + + "(\t\022\"\n\006errors\030\003 \003(\0132\022.com.kcl.api.Error\"d" + + "\n\021ParseProgram_Args\022\r\n\005paths\030\001 \003(\t\022\017\n\007so" + + "urces\030\002 \003(\t\022/\n\rexternal_pkgs\030\003 \003(\0132\030.com" + + ".kcl.api.ExternalPkg\"Z\n\023ParseProgram_Res" + + "ult\022\020\n\010ast_json\030\001 \001(\t\022\r\n\005paths\030\002 \003(\t\022\"\n\006" + + "errors\030\003 \003(\0132\022.com.kcl.api.Error\"\211\001\n\020Loa" + + "dPackage_Args\0222\n\nparse_args\030\001 \001(\0132\036.com." + + "kcl.api.ParseProgram_Args\022\023\n\013resolve_ast" + + "\030\002 \001(\010\022\024\n\014load_builtin\030\003 \001(\010\022\026\n\016with_ast" + + "_index\030\004 \001(\010\"\367\007\n\022LoadPackage_Result\022\017\n\007p" + + "rogram\030\001 \001(\t\022\r\n\005paths\030\002 \003(\t\022(\n\014parse_err" + + "ors\030\003 \003(\0132\022.com.kcl.api.Error\022\'\n\013type_er" + + "rors\030\004 \003(\0132\022.com.kcl.api.Error\022;\n\006scopes" + + "\030\005 \003(\0132+.com.kcl.api.LoadPackage_Result." + + "ScopesEntry\022=\n\007symbols\030\006 \003(\0132,.com.kcl.a" + + "pi.LoadPackage_Result.SymbolsEntry\022K\n\017no" + + "de_symbol_map\030\007 \003(\01322.com.kcl.api.LoadPa" + + "ckage_Result.NodeSymbolMapEntry\022K\n\017symbo" + + "l_node_map\030\010 \003(\01322.com.kcl.api.LoadPacka" + + "ge_Result.SymbolNodeMapEntry\022\\\n\030fully_qu" + + "alified_name_map\030\t \003(\0132:.com.kcl.api.Loa" + "dPackage_Result.FullyQualifiedNameMapEnt" + + "ry\022G\n\rpkg_scope_map\030\n \003(\01320.com.kcl.api." + + "LoadPackage_Result.PkgScopeMapEntry\032A\n\013S" + + "copesEntry\022\013\n\003key\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022" + + ".com.kcl.api.Scope:\0028\001\032C\n\014SymbolsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\"\n\005value\030\002 \001(\0132\023.com.kcl.api" + + ".Symbol:\0028\001\032N\n\022NodeSymbolMapEntry\022\013\n\003key" + + "\030\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030.com.kcl.api.Symb" + + "olIndex:\0028\001\0324\n\022SymbolNodeMapEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032V\n\032FullyQualif" + + "iedNameMapEntry\022\013\n\003key\030\001 \001(\t\022\'\n\005value\030\002 " + + "\001(\0132\030.com.kcl.api.SymbolIndex:\0028\001\032K\n\020Pkg" + + "ScopeMapEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001(" + + "\0132\027.com.kcl.api.ScopeIndex:\0028\001\">\n\022ListOp" + + "tions_Result\022(\n\007options\030\002 \003(\0132\027.com.kcl." + + "api.OptionHelp\"_\n\nOptionHelp\022\014\n\004name\030\001 \001" + + "(\t\022\014\n\004type\030\002 \001(\t\022\020\n\010required\030\003 \001(\010\022\025\n\rde" + + "fault_value\030\004 \001(\t\022\014\n\004help\030\005 \001(\t\"\304\001\n\006Symb" + + "ol\022 \n\002ty\030\001 \001(\0132\024.com.kcl.api.KclType\022\014\n\004" + + "name\030\002 \001(\t\022\'\n\005owner\030\003 \001(\0132\030.com.kcl.api." + + "SymbolIndex\022%\n\003def\030\004 \001(\0132\030.com.kcl.api.S" + + "ymbolIndex\022\'\n\005attrs\030\005 \003(\0132\030.com.kcl.api." + + "SymbolIndex\022\021\n\tis_global\030\006 \001(\010\"\272\001\n\005Scope" + + "\022\014\n\004kind\030\001 \001(\t\022\'\n\006parent\030\002 \001(\0132\027.com.kcl" + + ".api.ScopeIndex\022\'\n\005owner\030\003 \001(\0132\030.com.kcl" + + ".api.SymbolIndex\022)\n\010children\030\004 \003(\0132\027.com" + + ".kcl.api.ScopeIndex\022&\n\004defs\030\005 \003(\0132\030.com." + + "kcl.api.SymbolIndex\"1\n\013SymbolIndex\022\t\n\001i\030" + + "\001 \001(\004\022\t\n\001g\030\002 \001(\004\022\014\n\004kind\030\003 \001(\t\"0\n\nScopeI" + + "ndex\022\t\n\001i\030\001 \001(\004\022\t\n\001g\030\002 \001(\004\022\014\n\004kind\030\003 \001(\t" + + "\"\320\003\n\020ExecProgram_Args\022\020\n\010work_dir\030\001 \001(\t\022" + + "\027\n\017k_filename_list\030\002 \003(\t\022\023\n\013k_code_list\030" + + "\003 \003(\t\022#\n\004args\030\004 \003(\0132\025.com.kcl.api.Argume" + + "nt\022\021\n\toverrides\030\005 \003(\t\022\033\n\023disable_yaml_re" + + "sult\030\006 \001(\010\022\032\n\022print_override_ast\030\007 \001(\010\022\032" + + "\n\022strict_range_check\030\010 \001(\010\022\024\n\014disable_no" + + "ne\030\t \001(\010\022\017\n\007verbose\030\n \001(\005\022\r\n\005debug\030\013 \001(\005" + + "\022\021\n\tsort_keys\030\014 \001(\010\022/\n\rexternal_pkgs\030\r \003" + + "(\0132\030.com.kcl.api.ExternalPkg\022 \n\030include_" + + "schema_type_path\030\016 \001(\010\022\024\n\014compile_only\030\017" + + " \001(\010\022\023\n\013show_hidden\030\020 \001(\010\022\025\n\rpath_select" + + "or\030\021 \003(\t\022\021\n\tfast_eval\030\022 \001(\010\"h\n\022ExecProgr" + + "am_Result\022\023\n\013json_result\030\001 \001(\t\022\023\n\013yaml_r" + + "esult\030\002 \001(\t\022\023\n\013log_message\030\003 \001(\t\022\023\n\013err_" + + "message\030\004 \001(\t\"U\n\021BuildProgram_Args\0220\n\tex" + + "ec_args\030\001 \001(\0132\035.com.kcl.api.ExecProgram_" + + "Args\022\016\n\006output\030\002 \001(\t\"#\n\023BuildProgram_Res" + + "ult\022\014\n\004path\030\001 \001(\t\"S\n\021ExecArtifact_Args\022\014" + + "\n\004path\030\001 \001(\t\0220\n\texec_args\030\002 \001(\0132\035.com.kc" + + "l.api.ExecProgram_Args\"!\n\017FormatCode_Arg" + + "s\022\016\n\006source\030\001 \001(\t\"&\n\021FormatCode_Result\022\021" + + "\n\tformatted\030\001 \001(\014\"\037\n\017FormatPath_Args\022\014\n\004" + + "path\030\001 \001(\t\"*\n\021FormatPath_Result\022\025\n\rchang" + + "ed_paths\030\001 \003(\t\"\036\n\rLintPath_Args\022\r\n\005paths" + + "\030\001 \003(\t\"\"\n\017LintPath_Result\022\017\n\007results\030\001 \003" + + "(\t\"F\n\021OverrideFile_Args\022\014\n\004file\030\001 \001(\t\022\r\n" + + "\005specs\030\002 \003(\t\022\024\n\014import_paths\030\003 \003(\t\"O\n\023Ov" + + "errideFile_Result\022\016\n\006result\030\001 \001(\010\022(\n\014par" + + "se_errors\030\002 \003(\0132\022.com.kcl.api.Error\".\n\025L" + + "istVariables_Options\022\025\n\rmerge_program\030\001 " + + "\001(\010\"8\n\014VariableList\022(\n\tvariables\030\001 \003(\0132\025" + + ".com.kcl.api.Variable\"g\n\022ListVariables_A" + + "rgs\022\r\n\005files\030\001 \003(\t\022\r\n\005specs\030\002 \003(\t\0223\n\007opt" + + "ions\030\003 \001(\0132\".com.kcl.api.ListVariables_O" + + "ptions\"\355\001\n\024ListVariables_Result\022C\n\tvaria" + + "bles\030\001 \003(\01320.com.kcl.api.ListVariables_R" + + "esult.VariablesEntry\022\031\n\021unsupported_code" + + "s\030\002 \003(\t\022(\n\014parse_errors\030\003 \003(\0132\022.com.kcl." + + "api.Error\032K\n\016VariablesEntry\022\013\n\003key\030\001 \001(\t" + + "\022(\n\005value\030\002 \001(\0132\031.com.kcl.api.VariableLi" + + "st:\0028\001\"\224\001\n\010Variable\022\r\n\005value\030\001 \001(\t\022\021\n\tty" + + "pe_name\030\002 \001(\t\022\016\n\006op_sym\030\003 \001(\t\022)\n\nlist_it" + + "ems\030\004 \003(\0132\025.com.kcl.api.Variable\022+\n\014dict" + + "_entries\030\005 \003(\0132\025.com.kcl.api.MapEntry\"=\n" + + "\010MapEntry\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025." + + "com.kcl.api.Variable\"b\n\031GetSchemaTypeMap" + + "ping_Args\0220\n\texec_args\030\001 \001(\0132\035.com.kcl.a" + + "pi.ExecProgram_Args\022\023\n\013schema_name\030\002 \001(\t" + + "\"\313\001\n\033GetSchemaTypeMapping_Result\022\\\n\023sche" + + "ma_type_mapping\030\001 \003(\0132?.com.kcl.api.GetS" + "chemaTypeMapping_Result.SchemaTypeMappin" + + "gEntry\032N\n\026SchemaTypeMappingEntry\022\013\n\003key\030" + + "\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.com.kcl.api.KclTy" + + "pe:\0028\001\"\207\001\n\021ValidateCode_Args\022\020\n\010datafile" + + "\030\001 \001(\t\022\014\n\004data\030\002 \001(\t\022\014\n\004file\030\003 \001(\t\022\014\n\004co" + + "de\030\004 \001(\t\022\016\n\006schema\030\005 \001(\t\022\026\n\016attribute_na" + + "me\030\006 \001(\t\022\016\n\006format\030\007 \001(\t\";\n\023ValidateCode" + + "_Result\022\017\n\007success\030\001 \001(\010\022\023\n\013err_message\030" + + "\002 \001(\t\":\n\010Position\022\014\n\004line\030\001 \001(\003\022\016\n\006colum" + + "n\030\002 \001(\003\022\020\n\010filename\030\003 \001(\t\"i\n\021ListDepFile" + + "s_Args\022\020\n\010work_dir\030\001 \001(\t\022\024\n\014use_abs_path" + + "\030\002 \001(\010\022\023\n\013include_all\030\003 \001(\010\022\027\n\017use_fast_" + + "parser\030\004 \001(\010\"F\n\023ListDepFiles_Result\022\017\n\007p" + + "kgroot\030\001 \001(\t\022\017\n\007pkgpath\030\002 \001(\t\022\r\n\005files\030\003" + + " \003(\t\"9\n\026LoadSettingsFiles_Args\022\020\n\010work_d" + + "ir\030\001 \001(\t\022\r\n\005files\030\002 \003(\t\"{\n\030LoadSettingsF" + + "iles_Result\022/\n\017kcl_cli_configs\030\001 \001(\0132\026.c" + + "om.kcl.api.CliConfig\022.\n\013kcl_options\030\002 \003(" + + "\0132\031.com.kcl.api.KeyValuePair\"\203\002\n\tCliConf" + + "ig\022\r\n\005files\030\001 \003(\t\022\016\n\006output\030\002 \001(\t\022\021\n\tove" + + "rrides\030\003 \003(\t\022\025\n\rpath_selector\030\004 \003(\t\022\032\n\022s" + + "trict_range_check\030\005 \001(\010\022\024\n\014disable_none\030" + + "\006 \001(\010\022\017\n\007verbose\030\007 \001(\003\022\r\n\005debug\030\010 \001(\010\022\021\n" + + "\tsort_keys\030\t \001(\010\022\023\n\013show_hidden\030\n \001(\010\022 \n" + + "\030include_schema_type_path\030\013 \001(\010\022\021\n\tfast_" + + "eval\030\014 \001(\010\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t\"^\n\013Rename_Args\022\024\n\014package" + + "_root\030\001 \001(\t\022\023\n\013symbol_path\030\002 \001(\t\022\022\n\nfile" + + "_paths\030\003 \003(\t\022\020\n\010new_name\030\004 \001(\t\"&\n\rRename" + + "_Result\022\025\n\rchanged_files\030\001 \003(\t\"\307\001\n\017Renam" + + "eCode_Args\022\024\n\014package_root\030\001 \001(\t\022\023\n\013symb" + + "ol_path\030\002 \001(\t\022C\n\014source_codes\030\003 \003(\0132-.co" + + "m.kcl.api.RenameCode_Args.SourceCodesEnt" + + "ry\022\020\n\010new_name\030\004 \001(\t\0322\n\020SourceCodesEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\221\001\n\021Ren" + + "ameCode_Result\022G\n\rchanged_codes\030\001 \003(\01320." + + "com.kcl.api.RenameCode_Result.ChangedCod" + + "esEntry\0323\n\021ChangedCodesEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\tTest_Args\0220\n\texe" + + "c_args\030\001 \001(\0132\035.com.kcl.api.ExecProgram_A" + + "rgs\022\020\n\010pkg_list\030\002 \003(\t\022\022\n\nrun_regexp\030\003 \001(" + + "\t\022\021\n\tfail_fast\030\004 \001(\010\"6\n\013Test_Result\022\'\n\004i" + + "nfo\030\002 \003(\0132\031.com.kcl.api.TestCaseInfo\"R\n\014" + + "TestCaseInfo\022\014\n\004name\030\001 \001(\t\022\r\n\005error\030\002 \001(" + + "\t\022\020\n\010duration\030\003 \001(\004\022\023\n\013log_message\030\004 \001(\t" + + "\"@\n\027UpdateDependencies_Args\022\025\n\rmanifest_" + + "path\030\001 \001(\t\022\016\n\006vendor\030\002 \001(\010\"L\n\031UpdateDepe" + + "ndencies_Result\022/\n\rexternal_pkgs\030\003 \003(\0132\030" + + ".com.kcl.api.ExternalPkg\"\363\004\n\007KclType\022\014\n\004" + + "type\030\001 \001(\t\022)\n\013union_types\030\002 \003(\0132\024.com.kc" + + "l.api.KclType\022\017\n\007default\030\003 \001(\t\022\023\n\013schema" + + "_name\030\004 \001(\t\022\022\n\nschema_doc\030\005 \001(\t\0228\n\nprope" + + "rties\030\006 \003(\0132$.com.kcl.api.KclType.Proper" + + "tiesEntry\022\020\n\010required\030\007 \003(\t\022!\n\003key\030\010 \001(\013" + + "2\024.com.kcl.api.KclType\022\"\n\004item\030\t \001(\0132\024.c" + + "om.kcl.api.KclType\022\014\n\004line\030\n \001(\005\022*\n\ndeco" + + "rators\030\013 \003(\0132\026.com.kcl.api.Decorator\022\020\n\010" + + "filename\030\014 \001(\t\022\020\n\010pkg_path\030\r \001(\t\022\023\n\013desc" + + "ription\030\016 \001(\t\0224\n\010examples\030\017 \003(\0132\".com.kc" + + "l.api.KclType.ExamplesEntry\022)\n\013base_sche" + + "ma\030\020 \001(\0132\024.com.kcl.api.KclType\032G\n\017Proper" + + "tiesEntry\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024." + + "com.kcl.api.KclType:\0028\001\032E\n\rExamplesEntry" + + "\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.com.kcl.a" + + "pi.Example:\0028\001\"\225\001\n\tDecorator\022\014\n\004name\030\001 \001" + + "(\t\022\021\n\targuments\030\002 \003(\t\0226\n\010keywords\030\003 \003(\0132" + + "$.com.kcl.api.Decorator.KeywordsEntry\032/\n" + + "\rKeywordsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\">\n\007Example\022\017\n\007summary\030\001 \001(\t\022\023\n\013de" + + "scription\030\002 \001(\t\022\r\n\005value\030\003 \001(\t2\226\001\n\016Built" + + "inService\0228\n\004Ping\022\026.com.kcl.api.Ping_Arg" + + "s\032\030.com.kcl.api.Ping_Result\022J\n\nListMetho" + + "d\022\034.com.kcl.api.ListMethod_Args\032\036.com.kc" + + "l.api.ListMethod_Result2\336\r\n\014KclvmService" + + "\0228\n\004Ping\022\026.com.kcl.api.Ping_Args\032\030.com.k" + + "cl.api.Ping_Result\022J\n\nGetVersion\022\034.com.k" + + "cl.api.GetVersion_Args\032\036.com.kcl.api.Get" + + "Version_Result\022P\n\014ParseProgram\022\036.com.kcl" + + ".api.ParseProgram_Args\032 .com.kcl.api.Par" + "seProgram_Result\022G\n\tParseFile\022\033.com.kcl." + + "api.ParseFile_Args\032\035.com.kcl.api.ParseFi" + + "le_Result\022M\n\013LoadPackage\022\035.com.kcl.api.L" + + "oadPackage_Args\032\037.com.kcl.api.LoadPackag" + + "e_Result\022N\n\013ListOptions\022\036.com.kcl.api.Pa" + + "rseProgram_Args\032\037.com.kcl.api.ListOption" + + "s_Result\022S\n\rListVariables\022\037.com.kcl.api." + "ListVariables_Args\032!.com.kcl.api.ListVar" + + "iables_Result\022M\n\013ExecProgram\022\035.com.kcl.a" + + "pi.ExecProgram_Args\032\037.com.kcl.api.ExecPr" + + "ogram_Result\022P\n\014BuildProgram\022\036.com.kcl.a" + + "pi.BuildProgram_Args\032 .com.kcl.api.Build" + + "Program_Result\022O\n\014ExecArtifact\022\036.com.kcl" + + ".api.ExecArtifact_Args\032\037.com.kcl.api.Exe" + + "cProgram_Result\022P\n\014OverrideFile\022\036.com.kc" + + "l.api.OverrideFile_Args\032 .com.kcl.api.Ov" + "errideFile_Result\022h\n\024GetSchemaTypeMappin" + + "g\022&.com.kcl.api.GetSchemaTypeMapping_Arg" + "s\032(.com.kcl.api.GetSchemaTypeMapping_Res" + + "ult\022J\n\nFormatCode\022\034.com.kcl.api.FormatCo" + + "de_Args\032\036.com.kcl.api.FormatCode_Result\022" + + "J\n\nFormatPath\022\034.com.kcl.api.FormatPath_A" + + "rgs\032\036.com.kcl.api.FormatPath_Result\022D\n\010L" + + "intPath\022\032.com.kcl.api.LintPath_Args\032\034.co" + + "m.kcl.api.LintPath_Result\022P\n\014ValidateCod" + + "e\022\036.com.kcl.api.ValidateCode_Args\032 .com." + + "kcl.api.ValidateCode_Result\022P\n\014ListDepFi" + + "les\022\036.com.kcl.api.ListDepFiles_Args\032 .co" + + "m.kcl.api.ListDepFiles_Result\022_\n\021LoadSet" + "tingsFiles\022#.com.kcl.api.LoadSettingsFil" + + "es_Args\032%.com.kcl.api.LoadSettingsFiles_" + + "Result\022>\n\006Rename\022\030.com.kcl.api.Rename_Ar" + + "gs\032\032.com.kcl.api.Rename_Result\022J\n\nRename" + + "Code\022\034.com.kcl.api.RenameCode_Args\032\036.com" + + ".kcl.api.RenameCode_Result\0228\n\004Test\022\026.com" + + ".kcl.api.Test_Args\032\030.com.kcl.api.Test_Re" + + "sult\022b\n\022UpdateDependencies\022$.com.kcl.api" + ".UpdateDependencies_Args\032&.com.kcl.api.U" + + "pdateDependencies_ResultB\024Z\005.;lib\252\002\nKclL" + "ib.APIb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_com_kcl_api_ExternalPkg_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_com_kcl_api_ExternalPkg_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ExternalPkg_descriptor, new java.lang.String[] { "PkgName", "PkgPath", }); + internal_static_com_kcl_api_Argument_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_com_kcl_api_Argument_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Argument_descriptor, new java.lang.String[] { "Name", "Value", }); + internal_static_com_kcl_api_Error_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_com_kcl_api_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Error_descriptor, new java.lang.String[] { "Level", "Code", "Messages", }); + internal_static_com_kcl_api_Message_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_com_kcl_api_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Message_descriptor, new java.lang.String[] { "Msg", "Pos", }); + internal_static_com_kcl_api_Ping_Args_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_com_kcl_api_Ping_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Ping_Args_descriptor, new java.lang.String[] { "Value", }); + internal_static_com_kcl_api_Ping_Result_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_com_kcl_api_Ping_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Ping_Result_descriptor, new java.lang.String[] { "Value", }); + internal_static_com_kcl_api_GetVersion_Args_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_com_kcl_api_GetVersion_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_GetVersion_Args_descriptor, new java.lang.String[] {}); + internal_static_com_kcl_api_GetVersion_Result_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_com_kcl_api_GetVersion_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_GetVersion_Result_descriptor, + new java.lang.String[] { "Version", "Checksum", "GitSha", "VersionInfo", }); + internal_static_com_kcl_api_ListMethod_Args_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_com_kcl_api_ListMethod_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListMethod_Args_descriptor, new java.lang.String[] {}); + internal_static_com_kcl_api_ListMethod_Result_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_com_kcl_api_ListMethod_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListMethod_Result_descriptor, new java.lang.String[] { "MethodNameList", }); + internal_static_com_kcl_api_ParseFile_Args_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_com_kcl_api_ParseFile_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ParseFile_Args_descriptor, + new java.lang.String[] { "Path", "Source", "ExternalPkgs", }); + internal_static_com_kcl_api_ParseFile_Result_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_com_kcl_api_ParseFile_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ParseFile_Result_descriptor, + new java.lang.String[] { "AstJson", "Deps", "Errors", }); + internal_static_com_kcl_api_ParseProgram_Args_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_com_kcl_api_ParseProgram_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ParseProgram_Args_descriptor, + new java.lang.String[] { "Paths", "Sources", "ExternalPkgs", }); + internal_static_com_kcl_api_ParseProgram_Result_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_com_kcl_api_ParseProgram_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ParseProgram_Result_descriptor, + new java.lang.String[] { "AstJson", "Paths", "Errors", }); + internal_static_com_kcl_api_LoadPackage_Args_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_com_kcl_api_LoadPackage_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Args_descriptor, + new java.lang.String[] { "ParseArgs", "ResolveAst", "LoadBuiltin", "WithAstIndex", }); + internal_static_com_kcl_api_LoadPackage_Result_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_com_kcl_api_LoadPackage_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Result_descriptor, + new java.lang.String[] { "Program", "Paths", "ParseErrors", "TypeErrors", "Scopes", "Symbols", + "NodeSymbolMap", "SymbolNodeMap", "FullyQualifiedNameMap", "PkgScopeMap", }); + internal_static_com_kcl_api_LoadPackage_Result_ScopesEntry_descriptor = internal_static_com_kcl_api_LoadPackage_Result_descriptor + .getNestedTypes().get(0); + internal_static_com_kcl_api_LoadPackage_Result_ScopesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Result_ScopesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_LoadPackage_Result_SymbolsEntry_descriptor = internal_static_com_kcl_api_LoadPackage_Result_descriptor + .getNestedTypes().get(1); + internal_static_com_kcl_api_LoadPackage_Result_SymbolsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Result_SymbolsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_LoadPackage_Result_NodeSymbolMapEntry_descriptor = internal_static_com_kcl_api_LoadPackage_Result_descriptor + .getNestedTypes().get(2); + internal_static_com_kcl_api_LoadPackage_Result_NodeSymbolMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Result_NodeSymbolMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_LoadPackage_Result_SymbolNodeMapEntry_descriptor = internal_static_com_kcl_api_LoadPackage_Result_descriptor + .getNestedTypes().get(3); + internal_static_com_kcl_api_LoadPackage_Result_SymbolNodeMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Result_SymbolNodeMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_LoadPackage_Result_FullyQualifiedNameMapEntry_descriptor = internal_static_com_kcl_api_LoadPackage_Result_descriptor + .getNestedTypes().get(4); + internal_static_com_kcl_api_LoadPackage_Result_FullyQualifiedNameMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Result_FullyQualifiedNameMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_LoadPackage_Result_PkgScopeMapEntry_descriptor = internal_static_com_kcl_api_LoadPackage_Result_descriptor + .getNestedTypes().get(5); + internal_static_com_kcl_api_LoadPackage_Result_PkgScopeMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadPackage_Result_PkgScopeMapEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_ListOptions_Result_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_com_kcl_api_ListOptions_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListOptions_Result_descriptor, new java.lang.String[] { "Options", }); + internal_static_com_kcl_api_OptionHelp_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_com_kcl_api_OptionHelp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_OptionHelp_descriptor, + new java.lang.String[] { "Name", "Type", "Required", "DefaultValue", "Help", }); + internal_static_com_kcl_api_Symbol_descriptor = getDescriptor().getMessageTypes().get(18); + internal_static_com_kcl_api_Symbol_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Symbol_descriptor, + new java.lang.String[] { "Ty", "Name", "Owner", "Def", "Attrs", "IsGlobal", }); + internal_static_com_kcl_api_Scope_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_com_kcl_api_Scope_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Scope_descriptor, + new java.lang.String[] { "Kind", "Parent", "Owner", "Children", "Defs", }); + internal_static_com_kcl_api_SymbolIndex_descriptor = getDescriptor().getMessageTypes().get(20); + internal_static_com_kcl_api_SymbolIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_SymbolIndex_descriptor, new java.lang.String[] { "I", "G", "Kind", }); + internal_static_com_kcl_api_ScopeIndex_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_com_kcl_api_ScopeIndex_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ScopeIndex_descriptor, new java.lang.String[] { "I", "G", "Kind", }); + internal_static_com_kcl_api_ExecProgram_Args_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_com_kcl_api_ExecProgram_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ExecProgram_Args_descriptor, + new java.lang.String[] { "WorkDir", "KFilenameList", "KCodeList", "Args", "Overrides", + "DisableYamlResult", "PrintOverrideAst", "StrictRangeCheck", "DisableNone", "Verbose", "Debug", + "SortKeys", "ExternalPkgs", "IncludeSchemaTypePath", "CompileOnly", "ShowHidden", + "PathSelector", "FastEval", }); + internal_static_com_kcl_api_ExecProgram_Result_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_com_kcl_api_ExecProgram_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ExecProgram_Result_descriptor, + new java.lang.String[] { "JsonResult", "YamlResult", "LogMessage", "ErrMessage", }); + internal_static_com_kcl_api_BuildProgram_Args_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_com_kcl_api_BuildProgram_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_BuildProgram_Args_descriptor, + new java.lang.String[] { "ExecArgs", "Output", }); + internal_static_com_kcl_api_BuildProgram_Result_descriptor = getDescriptor().getMessageTypes().get(25); + internal_static_com_kcl_api_BuildProgram_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_BuildProgram_Result_descriptor, new java.lang.String[] { "Path", }); + internal_static_com_kcl_api_ExecArtifact_Args_descriptor = getDescriptor().getMessageTypes().get(26); + internal_static_com_kcl_api_ExecArtifact_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ExecArtifact_Args_descriptor, + new java.lang.String[] { "Path", "ExecArgs", }); + internal_static_com_kcl_api_FormatCode_Args_descriptor = getDescriptor().getMessageTypes().get(27); + internal_static_com_kcl_api_FormatCode_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_FormatCode_Args_descriptor, new java.lang.String[] { "Source", }); + internal_static_com_kcl_api_FormatCode_Result_descriptor = getDescriptor().getMessageTypes().get(28); + internal_static_com_kcl_api_FormatCode_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_FormatCode_Result_descriptor, new java.lang.String[] { "Formatted", }); + internal_static_com_kcl_api_FormatPath_Args_descriptor = getDescriptor().getMessageTypes().get(29); + internal_static_com_kcl_api_FormatPath_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_FormatPath_Args_descriptor, new java.lang.String[] { "Path", }); + internal_static_com_kcl_api_FormatPath_Result_descriptor = getDescriptor().getMessageTypes().get(30); + internal_static_com_kcl_api_FormatPath_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_FormatPath_Result_descriptor, new java.lang.String[] { "ChangedPaths", }); + internal_static_com_kcl_api_LintPath_Args_descriptor = getDescriptor().getMessageTypes().get(31); + internal_static_com_kcl_api_LintPath_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LintPath_Args_descriptor, new java.lang.String[] { "Paths", }); + internal_static_com_kcl_api_LintPath_Result_descriptor = getDescriptor().getMessageTypes().get(32); + internal_static_com_kcl_api_LintPath_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LintPath_Result_descriptor, new java.lang.String[] { "Results", }); + internal_static_com_kcl_api_OverrideFile_Args_descriptor = getDescriptor().getMessageTypes().get(33); + internal_static_com_kcl_api_OverrideFile_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_OverrideFile_Args_descriptor, + new java.lang.String[] { "File", "Specs", "ImportPaths", }); + internal_static_com_kcl_api_OverrideFile_Result_descriptor = getDescriptor().getMessageTypes().get(34); + internal_static_com_kcl_api_OverrideFile_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_OverrideFile_Result_descriptor, + new java.lang.String[] { "Result", "ParseErrors", }); + internal_static_com_kcl_api_ListVariables_Options_descriptor = getDescriptor().getMessageTypes().get(35); + internal_static_com_kcl_api_ListVariables_Options_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListVariables_Options_descriptor, + new java.lang.String[] { "MergeProgram", }); + internal_static_com_kcl_api_VariableList_descriptor = getDescriptor().getMessageTypes().get(36); + internal_static_com_kcl_api_VariableList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_VariableList_descriptor, new java.lang.String[] { "Variables", }); + internal_static_com_kcl_api_ListVariables_Args_descriptor = getDescriptor().getMessageTypes().get(37); + internal_static_com_kcl_api_ListVariables_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListVariables_Args_descriptor, + new java.lang.String[] { "Files", "Specs", "Options", }); + internal_static_com_kcl_api_ListVariables_Result_descriptor = getDescriptor().getMessageTypes().get(38); + internal_static_com_kcl_api_ListVariables_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListVariables_Result_descriptor, + new java.lang.String[] { "Variables", "UnsupportedCodes", "ParseErrors", }); + internal_static_com_kcl_api_ListVariables_Result_VariablesEntry_descriptor = internal_static_com_kcl_api_ListVariables_Result_descriptor + .getNestedTypes().get(0); + internal_static_com_kcl_api_ListVariables_Result_VariablesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListVariables_Result_VariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_Variable_descriptor = getDescriptor().getMessageTypes().get(39); + internal_static_com_kcl_api_Variable_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Variable_descriptor, + new java.lang.String[] { "Value", "TypeName", "OpSym", "ListItems", "DictEntries", }); + internal_static_com_kcl_api_MapEntry_descriptor = getDescriptor().getMessageTypes().get(40); + internal_static_com_kcl_api_MapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_MapEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_GetSchemaTypeMapping_Args_descriptor = getDescriptor().getMessageTypes().get(41); + internal_static_com_kcl_api_GetSchemaTypeMapping_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_GetSchemaTypeMapping_Args_descriptor, + new java.lang.String[] { "ExecArgs", "SchemaName", }); + internal_static_com_kcl_api_GetSchemaTypeMapping_Result_descriptor = getDescriptor().getMessageTypes().get(42); + internal_static_com_kcl_api_GetSchemaTypeMapping_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_GetSchemaTypeMapping_Result_descriptor, + new java.lang.String[] { "SchemaTypeMapping", }); + internal_static_com_kcl_api_GetSchemaTypeMapping_Result_SchemaTypeMappingEntry_descriptor = internal_static_com_kcl_api_GetSchemaTypeMapping_Result_descriptor + .getNestedTypes().get(0); + internal_static_com_kcl_api_GetSchemaTypeMapping_Result_SchemaTypeMappingEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_GetSchemaTypeMapping_Result_SchemaTypeMappingEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_ValidateCode_Args_descriptor = getDescriptor().getMessageTypes().get(43); + internal_static_com_kcl_api_ValidateCode_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ValidateCode_Args_descriptor, + new java.lang.String[] { "Datafile", "Data", "File", "Code", "Schema", "AttributeName", "Format", }); + internal_static_com_kcl_api_ValidateCode_Result_descriptor = getDescriptor().getMessageTypes().get(44); + internal_static_com_kcl_api_ValidateCode_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ValidateCode_Result_descriptor, + new java.lang.String[] { "Success", "ErrMessage", }); + internal_static_com_kcl_api_Position_descriptor = getDescriptor().getMessageTypes().get(45); + internal_static_com_kcl_api_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Position_descriptor, + new java.lang.String[] { "Line", "Column", "Filename", }); + internal_static_com_kcl_api_ListDepFiles_Args_descriptor = getDescriptor().getMessageTypes().get(46); + internal_static_com_kcl_api_ListDepFiles_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListDepFiles_Args_descriptor, + new java.lang.String[] { "WorkDir", "UseAbsPath", "IncludeAll", "UseFastParser", }); + internal_static_com_kcl_api_ListDepFiles_Result_descriptor = getDescriptor().getMessageTypes().get(47); + internal_static_com_kcl_api_ListDepFiles_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_ListDepFiles_Result_descriptor, + new java.lang.String[] { "Pkgroot", "Pkgpath", "Files", }); + internal_static_com_kcl_api_LoadSettingsFiles_Args_descriptor = getDescriptor().getMessageTypes().get(48); + internal_static_com_kcl_api_LoadSettingsFiles_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadSettingsFiles_Args_descriptor, + new java.lang.String[] { "WorkDir", "Files", }); + internal_static_com_kcl_api_LoadSettingsFiles_Result_descriptor = getDescriptor().getMessageTypes().get(49); + internal_static_com_kcl_api_LoadSettingsFiles_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_LoadSettingsFiles_Result_descriptor, + new java.lang.String[] { "KclCliConfigs", "KclOptions", }); + internal_static_com_kcl_api_CliConfig_descriptor = getDescriptor().getMessageTypes().get(50); + internal_static_com_kcl_api_CliConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_CliConfig_descriptor, + new java.lang.String[] { "Files", "Output", "Overrides", "PathSelector", "StrictRangeCheck", + "DisableNone", "Verbose", "Debug", "SortKeys", "ShowHidden", "IncludeSchemaTypePath", + "FastEval", }); + internal_static_com_kcl_api_KeyValuePair_descriptor = getDescriptor().getMessageTypes().get(51); + internal_static_com_kcl_api_KeyValuePair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_KeyValuePair_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_Rename_Args_descriptor = getDescriptor().getMessageTypes().get(52); + internal_static_com_kcl_api_Rename_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Rename_Args_descriptor, + new java.lang.String[] { "PackageRoot", "SymbolPath", "FilePaths", "NewName", }); + internal_static_com_kcl_api_Rename_Result_descriptor = getDescriptor().getMessageTypes().get(53); + internal_static_com_kcl_api_Rename_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Rename_Result_descriptor, new java.lang.String[] { "ChangedFiles", }); + internal_static_com_kcl_api_RenameCode_Args_descriptor = getDescriptor().getMessageTypes().get(54); + internal_static_com_kcl_api_RenameCode_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_RenameCode_Args_descriptor, + new java.lang.String[] { "PackageRoot", "SymbolPath", "SourceCodes", "NewName", }); + internal_static_com_kcl_api_RenameCode_Args_SourceCodesEntry_descriptor = internal_static_com_kcl_api_RenameCode_Args_descriptor + .getNestedTypes().get(0); + internal_static_com_kcl_api_RenameCode_Args_SourceCodesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_RenameCode_Args_SourceCodesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_RenameCode_Result_descriptor = getDescriptor().getMessageTypes().get(55); + internal_static_com_kcl_api_RenameCode_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_RenameCode_Result_descriptor, new java.lang.String[] { "ChangedCodes", }); + internal_static_com_kcl_api_RenameCode_Result_ChangedCodesEntry_descriptor = internal_static_com_kcl_api_RenameCode_Result_descriptor + .getNestedTypes().get(0); + internal_static_com_kcl_api_RenameCode_Result_ChangedCodesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_RenameCode_Result_ChangedCodesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_Test_Args_descriptor = getDescriptor().getMessageTypes().get(56); + internal_static_com_kcl_api_Test_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Test_Args_descriptor, + new java.lang.String[] { "ExecArgs", "PkgList", "RunRegexp", "FailFast", }); + internal_static_com_kcl_api_Test_Result_descriptor = getDescriptor().getMessageTypes().get(57); + internal_static_com_kcl_api_Test_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Test_Result_descriptor, new java.lang.String[] { "Info", }); + internal_static_com_kcl_api_TestCaseInfo_descriptor = getDescriptor().getMessageTypes().get(58); + internal_static_com_kcl_api_TestCaseInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_TestCaseInfo_descriptor, + new java.lang.String[] { "Name", "Error", "Duration", "LogMessage", }); + internal_static_com_kcl_api_UpdateDependencies_Args_descriptor = getDescriptor().getMessageTypes().get(59); + internal_static_com_kcl_api_UpdateDependencies_Args_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_UpdateDependencies_Args_descriptor, + new java.lang.String[] { "ManifestPath", "Vendor", }); + internal_static_com_kcl_api_UpdateDependencies_Result_descriptor = getDescriptor().getMessageTypes().get(60); + internal_static_com_kcl_api_UpdateDependencies_Result_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_UpdateDependencies_Result_descriptor, + new java.lang.String[] { "ExternalPkgs", }); + internal_static_com_kcl_api_KclType_descriptor = getDescriptor().getMessageTypes().get(61); + internal_static_com_kcl_api_KclType_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_KclType_descriptor, + new java.lang.String[] { "Type", "UnionTypes", "Default", "SchemaName", "SchemaDoc", "Properties", + "Required", "Key", "Item", "Line", "Decorators", "Filename", "PkgPath", "Description", + "Examples", "BaseSchema", }); + internal_static_com_kcl_api_KclType_PropertiesEntry_descriptor = internal_static_com_kcl_api_KclType_descriptor + .getNestedTypes().get(0); + internal_static_com_kcl_api_KclType_PropertiesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_KclType_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_KclType_ExamplesEntry_descriptor = internal_static_com_kcl_api_KclType_descriptor + .getNestedTypes().get(1); + internal_static_com_kcl_api_KclType_ExamplesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_KclType_ExamplesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_Decorator_descriptor = getDescriptor().getMessageTypes().get(62); + internal_static_com_kcl_api_Decorator_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Decorator_descriptor, + new java.lang.String[] { "Name", "Arguments", "Keywords", }); + internal_static_com_kcl_api_Decorator_KeywordsEntry_descriptor = internal_static_com_kcl_api_Decorator_descriptor + .getNestedTypes().get(0); + internal_static_com_kcl_api_Decorator_KeywordsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Decorator_KeywordsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_com_kcl_api_Example_descriptor = getDescriptor().getMessageTypes().get(63); + internal_static_com_kcl_api_Example_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_kcl_api_Example_descriptor, + new java.lang.String[] { "Summary", "Description", "Value", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/kotlin/src/main/java/com/kcl/plugin/MethodFunction.java b/kotlin/src/main/java/com/kcl/plugin/MethodFunction.java new file mode 100644 index 0000000..914088f --- /dev/null +++ b/kotlin/src/main/java/com/kcl/plugin/MethodFunction.java @@ -0,0 +1,8 @@ +package com.kcl.plugin; + +import java.util.Map; + +@FunctionalInterface +public interface MethodFunction { + Object invoke(Object[] args, Map kwArgs); +} diff --git a/kotlin/src/main/java/com/kcl/plugin/Plugin.java b/kotlin/src/main/java/com/kcl/plugin/Plugin.java new file mode 100644 index 0000000..f64a8b5 --- /dev/null +++ b/kotlin/src/main/java/com/kcl/plugin/Plugin.java @@ -0,0 +1,17 @@ +package com.kcl.plugin; + +import java.util.Map; + +public class Plugin { + public String name; + public Map methodMap; + + public Map getMethodMap() { + return methodMap; + } + + public Plugin(String name, Map methodMap) { + this.name = name; + this.methodMap = methodMap; + } +} diff --git a/kotlin/src/main/java/com/kcl/plugin/PluginContext.java b/kotlin/src/main/java/com/kcl/plugin/PluginContext.java new file mode 100644 index 0000000..86f7dbe --- /dev/null +++ b/kotlin/src/main/java/com/kcl/plugin/PluginContext.java @@ -0,0 +1,70 @@ +package com.kcl.plugin; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.HashMap; +import java.util.Map; + +public class PluginContext { + private Map pluginMap = new HashMap<>(); + private ObjectMapper objectMapper = new ObjectMapper(); + + public String callMethod(String name, String argsJson, String kwArgsJson) { + return callJavaMethod(name, argsJson, kwArgsJson); + } + + private String callJavaMethod(String name, String argsJson, String kwArgsJson) { + try { + return callJavaMethodUnsafe(name, argsJson, kwArgsJson); + } catch (Exception e) { + Map panicInfo = new HashMap<>(); + panicInfo.put("__kcl_PanicInfo__", e.getMessage()); + return convertToJson(panicInfo); + } + } + + private String callJavaMethodUnsafe(String name, String argsJson, String kwArgsJson) { + int dotIdx = name.lastIndexOf("."); + if (dotIdx < 0) { + return ""; + } + String modulePath = name.substring(0, dotIdx); + String methodName = name.substring(dotIdx + 1); + String pluginName = modulePath.substring(modulePath.lastIndexOf(".") + 1); + + MethodFunction methodFunc = this.pluginMap.getOrDefault(pluginName, new Plugin("", new HashMap<>())) + .getMethodMap().get(methodName); + + Object[] args = convertFromJson(argsJson, Object[].class); + Map kwArgs = convertFromJson(kwArgsJson, HashMap.class); + + Object result = null; + if (methodFunc != null) { + result = methodFunc.invoke(args, kwArgs); + } + + return convertToJson(result); + } + + public void registerPlugin(String name, Map methodMap) { + this.pluginMap.put(name, new Plugin(name, methodMap)); + } + + private String convertToJson(Object object) { + try { + return objectMapper.writeValueAsString(object); + } catch (JsonProcessingException e) { + e.printStackTrace(); + return ""; + } + } + + private T convertFromJson(String json, Class type) { + try { + return objectMapper.readValue(json, type); + } catch (JsonProcessingException e) { + e.printStackTrace(); + return null; + } + } +} diff --git a/kotlin/src/main/resources/META-INF/MANIFEST.MF b/kotlin/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..8db6088 --- /dev/null +++ b/kotlin/src/main/resources/META-INF/MANIFEST.MF @@ -0,0 +1 @@ +Module-Name: kcl-lib diff --git a/kotlin/src/test/kotlin/com/kcl/ExexProgramTest.kt b/kotlin/src/test/kotlin/com/kcl/ExexProgramTest.kt new file mode 100644 index 0000000..6d3192d --- /dev/null +++ b/kotlin/src/test/kotlin/com/kcl/ExexProgramTest.kt @@ -0,0 +1,20 @@ +package com.kcl + +import com.kcl.api.API +import com.kcl.api.execProgramArgs +import org.junit.jupiter.api.Test +import org.junit.jupiter.api.Assertions.assertEquals + +class ExecProgramTest { + companion object { + private const val TEST_FILE = "./src/test_data/schema.k" + } + + @Test + fun testExecProgramApi() { + val args = execProgramArgs { kFilenameList += TEST_FILE } + val api = API() + val result = api.execProgram(args) + assertEquals(result.yamlResult, "app:\n replicas: 2") + } +} diff --git a/kotlin/src/test/kotlin/com/kcl/ValidateTest.kt b/kotlin/src/test/kotlin/com/kcl/ValidateTest.kt new file mode 100644 index 0000000..4257922 --- /dev/null +++ b/kotlin/src/test/kotlin/com/kcl/ValidateTest.kt @@ -0,0 +1,21 @@ +package com.kcl; + +import com.kcl.api.API +import com.kcl.api.validateCodeArgs +import org.junit.jupiter.api.Test +import org.junit.jupiter.api.Assertions.assertEquals + +class ValidateTest { + @Test + fun testValidateCodeApi() { + val args = validateCodeArgs { + code = "schema Person:\n" + " name: str\n" + " age: int\n" + " check:\n" + " 0 < age < 120\n" + data = "{\"name\": \"Alice\", \"age\": 10}" + } + val apiInstance = API(); + val result = apiInstance.validateCode(args); + + assertEquals(true, result.getSuccess()); + assertEquals("", result.getErrMessage()); + } +} diff --git a/kotlin/src/test_data/format_path/test.k b/kotlin/src/test_data/format_path/test.k new file mode 100644 index 0000000..1337a53 --- /dev/null +++ b/kotlin/src/test_data/format_path/test.k @@ -0,0 +1 @@ +a = 1 diff --git a/kotlin/src/test_data/get_schema_ty/aaa/kcl.mod b/kotlin/src/test_data/get_schema_ty/aaa/kcl.mod new file mode 100644 index 0000000..1e29d9e --- /dev/null +++ b/kotlin/src/test_data/get_schema_ty/aaa/kcl.mod @@ -0,0 +1,5 @@ +[package] +name = "aaa" +edition = "0.0.1" +version = "0.0.1" + diff --git a/kotlin/src/test_data/get_schema_ty/aaa/main.k b/kotlin/src/test_data/get_schema_ty/aaa/main.k new file mode 100644 index 0000000..bba48ed --- /dev/null +++ b/kotlin/src/test_data/get_schema_ty/aaa/main.k @@ -0,0 +1,10 @@ +import bbb as b +import ccc as c + +a = b.B { + name: "b instance in a" +} + +a_c = c.C { + name: "c instance in a" +} \ No newline at end of file diff --git a/kotlin/src/test_data/get_schema_ty/bbb/kcl.mod b/kotlin/src/test_data/get_schema_ty/bbb/kcl.mod new file mode 100644 index 0000000..e9ea10a --- /dev/null +++ b/kotlin/src/test_data/get_schema_ty/bbb/kcl.mod @@ -0,0 +1,5 @@ +[package] +name = "bbb" +edition = "0.0.1" +version = "0.0.1" + diff --git a/kotlin/src/test_data/get_schema_ty/bbb/main.k b/kotlin/src/test_data/get_schema_ty/bbb/main.k new file mode 100644 index 0000000..21dad4f --- /dev/null +++ b/kotlin/src/test_data/get_schema_ty/bbb/main.k @@ -0,0 +1,2 @@ +schema B: + name: str \ No newline at end of file diff --git a/kotlin/src/test_data/get_schema_ty/ccc/kcl.mod b/kotlin/src/test_data/get_schema_ty/ccc/kcl.mod new file mode 100644 index 0000000..9a762a4 --- /dev/null +++ b/kotlin/src/test_data/get_schema_ty/ccc/kcl.mod @@ -0,0 +1,5 @@ +[package] +name = "ccc" +edition = "0.0.1" +version = "0.0.1" + diff --git a/kotlin/src/test_data/get_schema_ty/ccc/main.k b/kotlin/src/test_data/get_schema_ty/ccc/main.k new file mode 100644 index 0000000..463ff96 --- /dev/null +++ b/kotlin/src/test_data/get_schema_ty/ccc/main.k @@ -0,0 +1,2 @@ +schema C: + name: str \ No newline at end of file diff --git a/kotlin/src/test_data/lint_path/test-lint.k b/kotlin/src/test_data/lint_path/test-lint.k new file mode 100644 index 0000000..c0b471b --- /dev/null +++ b/kotlin/src/test_data/lint_path/test-lint.k @@ -0,0 +1,3 @@ +import math + +a = 1 diff --git a/kotlin/src/test_data/option/main.k b/kotlin/src/test_data/option/main.k new file mode 100644 index 0000000..1f6edf4 --- /dev/null +++ b/kotlin/src/test_data/option/main.k @@ -0,0 +1,5 @@ +a = option("key1") +b = option("key2", required=True) +c = { + metadata.key = option("metadata-key") +} diff --git a/kotlin/src/test_data/override_file/main.bak b/kotlin/src/test_data/override_file/main.bak new file mode 100644 index 0000000..75191e4 --- /dev/null +++ b/kotlin/src/test_data/override_file/main.bak @@ -0,0 +1,6 @@ +a = 1 + +b = { + "a": 1 + "b": 2 +} \ No newline at end of file diff --git a/kotlin/src/test_data/override_file/main.k b/kotlin/src/test_data/override_file/main.k new file mode 100644 index 0000000..460fcac --- /dev/null +++ b/kotlin/src/test_data/override_file/main.k @@ -0,0 +1,5 @@ +a = 1 +b = { + "a": 2 + "b": 2 +} diff --git a/kotlin/src/test_data/parse/kcl.mod b/kotlin/src/test_data/parse/kcl.mod new file mode 100644 index 0000000..e69de29 diff --git a/kotlin/src/test_data/parse/main.k b/kotlin/src/test_data/parse/main.k new file mode 100644 index 0000000..1f0792f --- /dev/null +++ b/kotlin/src/test_data/parse/main.k @@ -0,0 +1,5 @@ +import pkg1 +import pkg2 + +a1 = pkg1.a +a2 = pkg2.a diff --git a/kotlin/src/test_data/parse/pkg1/pkg.k b/kotlin/src/test_data/parse/pkg1/pkg.k new file mode 100644 index 0000000..1337a53 --- /dev/null +++ b/kotlin/src/test_data/parse/pkg1/pkg.k @@ -0,0 +1 @@ +a = 1 diff --git a/kotlin/src/test_data/parse/pkg2/pkg.k b/kotlin/src/test_data/parse/pkg2/pkg.k new file mode 100644 index 0000000..1337a53 --- /dev/null +++ b/kotlin/src/test_data/parse/pkg2/pkg.k @@ -0,0 +1 @@ +a = 1 diff --git a/kotlin/src/test_data/plugin.k b/kotlin/src/test_data/plugin.k new file mode 100644 index 0000000..d8334b7 --- /dev/null +++ b/kotlin/src/test_data/plugin.k @@ -0,0 +1,3 @@ +import kcl_plugin.my_plugin + +result = my_plugin.add(1, 1) diff --git a/kotlin/src/test_data/rename/main.bak b/kotlin/src/test_data/rename/main.bak new file mode 100644 index 0000000..3a0fa58 --- /dev/null +++ b/kotlin/src/test_data/rename/main.bak @@ -0,0 +1,2 @@ +a = 1 +b = a \ No newline at end of file diff --git a/kotlin/src/test_data/rename/main.k b/kotlin/src/test_data/rename/main.k new file mode 100644 index 0000000..d0f8ad1 --- /dev/null +++ b/kotlin/src/test_data/rename/main.k @@ -0,0 +1,2 @@ +a2 = 1 +b = a2 \ No newline at end of file diff --git a/kotlin/src/test_data/schema.k b/kotlin/src/test_data/schema.k new file mode 100644 index 0000000..d349890 --- /dev/null +++ b/kotlin/src/test_data/schema.k @@ -0,0 +1,6 @@ +schema AppConfig: + replicas: int + +app: AppConfig { + replicas: 2 +} diff --git a/kotlin/src/test_data/settings/kcl.yaml b/kotlin/src/test_data/settings/kcl.yaml new file mode 100644 index 0000000..7b7300d --- /dev/null +++ b/kotlin/src/test_data/settings/kcl.yaml @@ -0,0 +1,5 @@ +kcl_cli_configs: + strict_range_check: true +kcl_options: + - key: key + value: value diff --git a/kotlin/src/test_data/testing/module/kcl.mod b/kotlin/src/test_data/testing/module/kcl.mod new file mode 100644 index 0000000..35d888a --- /dev/null +++ b/kotlin/src/test_data/testing/module/kcl.mod @@ -0,0 +1,3 @@ +[package] +name = "test_data" + diff --git a/kotlin/src/test_data/testing/module/pkg/func.k b/kotlin/src/test_data/testing/module/pkg/func.k new file mode 100644 index 0000000..26df9cf --- /dev/null +++ b/kotlin/src/test_data/testing/module/pkg/func.k @@ -0,0 +1,3 @@ +func = lambda x { + x +} diff --git a/kotlin/src/test_data/testing/module/pkg/func_test.k b/kotlin/src/test_data/testing/module/pkg/func_test.k new file mode 100644 index 0000000..b022950 --- /dev/null +++ b/kotlin/src/test_data/testing/module/pkg/func_test.k @@ -0,0 +1,7 @@ +test_func_0 = lambda { + assert func("a") == "a" +} + +test_func_1 = lambda { + assert func("b") == "b" +} diff --git a/kotlin/src/test_data/update_dependencies/kcl.mod b/kotlin/src/test_data/update_dependencies/kcl.mod new file mode 100644 index 0000000..3b9d588 --- /dev/null +++ b/kotlin/src/test_data/update_dependencies/kcl.mod @@ -0,0 +1,8 @@ +[package] +name = "mod_update" +edition = "0.0.1" +version = "0.0.1" + +[dependencies] +helloworld = { oci = "oci://ghcr.io/kcl-lang/helloworld", tag = "0.1.0" } +flask = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests", commit = "ade147b" } diff --git a/kotlin/src/test_data/update_dependencies/main.k b/kotlin/src/test_data/update_dependencies/main.k new file mode 100644 index 0000000..b371e74 --- /dev/null +++ b/kotlin/src/test_data/update_dependencies/main.k @@ -0,0 +1,4 @@ +import helloworld +import flask + +a = helloworld.The_first_kcl_program diff --git a/kotlin/src/test_data/variables/main.k b/kotlin/src/test_data/variables/main.k new file mode 100644 index 0000000..23979c5 --- /dev/null +++ b/kotlin/src/test_data/variables/main.k @@ -0,0 +1,3 @@ +a = 1 +b = [1, 2, 3] +c = {"a": "b"} \ No newline at end of file diff --git a/spec/Makefile b/spec/Makefile index e26bf7a..d861b29 100644 --- a/spec/Makefile +++ b/spec/Makefile @@ -1,6 +1,6 @@ run: protoc spec.proto --java_out ../java/src/main/java - protoc spec.proto --kotlin_out ../kotlin/src/main/kotlin + protoc spec.proto --java_out ../kotlin/src/main/java --kotlin_out ../kotlin/src/main/kotlin protoc spec.proto --pyi_out ../python/kcl_lib/api protoc spec.proto --python_out ../python/kcl_lib/api protoc spec.proto --go_out ../go/api