From 355ea1758ba2d547dbab11c7ef15953c0f7de694 Mon Sep 17 00:00:00 2001 From: Tal Moran Date: Wed, 21 Jun 2017 13:19:00 +0300 Subject: [PATCH] Imported scanner project; doesn't compile yet --- android-scanner/build.gradle | 65 + android-scanner/gradlew | 1 + .../laura/fakescannerapp/ApplicationTest.java | 13 + android-scanner/src/main/AndroidManifest.xml | 23 + .../src/main/java/RestClient/APIService.java | 17 + .../src/main/java/RestClient/ApiUtils.java | 16 + .../main/java/RestClient/RetrofitClient.java | 19 + .../integration/android/IntentIntegrator.java | 508 + .../integration/android/IntentResult.java | 94 + .../laura/fakescannerapp/MainActivity.java | 126 + .../PollingStationConstants.java | 10 + .../BallotQuestionUIElementOuterClass.java | 5073 +++++ .../meerkat/protobuf/BulletinBoardAPI.java | 14679 +++++++++++++++ .../src/main/java/meerkat/protobuf/Comm.java | 679 + .../java/meerkat/protobuf/ConcreteCrypto.java | 1858 ++ .../main/java/meerkat/protobuf/Crypto.java | 3611 ++++ .../main/java/meerkat/protobuf/Mixing.java | 5084 +++++ .../java/meerkat/protobuf/PollingStation.java | 1217 ++ .../main/java/meerkat/protobuf/Voting.java | 15529 ++++++++++++++++ .../src/main/java/meerkat/rest/Constants.java | 8 + .../src/main/res/layout/activity_main.xml | 48 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10486 bytes .../src/main/res/values-w820dp/dimens.xml | 6 + .../src/main/res/values/colors.xml | 6 + .../src/main/res/values/dimens.xml | 5 + .../src/main/res/values/strings.xml | 5 + .../src/main/res/values/styles.xml | 11 + .../laura/fakescannerapp/ExampleUnitTest.java | 15 + settings.gradle | 7 + 33 files changed, 48733 insertions(+) create mode 100644 android-scanner/build.gradle create mode 120000 android-scanner/gradlew create mode 100644 android-scanner/src/androidTest/java/com/meerkat/laura/fakescannerapp/ApplicationTest.java create mode 100644 android-scanner/src/main/AndroidManifest.xml create mode 100644 android-scanner/src/main/java/RestClient/APIService.java create mode 100644 android-scanner/src/main/java/RestClient/ApiUtils.java create mode 100644 android-scanner/src/main/java/RestClient/RetrofitClient.java create mode 100644 android-scanner/src/main/java/com/google/zxing/integration/android/IntentIntegrator.java create mode 100644 android-scanner/src/main/java/com/google/zxing/integration/android/IntentResult.java create mode 100644 android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java create mode 100644 android-scanner/src/main/java/meerkat/pollingstation/PollingStationConstants.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/BallotQuestionUIElementOuterClass.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/BulletinBoardAPI.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/Comm.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/ConcreteCrypto.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/Crypto.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/Mixing.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/PollingStation.java create mode 100644 android-scanner/src/main/java/meerkat/protobuf/Voting.java create mode 100644 android-scanner/src/main/java/meerkat/rest/Constants.java create mode 100644 android-scanner/src/main/res/layout/activity_main.xml create mode 100644 android-scanner/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 android-scanner/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 android-scanner/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 android-scanner/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 android-scanner/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 android-scanner/src/main/res/values-w820dp/dimens.xml create mode 100644 android-scanner/src/main/res/values/colors.xml create mode 100644 android-scanner/src/main/res/values/dimens.xml create mode 100644 android-scanner/src/main/res/values/strings.xml create mode 100644 android-scanner/src/main/res/values/styles.xml create mode 100644 android-scanner/src/test/java/com/meerkat/laura/fakescannerapp/ExampleUnitTest.java diff --git a/android-scanner/build.gradle b/android-scanner/build.gradle new file mode 100644 index 0000000..05fa429 --- /dev/null +++ b/android-scanner/build.gradle @@ -0,0 +1,65 @@ + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.3.3' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + + +apply plugin: 'com.android.application' + +android { + compileSdkVersion 25 + buildToolsVersion "25.0.0" + defaultConfig { + applicationId "com.meerkat.laura.fakescannerapp" + minSdkVersion 11 + targetSdkVersion 23 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + + buildTypes { + debug { + debuggable true + } + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + +// compile 'com.android.support:appcompat-v7:25.0.1' +// compile 'com.android.support.constraint:constraint-layout:1.0.0-beta3' + + //compile 'com.android.support:appcompat-v7:23.1.0' + // Google protobufs + compile 'com.google.protobuf:protobuf-java:3.+' + // Retrofit + compile 'com.squareup.retrofit2:retrofit:2.1.0' + compile 'com.squareup.retrofit2:converter-protobuf:2.2.0' + + testCompile 'junit:junit:4.12' + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { + exclude group: 'com.android.support', module: 'support-annotations' + }) + +} + +repositories { + mavenLocal() + + jcenter() +} diff --git a/android-scanner/gradlew b/android-scanner/gradlew new file mode 120000 index 0000000..502f5a2 --- /dev/null +++ b/android-scanner/gradlew @@ -0,0 +1 @@ +../gradlew \ No newline at end of file diff --git a/android-scanner/src/androidTest/java/com/meerkat/laura/fakescannerapp/ApplicationTest.java b/android-scanner/src/androidTest/java/com/meerkat/laura/fakescannerapp/ApplicationTest.java new file mode 100644 index 0000000..2c5fe7c --- /dev/null +++ b/android-scanner/src/androidTest/java/com/meerkat/laura/fakescannerapp/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.meerkat.laura.fakescannerapp; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/android-scanner/src/main/AndroidManifest.xml b/android-scanner/src/main/AndroidManifest.xml new file mode 100644 index 0000000..1ffefd5 --- /dev/null +++ b/android-scanner/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + diff --git a/android-scanner/src/main/java/RestClient/APIService.java b/android-scanner/src/main/java/RestClient/APIService.java new file mode 100644 index 0000000..70f47e1 --- /dev/null +++ b/android-scanner/src/main/java/RestClient/APIService.java @@ -0,0 +1,17 @@ +package RestClient; + +import com.google.protobuf.BoolValue; + +import meerkat.protobuf.PollingStation; +import static meerkat.rest.Constants.MEDIATYPE_PROTOBUF; + +import retrofit2.Call; +import retrofit2.http.Body; +import retrofit2.http.POST; + +public interface APIService { + + @POST("/scan") + Call sendScan(@Body PollingStation.ScannedData post); +// Call sendScan(@Body PollingStation.ScannedData post); +} diff --git a/android-scanner/src/main/java/RestClient/ApiUtils.java b/android-scanner/src/main/java/RestClient/ApiUtils.java new file mode 100644 index 0000000..0a163c5 --- /dev/null +++ b/android-scanner/src/main/java/RestClient/ApiUtils.java @@ -0,0 +1,16 @@ +package RestClient; + +public class ApiUtils { + + private ApiUtils() {} + private static final String ADDRESS = "http://192.168.43.79"; + private static final String SUB_ADDRESS = ""; + private static final int PORT = 8080; + +// public static final String BASE_URL = "http://jsonplaceholder.typicode.com/"; + public static final String BASE_URL = ADDRESS + ":" + PORT + SUB_ADDRESS; + public static APIService getAPIService() { + + return RetrofitClient.getClient(BASE_URL).create(APIService.class); + } +} \ No newline at end of file diff --git a/android-scanner/src/main/java/RestClient/RetrofitClient.java b/android-scanner/src/main/java/RestClient/RetrofitClient.java new file mode 100644 index 0000000..e945772 --- /dev/null +++ b/android-scanner/src/main/java/RestClient/RetrofitClient.java @@ -0,0 +1,19 @@ +package RestClient; + +import retrofit2.Retrofit; +import retrofit2.converter.protobuf.ProtoConverterFactory; + +public class RetrofitClient { + + private static Retrofit retrofit = null; + + public static Retrofit getClient(String baseUrl) { + if (retrofit==null) { + retrofit = new Retrofit.Builder() + .baseUrl(baseUrl) + .addConverterFactory(ProtoConverterFactory.create()) + .build(); + } + return retrofit; + } +} \ No newline at end of file diff --git a/android-scanner/src/main/java/com/google/zxing/integration/android/IntentIntegrator.java b/android-scanner/src/main/java/com/google/zxing/integration/android/IntentIntegrator.java new file mode 100644 index 0000000..889c327 --- /dev/null +++ b/android-scanner/src/main/java/com/google/zxing/integration/android/IntentIntegrator.java @@ -0,0 +1,508 @@ +package com.google.zxing.integration.android; + +/* + * Copyright 2009 ZXing authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.Fragment; +import android.content.ActivityNotFoundException; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.pm.PackageManager; +import android.content.pm.ResolveInfo; +import android.net.Uri; +import android.os.Bundle; +import android.util.Log; + +/** + *

A utility class which helps ease integration with Barcode Scanner via {@link Intent}s. This is a simple + * way to invoke barcode scanning and receive the result, without any need to integrate, modify, or learn the + * project's source code.

+ * + *

Initiating a barcode scan

+ * + *

To integrate, create an instance of {@code IntentIntegrator} and call {@link #initiateScan()} and wait + * for the result in your app.

+ * + *

It does require that the Barcode Scanner (or work-alike) application is installed. The + * {@link #initiateScan()} method will prompt the user to download the application, if needed.

+ * + *

There are a few steps to using this integration. First, your {@link Activity} must implement + * the method {@link Activity#onActivityResult(int, int, Intent)} and include a line of code like this:

+ * + *
{@code
+ * public void onActivityResult(int requestCode, int resultCode, Intent intent) {
+ *   IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
+ *   if (scanResult != null) {
+ *     // handle scan result
+ *   }
+ *   // else continue with any other code you need in the method
+ *   ...
+ * }
+ * }
+ * + *

This is where you will handle a scan result.

+ * + *

Second, just call this in response to a user action somewhere to begin the scan process:

+ * + *
{@code
+ * IntentIntegrator integrator = new IntentIntegrator(yourActivity);
+ * integrator.initiateScan();
+ * }
+ * + *

Note that {@link #initiateScan()} returns an {@link AlertDialog} which is non-null if the + * user was prompted to download the application. This lets the calling app potentially manage the dialog. + * In particular, ideally, the app dismisses the dialog if it's still active in its {@link Activity#onPause()} + * method.

+ * + *

You can use {@link #setTitle(String)} to customize the title of this download prompt dialog (or, use + * {@link #setTitleByID(int)} to set the title by string resource ID.) Likewise, the prompt message, and + * yes/no button labels can be changed.

+ * + *

Finally, you can use {@link #addExtra(String, Object)} to add more parameters to the Intent used + * to invoke the scanner. This can be used to set additional options not directly exposed by this + * simplified API.

+ * + *

By default, this will only allow applications that are known to respond to this intent correctly + * do so. The apps that are allowed to response can be set with {@link #setTargetApplications(List)}. + * For example, set to {@link #TARGET_BARCODE_SCANNER_ONLY} to only target the Barcode Scanner app itself.

+ * + *

Sharing text via barcode

+ * + *

To share text, encoded as a QR Code on-screen, similarly, see {@link #shareText(CharSequence)}.

+ * + *

Some code, particularly download integration, was contributed from the Anobiit application.

+ * + *

Enabling experimental barcode formats

+ * + *

Some formats are not enabled by default even when scanning with {@link #ALL_CODE_TYPES}, such as + * PDF417. Use {@link #initiateScan(Collection)} with + * a collection containing the names of formats to scan for explicitly, like "PDF_417", to use such + * formats.

+ * + * @author Sean Owen + * @author Fred Lin + * @author Isaac Potoczny-Jones + * @author Brad Drehmer + * @author gcstang + */ +public class IntentIntegrator { + + public static final int REQUEST_CODE = 0x0000c0de; // Only use bottom 16 bits + private static final String TAG = IntentIntegrator.class.getSimpleName(); + + public static final String DEFAULT_TITLE = "Install Barcode Scanner?"; + public static final String DEFAULT_MESSAGE = + "This application requires Barcode Scanner. Would you like to install it?"; + public static final String DEFAULT_YES = "Yes"; + public static final String DEFAULT_NO = "No"; + + private static final String BS_PACKAGE = "com.google.zxing.client.android"; + private static final String BSPLUS_PACKAGE = "com.srowen.bs.android"; + + // supported barcode formats + public static final Collection PRODUCT_CODE_TYPES = list("UPC_A", "UPC_E", "EAN_8", "EAN_13", "RSS_14"); + public static final Collection ONE_D_CODE_TYPES = + list("UPC_A", "UPC_E", "EAN_8", "EAN_13", "CODE_39", "CODE_93", "CODE_128", + "ITF", "RSS_14", "RSS_EXPANDED"); + public static final Collection QR_CODE_TYPES = Collections.singleton("QR_CODE"); + public static final Collection DATA_MATRIX_TYPES = Collections.singleton("DATA_MATRIX"); + + public static final Collection ALL_CODE_TYPES = null; + + public static final List TARGET_BARCODE_SCANNER_ONLY = Collections.singletonList(BS_PACKAGE); + public static final List TARGET_ALL_KNOWN = list( + BSPLUS_PACKAGE, // Barcode Scanner+ + BSPLUS_PACKAGE + ".simple", // Barcode Scanner+ Simple + BS_PACKAGE // Barcode Scanner + // What else supports this intent? + ); + + private final Activity activity; + private final Fragment fragment; + + private String title; + private String message; + private String buttonYes; + private String buttonNo; + private List targetApplications; + private final Map moreExtras = new HashMap(3); + + /** + * @param activity {@link Activity} invoking the integration + */ + public IntentIntegrator(Activity activity) { + this.activity = activity; + this.fragment = null; + initializeConfiguration(); + } + + /** + * @param fragment {@link Fragment} invoking the integration. + * {@link #startActivityForResult(Intent, int)} will be called on the {@link Fragment} instead + * of an {@link Activity} + */ + public IntentIntegrator(Fragment fragment) { + this.activity = fragment.getActivity(); + this.fragment = fragment; + initializeConfiguration(); + } + + private void initializeConfiguration() { + title = DEFAULT_TITLE; + message = DEFAULT_MESSAGE; + buttonYes = DEFAULT_YES; + buttonNo = DEFAULT_NO; + targetApplications = TARGET_ALL_KNOWN; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public void setTitleByID(int titleID) { + title = activity.getString(titleID); + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public void setMessageByID(int messageID) { + message = activity.getString(messageID); + } + + public String getButtonYes() { + return buttonYes; + } + + public void setButtonYes(String buttonYes) { + this.buttonYes = buttonYes; + } + + public void setButtonYesByID(int buttonYesID) { + buttonYes = activity.getString(buttonYesID); + } + + public String getButtonNo() { + return buttonNo; + } + + public void setButtonNo(String buttonNo) { + this.buttonNo = buttonNo; + } + + public void setButtonNoByID(int buttonNoID) { + buttonNo = activity.getString(buttonNoID); + } + + public Collection getTargetApplications() { + return targetApplications; + } + + public final void setTargetApplications(List targetApplications) { + if (targetApplications.isEmpty()) { + throw new IllegalArgumentException("No target applications"); + } + this.targetApplications = targetApplications; + } + + public void setSingleTargetApplication(String targetApplication) { + this.targetApplications = Collections.singletonList(targetApplication); + } + + public Map getMoreExtras() { + return moreExtras; + } + + public final void addExtra(String key, Object value) { + moreExtras.put(key, value); + } + + /** + * Initiates a scan for all known barcode types with the default camera. + * + * @return the {@link AlertDialog} that was shown to the user prompting them to download the app + * if a prompt was needed, or null otherwise. + */ + public final AlertDialog initiateScan() { + return initiateScan(ALL_CODE_TYPES, -1); + } + + /** + * Initiates a scan for all known barcode types with the specified camera. + * + * @param cameraId camera ID of the camera to use. A negative value means "no preference". + * @return the {@link AlertDialog} that was shown to the user prompting them to download the app + * if a prompt was needed, or null otherwise. + */ + public final AlertDialog initiateScan(int cameraId) { + return initiateScan(ALL_CODE_TYPES, cameraId); + } + + /** + * Initiates a scan, using the default camera, only for a certain set of barcode types, given as strings corresponding + * to their names in ZXing's {@code BarcodeFormat} class like "UPC_A". You can supply constants + * like {@link #PRODUCT_CODE_TYPES} for example. + * + * @param desiredBarcodeFormats names of {@code BarcodeFormat}s to scan for + * @return the {@link AlertDialog} that was shown to the user prompting them to download the app + * if a prompt was needed, or null otherwise. + */ + public final AlertDialog initiateScan(Collection desiredBarcodeFormats) { + return initiateScan(desiredBarcodeFormats, -1); + } + + /** + * Initiates a scan, using the specified camera, only for a certain set of barcode types, given as strings corresponding + * to their names in ZXing's {@code BarcodeFormat} class like "UPC_A". You can supply constants + * like {@link #PRODUCT_CODE_TYPES} for example. + * + * @param desiredBarcodeFormats names of {@code BarcodeFormat}s to scan for + * @param cameraId camera ID of the camera to use. A negative value means "no preference". + * @return the {@link AlertDialog} that was shown to the user prompting them to download the app + * if a prompt was needed, or null otherwise + */ + public final AlertDialog initiateScan(Collection desiredBarcodeFormats, int cameraId) { + Intent intentScan = new Intent(BS_PACKAGE + ".SCAN"); + intentScan.addCategory(Intent.CATEGORY_DEFAULT); + + // check which types of codes to scan for + if (desiredBarcodeFormats != null) { + // set the desired barcode types + StringBuilder joinedByComma = new StringBuilder(); + for (String format : desiredBarcodeFormats) { + if (joinedByComma.length() > 0) { + joinedByComma.append(','); + } + joinedByComma.append(format); + } + intentScan.putExtra("SCAN_FORMATS", joinedByComma.toString()); + } + + // check requested camera ID + if (cameraId >= 0) { + intentScan.putExtra("SCAN_CAMERA_ID", cameraId); + } + + String targetAppPackage = findTargetAppPackage(intentScan); + if (targetAppPackage == null) { + return showDownloadDialog(); + } + intentScan.setPackage(targetAppPackage); + intentScan.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + intentScan.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); + attachMoreExtras(intentScan); + startActivityForResult(intentScan, REQUEST_CODE); + return null; + } + + /** + * Start an activity. This method is defined to allow different methods of activity starting for + * newer versions of Android and for compatibility library. + * + * @param intent Intent to start. + * @param code Request code for the activity + * @see Activity#startActivityForResult(Intent, int) + * @see Fragment#startActivityForResult(Intent, int) + */ + protected void startActivityForResult(Intent intent, int code) { + if (fragment == null) { + activity.startActivityForResult(intent, code); + } else { + fragment.startActivityForResult(intent, code); + } + } + + private String findTargetAppPackage(Intent intent) { + PackageManager pm = activity.getPackageManager(); + List availableApps = pm.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); + if (availableApps != null) { + for (String targetApp : targetApplications) { + if (contains(availableApps, targetApp)) { + return targetApp; + } + } + } + return null; + } + + private static boolean contains(Iterable availableApps, String targetApp) { + for (ResolveInfo availableApp : availableApps) { + String packageName = availableApp.activityInfo.packageName; + if (targetApp.equals(packageName)) { + return true; + } + } + return false; + } + + private AlertDialog showDownloadDialog() { + AlertDialog.Builder downloadDialog = new AlertDialog.Builder(activity); + downloadDialog.setTitle(title); + downloadDialog.setMessage(message); + downloadDialog.setPositiveButton(buttonYes, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialogInterface, int i) { + String packageName; + if (targetApplications.contains(BS_PACKAGE)) { + // Prefer to suggest download of BS if it's anywhere in the list + packageName = BS_PACKAGE; + } else { + // Otherwise, first option: + packageName = targetApplications.get(0); + } + Uri uri = Uri.parse("market://details?id=" + packageName); + Intent intent = new Intent(Intent.ACTION_VIEW, uri); + try { + if (fragment == null) { + activity.startActivity(intent); + } else { + fragment.startActivity(intent); + } + } catch (ActivityNotFoundException anfe) { + // Hmm, market is not installed + Log.w(TAG, "Google Play is not installed; cannot install " + packageName); + } + } + }); + downloadDialog.setNegativeButton(buttonNo, null); + downloadDialog.setCancelable(true); + return downloadDialog.show(); + } + + + /** + *

Call this from your {@link Activity}'s + * {@link Activity#onActivityResult(int, int, Intent)} method.

+ * + * @param requestCode request code from {@code onActivityResult()} + * @param resultCode result code from {@code onActivityResult()} + * @param intent {@link Intent} from {@code onActivityResult()} + * @return null if the event handled here was not related to this class, or + * else an {@link IntentResult} containing the result of the scan. If the user cancelled scanning, + * the fields will be null. + */ + public static IntentResult parseActivityResult(int requestCode, int resultCode, Intent intent) { + if (requestCode == REQUEST_CODE) { + if (resultCode == Activity.RESULT_OK) { + String contents = intent.getStringExtra("SCAN_RESULT"); + String formatName = intent.getStringExtra("SCAN_RESULT_FORMAT"); + byte[] rawBytes = intent.getByteArrayExtra("SCAN_RESULT_BYTES"); + int intentOrientation = intent.getIntExtra("SCAN_RESULT_ORIENTATION", Integer.MIN_VALUE); + Integer orientation = intentOrientation == Integer.MIN_VALUE ? null : intentOrientation; + String errorCorrectionLevel = intent.getStringExtra("SCAN_RESULT_ERROR_CORRECTION_LEVEL"); + return new IntentResult(contents, + formatName, + rawBytes, + orientation, + errorCorrectionLevel); + } + return new IntentResult(); + } + return null; + } + + + /** + * Defaults to type "TEXT_TYPE". + * + * @param text the text string to encode as a barcode + * @return the {@link AlertDialog} that was shown to the user prompting them to download the app + * if a prompt was needed, or null otherwise + * @see #shareText(CharSequence, CharSequence) + */ + public final AlertDialog shareText(CharSequence text) { + return shareText(text, "TEXT_TYPE"); + } + + /** + * Shares the given text by encoding it as a barcode, such that another user can + * scan the text off the screen of the device. + * + * @param text the text string to encode as a barcode + * @param type type of data to encode. See {@code com.google.zxing.client.android.Contents.Type} constants. + * @return the {@link AlertDialog} that was shown to the user prompting them to download the app + * if a prompt was needed, or null otherwise + */ + public final AlertDialog shareText(CharSequence text, CharSequence type) { + Intent intent = new Intent(); + intent.addCategory(Intent.CATEGORY_DEFAULT); + intent.setAction(BS_PACKAGE + ".ENCODE"); + intent.putExtra("ENCODE_TYPE", type); + intent.putExtra("ENCODE_DATA", text); + String targetAppPackage = findTargetAppPackage(intent); + if (targetAppPackage == null) { + return showDownloadDialog(); + } + intent.setPackage(targetAppPackage); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); + attachMoreExtras(intent); + if (fragment == null) { + activity.startActivity(intent); + } else { + fragment.startActivity(intent); + } + return null; + } + + private static List list(String... values) { + return Collections.unmodifiableList(Arrays.asList(values)); + } + + private void attachMoreExtras(Intent intent) { + for (Map.Entry entry : moreExtras.entrySet()) { + String key = entry.getKey(); + Object value = entry.getValue(); + // Kind of hacky + if (value instanceof Integer) { + intent.putExtra(key, (Integer) value); + } else if (value instanceof Long) { + intent.putExtra(key, (Long) value); + } else if (value instanceof Boolean) { + intent.putExtra(key, (Boolean) value); + } else if (value instanceof Double) { + intent.putExtra(key, (Double) value); + } else if (value instanceof Float) { + intent.putExtra(key, (Float) value); + } else if (value instanceof Bundle) { + intent.putExtra(key, (Bundle) value); + } else { + intent.putExtra(key, value.toString()); + } + } + } + +} + diff --git a/android-scanner/src/main/java/com/google/zxing/integration/android/IntentResult.java b/android-scanner/src/main/java/com/google/zxing/integration/android/IntentResult.java new file mode 100644 index 0000000..6face41 --- /dev/null +++ b/android-scanner/src/main/java/com/google/zxing/integration/android/IntentResult.java @@ -0,0 +1,94 @@ +/* + * Copyright 2009 ZXing authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.zxing.integration.android; + +/** + *

Encapsulates the result of a barcode scan invoked through {@link IntentIntegrator}.

+ * + * @author Sean Owen + */ +public final class IntentResult { + + private final String contents; + private final String formatName; + private final byte[] rawBytes; + private final Integer orientation; + private final String errorCorrectionLevel; + + IntentResult() { + this(null, null, null, null, null); + } + + IntentResult(String contents, + String formatName, + byte[] rawBytes, + Integer orientation, + String errorCorrectionLevel) { + this.contents = contents; + this.formatName = formatName; + this.rawBytes = rawBytes; + this.orientation = orientation; + this.errorCorrectionLevel = errorCorrectionLevel; + } + + /** + * @return raw content of barcode + */ + public String getContents() { + return contents; + } + + /** + * @return name of format, like "QR_CODE", "UPC_A". See {@code BarcodeFormat} for more format names. + */ + public String getFormatName() { + return formatName; + } + + /** + * @return raw bytes of the barcode content, if applicable, or null otherwise + */ + public byte[] getRawBytes() { + return rawBytes; + } + + /** + * @return rotation of the image, in degrees, which resulted in a successful scan. May be null. + */ + public Integer getOrientation() { + return orientation; + } + + /** + * @return name of the error correction level used in the barcode, if applicable + */ + public String getErrorCorrectionLevel() { + return errorCorrectionLevel; + } + + @Override + public String toString() { + int rawBytesLength = rawBytes == null ? 0 : rawBytes.length; + return "Format: " + formatName + '\n' + + "Contents: " + contents + '\n' + + "Raw bytes: (" + rawBytesLength + " bytes)\n" + + "Orientation: " + orientation + '\n' + + "EC level: " + errorCorrectionLevel + '\n'; + } + +} + diff --git a/android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java b/android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java new file mode 100644 index 0000000..dd00987 --- /dev/null +++ b/android-scanner/src/main/java/com/meerkat/laura/fakescannerapp/MainActivity.java @@ -0,0 +1,126 @@ +package com.meerkat.laura.fakescannerapp; + +import android.content.Intent; +import android.os.AsyncTask; +import android.os.StrictMode; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.util.Base64; +import android.util.Log; +import android.view.View; +import android.widget.Button; +import android.widget.TextView; +import android.widget.Toast; + +import com.google.protobuf.BoolValue; +import com.google.protobuf.ByteString; +import com.google.protobuf.InvalidProtocolBufferException; +import com.google.zxing.integration.android.IntentIntegrator; +import com.google.zxing.integration.android.IntentResult; + +import java.io.BufferedOutputStream; +import java.io.BufferedReader; +import java.io.BufferedWriter; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.io.OutputStreamWriter; +import java.net.HttpURLConnection; +import java.net.Socket; +import java.net.URL; +import java.nio.ByteBuffer; + +import javax.net.ssl.HttpsURLConnection; + +import RestClient.APIService; +import RestClient.ApiUtils; +import meerkat.protobuf.PollingStation; +import retrofit2.Call; +import retrofit2.Callback; +import retrofit2.Response; + + +public class MainActivity extends AppCompatActivity implements View.OnClickListener { + + private Button scanBtn; + private TextView formatTxt, contentTxt, responseTxt; + + private APIService mAPIService; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + scanBtn = (Button)findViewById(R.id.scan_button); + formatTxt = (TextView)findViewById(R.id.scan_format); + contentTxt = (TextView)findViewById(R.id.scan_content); + responseTxt = (TextView)findViewById(R.id.server_response); + + mAPIService = ApiUtils.getAPIService(); + scanBtn.setOnClickListener(this); + } + + public void onClick(View v){ + if(v.getId()==R.id.scan_button){ + IntentIntegrator scanIntegrator = new IntentIntegrator(this); + formatTxt.setText("Initiating scan..."); + scanIntegrator.initiateScan(); + } + } + + public void onActivityResult(int requestCode, int resultCode, Intent intent) { + IntentResult scanningResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent); + if (scanningResult != null) { + String scanContent = scanningResult.getContents(); + byte[] rawBytes = scanningResult.getRawBytes(); + String scanFormat = scanningResult.getFormatName(); + formatTxt.setText("FORMAT: " + scanFormat); + contentTxt.setText("CONTENT: " + scanContent + "sending data to server..."); +// sendPost(rawBytes); + sendPost(scanContent); + } else{ + Toast toast = Toast.makeText(getApplicationContext(), + "No scan data received!", Toast.LENGTH_SHORT); + toast.show(); + } + } + +// public void sendPost(byte[] body) { +public void sendPost(String scanContent) { + + try { + PollingStation.ScannedData scannedData = PollingStation.ScannedData.parseFrom(Base64.decode(scanContent.getBytes(), Base64.DEFAULT)); + // + // PollingStation.ScannedData scannedData = PollingStation.ScannedData.newBuilder() + // .setChannel(ByteString.copyFrom(body)) + // .build(); + + mAPIService.sendScan(scannedData).enqueue(new Callback() { + @Override + public void onResponse(Call call, Response response) { + + if(response.isSuccessful()) { + showResponse("response="+response.body().getValue()); + Log.i("MainActivity", "post submitted to API."); + } else { + showResponse("Error HTTP code="+response.code()); + Log.i("MainActivity", "post submitted to API but respnse with http error code."); + } + } + + @Override + public void onFailure(Call call, Throwable t) { + Log.e("MainActivity", "Unable to submit post to API."); + } + }); + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + } + + public void showResponse(String response) { + responseTxt.setText(response); + } + +} diff --git a/android-scanner/src/main/java/meerkat/pollingstation/PollingStationConstants.java b/android-scanner/src/main/java/meerkat/pollingstation/PollingStationConstants.java new file mode 100644 index 0000000..e55f749 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/pollingstation/PollingStationConstants.java @@ -0,0 +1,10 @@ +package meerkat.pollingstation; + +public interface PollingStationConstants { + + // Relative addresses for Scanner operations + + public static final String POLLING_STATION_WEB_SCANNER_SCAN_PATH = "/scan"; + public static final String POLLING_STATION_WEB_SCANNER_ERROR_PATH = "/error"; + +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/BallotQuestionUIElementOuterClass.java b/android-scanner/src/main/java/meerkat/protobuf/BallotQuestionUIElementOuterClass.java new file mode 100644 index 0000000..a7006c1 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/BallotQuestionUIElementOuterClass.java @@ -0,0 +1,5073 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/BallotQuestionUIElement.proto + +package meerkat.protobuf; + +public final class BallotQuestionUIElementOuterClass { + private BallotQuestionUIElementOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Enumeration that represents the available types of questions/answers that can be
+   * 
+ * + * Protobuf enum {@code meerkat.ValueType} + */ + public enum ValueType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * TEXT_TYPE = 0; + */ + TEXT_TYPE(0), + /** + * AUDIO_TYPE = 1; + */ + AUDIO_TYPE(1), + /** + * IMAGE_TYPE = 2; + */ + IMAGE_TYPE(2), + UNRECOGNIZED(-1), + ; + + /** + * TEXT_TYPE = 0; + */ + public static final int TEXT_TYPE_VALUE = 0; + /** + * AUDIO_TYPE = 1; + */ + public static final int AUDIO_TYPE_VALUE = 1; + /** + * IMAGE_TYPE = 2; + */ + public static final int IMAGE_TYPE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueType valueOf(int value) { + return forNumber(value); + } + + public static ValueType forNumber(int value) { + switch (value) { + case 0: return TEXT_TYPE; + case 1: return AUDIO_TYPE; + case 2: return IMAGE_TYPE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ValueType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ValueType findValueByNumber(int number) { + return ValueType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ValueType[] VALUES = values(); + + public static ValueType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ValueType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:meerkat.ValueType) + } + + public interface UIAnswerOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.UIAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes answer = 1; + */ + com.google.protobuf.ByteString getAnswer(); + + /** + * string description = 2; + */ + java.lang.String getDescription(); + /** + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Message that represent single answer for given question
+   * 
+ * + * Protobuf type {@code meerkat.UIAnswer} + */ + public static final class UIAnswer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.UIAnswer) + UIAnswerOrBuilder { + // Use UIAnswer.newBuilder() to construct. + private UIAnswer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UIAnswer() { + answer_ = com.google.protobuf.ByteString.EMPTY; + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private UIAnswer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + answer_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder.class); + } + + public static final int ANSWER_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString answer_; + /** + * bytes answer = 1; + */ + public com.google.protobuf.ByteString getAnswer() { + return answer_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + * string description = 2; + */ + 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; + } + } + /** + * string description = 2; + */ + 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; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!answer_.isEmpty()) { + output.writeBytes(1, answer_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!answer_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, answer_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer)) { + return super.equals(obj); + } + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer) obj; + + boolean result = true; + result = result && getAnswer() + .equals(other.getAnswer()); + result = result && getDescription() + .equals(other.getDescription()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswer().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Message that represent single answer for given question
+     * 
+ * + * Protobuf type {@code meerkat.UIAnswer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.UIAnswer) + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder.class); + } + + // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + answer_ = com.google.protobuf.ByteString.EMPTY; + + description_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswer_descriptor; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getDefaultInstanceForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance(); + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer build() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer buildPartial() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer(this); + result.answer_ = answer_; + result.description_ = description_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer) { + return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer other) { + if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance()) return this; + if (other.getAnswer() != com.google.protobuf.ByteString.EMPTY) { + setAnswer(other.getAnswer()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString answer_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes answer = 1; + */ + public com.google.protobuf.ByteString getAnswer() { + return answer_; + } + /** + * bytes answer = 1; + */ + public Builder setAnswer(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + answer_ = value; + onChanged(); + return this; + } + /** + * bytes answer = 1; + */ + public Builder clearAnswer() { + + answer_ = getDefaultInstance().getAnswer(); + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * string description = 2; + */ + 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; + } + } + /** + * string description = 2; + */ + 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; + } + } + /** + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.UIAnswer) + } + + // @@protoc_insertion_point(class_scope:meerkat.UIAnswer) + private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer(); + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UIAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UIAnswer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListOfAnswersOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ListOfAnswers) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + java.util.List + getAnswersList(); + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getAnswers(int index); + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + int getAnswersCount(); + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + java.util.List + getAnswersOrBuilderList(); + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder getAnswersOrBuilder( + int index); + } + /** + *
+   * Message object which is number of bytes
+   * 
+ * + * Protobuf type {@code meerkat.ListOfAnswers} + */ + public static final class ListOfAnswers extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ListOfAnswers) + ListOfAnswersOrBuilder { + // Use ListOfAnswers.newBuilder() to construct. + private ListOfAnswers(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListOfAnswers() { + answers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ListOfAnswers( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + answers_.add( + input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = java.util.Collections.unmodifiableList(answers_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder.class); + } + + public static final int ANSWERS_FIELD_NUMBER = 1; + private java.util.List answers_; + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public java.util.List getAnswersList() { + return answers_; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public java.util.List + getAnswersOrBuilderList() { + return answers_; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public int getAnswersCount() { + return answers_.size(); + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getAnswers(int index) { + return answers_.get(index); + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder getAnswersOrBuilder( + int index) { + return answers_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < answers_.size(); i++) { + output.writeMessage(1, answers_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < answers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, answers_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers)) { + return super.equals(obj); + } + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers) obj; + + boolean result = true; + result = result && getAnswersList() + .equals(other.getAnswersList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAnswersCount() > 0) { + hash = (37 * hash) + ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getAnswersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Message object which is number of bytes
+     * 
+ * + * Protobuf type {@code meerkat.ListOfAnswers} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.ListOfAnswers) + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder.class); + } + + // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAnswersFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (answersBuilder_ == null) { + answers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + answersBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_ListOfAnswers_descriptor; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getDefaultInstanceForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance(); + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers build() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers buildPartial() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers(this); + int from_bitField0_ = bitField0_; + if (answersBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = java.util.Collections.unmodifiableList(answers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.answers_ = answers_; + } else { + result.answers_ = answersBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers) { + return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers other) { + if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance()) return this; + if (answersBuilder_ == null) { + if (!other.answers_.isEmpty()) { + if (answers_.isEmpty()) { + answers_ = other.answers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnswersIsMutable(); + answers_.addAll(other.answers_); + } + onChanged(); + } + } else { + if (!other.answers_.isEmpty()) { + if (answersBuilder_.isEmpty()) { + answersBuilder_.dispose(); + answersBuilder_ = null; + answers_ = other.answers_; + bitField0_ = (bitField0_ & ~0x00000001); + answersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnswersFieldBuilder() : null; + } else { + answersBuilder_.addAllMessages(other.answers_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List answers_ = + java.util.Collections.emptyList(); + private void ensureAnswersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + answers_ = new java.util.ArrayList(answers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder> answersBuilder_; + + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public java.util.List getAnswersList() { + if (answersBuilder_ == null) { + return java.util.Collections.unmodifiableList(answers_); + } else { + return answersBuilder_.getMessageList(); + } + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public int getAnswersCount() { + if (answersBuilder_ == null) { + return answers_.size(); + } else { + return answersBuilder_.getCount(); + } + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer getAnswers(int index) { + if (answersBuilder_ == null) { + return answers_.get(index); + } else { + return answersBuilder_.getMessage(index); + } + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder setAnswers( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.set(index, value); + onChanged(); + } else { + answersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder setAnswers( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.set(index, builderForValue.build()); + onChanged(); + } else { + answersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder addAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.add(value); + onChanged(); + } else { + answersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder addAnswers( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.add(index, value); + onChanged(); + } else { + answersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder addAnswers( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.add(builderForValue.build()); + onChanged(); + } else { + answersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder addAnswers( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.add(index, builderForValue.build()); + onChanged(); + } else { + answersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder addAllAnswers( + java.lang.Iterable values) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, answers_); + onChanged(); + } else { + answersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder clearAnswers() { + if (answersBuilder_ == null) { + answers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + answersBuilder_.clear(); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public Builder removeAnswers(int index) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.remove(index); + onChanged(); + } else { + answersBuilder_.remove(index); + } + return this; + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder getAnswersBuilder( + int index) { + return getAnswersFieldBuilder().getBuilder(index); + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder getAnswersOrBuilder( + int index) { + if (answersBuilder_ == null) { + return answers_.get(index); } else { + return answersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public java.util.List + getAnswersOrBuilderList() { + if (answersBuilder_ != null) { + return answersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(answers_); + } + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder addAnswersBuilder() { + return getAnswersFieldBuilder().addBuilder( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance()); + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder addAnswersBuilder( + int index) { + return getAnswersFieldBuilder().addBuilder( + index, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.getDefaultInstance()); + } + /** + * repeated .meerkat.UIAnswer answers = 1; + */ + public java.util.List + getAnswersBuilderList() { + return getAnswersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder> + getAnswersFieldBuilder() { + if (answersBuilder_ == null) { + answersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder>( + answers_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + answers_ = null; + } + return answersBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ListOfAnswers) + } + + // @@protoc_insertion_point(class_scope:meerkat.ListOfAnswers) + private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers(); + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListOfAnswers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOfAnswers(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UIAnswersOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.UIAnswers) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 AnswersType = 1; + */ + int getAnswersType(); + + /** + * .meerkat.ListOfAnswers answers = 2; + */ + boolean hasAnswers(); + /** + * .meerkat.ListOfAnswers answers = 2; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getAnswers(); + /** + * .meerkat.ListOfAnswers answers = 2; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder getAnswersOrBuilder(); + } + /** + *
+   * Message object which contains the type of the answers and their data in bytes
+   * 
+ * + * Protobuf type {@code meerkat.UIAnswers} + */ + public static final class UIAnswers extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.UIAnswers) + UIAnswersOrBuilder { + // Use UIAnswers.newBuilder() to construct. + private UIAnswers(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UIAnswers() { + answersType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private UIAnswers( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + answersType_ = input.readInt32(); + break; + } + case 18: { + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder subBuilder = null; + if (answers_ != null) { + subBuilder = answers_.toBuilder(); + } + answers_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(answers_); + answers_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder.class); + } + + public static final int ANSWERSTYPE_FIELD_NUMBER = 1; + private int answersType_; + /** + * int32 AnswersType = 1; + */ + public int getAnswersType() { + return answersType_; + } + + public static final int ANSWERS_FIELD_NUMBER = 2; + private meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers answers_; + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public boolean hasAnswers() { + return answers_ != null; + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getAnswers() { + return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance() : answers_; + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder getAnswersOrBuilder() { + return getAnswers(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (answersType_ != 0) { + output.writeInt32(1, answersType_); + } + if (answers_ != null) { + output.writeMessage(2, getAnswers()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answersType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, answersType_); + } + if (answers_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAnswers()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers)) { + return super.equals(obj); + } + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers) obj; + + boolean result = true; + result = result && (getAnswersType() + == other.getAnswersType()); + result = result && (hasAnswers() == other.hasAnswers()); + if (hasAnswers()) { + result = result && getAnswers() + .equals(other.getAnswers()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ANSWERSTYPE_FIELD_NUMBER; + hash = (53 * hash) + getAnswersType(); + if (hasAnswers()) { + hash = (37 * hash) + ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getAnswers().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Message object which contains the type of the answers and their data in bytes
+     * 
+ * + * Protobuf type {@code meerkat.UIAnswers} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.UIAnswers) + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder.class); + } + + // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + answersType_ = 0; + + if (answersBuilder_ == null) { + answers_ = null; + } else { + answers_ = null; + answersBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIAnswers_descriptor; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getDefaultInstanceForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance(); + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers build() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers buildPartial() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers(this); + result.answersType_ = answersType_; + if (answersBuilder_ == null) { + result.answers_ = answers_; + } else { + result.answers_ = answersBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers) { + return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers other) { + if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance()) return this; + if (other.getAnswersType() != 0) { + setAnswersType(other.getAnswersType()); + } + if (other.hasAnswers()) { + mergeAnswers(other.getAnswers()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int answersType_ ; + /** + * int32 AnswersType = 1; + */ + public int getAnswersType() { + return answersType_; + } + /** + * int32 AnswersType = 1; + */ + public Builder setAnswersType(int value) { + + answersType_ = value; + onChanged(); + return this; + } + /** + * int32 AnswersType = 1; + */ + public Builder clearAnswersType() { + + answersType_ = 0; + onChanged(); + return this; + } + + private meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers answers_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder> answersBuilder_; + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public boolean hasAnswers() { + return answersBuilder_ != null || answers_ != null; + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers getAnswers() { + if (answersBuilder_ == null) { + return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance() : answers_; + } else { + return answersBuilder_.getMessage(); + } + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public Builder setAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answers_ = value; + onChanged(); + } else { + answersBuilder_.setMessage(value); + } + + return this; + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public Builder setAnswers( + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder builderForValue) { + if (answersBuilder_ == null) { + answers_ = builderForValue.build(); + onChanged(); + } else { + answersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public Builder mergeAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers value) { + if (answersBuilder_ == null) { + if (answers_ != null) { + answers_ = + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.newBuilder(answers_).mergeFrom(value).buildPartial(); + } else { + answers_ = value; + } + onChanged(); + } else { + answersBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public Builder clearAnswers() { + if (answersBuilder_ == null) { + answers_ = null; + onChanged(); + } else { + answers_ = null; + answersBuilder_ = null; + } + + return this; + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder getAnswersBuilder() { + + onChanged(); + return getAnswersFieldBuilder().getBuilder(); + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder getAnswersOrBuilder() { + if (answersBuilder_ != null) { + return answersBuilder_.getMessageOrBuilder(); + } else { + return answers_ == null ? + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.getDefaultInstance() : answers_; + } + } + /** + * .meerkat.ListOfAnswers answers = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder> + getAnswersFieldBuilder() { + if (answersBuilder_ == null) { + answersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.ListOfAnswersOrBuilder>( + getAnswers(), + getParentForChildren(), + isClean()); + answers_ = null; + } + return answersBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.UIAnswers) + } + + // @@protoc_insertion_point(class_scope:meerkat.UIAnswers) + private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers(); + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UIAnswers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UIAnswers(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QuestionOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.Question) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes question = 1; + */ + com.google.protobuf.ByteString getQuestion(); + } + /** + *
+   * Message Question are bytes
+   * 
+ * + * Protobuf type {@code meerkat.Question} + */ + public static final class Question extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.Question) + QuestionOrBuilder { + // Use Question.newBuilder() to construct. + private Question(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Question() { + question_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Question( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + question_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder.class); + } + + public static final int QUESTION_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString question_; + /** + * bytes question = 1; + */ + public com.google.protobuf.ByteString getQuestion() { + return question_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!question_.isEmpty()) { + output.writeBytes(1, question_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!question_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, question_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.Question)) { + return super.equals(obj); + } + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.Question) obj; + + boolean result = true; + result = result && getQuestion() + .equals(other.getQuestion()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Message Question are bytes
+     * 
+ * + * Protobuf type {@code meerkat.Question} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.Question) + meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder.class); + } + + // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + question_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_Question_descriptor; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getDefaultInstanceForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance(); + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question build() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question buildPartial() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.Question(this); + result.question_ = question_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.Question) { + return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.Question)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question other) { + if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance()) return this; + if (other.getQuestion() != com.google.protobuf.ByteString.EMPTY) { + setQuestion(other.getQuestion()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.Question) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString question_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes question = 1; + */ + public com.google.protobuf.ByteString getQuestion() { + return question_; + } + /** + * bytes question = 1; + */ + public Builder setQuestion(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + question_ = value; + onChanged(); + return this; + } + /** + * bytes question = 1; + */ + public Builder clearQuestion() { + + question_ = getDefaultInstance().getQuestion(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.Question) + } + + // @@protoc_insertion_point(class_scope:meerkat.Question) + private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.Question DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.Question(); + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Question parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Question(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UIQuestionOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.UIQuestion) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 QuestionType = 1; + */ + int getQuestionType(); + + /** + * .meerkat.Question question = 2; + */ + boolean hasQuestion(); + /** + * .meerkat.Question question = 2; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getQuestion(); + /** + * .meerkat.Question question = 2; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder getQuestionOrBuilder(); + } + /** + *
+   * Message object which contains the question and its type
+   * 
+ * + * Protobuf type {@code meerkat.UIQuestion} + */ + public static final class UIQuestion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.UIQuestion) + UIQuestionOrBuilder { + // Use UIQuestion.newBuilder() to construct. + private UIQuestion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UIQuestion() { + questionType_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private UIQuestion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + questionType_ = input.readInt32(); + break; + } + case 18: { + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder subBuilder = null; + if (question_ != null) { + subBuilder = question_.toBuilder(); + } + question_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(question_); + question_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder.class); + } + + public static final int QUESTIONTYPE_FIELD_NUMBER = 1; + private int questionType_; + /** + * int32 QuestionType = 1; + */ + public int getQuestionType() { + return questionType_; + } + + public static final int QUESTION_FIELD_NUMBER = 2; + private meerkat.protobuf.BallotQuestionUIElementOuterClass.Question question_; + /** + * .meerkat.Question question = 2; + */ + public boolean hasQuestion() { + return question_ != null; + } + /** + * .meerkat.Question question = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getQuestion() { + return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance() : question_; + } + /** + * .meerkat.Question question = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder getQuestionOrBuilder() { + return getQuestion(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (questionType_ != 0) { + output.writeInt32(1, questionType_); + } + if (question_ != null) { + output.writeMessage(2, getQuestion()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (questionType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, questionType_); + } + if (question_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQuestion()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion)) { + return super.equals(obj); + } + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion) obj; + + boolean result = true; + result = result && (getQuestionType() + == other.getQuestionType()); + result = result && (hasQuestion() == other.hasQuestion()); + if (hasQuestion()) { + result = result && getQuestion() + .equals(other.getQuestion()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUESTIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + getQuestionType(); + if (hasQuestion()) { + hash = (37 * hash) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Message object which contains the question and its type
+     * 
+ * + * Protobuf type {@code meerkat.UIQuestion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.UIQuestion) + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder.class); + } + + // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + questionType_ = 0; + + if (questionBuilder_ == null) { + question_ = null; + } else { + question_ = null; + questionBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_UIQuestion_descriptor; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getDefaultInstanceForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance(); + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion build() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion buildPartial() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion(this); + result.questionType_ = questionType_; + if (questionBuilder_ == null) { + result.question_ = question_; + } else { + result.question_ = questionBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion) { + return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion other) { + if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance()) return this; + if (other.getQuestionType() != 0) { + setQuestionType(other.getQuestionType()); + } + if (other.hasQuestion()) { + mergeQuestion(other.getQuestion()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int questionType_ ; + /** + * int32 QuestionType = 1; + */ + public int getQuestionType() { + return questionType_; + } + /** + * int32 QuestionType = 1; + */ + public Builder setQuestionType(int value) { + + questionType_ = value; + onChanged(); + return this; + } + /** + * int32 QuestionType = 1; + */ + public Builder clearQuestionType() { + + questionType_ = 0; + onChanged(); + return this; + } + + private meerkat.protobuf.BallotQuestionUIElementOuterClass.Question question_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder> questionBuilder_; + /** + * .meerkat.Question question = 2; + */ + public boolean hasQuestion() { + return questionBuilder_ != null || question_ != null; + } + /** + * .meerkat.Question question = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question getQuestion() { + if (questionBuilder_ == null) { + return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance() : question_; + } else { + return questionBuilder_.getMessage(); + } + } + /** + * .meerkat.Question question = 2; + */ + public Builder setQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question value) { + if (questionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + onChanged(); + } else { + questionBuilder_.setMessage(value); + } + + return this; + } + /** + * .meerkat.Question question = 2; + */ + public Builder setQuestion( + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder builderForValue) { + if (questionBuilder_ == null) { + question_ = builderForValue.build(); + onChanged(); + } else { + questionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .meerkat.Question question = 2; + */ + public Builder mergeQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.Question value) { + if (questionBuilder_ == null) { + if (question_ != null) { + question_ = + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.newBuilder(question_).mergeFrom(value).buildPartial(); + } else { + question_ = value; + } + onChanged(); + } else { + questionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .meerkat.Question question = 2; + */ + public Builder clearQuestion() { + if (questionBuilder_ == null) { + question_ = null; + onChanged(); + } else { + question_ = null; + questionBuilder_ = null; + } + + return this; + } + /** + * .meerkat.Question question = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder getQuestionBuilder() { + + onChanged(); + return getQuestionFieldBuilder().getBuilder(); + } + /** + * .meerkat.Question question = 2; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder getQuestionOrBuilder() { + if (questionBuilder_ != null) { + return questionBuilder_.getMessageOrBuilder(); + } else { + return question_ == null ? + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.getDefaultInstance() : question_; + } + } + /** + * .meerkat.Question question = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder> + getQuestionFieldBuilder() { + if (questionBuilder_ == null) { + questionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.Question, meerkat.protobuf.BallotQuestionUIElementOuterClass.Question.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.QuestionOrBuilder>( + getQuestion(), + getParentForChildren(), + isClean()); + question_ = null; + } + return questionBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.UIQuestion) + } + + // @@protoc_insertion_point(class_scope:meerkat.UIQuestion) + private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion(); + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UIQuestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UIQuestion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BallotQuestionUIElementOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BallotQuestionUIElement) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Message object which contains all the potential answers for given question
+     * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + boolean hasAnswers(); + /** + *
+     * Message object which contains all the potential answers for given question
+     * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getAnswers(); + /** + *
+     * Message object which contains all the potential answers for given question
+     * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder getAnswersOrBuilder(); + + /** + *
+     * Should those answers locations should be randomized before shown to the voter ?
+     * 
+ * + * bool RandomizeListOrder = 2; + */ + boolean getRandomizeListOrder(); + + /** + *
+     * Message object which contains the question itself
+     * 
+ * + * .meerkat.UIQuestion question = 3; + */ + boolean hasQuestion(); + /** + *
+     * Message object which contains the question itself
+     * 
+ * + * .meerkat.UIQuestion question = 3; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getQuestion(); + /** + *
+     * Message object which contains the question itself
+     * 
+ * + * .meerkat.UIQuestion question = 3; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder getQuestionOrBuilder(); + } + /** + * Protobuf type {@code meerkat.BallotQuestionUIElement} + */ + public static final class BallotQuestionUIElement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BallotQuestionUIElement) + BallotQuestionUIElementOrBuilder { + // Use BallotQuestionUIElement.newBuilder() to construct. + private BallotQuestionUIElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BallotQuestionUIElement() { + randomizeListOrder_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BallotQuestionUIElement( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder subBuilder = null; + if (answers_ != null) { + subBuilder = answers_.toBuilder(); + } + answers_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(answers_); + answers_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + randomizeListOrder_ = input.readBool(); + break; + } + case 26: { + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder subBuilder = null; + if (question_ != null) { + subBuilder = question_.toBuilder(); + } + question_ = input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(question_); + question_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder.class); + } + + public static final int ANSWERS_FIELD_NUMBER = 1; + private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers answers_; + /** + *
+     * Message object which contains all the potential answers for given question
+     * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public boolean hasAnswers() { + return answers_ != null; + } + /** + *
+     * Message object which contains all the potential answers for given question
+     * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getAnswers() { + return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance() : answers_; + } + /** + *
+     * Message object which contains all the potential answers for given question
+     * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder getAnswersOrBuilder() { + return getAnswers(); + } + + public static final int RANDOMIZELISTORDER_FIELD_NUMBER = 2; + private boolean randomizeListOrder_; + /** + *
+     * Should those answers locations should be randomized before shown to the voter ?
+     * 
+ * + * bool RandomizeListOrder = 2; + */ + public boolean getRandomizeListOrder() { + return randomizeListOrder_; + } + + public static final int QUESTION_FIELD_NUMBER = 3; + private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion question_; + /** + *
+     * Message object which contains the question itself
+     * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public boolean hasQuestion() { + return question_ != null; + } + /** + *
+     * Message object which contains the question itself
+     * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getQuestion() { + return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance() : question_; + } + /** + *
+     * Message object which contains the question itself
+     * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder getQuestionOrBuilder() { + return getQuestion(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (answers_ != null) { + output.writeMessage(1, getAnswers()); + } + if (randomizeListOrder_ != false) { + output.writeBool(2, randomizeListOrder_); + } + if (question_ != null) { + output.writeMessage(3, getQuestion()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (answers_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnswers()); + } + if (randomizeListOrder_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, randomizeListOrder_); + } + if (question_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getQuestion()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement)) { + return super.equals(obj); + } + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement) obj; + + boolean result = true; + result = result && (hasAnswers() == other.hasAnswers()); + if (hasAnswers()) { + result = result && getAnswers() + .equals(other.getAnswers()); + } + result = result && (getRandomizeListOrder() + == other.getRandomizeListOrder()); + result = result && (hasQuestion() == other.hasQuestion()); + if (hasQuestion()) { + result = result && getQuestion() + .equals(other.getQuestion()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAnswers()) { + hash = (37 * hash) + ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getAnswers().hashCode(); + } + hash = (37 * hash) + RANDOMIZELISTORDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRandomizeListOrder()); + if (hasQuestion()) { + hash = (37 * hash) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BallotQuestionUIElement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BallotQuestionUIElement) + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder.class); + } + + // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (answersBuilder_ == null) { + answers_ = null; + } else { + answers_ = null; + answersBuilder_ = null; + } + randomizeListOrder_ = false; + + if (questionBuilder_ == null) { + question_ = null; + } else { + question_ = null; + questionBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionUIElement_descriptor; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getDefaultInstanceForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance(); + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement build() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement buildPartial() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement(this); + if (answersBuilder_ == null) { + result.answers_ = answers_; + } else { + result.answers_ = answersBuilder_.build(); + } + result.randomizeListOrder_ = randomizeListOrder_; + if (questionBuilder_ == null) { + result.question_ = question_; + } else { + result.question_ = questionBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement) { + return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement other) { + if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance()) return this; + if (other.hasAnswers()) { + mergeAnswers(other.getAnswers()); + } + if (other.getRandomizeListOrder() != false) { + setRandomizeListOrder(other.getRandomizeListOrder()); + } + if (other.hasQuestion()) { + mergeQuestion(other.getQuestion()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers answers_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder> answersBuilder_; + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public boolean hasAnswers() { + return answersBuilder_ != null || answers_ != null; + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers getAnswers() { + if (answersBuilder_ == null) { + return answers_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance() : answers_; + } else { + return answersBuilder_.getMessage(); + } + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public Builder setAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answers_ = value; + onChanged(); + } else { + answersBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public Builder setAnswers( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder builderForValue) { + if (answersBuilder_ == null) { + answers_ = builderForValue.build(); + onChanged(); + } else { + answersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public Builder mergeAnswers(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers value) { + if (answersBuilder_ == null) { + if (answers_ != null) { + answers_ = + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.newBuilder(answers_).mergeFrom(value).buildPartial(); + } else { + answers_ = value; + } + onChanged(); + } else { + answersBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public Builder clearAnswers() { + if (answersBuilder_ == null) { + answers_ = null; + onChanged(); + } else { + answers_ = null; + answersBuilder_ = null; + } + + return this; + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder getAnswersBuilder() { + + onChanged(); + return getAnswersFieldBuilder().getBuilder(); + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder getAnswersOrBuilder() { + if (answersBuilder_ != null) { + return answersBuilder_.getMessageOrBuilder(); + } else { + return answers_ == null ? + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.getDefaultInstance() : answers_; + } + } + /** + *
+       * Message object which contains all the potential answers for given question
+       * 
+ * + * .meerkat.UIAnswers answers = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder> + getAnswersFieldBuilder() { + if (answersBuilder_ == null) { + answersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswers.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswersOrBuilder>( + getAnswers(), + getParentForChildren(), + isClean()); + answers_ = null; + } + return answersBuilder_; + } + + private boolean randomizeListOrder_ ; + /** + *
+       * Should those answers locations should be randomized before shown to the voter ?
+       * 
+ * + * bool RandomizeListOrder = 2; + */ + public boolean getRandomizeListOrder() { + return randomizeListOrder_; + } + /** + *
+       * Should those answers locations should be randomized before shown to the voter ?
+       * 
+ * + * bool RandomizeListOrder = 2; + */ + public Builder setRandomizeListOrder(boolean value) { + + randomizeListOrder_ = value; + onChanged(); + return this; + } + /** + *
+       * Should those answers locations should be randomized before shown to the voter ?
+       * 
+ * + * bool RandomizeListOrder = 2; + */ + public Builder clearRandomizeListOrder() { + + randomizeListOrder_ = false; + onChanged(); + return this; + } + + private meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion question_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder> questionBuilder_; + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public boolean hasQuestion() { + return questionBuilder_ != null || question_ != null; + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion getQuestion() { + if (questionBuilder_ == null) { + return question_ == null ? meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance() : question_; + } else { + return questionBuilder_.getMessage(); + } + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public Builder setQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion value) { + if (questionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + onChanged(); + } else { + questionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public Builder setQuestion( + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder builderForValue) { + if (questionBuilder_ == null) { + question_ = builderForValue.build(); + onChanged(); + } else { + questionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public Builder mergeQuestion(meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion value) { + if (questionBuilder_ == null) { + if (question_ != null) { + question_ = + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.newBuilder(question_).mergeFrom(value).buildPartial(); + } else { + question_ = value; + } + onChanged(); + } else { + questionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public Builder clearQuestion() { + if (questionBuilder_ == null) { + question_ = null; + onChanged(); + } else { + question_ = null; + questionBuilder_ = null; + } + + return this; + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder getQuestionBuilder() { + + onChanged(); + return getQuestionFieldBuilder().getBuilder(); + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder getQuestionOrBuilder() { + if (questionBuilder_ != null) { + return questionBuilder_.getMessageOrBuilder(); + } else { + return question_ == null ? + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.getDefaultInstance() : question_; + } + } + /** + *
+       * Message object which contains the question itself
+       * 
+ * + * .meerkat.UIQuestion question = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder> + getQuestionFieldBuilder() { + if (questionBuilder_ == null) { + questionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestion.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.UIQuestionOrBuilder>( + getQuestion(), + getParentForChildren(), + isClean()); + question_ = null; + } + return questionBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BallotQuestionUIElement) + } + + // @@protoc_insertion_point(class_scope:meerkat.BallotQuestionUIElement) + private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement(); + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BallotQuestionUIElement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BallotQuestionUIElement(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BallotQuestionsUIElementsOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BallotQuestionsUIElements) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + java.util.List + getQuestionsList(); + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getQuestions(int index); + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + int getQuestionsCount(); + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + java.util.List + getQuestionsOrBuilderList(); + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder getQuestionsOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.BallotQuestionsUIElements} + */ + public static final class BallotQuestionsUIElements extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BallotQuestionsUIElements) + BallotQuestionsUIElementsOrBuilder { + // Use BallotQuestionsUIElements.newBuilder() to construct. + private BallotQuestionsUIElements(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BallotQuestionsUIElements() { + questions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BallotQuestionsUIElements( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + questions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + questions_.add( + input.readMessage(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + questions_ = java.util.Collections.unmodifiableList(questions_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.Builder.class); + } + + public static final int QUESTIONS_FIELD_NUMBER = 1; + private java.util.List questions_; + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public java.util.List getQuestionsList() { + return questions_; + } + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public java.util.List + getQuestionsOrBuilderList() { + return questions_; + } + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public int getQuestionsCount() { + return questions_.size(); + } + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getQuestions(int index) { + return questions_.get(index); + } + /** + *
+     * for easy storing all wanted questions
+     * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder getQuestionsOrBuilder( + int index) { + return questions_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < questions_.size(); i++) { + output.writeMessage(1, questions_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < questions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, questions_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements)) { + return super.equals(obj); + } + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements other = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements) obj; + + boolean result = true; + result = result && getQuestionsList() + .equals(other.getQuestionsList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getQuestionsCount() > 0) { + hash = (37 * hash) + QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQuestionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BallotQuestionsUIElements} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BallotQuestionsUIElements) + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElementsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.class, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.Builder.class); + } + + // Construct using meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getQuestionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + questionsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.internal_static_meerkat_BallotQuestionsUIElements_descriptor; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements getDefaultInstanceForType() { + return meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.getDefaultInstance(); + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements build() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements buildPartial() { + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements result = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements(this); + int from_bitField0_ = bitField0_; + if (questionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + questions_ = java.util.Collections.unmodifiableList(questions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.questions_ = questions_; + } else { + result.questions_ = questionsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements) { + return mergeFrom((meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements other) { + if (other == meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements.getDefaultInstance()) return this; + if (questionsBuilder_ == null) { + if (!other.questions_.isEmpty()) { + if (questions_.isEmpty()) { + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuestionsIsMutable(); + questions_.addAll(other.questions_); + } + onChanged(); + } + } else { + if (!other.questions_.isEmpty()) { + if (questionsBuilder_.isEmpty()) { + questionsBuilder_.dispose(); + questionsBuilder_ = null; + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000001); + questionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQuestionsFieldBuilder() : null; + } else { + questionsBuilder_.addAllMessages(other.questions_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List questions_ = + java.util.Collections.emptyList(); + private void ensureQuestionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + questions_ = new java.util.ArrayList(questions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder> questionsBuilder_; + + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public java.util.List getQuestionsList() { + if (questionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(questions_); + } else { + return questionsBuilder_.getMessageList(); + } + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public int getQuestionsCount() { + if (questionsBuilder_ == null) { + return questions_.size(); + } else { + return questionsBuilder_.getCount(); + } + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement getQuestions(int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessage(index); + } + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder setQuestions( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.set(index, value); + onChanged(); + } else { + questionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder setQuestions( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.set(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder addQuestions(meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(value); + onChanged(); + } else { + questionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder addQuestions( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(index, value); + onChanged(); + } else { + questionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder addQuestions( + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder addQuestions( + int index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder addAllQuestions( + java.lang.Iterable values) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, questions_); + onChanged(); + } else { + questionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder clearQuestions() { + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + questionsBuilder_.clear(); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public Builder removeQuestions(int index) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.remove(index); + onChanged(); + } else { + questionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder getQuestionsBuilder( + int index) { + return getQuestionsFieldBuilder().getBuilder(index); + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder getQuestionsOrBuilder( + int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); } else { + return questionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public java.util.List + getQuestionsOrBuilderList() { + if (questionsBuilder_ != null) { + return questionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(questions_); + } + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder addQuestionsBuilder() { + return getQuestionsFieldBuilder().addBuilder( + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance()); + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder addQuestionsBuilder( + int index) { + return getQuestionsFieldBuilder().addBuilder( + index, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.getDefaultInstance()); + } + /** + *
+       * for easy storing all wanted questions
+       * 
+ * + * repeated .meerkat.BallotQuestionUIElement questions = 1; + */ + public java.util.List + getQuestionsBuilderList() { + return getQuestionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder> + getQuestionsFieldBuilder() { + if (questionsBuilder_ == null) { + questionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement.Builder, meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder>( + questions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + questions_ = null; + } + return questionsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BallotQuestionsUIElements) + } + + // @@protoc_insertion_point(class_scope:meerkat.BallotQuestionsUIElements) + private static final meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements(); + } + + public static meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BallotQuestionsUIElements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BallotQuestionsUIElements(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionsUIElements getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_UIAnswer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_UIAnswer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ListOfAnswers_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ListOfAnswers_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_UIAnswers_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_UIAnswers_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_Question_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_Question_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_UIQuestion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_UIQuestion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BallotQuestionUIElement_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BallotQuestionsUIElements_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BallotQuestionsUIElements_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%meerkat/BallotQuestionUIElement.proto\022" + + "\007meerkat\"/\n\010UIAnswer\022\016\n\006answer\030\001 \001(\014\022\023\n\013" + + "description\030\002 \001(\t\"3\n\rListOfAnswers\022\"\n\007an" + + "swers\030\001 \003(\0132\021.meerkat.UIAnswer\"I\n\tUIAnsw" + + "ers\022\023\n\013AnswersType\030\001 \001(\005\022\'\n\007answers\030\002 \001(" + + "\0132\026.meerkat.ListOfAnswers\"\034\n\010Question\022\020\n" + + "\010question\030\001 \001(\014\"G\n\nUIQuestion\022\024\n\014Questio" + + "nType\030\001 \001(\005\022#\n\010question\030\002 \001(\0132\021.meerkat." + + "Question\"\201\001\n\027BallotQuestionUIElement\022#\n\007" + + "answers\030\001 \001(\0132\022.meerkat.UIAnswers\022\032\n\022Ran", + "domizeListOrder\030\002 \001(\010\022%\n\010question\030\003 \001(\0132" + + "\023.meerkat.UIQuestion\"P\n\031BallotQuestionsU" + + "IElements\0223\n\tquestions\030\001 \003(\0132 .meerkat.B" + + "allotQuestionUIElement*:\n\tValueType\022\r\n\tT" + + "EXT_TYPE\020\000\022\016\n\nAUDIO_TYPE\020\001\022\016\n\nIMAGE_TYPE" + + "\020\002B\022\n\020meerkat.protobufb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_meerkat_UIAnswer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_UIAnswer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_UIAnswer_descriptor, + new java.lang.String[] { "Answer", "Description", }); + internal_static_meerkat_ListOfAnswers_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_meerkat_ListOfAnswers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ListOfAnswers_descriptor, + new java.lang.String[] { "Answers", }); + internal_static_meerkat_UIAnswers_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_meerkat_UIAnswers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_UIAnswers_descriptor, + new java.lang.String[] { "AnswersType", "Answers", }); + internal_static_meerkat_Question_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_meerkat_Question_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_Question_descriptor, + new java.lang.String[] { "Question", }); + internal_static_meerkat_UIQuestion_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_meerkat_UIQuestion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_UIQuestion_descriptor, + new java.lang.String[] { "QuestionType", "Question", }); + internal_static_meerkat_BallotQuestionUIElement_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_meerkat_BallotQuestionUIElement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BallotQuestionUIElement_descriptor, + new java.lang.String[] { "Answers", "RandomizeListOrder", "Question", }); + internal_static_meerkat_BallotQuestionsUIElements_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_meerkat_BallotQuestionsUIElements_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BallotQuestionsUIElements_descriptor, + new java.lang.String[] { "Questions", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/BulletinBoardAPI.java b/android-scanner/src/main/java/meerkat/protobuf/BulletinBoardAPI.java new file mode 100644 index 0000000..d26e3a0 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/BulletinBoardAPI.java @@ -0,0 +1,14679 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/BulletinBoardAPI.proto + +package meerkat.protobuf; + +public final class BulletinBoardAPI { + private BulletinBoardAPI() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code meerkat.FilterType} + */ + public enum FilterType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Match exact message ID
+     * 
+ * + * MSG_ID = 0; + */ + MSG_ID(0), + /** + *
+     * Match exact entry number in database (chronological)
+     * 
+ * + * EXACT_ENTRY = 1; + */ + EXACT_ENTRY(1), + /** + *
+     * Find all entries in database up to specified entry number (chronological)
+     * 
+ * + * MAX_ENTRY = 2; + */ + MAX_ENTRY(2), + /** + *
+     * Find all entries in database starting from specified entry number (chronological)
+     * 
+ * + * MIN_ENTRY = 3; + */ + MIN_ENTRY(3), + /** + *
+     * Find all entries in database that correspond to specific signature (signer)
+     * 
+ * + * SIGNER_ID = 4; + */ + SIGNER_ID(4), + /** + *
+     * Find all entries in database that have a specific tag
+     * 
+ * + * TAG = 5; + */ + TAG(5), + /** + *
+     * Find all entries in database that occurred on or after a given timestamp
+     * 
+ * + * AFTER_TIME = 6; + */ + AFTER_TIME(6), + /** + *
+     * Find all entries in database that occurred on or before a given timestamp
+     * 
+ * + * BEFORE_TIME = 7; + */ + BEFORE_TIME(7), + /** + *
+     * NOTE: The MAX_MESSAGES filter must remain the last filter type
+     *       This is because the condition it specifies in an SQL statement must come last in the statement
+     *       Keeping it last here allows for easily sorting the filters and keeping the code general
+     * 
+ * + * MAX_MESSAGES = 8; + */ + MAX_MESSAGES(8), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Match exact message ID
+     * 
+ * + * MSG_ID = 0; + */ + public static final int MSG_ID_VALUE = 0; + /** + *
+     * Match exact entry number in database (chronological)
+     * 
+ * + * EXACT_ENTRY = 1; + */ + public static final int EXACT_ENTRY_VALUE = 1; + /** + *
+     * Find all entries in database up to specified entry number (chronological)
+     * 
+ * + * MAX_ENTRY = 2; + */ + public static final int MAX_ENTRY_VALUE = 2; + /** + *
+     * Find all entries in database starting from specified entry number (chronological)
+     * 
+ * + * MIN_ENTRY = 3; + */ + public static final int MIN_ENTRY_VALUE = 3; + /** + *
+     * Find all entries in database that correspond to specific signature (signer)
+     * 
+ * + * SIGNER_ID = 4; + */ + public static final int SIGNER_ID_VALUE = 4; + /** + *
+     * Find all entries in database that have a specific tag
+     * 
+ * + * TAG = 5; + */ + public static final int TAG_VALUE = 5; + /** + *
+     * Find all entries in database that occurred on or after a given timestamp
+     * 
+ * + * AFTER_TIME = 6; + */ + public static final int AFTER_TIME_VALUE = 6; + /** + *
+     * Find all entries in database that occurred on or before a given timestamp
+     * 
+ * + * BEFORE_TIME = 7; + */ + public static final int BEFORE_TIME_VALUE = 7; + /** + *
+     * NOTE: The MAX_MESSAGES filter must remain the last filter type
+     *       This is because the condition it specifies in an SQL statement must come last in the statement
+     *       Keeping it last here allows for easily sorting the filters and keeping the code general
+     * 
+ * + * MAX_MESSAGES = 8; + */ + public static final int MAX_MESSAGES_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterType valueOf(int value) { + return forNumber(value); + } + + public static FilterType forNumber(int value) { + switch (value) { + case 0: return MSG_ID; + case 1: return EXACT_ENTRY; + case 2: return MAX_ENTRY; + case 3: return MIN_ENTRY; + case 4: return SIGNER_ID; + case 5: return TAG; + case 6: return AFTER_TIME; + case 7: return BEFORE_TIME; + case 8: return MAX_MESSAGES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FilterType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterType findValueByNumber(int number) { + return FilterType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.getDescriptor().getEnumTypes().get(0); + } + + private static final FilterType[] VALUES = values(); + + public static FilterType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:meerkat.FilterType) + } + + public interface BoolMsgOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BoolMsg) + com.google.protobuf.MessageOrBuilder { + + /** + * bool value = 1; + */ + boolean getValue(); + } + /** + * Protobuf type {@code meerkat.BoolMsg} + */ + public static final class BoolMsg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BoolMsg) + BoolMsgOrBuilder { + // Use BoolMsg.newBuilder() to construct. + private BoolMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BoolMsg() { + value_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BoolMsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + value_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BoolMsg.class, meerkat.protobuf.BulletinBoardAPI.BoolMsg.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private boolean value_; + /** + * bool value = 1; + */ + public boolean getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != false) { + output.writeBool(1, value_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, value_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BoolMsg)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BoolMsg other = (meerkat.protobuf.BulletinBoardAPI.BoolMsg) obj; + + boolean result = true; + result = result && (getValue() + == other.getValue()); + return result; + } + + @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) + com.google.protobuf.Internal.hashBoolean( + getValue()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BoolMsg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BoolMsg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BoolMsg) + meerkat.protobuf.BulletinBoardAPI.BoolMsgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BoolMsg.class, meerkat.protobuf.BulletinBoardAPI.BoolMsg.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BoolMsg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + value_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BoolMsg_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BoolMsg getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BoolMsg.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BoolMsg build() { + meerkat.protobuf.BulletinBoardAPI.BoolMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BoolMsg buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BoolMsg result = new meerkat.protobuf.BulletinBoardAPI.BoolMsg(this); + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BoolMsg) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BoolMsg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BoolMsg other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BoolMsg.getDefaultInstance()) return this; + if (other.getValue() != false) { + setValue(other.getValue()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BoolMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BoolMsg) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean value_ ; + /** + * bool value = 1; + */ + public boolean getValue() { + return value_; + } + /** + * bool value = 1; + */ + public Builder setValue(boolean value) { + + value_ = value; + onChanged(); + return this; + } + /** + * bool value = 1; + */ + public Builder clearValue() { + + value_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BoolMsg) + } + + // @@protoc_insertion_point(class_scope:meerkat.BoolMsg) + private static final meerkat.protobuf.BulletinBoardAPI.BoolMsg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BoolMsg(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BoolMsg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BoolMsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoolMsg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BoolMsg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IntMsgOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.IntMsg) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 value = 1; + */ + int getValue(); + } + /** + * Protobuf type {@code meerkat.IntMsg} + */ + public static final class IntMsg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.IntMsg) + IntMsgOrBuilder { + // Use IntMsg.newBuilder() to construct. + private IntMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IntMsg() { + value_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private IntMsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + value_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.IntMsg.class, meerkat.protobuf.BulletinBoardAPI.IntMsg.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private int value_; + /** + * int32 value = 1; + */ + public int getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != 0) { + output.writeInt32(1, value_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, value_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.IntMsg)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.IntMsg other = (meerkat.protobuf.BulletinBoardAPI.IntMsg) obj; + + boolean result = true; + result = result && (getValue() + == other.getValue()); + return result; + } + + @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(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.IntMsg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.IntMsg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.IntMsg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.IntMsg) + meerkat.protobuf.BulletinBoardAPI.IntMsgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.IntMsg.class, meerkat.protobuf.BulletinBoardAPI.IntMsg.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.IntMsg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + value_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_IntMsg_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.IntMsg getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.IntMsg.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.IntMsg build() { + meerkat.protobuf.BulletinBoardAPI.IntMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.IntMsg buildPartial() { + meerkat.protobuf.BulletinBoardAPI.IntMsg result = new meerkat.protobuf.BulletinBoardAPI.IntMsg(this); + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.IntMsg) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.IntMsg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.IntMsg other) { + if (other == meerkat.protobuf.BulletinBoardAPI.IntMsg.getDefaultInstance()) return this; + if (other.getValue() != 0) { + setValue(other.getValue()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.IntMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.IntMsg) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int value_ ; + /** + * int32 value = 1; + */ + public int getValue() { + return value_; + } + /** + * int32 value = 1; + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + /** + * int32 value = 1; + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.IntMsg) + } + + // @@protoc_insertion_point(class_scope:meerkat.IntMsg) + private static final meerkat.protobuf.BulletinBoardAPI.IntMsg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.IntMsg(); + } + + public static meerkat.protobuf.BulletinBoardAPI.IntMsg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public IntMsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IntMsg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.IntMsg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MessageIDOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.MessageID) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The ID of a message for unique retrieval.
+     * Note that it is assumed that this ID is a function of the message itself.
+     * 
+ * + * bytes ID = 1; + */ + com.google.protobuf.ByteString getID(); + } + /** + * Protobuf type {@code meerkat.MessageID} + */ + public static final class MessageID extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.MessageID) + MessageIDOrBuilder { + // Use MessageID.newBuilder() to construct. + private MessageID(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MessageID() { + iD_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MessageID( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + iD_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.MessageID.class, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString iD_; + /** + *
+     * The ID of a message for unique retrieval.
+     * Note that it is assumed that this ID is a function of the message itself.
+     * 
+ * + * bytes ID = 1; + */ + public com.google.protobuf.ByteString getID() { + return iD_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!iD_.isEmpty()) { + output.writeBytes(1, iD_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!iD_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, iD_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.MessageID)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.MessageID other = (meerkat.protobuf.BulletinBoardAPI.MessageID) obj; + + boolean result = true; + result = result && getID() + .equals(other.getID()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getID().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageID parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.MessageID prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.MessageID} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.MessageID) + meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.MessageID.class, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.MessageID.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + iD_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageID_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageID getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.MessageID build() { + meerkat.protobuf.BulletinBoardAPI.MessageID result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageID buildPartial() { + meerkat.protobuf.BulletinBoardAPI.MessageID result = new meerkat.protobuf.BulletinBoardAPI.MessageID(this); + result.iD_ = iD_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.MessageID) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.MessageID)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.MessageID other) { + if (other == meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance()) return this; + if (other.getID() != com.google.protobuf.ByteString.EMPTY) { + setID(other.getID()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.MessageID parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.MessageID) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString iD_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * The ID of a message for unique retrieval.
+       * Note that it is assumed that this ID is a function of the message itself.
+       * 
+ * + * bytes ID = 1; + */ + public com.google.protobuf.ByteString getID() { + return iD_; + } + /** + *
+       * The ID of a message for unique retrieval.
+       * Note that it is assumed that this ID is a function of the message itself.
+       * 
+ * + * bytes ID = 1; + */ + public Builder setID(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + iD_ = value; + onChanged(); + return this; + } + /** + *
+       * The ID of a message for unique retrieval.
+       * Note that it is assumed that this ID is a function of the message itself.
+       * 
+ * + * bytes ID = 1; + */ + public Builder clearID() { + + iD_ = getDefaultInstance().getID(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.MessageID) + } + + // @@protoc_insertion_point(class_scope:meerkat.MessageID) + private static final meerkat.protobuf.BulletinBoardAPI.MessageID DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.MessageID(); + } + + public static meerkat.protobuf.BulletinBoardAPI.MessageID getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MessageID parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MessageID(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UnsignedBulletinBoardMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.UnsignedBulletinBoardMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + java.util.List + getTagList(); + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + int getTagCount(); + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + java.lang.String getTag(int index); + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + com.google.protobuf.ByteString + getTagBytes(int index); + + /** + *
+     * Timestamp of the message (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + boolean hasTimestamp(); + /** + *
+     * Timestamp of the message (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + com.google.protobuf.Timestamp getTimestamp(); + /** + *
+     * Timestamp of the message (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); + + /** + *
+     * A unique message identifier
+     * 
+ * + * bytes msgId = 3; + */ + com.google.protobuf.ByteString getMsgId(); + + /** + *
+     * The actual content of the message
+     * 
+ * + * bytes data = 4; + */ + com.google.protobuf.ByteString getData(); + + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.DataTypeCase getDataTypeCase(); + } + /** + * Protobuf type {@code meerkat.UnsignedBulletinBoardMessage} + */ + public static final class UnsignedBulletinBoardMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.UnsignedBulletinBoardMessage) + UnsignedBulletinBoardMessageOrBuilder { + // Use UnsignedBulletinBoardMessage.newBuilder() to construct. + private UnsignedBulletinBoardMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UnsignedBulletinBoardMessage() { + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private UnsignedBulletinBoardMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tag_.add(s); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timestamp_ != null) { + subBuilder = timestamp_.toBuilder(); + } + timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timestamp_); + timestamp_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + dataTypeCase_ = 3; + dataType_ = input.readBytes(); + break; + } + case 34: { + dataTypeCase_ = 4; + dataType_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = tag_.getUnmodifiableView(); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder.class); + } + + private int bitField0_; + private int dataTypeCase_ = 0; + private java.lang.Object dataType_; + public enum DataTypeCase + implements com.google.protobuf.Internal.EnumLite { + MSGID(3), + DATA(4), + DATATYPE_NOT_SET(0); + private final int value; + private DataTypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataTypeCase valueOf(int value) { + return forNumber(value); + } + + public static DataTypeCase forNumber(int value) { + switch (value) { + case 3: return MSGID; + case 4: return DATA; + case 0: return DATATYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataTypeCase + getDataTypeCase() { + return DataTypeCase.forNumber( + dataTypeCase_); + } + + public static final int TAG_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList tag_; + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagList() { + return tag_; + } + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + public int getTagCount() { + return tag_.size(); + } + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + public java.lang.String getTag(int index) { + return tag_.get(index); + } + /** + *
+     * Optional tags describing message; Used for message retrieval
+     * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ByteString + getTagBytes(int index) { + return tag_.getByteString(index); + } + + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp timestamp_; + /** + *
+     * Timestamp of the message (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public boolean hasTimestamp() { + return timestamp_ != null; + } + /** + *
+     * Timestamp of the message (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public com.google.protobuf.Timestamp getTimestamp() { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + /** + *
+     * Timestamp of the message (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + return getTimestamp(); + } + + public static final int MSGID_FIELD_NUMBER = 3; + /** + *
+     * A unique message identifier
+     * 
+ * + * bytes msgId = 3; + */ + public com.google.protobuf.ByteString getMsgId() { + if (dataTypeCase_ == 3) { + return (com.google.protobuf.ByteString) dataType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int DATA_FIELD_NUMBER = 4; + /** + *
+     * The actual content of the message
+     * 
+ * + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + if (dataTypeCase_ == 4) { + return (com.google.protobuf.ByteString) dataType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tag_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_.getRaw(i)); + } + if (timestamp_ != null) { + output.writeMessage(2, getTimestamp()); + } + if (dataTypeCase_ == 3) { + output.writeBytes( + 3, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); + } + if (dataTypeCase_ == 4) { + output.writeBytes( + 4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tag_.size(); i++) { + dataSize += computeStringSizeNoTag(tag_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagList().size(); + } + if (timestamp_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimestamp()); + } + if (dataTypeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 3, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); + } + if (dataTypeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 4, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) dataType_)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage other = (meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage) obj; + + boolean result = true; + result = result && getTagList() + .equals(other.getTagList()); + result = result && (hasTimestamp() == other.hasTimestamp()); + if (hasTimestamp()) { + result = result && getTimestamp() + .equals(other.getTimestamp()); + } + result = result && getDataTypeCase().equals( + other.getDataTypeCase()); + if (!result) return false; + switch (dataTypeCase_) { + case 3: + result = result && getMsgId() + .equals(other.getMsgId()); + break; + case 4: + result = result && getData() + .equals(other.getData()); + break; + case 0: + default: + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTagCount() > 0) { + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTagList().hashCode(); + } + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + switch (dataTypeCase_) { + case 3: + hash = (37 * hash) + MSGID_FIELD_NUMBER; + hash = (53 * hash) + getMsgId().hashCode(); + break; + case 4: + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.UnsignedBulletinBoardMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.UnsignedBulletinBoardMessage) + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (timestampBuilder_ == null) { + timestamp_ = null; + } else { + timestamp_ = null; + timestampBuilder_ = null; + } + dataTypeCase_ = 0; + dataType_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage build() { + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage buildPartial() { + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage result = new meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = tag_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tag_ = tag_; + if (timestampBuilder_ == null) { + result.timestamp_ = timestamp_; + } else { + result.timestamp_ = timestampBuilder_.build(); + } + if (dataTypeCase_ == 3) { + result.dataType_ = dataType_; + } + if (dataTypeCase_ == 4) { + result.dataType_ = dataType_; + } + result.bitField0_ = to_bitField0_; + result.dataTypeCase_ = dataTypeCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage other) { + if (other == meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance()) return this; + if (!other.tag_.isEmpty()) { + if (tag_.isEmpty()) { + tag_ = other.tag_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTagIsMutable(); + tag_.addAll(other.tag_); + } + onChanged(); + } + if (other.hasTimestamp()) { + mergeTimestamp(other.getTimestamp()); + } + switch (other.getDataTypeCase()) { + case MSGID: { + setMsgId(other.getMsgId()); + break; + } + case DATA: { + setData(other.getData()); + break; + } + case DATATYPE_NOT_SET: { + break; + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataTypeCase_ = 0; + private java.lang.Object dataType_; + public DataTypeCase + getDataTypeCase() { + return DataTypeCase.forNumber( + dataTypeCase_); + } + + public Builder clearDataType() { + dataTypeCase_ = 0; + dataType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = new com.google.protobuf.LazyStringArrayList(tag_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagList() { + return tag_.getUnmodifiableView(); + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public int getTagCount() { + return tag_.size(); + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public java.lang.String getTag(int index) { + return tag_.get(index); + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ByteString + getTagBytes(int index) { + return tag_.getByteString(index); + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public Builder setTag( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public Builder addTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.add(value); + onChanged(); + return this; + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public Builder addAllTag( + java.lang.Iterable values) { + ensureTagIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tag_); + onChanged(); + return this; + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public Builder clearTag() { + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Optional tags describing message; Used for message retrieval
+       * 
+ * + * repeated string tag = 1; + */ + public Builder addTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagIsMutable(); + tag_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp timestamp_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public boolean hasTimestamp() { + return timestampBuilder_ != null || timestamp_ != null; + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public com.google.protobuf.Timestamp getTimestamp() { + if (timestampBuilder_ == null) { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } else { + return timestampBuilder_.getMessage(); + } + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public Builder setTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timestamp_ = value; + onChanged(); + } else { + timestampBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public Builder setTimestamp( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (timestampBuilder_ == null) { + timestamp_ = builderForValue.build(); + onChanged(); + } else { + timestampBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (timestamp_ != null) { + timestamp_ = + com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + } else { + timestamp_ = value; + } + onChanged(); + } else { + timestampBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public Builder clearTimestamp() { + if (timestampBuilder_ == null) { + timestamp_ = null; + onChanged(); + } else { + timestamp_ = null; + timestampBuilder_ = null; + } + + return this; + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { + + onChanged(); + return getTimestampFieldBuilder().getBuilder(); + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + if (timestampBuilder_ != null) { + return timestampBuilder_.getMessageOrBuilder(); + } else { + return timestamp_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + } + /** + *
+       * Timestamp of the message (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getTimestampFieldBuilder() { + if (timestampBuilder_ == null) { + timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTimestamp(), + getParentForChildren(), + isClean()); + timestamp_ = null; + } + return timestampBuilder_; + } + + /** + *
+       * A unique message identifier
+       * 
+ * + * bytes msgId = 3; + */ + public com.google.protobuf.ByteString getMsgId() { + if (dataTypeCase_ == 3) { + return (com.google.protobuf.ByteString) dataType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+       * A unique message identifier
+       * 
+ * + * bytes msgId = 3; + */ + public Builder setMsgId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + dataTypeCase_ = 3; + dataType_ = value; + onChanged(); + return this; + } + /** + *
+       * A unique message identifier
+       * 
+ * + * bytes msgId = 3; + */ + public Builder clearMsgId() { + if (dataTypeCase_ == 3) { + dataTypeCase_ = 0; + dataType_ = null; + onChanged(); + } + return this; + } + + /** + *
+       * The actual content of the message
+       * 
+ * + * bytes data = 4; + */ + public com.google.protobuf.ByteString getData() { + if (dataTypeCase_ == 4) { + return (com.google.protobuf.ByteString) dataType_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + *
+       * The actual content of the message
+       * 
+ * + * bytes data = 4; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + dataTypeCase_ = 4; + dataType_ = value; + onChanged(); + return this; + } + /** + *
+       * The actual content of the message
+       * 
+ * + * bytes data = 4; + */ + public Builder clearData() { + if (dataTypeCase_ == 4) { + dataTypeCase_ = 0; + dataType_ = null; + onChanged(); + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.UnsignedBulletinBoardMessage) + } + + // @@protoc_insertion_point(class_scope:meerkat.UnsignedBulletinBoardMessage) + private static final meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage(); + } + + public static meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UnsignedBulletinBoardMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnsignedBulletinBoardMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BulletinBoardMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BulletinBoardMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Serial entry number of message in database
+     * 
+ * + * int64 entryNum = 1; + */ + long getEntryNum(); + + /** + *
+     * Unsigned raw data of message
+     * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + boolean hasMsg(); + /** + *
+     * Unsigned raw data of message
+     * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getMsg(); + /** + *
+     * Unsigned raw data of message
+     * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder getMsgOrBuilder(); + + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + java.util.List + getSigList(); + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + meerkat.protobuf.Crypto.Signature getSig(int index); + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + int getSigCount(); + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + java.util.List + getSigOrBuilderList(); + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.BulletinBoardMessage} + */ + public static final class BulletinBoardMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BulletinBoardMessage) + BulletinBoardMessageOrBuilder { + // Use BulletinBoardMessage.newBuilder() to construct. + private BulletinBoardMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BulletinBoardMessage() { + entryNum_ = 0L; + sig_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BulletinBoardMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + entryNum_ = input.readInt64(); + break; + } + case 18: { + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder subBuilder = null; + if (msg_ != null) { + subBuilder = msg_.toBuilder(); + } + msg_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(msg_); + msg_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + sig_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + sig_.add( + input.readMessage(meerkat.protobuf.Crypto.Signature.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + sig_ = java.util.Collections.unmodifiableList(sig_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder.class); + } + + private int bitField0_; + public static final int ENTRYNUM_FIELD_NUMBER = 1; + private long entryNum_; + /** + *
+     * Serial entry number of message in database
+     * 
+ * + * int64 entryNum = 1; + */ + public long getEntryNum() { + return entryNum_; + } + + public static final int MSG_FIELD_NUMBER = 2; + private meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage msg_; + /** + *
+     * Unsigned raw data of message
+     * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public boolean hasMsg() { + return msg_ != null; + } + /** + *
+     * Unsigned raw data of message
+     * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getMsg() { + return msg_ == null ? meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance() : msg_; + } + /** + *
+     * Unsigned raw data of message
+     * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder getMsgOrBuilder() { + return getMsg(); + } + + public static final int SIG_FIELD_NUMBER = 3; + private java.util.List sig_; + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public java.util.List getSigList() { + return sig_; + } + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public java.util.List + getSigOrBuilderList() { + return sig_; + } + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public int getSigCount() { + return sig_.size(); + } + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public meerkat.protobuf.Crypto.Signature getSig(int index) { + return sig_.get(index); + } + /** + *
+     * Signature of message (and tags), excluding the entry number.
+     * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( + int index) { + return sig_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (entryNum_ != 0L) { + output.writeInt64(1, entryNum_); + } + if (msg_ != null) { + output.writeMessage(2, getMsg()); + } + for (int i = 0; i < sig_.size(); i++) { + output.writeMessage(3, sig_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (entryNum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, entryNum_); + } + if (msg_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMsg()); + } + for (int i = 0; i < sig_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, sig_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage other = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage) obj; + + boolean result = true; + result = result && (getEntryNum() + == other.getEntryNum()); + result = result && (hasMsg() == other.hasMsg()); + if (hasMsg()) { + result = result && getMsg() + .equals(other.getMsg()); + } + result = result && getSigList() + .equals(other.getSigList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENTRYNUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEntryNum()); + if (hasMsg()) { + hash = (37 * hash) + MSG_FIELD_NUMBER; + hash = (53 * hash) + getMsg().hashCode(); + } + if (getSigCount() > 0) { + hash = (37 * hash) + SIG_FIELD_NUMBER; + hash = (53 * hash) + getSigList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BulletinBoardMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BulletinBoardMessage) + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSigFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + entryNum_ = 0L; + + if (msgBuilder_ == null) { + msg_ = null; + } else { + msg_ = null; + msgBuilder_ = null; + } + if (sigBuilder_ == null) { + sig_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + sigBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessage_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage build() { + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage result = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.entryNum_ = entryNum_; + if (msgBuilder_ == null) { + result.msg_ = msg_; + } else { + result.msg_ = msgBuilder_.build(); + } + if (sigBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + sig_ = java.util.Collections.unmodifiableList(sig_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sig_ = sig_; + } else { + result.sig_ = sigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance()) return this; + if (other.getEntryNum() != 0L) { + setEntryNum(other.getEntryNum()); + } + if (other.hasMsg()) { + mergeMsg(other.getMsg()); + } + if (sigBuilder_ == null) { + if (!other.sig_.isEmpty()) { + if (sig_.isEmpty()) { + sig_ = other.sig_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSigIsMutable(); + sig_.addAll(other.sig_); + } + onChanged(); + } + } else { + if (!other.sig_.isEmpty()) { + if (sigBuilder_.isEmpty()) { + sigBuilder_.dispose(); + sigBuilder_ = null; + sig_ = other.sig_; + bitField0_ = (bitField0_ & ~0x00000004); + sigBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSigFieldBuilder() : null; + } else { + sigBuilder_.addAllMessages(other.sig_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long entryNum_ ; + /** + *
+       * Serial entry number of message in database
+       * 
+ * + * int64 entryNum = 1; + */ + public long getEntryNum() { + return entryNum_; + } + /** + *
+       * Serial entry number of message in database
+       * 
+ * + * int64 entryNum = 1; + */ + public Builder setEntryNum(long value) { + + entryNum_ = value; + onChanged(); + return this; + } + /** + *
+       * Serial entry number of message in database
+       * 
+ * + * int64 entryNum = 1; + */ + public Builder clearEntryNum() { + + entryNum_ = 0L; + onChanged(); + return this; + } + + private meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage msg_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder> msgBuilder_; + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public boolean hasMsg() { + return msgBuilder_ != null || msg_ != null; + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage getMsg() { + if (msgBuilder_ == null) { + return msg_ == null ? meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance() : msg_; + } else { + return msgBuilder_.getMessage(); + } + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public Builder setMsg(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage value) { + if (msgBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + msg_ = value; + onChanged(); + } else { + msgBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public Builder setMsg( + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder builderForValue) { + if (msgBuilder_ == null) { + msg_ = builderForValue.build(); + onChanged(); + } else { + msgBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public Builder mergeMsg(meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage value) { + if (msgBuilder_ == null) { + if (msg_ != null) { + msg_ = + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.newBuilder(msg_).mergeFrom(value).buildPartial(); + } else { + msg_ = value; + } + onChanged(); + } else { + msgBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public Builder clearMsg() { + if (msgBuilder_ == null) { + msg_ = null; + onChanged(); + } else { + msg_ = null; + msgBuilder_ = null; + } + + return this; + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder getMsgBuilder() { + + onChanged(); + return getMsgFieldBuilder().getBuilder(); + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder getMsgOrBuilder() { + if (msgBuilder_ != null) { + return msgBuilder_.getMessageOrBuilder(); + } else { + return msg_ == null ? + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.getDefaultInstance() : msg_; + } + } + /** + *
+       * Unsigned raw data of message
+       * 
+ * + * .meerkat.UnsignedBulletinBoardMessage msg = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder> + getMsgFieldBuilder() { + if (msgBuilder_ == null) { + msgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.UnsignedBulletinBoardMessageOrBuilder>( + getMsg(), + getParentForChildren(), + isClean()); + msg_ = null; + } + return msgBuilder_; + } + + private java.util.List sig_ = + java.util.Collections.emptyList(); + private void ensureSigIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + sig_ = new java.util.ArrayList(sig_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> sigBuilder_; + + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public java.util.List getSigList() { + if (sigBuilder_ == null) { + return java.util.Collections.unmodifiableList(sig_); + } else { + return sigBuilder_.getMessageList(); + } + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public int getSigCount() { + if (sigBuilder_ == null) { + return sig_.size(); + } else { + return sigBuilder_.getCount(); + } + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public meerkat.protobuf.Crypto.Signature getSig(int index) { + if (sigBuilder_ == null) { + return sig_.get(index); + } else { + return sigBuilder_.getMessage(index); + } + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder setSig( + int index, meerkat.protobuf.Crypto.Signature value) { + if (sigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSigIsMutable(); + sig_.set(index, value); + onChanged(); + } else { + sigBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder setSig( + int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.set(index, builderForValue.build()); + onChanged(); + } else { + sigBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder addSig(meerkat.protobuf.Crypto.Signature value) { + if (sigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSigIsMutable(); + sig_.add(value); + onChanged(); + } else { + sigBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder addSig( + int index, meerkat.protobuf.Crypto.Signature value) { + if (sigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSigIsMutable(); + sig_.add(index, value); + onChanged(); + } else { + sigBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder addSig( + meerkat.protobuf.Crypto.Signature.Builder builderForValue) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.add(builderForValue.build()); + onChanged(); + } else { + sigBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder addSig( + int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.add(index, builderForValue.build()); + onChanged(); + } else { + sigBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder addAllSig( + java.lang.Iterable values) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sig_); + onChanged(); + } else { + sigBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder clearSig() { + if (sigBuilder_ == null) { + sig_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sigBuilder_.clear(); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public Builder removeSig(int index) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.remove(index); + onChanged(); + } else { + sigBuilder_.remove(index); + } + return this; + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public meerkat.protobuf.Crypto.Signature.Builder getSigBuilder( + int index) { + return getSigFieldBuilder().getBuilder(index); + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( + int index) { + if (sigBuilder_ == null) { + return sig_.get(index); } else { + return sigBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public java.util.List + getSigOrBuilderList() { + if (sigBuilder_ != null) { + return sigBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sig_); + } + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder() { + return getSigFieldBuilder().addBuilder( + meerkat.protobuf.Crypto.Signature.getDefaultInstance()); + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder( + int index) { + return getSigFieldBuilder().addBuilder( + index, meerkat.protobuf.Crypto.Signature.getDefaultInstance()); + } + /** + *
+       * Signature of message (and tags), excluding the entry number.
+       * 
+ * + * repeated .meerkat.Signature sig = 3; + */ + public java.util.List + getSigBuilderList() { + return getSigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> + getSigFieldBuilder() { + if (sigBuilder_ == null) { + sigBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder>( + sig_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + sig_ = null; + } + return sigBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BulletinBoardMessage) + } + + // @@protoc_insertion_point(class_scope:meerkat.BulletinBoardMessage) + private static final meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BulletinBoardMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BulletinBoardMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BulletinBoardMessageListOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BulletinBoardMessageList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + java.util.List + getMessageList(); + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getMessage(int index); + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + int getMessageCount(); + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + java.util.List + getMessageOrBuilderList(); + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder getMessageOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.BulletinBoardMessageList} + */ + public static final class BulletinBoardMessageList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BulletinBoardMessageList) + BulletinBoardMessageListOrBuilder { + // Use BulletinBoardMessageList.newBuilder() to construct. + private BulletinBoardMessageList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BulletinBoardMessageList() { + message_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BulletinBoardMessageList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + message_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + message_.add( + input.readMessage(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + message_ = java.util.Collections.unmodifiableList(message_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private java.util.List message_; + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public java.util.List getMessageList() { + return message_; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public java.util.List + getMessageOrBuilderList() { + return message_; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public int getMessageCount() { + return message_.size(); + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getMessage(int index) { + return message_.get(index); + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder getMessageOrBuilder( + int index) { + return message_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < message_.size(); i++) { + output.writeMessage(1, message_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < message_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, message_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList other = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList) obj; + + boolean result = true; + result = result && getMessageList() + .equals(other.getMessageList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMessageCount() > 0) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessageList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BulletinBoardMessageList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BulletinBoardMessageList) + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.class, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (messageBuilder_ == null) { + message_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + messageBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BulletinBoardMessageList_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList build() { + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList result = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList(this); + int from_bitField0_ = bitField0_; + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + message_ = java.util.Collections.unmodifiableList(message_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList.getDefaultInstance()) return this; + if (messageBuilder_ == null) { + if (!other.message_.isEmpty()) { + if (message_.isEmpty()) { + message_ = other.message_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessageIsMutable(); + message_.addAll(other.message_); + } + onChanged(); + } + } else { + if (!other.message_.isEmpty()) { + if (messageBuilder_.isEmpty()) { + messageBuilder_.dispose(); + messageBuilder_ = null; + message_ = other.message_; + bitField0_ = (bitField0_ & ~0x00000001); + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessageFieldBuilder() : null; + } else { + messageBuilder_.addAllMessages(other.message_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List message_ = + java.util.Collections.emptyList(); + private void ensureMessageIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + message_ = new java.util.ArrayList(message_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder> messageBuilder_; + + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public java.util.List getMessageList() { + if (messageBuilder_ == null) { + return java.util.Collections.unmodifiableList(message_); + } else { + return messageBuilder_.getMessageList(); + } + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public int getMessageCount() { + if (messageBuilder_ == null) { + return message_.size(); + } else { + return messageBuilder_.getCount(); + } + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage getMessage(int index) { + if (messageBuilder_ == null) { + return message_.get(index); + } else { + return messageBuilder_.getMessage(index); + } + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder setMessage( + int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.set(index, value); + onChanged(); + } else { + messageBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder setMessage( + int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.set(index, builderForValue.build()); + onChanged(); + } else { + messageBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder addMessage(meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.add(value); + onChanged(); + } else { + messageBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder addMessage( + int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.add(index, value); + onChanged(); + } else { + messageBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder addMessage( + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(builderForValue.build()); + onChanged(); + } else { + messageBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder addMessage( + int index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(index, builderForValue.build()); + onChanged(); + } else { + messageBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder addAllMessage( + java.lang.Iterable values) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, message_); + onChanged(); + } else { + messageBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder clearMessage() { + if (messageBuilder_ == null) { + message_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messageBuilder_.clear(); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public Builder removeMessage(int index) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.remove(index); + onChanged(); + } else { + messageBuilder_.remove(index); + } + return this; + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder getMessageBuilder( + int index) { + return getMessageFieldBuilder().getBuilder(index); + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder getMessageOrBuilder( + int index) { + if (messageBuilder_ == null) { + return message_.get(index); } else { + return messageBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public java.util.List + getMessageOrBuilderList() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(message_); + } + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder addMessageBuilder() { + return getMessageFieldBuilder().addBuilder( + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance()); + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder addMessageBuilder( + int index) { + return getMessageFieldBuilder().addBuilder( + index, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.getDefaultInstance()); + } + /** + * repeated .meerkat.BulletinBoardMessage message = 1; + */ + public java.util.List + getMessageBuilderList() { + return getMessageFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage.Builder, meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder>( + message_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + message_ = null; + } + return messageBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BulletinBoardMessageList) + } + + // @@protoc_insertion_point(class_scope:meerkat.BulletinBoardMessageList) + private static final meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BulletinBoardMessageList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BulletinBoardMessageList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MessageFilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.MessageFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * .meerkat.FilterType type = 1; + */ + int getTypeValue(); + /** + * .meerkat.FilterType type = 1; + */ + meerkat.protobuf.BulletinBoardAPI.FilterType getType(); + + /** + * bytes id = 2; + */ + com.google.protobuf.ByteString getId(); + + /** + * int64 entry = 3; + */ + long getEntry(); + + /** + * string tag = 4; + */ + java.lang.String getTag(); + /** + * string tag = 4; + */ + com.google.protobuf.ByteString + getTagBytes(); + + /** + * int64 maxMessages = 5; + */ + long getMaxMessages(); + + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + com.google.protobuf.Timestamp getTimestamp(); + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); + + public meerkat.protobuf.BulletinBoardAPI.MessageFilter.FilterCase getFilterCase(); + } + /** + * Protobuf type {@code meerkat.MessageFilter} + */ + public static final class MessageFilter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.MessageFilter) + MessageFilterOrBuilder { + // Use MessageFilter.newBuilder() to construct. + private MessageFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MessageFilter() { + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MessageFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + filterCase_ = 2; + filter_ = input.readBytes(); + break; + } + case 24: { + filterCase_ = 3; + filter_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + filterCase_ = 4; + filter_ = s; + break; + } + case 40: { + filterCase_ = 5; + filter_ = input.readInt64(); + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (filterCase_ == 6) { + subBuilder = ((com.google.protobuf.Timestamp) filter_).toBuilder(); + } + filter_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) filter_); + filter_ = subBuilder.buildPartial(); + } + filterCase_ = 6; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.MessageFilter.class, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder.class); + } + + private int filterCase_ = 0; + private java.lang.Object filter_; + public enum FilterCase + implements com.google.protobuf.Internal.EnumLite { + ID(2), + ENTRY(3), + TAG(4), + MAXMESSAGES(5), + TIMESTAMP(6), + FILTER_NOT_SET(0); + private final int value; + private FilterCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterCase valueOf(int value) { + return forNumber(value); + } + + public static FilterCase forNumber(int value) { + switch (value) { + case 2: return ID; + case 3: return ENTRY; + case 4: return TAG; + case 5: return MAXMESSAGES; + case 6: return TIMESTAMP; + case 0: return FILTER_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .meerkat.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .meerkat.FilterType type = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.FilterType getType() { + meerkat.protobuf.BulletinBoardAPI.FilterType result = meerkat.protobuf.BulletinBoardAPI.FilterType.valueOf(type_); + return result == null ? meerkat.protobuf.BulletinBoardAPI.FilterType.UNRECOGNIZED : result; + } + + public static final int ID_FIELD_NUMBER = 2; + /** + * bytes id = 2; + */ + public com.google.protobuf.ByteString getId() { + if (filterCase_ == 2) { + return (com.google.protobuf.ByteString) filter_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int ENTRY_FIELD_NUMBER = 3; + /** + * int64 entry = 3; + */ + public long getEntry() { + if (filterCase_ == 3) { + return (java.lang.Long) filter_; + } + return 0L; + } + + public static final int TAG_FIELD_NUMBER = 4; + /** + * string tag = 4; + */ + public java.lang.String getTag() { + java.lang.Object ref = ""; + if (filterCase_ == 4) { + ref = filter_; + } + 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(); + if (filterCase_ == 4) { + filter_ = s; + } + return s; + } + } + /** + * string tag = 4; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = ""; + if (filterCase_ == 4) { + ref = filter_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (filterCase_ == 4) { + filter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAXMESSAGES_FIELD_NUMBER = 5; + /** + * int64 maxMessages = 5; + */ + public long getMaxMessages() { + if (filterCase_ == 5) { + return (java.lang.Long) filter_; + } + return 0L; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 6; + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public com.google.protobuf.Timestamp getTimestamp() { + if (filterCase_ == 6) { + return (com.google.protobuf.Timestamp) filter_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + if (filterCase_ == 6) { + return (com.google.protobuf.Timestamp) filter_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != meerkat.protobuf.BulletinBoardAPI.FilterType.MSG_ID.getNumber()) { + output.writeEnum(1, type_); + } + if (filterCase_ == 2) { + output.writeBytes( + 2, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) filter_)); + } + if (filterCase_ == 3) { + output.writeInt64( + 3, (long)((java.lang.Long) filter_)); + } + if (filterCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (filterCase_ == 5) { + output.writeInt64( + 5, (long)((java.lang.Long) filter_)); + } + if (filterCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Timestamp) filter_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != meerkat.protobuf.BulletinBoardAPI.FilterType.MSG_ID.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (filterCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString)((com.google.protobuf.ByteString) filter_)); + } + if (filterCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 3, (long)((java.lang.Long) filter_)); + } + if (filterCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (filterCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 5, (long)((java.lang.Long) filter_)); + } + if (filterCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.protobuf.Timestamp) filter_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilter)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.MessageFilter other = (meerkat.protobuf.BulletinBoardAPI.MessageFilter) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getFilterCase().equals( + other.getFilterCase()); + if (!result) return false; + switch (filterCase_) { + case 2: + result = result && getId() + .equals(other.getId()); + break; + case 3: + result = result && (getEntry() + == other.getEntry()); + break; + case 4: + result = result && getTag() + .equals(other.getTag()); + break; + case 5: + result = result && (getMaxMessages() + == other.getMaxMessages()); + break; + case 6: + result = result && getTimestamp() + .equals(other.getTimestamp()); + break; + case 0: + default: + } + return result; + } + + @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) + type_; + switch (filterCase_) { + case 2: + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + break; + case 3: + hash = (37 * hash) + ENTRY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEntry()); + break; + case 4: + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + break; + case 5: + hash = (37 * hash) + MAXMESSAGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxMessages()); + break; + case 6: + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.MessageFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.MessageFilter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.MessageFilter) + meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.MessageFilter.class, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.MessageFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = 0; + + filterCase_ = 0; + filter_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilter_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilter getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilter build() { + meerkat.protobuf.BulletinBoardAPI.MessageFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilter buildPartial() { + meerkat.protobuf.BulletinBoardAPI.MessageFilter result = new meerkat.protobuf.BulletinBoardAPI.MessageFilter(this); + result.type_ = type_; + if (filterCase_ == 2) { + result.filter_ = filter_; + } + if (filterCase_ == 3) { + result.filter_ = filter_; + } + if (filterCase_ == 4) { + result.filter_ = filter_; + } + if (filterCase_ == 5) { + result.filter_ = filter_; + } + if (filterCase_ == 6) { + if (timestampBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = timestampBuilder_.build(); + } + } + result.filterCase_ = filterCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilter) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.MessageFilter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.MessageFilter other) { + if (other == meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + switch (other.getFilterCase()) { + case ID: { + setId(other.getId()); + break; + } + case ENTRY: { + setEntry(other.getEntry()); + break; + } + case TAG: { + filterCase_ = 4; + filter_ = other.filter_; + onChanged(); + break; + } + case MAXMESSAGES: { + setMaxMessages(other.getMaxMessages()); + break; + } + case TIMESTAMP: { + mergeTimestamp(other.getTimestamp()); + break; + } + case FILTER_NOT_SET: { + break; + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.MessageFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.MessageFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int filterCase_ = 0; + private java.lang.Object filter_; + public FilterCase + getFilterCase() { + return FilterCase.forNumber( + filterCase_); + } + + public Builder clearFilter() { + filterCase_ = 0; + filter_ = null; + onChanged(); + return this; + } + + + private int type_ = 0; + /** + * .meerkat.FilterType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .meerkat.FilterType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * .meerkat.FilterType type = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.FilterType getType() { + meerkat.protobuf.BulletinBoardAPI.FilterType result = meerkat.protobuf.BulletinBoardAPI.FilterType.valueOf(type_); + return result == null ? meerkat.protobuf.BulletinBoardAPI.FilterType.UNRECOGNIZED : result; + } + /** + * .meerkat.FilterType type = 1; + */ + public Builder setType(meerkat.protobuf.BulletinBoardAPI.FilterType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .meerkat.FilterType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + /** + * bytes id = 2; + */ + public com.google.protobuf.ByteString getId() { + if (filterCase_ == 2) { + return (com.google.protobuf.ByteString) filter_; + } + return com.google.protobuf.ByteString.EMPTY; + } + /** + * bytes id = 2; + */ + public Builder setId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + filterCase_ = 2; + filter_ = value; + onChanged(); + return this; + } + /** + * bytes id = 2; + */ + public Builder clearId() { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + return this; + } + + /** + * int64 entry = 3; + */ + public long getEntry() { + if (filterCase_ == 3) { + return (java.lang.Long) filter_; + } + return 0L; + } + /** + * int64 entry = 3; + */ + public Builder setEntry(long value) { + filterCase_ = 3; + filter_ = value; + onChanged(); + return this; + } + /** + * int64 entry = 3; + */ + public Builder clearEntry() { + if (filterCase_ == 3) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + return this; + } + + /** + * string tag = 4; + */ + public java.lang.String getTag() { + java.lang.Object ref = ""; + if (filterCase_ == 4) { + ref = filter_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (filterCase_ == 4) { + filter_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag = 4; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = ""; + if (filterCase_ == 4) { + ref = filter_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (filterCase_ == 4) { + filter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag = 4; + */ + public Builder setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filterCase_ = 4; + filter_ = value; + onChanged(); + return this; + } + /** + * string tag = 4; + */ + public Builder clearTag() { + if (filterCase_ == 4) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + return this; + } + /** + * string tag = 4; + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filterCase_ = 4; + filter_ = value; + onChanged(); + return this; + } + + /** + * int64 maxMessages = 5; + */ + public long getMaxMessages() { + if (filterCase_ == 5) { + return (java.lang.Long) filter_; + } + return 0L; + } + /** + * int64 maxMessages = 5; + */ + public Builder setMaxMessages(long value) { + filterCase_ = 5; + filter_ = value; + onChanged(); + return this; + } + /** + * int64 maxMessages = 5; + */ + public Builder clearMaxMessages() { + if (filterCase_ == 5) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public com.google.protobuf.Timestamp getTimestamp() { + if (timestampBuilder_ == null) { + if (filterCase_ == 6) { + return (com.google.protobuf.Timestamp) filter_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (filterCase_ == 6) { + return timestampBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public Builder setTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + timestampBuilder_.setMessage(value); + } + filterCase_ = 6; + return this; + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public Builder setTimestamp( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (timestampBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + timestampBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 6; + return this; + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (filterCase_ == 6 && + filter_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + filter_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) filter_) + .mergeFrom(value).buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 6) { + timestampBuilder_.mergeFrom(value); + } + timestampBuilder_.setMessage(value); + } + filterCase_ = 6; + return this; + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public Builder clearTimestamp() { + if (timestampBuilder_ == null) { + if (filterCase_ == 6) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 6) { + filterCase_ = 0; + filter_ = null; + } + timestampBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { + return getTimestampFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + if ((filterCase_ == 6) && (timestampBuilder_ != null)) { + return timestampBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 6) { + return (com.google.protobuf.Timestamp) filter_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp timestamp = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getTimestampFieldBuilder() { + if (timestampBuilder_ == null) { + if (!(filterCase_ == 6)) { + filter_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 6; + onChanged();; + return timestampBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.MessageFilter) + } + + // @@protoc_insertion_point(class_scope:meerkat.MessageFilter) + private static final meerkat.protobuf.BulletinBoardAPI.MessageFilter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.MessageFilter(); + } + + public static meerkat.protobuf.BulletinBoardAPI.MessageFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MessageFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MessageFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MessageFilterListOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.MessageFilterList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + java.util.List + getFilterList(); + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageFilter getFilter(int index); + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + int getFilterCount(); + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + java.util.List + getFilterOrBuilderList(); + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder getFilterOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.MessageFilterList} + */ + public static final class MessageFilterList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.MessageFilterList) + MessageFilterListOrBuilder { + // Use MessageFilterList.newBuilder() to construct. + private MessageFilterList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MessageFilterList() { + filter_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private MessageFilterList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + filter_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + filter_.add( + input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageFilter.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + filter_ = java.util.Collections.unmodifiableList(filter_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.class, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + private java.util.List filter_; + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public java.util.List getFilterList() { + return filter_; + } + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public java.util.List + getFilterOrBuilderList() { + return filter_; + } + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public int getFilterCount() { + return filter_.size(); + } + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilter getFilter(int index) { + return filter_.get(index); + } + /** + *
+     * Combination of filters.
+     * To be implemented using intersection ("AND") operations.
+     * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder getFilterOrBuilder( + int index) { + return filter_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < filter_.size(); i++) { + output.writeMessage(1, filter_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < filter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, filter_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilterList)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.MessageFilterList other = (meerkat.protobuf.BulletinBoardAPI.MessageFilterList) obj; + + boolean result = true; + result = result && getFilterList() + .equals(other.getFilterList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFilterCount() > 0) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilterList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.MessageFilterList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.MessageFilterList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.MessageFilterList) + meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.class, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.MessageFilterList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFilterFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (filterBuilder_ == null) { + filter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + filterBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_MessageFilterList_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList build() { + meerkat.protobuf.BulletinBoardAPI.MessageFilterList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList buildPartial() { + meerkat.protobuf.BulletinBoardAPI.MessageFilterList result = new meerkat.protobuf.BulletinBoardAPI.MessageFilterList(this); + int from_bitField0_ = bitField0_; + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + filter_ = java.util.Collections.unmodifiableList(filter_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.MessageFilterList) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.MessageFilterList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.MessageFilterList other) { + if (other == meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance()) return this; + if (filterBuilder_ == null) { + if (!other.filter_.isEmpty()) { + if (filter_.isEmpty()) { + filter_ = other.filter_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterIsMutable(); + filter_.addAll(other.filter_); + } + onChanged(); + } + } else { + if (!other.filter_.isEmpty()) { + if (filterBuilder_.isEmpty()) { + filterBuilder_.dispose(); + filterBuilder_ = null; + filter_ = other.filter_; + bitField0_ = (bitField0_ & ~0x00000001); + filterBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFilterFieldBuilder() : null; + } else { + filterBuilder_.addAllMessages(other.filter_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.MessageFilterList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.MessageFilterList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List filter_ = + java.util.Collections.emptyList(); + private void ensureFilterIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + filter_ = new java.util.ArrayList(filter_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilter, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder> filterBuilder_; + + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public java.util.List getFilterList() { + if (filterBuilder_ == null) { + return java.util.Collections.unmodifiableList(filter_); + } else { + return filterBuilder_.getMessageList(); + } + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public int getFilterCount() { + if (filterBuilder_ == null) { + return filter_.size(); + } else { + return filterBuilder_.getCount(); + } + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilter getFilter(int index) { + if (filterBuilder_ == null) { + return filter_.get(index); + } else { + return filterBuilder_.getMessage(index); + } + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder setFilter( + int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.set(index, value); + onChanged(); + } else { + filterBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder setFilter( + int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.set(index, builderForValue.build()); + onChanged(); + } else { + filterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder addFilter(meerkat.protobuf.BulletinBoardAPI.MessageFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.add(value); + onChanged(); + } else { + filterBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder addFilter( + int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.add(index, value); + onChanged(); + } else { + filterBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder addFilter( + meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(builderForValue.build()); + onChanged(); + } else { + filterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder addFilter( + int index, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(index, builderForValue.build()); + onChanged(); + } else { + filterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder addAllFilter( + java.lang.Iterable values) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, filter_); + onChanged(); + } else { + filterBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterBuilder_.clear(); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public Builder removeFilter(int index) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.remove(index); + onChanged(); + } else { + filterBuilder_.remove(index); + } + return this; + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder getFilterBuilder( + int index) { + return getFilterFieldBuilder().getBuilder(index); + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder getFilterOrBuilder( + int index) { + if (filterBuilder_ == null) { + return filter_.get(index); } else { + return filterBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public java.util.List + getFilterOrBuilderList() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filter_); + } + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder addFilterBuilder() { + return getFilterFieldBuilder().addBuilder( + meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance()); + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder addFilterBuilder( + int index) { + return getFilterFieldBuilder().addBuilder( + index, meerkat.protobuf.BulletinBoardAPI.MessageFilter.getDefaultInstance()); + } + /** + *
+       * Combination of filters.
+       * To be implemented using intersection ("AND") operations.
+       * 
+ * + * repeated .meerkat.MessageFilter filter = 1; + */ + public java.util.List + getFilterBuilderList() { + return getFilterFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilter, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilter, meerkat.protobuf.BulletinBoardAPI.MessageFilter.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder>( + filter_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.MessageFilterList) + } + + // @@protoc_insertion_point(class_scope:meerkat.MessageFilterList) + private static final meerkat.protobuf.BulletinBoardAPI.MessageFilterList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.MessageFilterList(); + } + + public static meerkat.protobuf.BulletinBoardAPI.MessageFilterList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MessageFilterList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MessageFilterList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BeginBatchMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BeginBatchMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + java.util.List + getTagList(); + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + int getTagCount(); + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + java.lang.String getTag(int index); + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + com.google.protobuf.ByteString + getTagBytes(int index); + } + /** + *
+   * This message is used to start a batch transfer to the Bulletin Board Server
+   * 
+ * + * Protobuf type {@code meerkat.BeginBatchMessage} + */ + public static final class BeginBatchMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BeginBatchMessage) + BeginBatchMessageOrBuilder { + // Use BeginBatchMessage.newBuilder() to construct. + private BeginBatchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BeginBatchMessage() { + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BeginBatchMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tag_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = tag_.getUnmodifiableView(); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.Builder.class); + } + + public static final int TAG_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList tag_; + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagList() { + return tag_; + } + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + public int getTagCount() { + return tag_.size(); + } + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + public java.lang.String getTag(int index) { + return tag_.get(index); + } + /** + *
+     * Tags for the batch message
+     * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ByteString + getTagBytes(int index) { + return tag_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tag_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_.getRaw(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < tag_.size(); i++) { + dataSize += computeStringSizeNoTag(tag_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagList().size(); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage other = (meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage) obj; + + boolean result = true; + result = result && getTagList() + .equals(other.getTagList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTagCount() > 0) { + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTagList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message is used to start a batch transfer to the Bulletin Board Server
+     * 
+ * + * Protobuf type {@code meerkat.BeginBatchMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BeginBatchMessage) + meerkat.protobuf.BulletinBoardAPI.BeginBatchMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BeginBatchMessage_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage build() { + meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage result = new meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = tag_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tag_ = tag_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage.getDefaultInstance()) return this; + if (!other.tag_.isEmpty()) { + if (tag_.isEmpty()) { + tag_ = other.tag_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTagIsMutable(); + tag_.addAll(other.tag_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tag_ = new com.google.protobuf.LazyStringArrayList(tag_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ProtocolStringList + getTagList() { + return tag_.getUnmodifiableView(); + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public int getTagCount() { + return tag_.size(); + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public java.lang.String getTag(int index) { + return tag_.get(index); + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public com.google.protobuf.ByteString + getTagBytes(int index) { + return tag_.getByteString(index); + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public Builder setTag( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public Builder addTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagIsMutable(); + tag_.add(value); + onChanged(); + return this; + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public Builder addAllTag( + java.lang.Iterable values) { + ensureTagIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tag_); + onChanged(); + return this; + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public Builder clearTag() { + tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Tags for the batch message
+       * 
+ * + * repeated string tag = 1; + */ + public Builder addTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagIsMutable(); + tag_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BeginBatchMessage) + } + + // @@protoc_insertion_point(class_scope:meerkat.BeginBatchMessage) + private static final meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BeginBatchMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BeginBatchMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BeginBatchMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CloseBatchMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.CloseBatchMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique temporary identifier for the batch
+     * 
+ * + * int64 batchId = 1; + */ + long getBatchId(); + + /** + *
+     * Number of messages in the batch
+     * 
+ * + * int32 batchLength = 2; + */ + int getBatchLength(); + + /** + *
+     * Timestamp of the batch (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + boolean hasTimestamp(); + /** + *
+     * Timestamp of the batch (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + com.google.protobuf.Timestamp getTimestamp(); + /** + *
+     * Timestamp of the batch (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); + + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + java.util.List + getSigList(); + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + meerkat.protobuf.Crypto.Signature getSig(int index); + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + int getSigCount(); + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + java.util.List + getSigOrBuilderList(); + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( + int index); + } + /** + *
+   * This message is used to finalize and sign a batch transfer to the Bulletin Board Server
+   * 
+ * + * Protobuf type {@code meerkat.CloseBatchMessage} + */ + public static final class CloseBatchMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.CloseBatchMessage) + CloseBatchMessageOrBuilder { + // Use CloseBatchMessage.newBuilder() to construct. + private CloseBatchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CloseBatchMessage() { + batchId_ = 0L; + batchLength_ = 0; + sig_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CloseBatchMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + batchId_ = input.readInt64(); + break; + } + case 16: { + + batchLength_ = input.readInt32(); + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timestamp_ != null) { + subBuilder = timestamp_.toBuilder(); + } + timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timestamp_); + timestamp_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + sig_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + sig_.add( + input.readMessage(meerkat.protobuf.Crypto.Signature.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + sig_ = java.util.Collections.unmodifiableList(sig_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.Builder.class); + } + + private int bitField0_; + public static final int BATCHID_FIELD_NUMBER = 1; + private long batchId_; + /** + *
+     * Unique temporary identifier for the batch
+     * 
+ * + * int64 batchId = 1; + */ + public long getBatchId() { + return batchId_; + } + + public static final int BATCHLENGTH_FIELD_NUMBER = 2; + private int batchLength_; + /** + *
+     * Number of messages in the batch
+     * 
+ * + * int32 batchLength = 2; + */ + public int getBatchLength() { + return batchLength_; + } + + public static final int TIMESTAMP_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp timestamp_; + /** + *
+     * Timestamp of the batch (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public boolean hasTimestamp() { + return timestamp_ != null; + } + /** + *
+     * Timestamp of the batch (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public com.google.protobuf.Timestamp getTimestamp() { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + /** + *
+     * Timestamp of the batch (as defined by client)
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + return getTimestamp(); + } + + public static final int SIG_FIELD_NUMBER = 4; + private java.util.List sig_; + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public java.util.List getSigList() { + return sig_; + } + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public java.util.List + getSigOrBuilderList() { + return sig_; + } + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public int getSigCount() { + return sig_.size(); + } + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public meerkat.protobuf.Crypto.Signature getSig(int index) { + return sig_.get(index); + } + /** + *
+     * Signatures on the (ordered) batch messages
+     * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( + int index) { + return sig_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (batchId_ != 0L) { + output.writeInt64(1, batchId_); + } + if (batchLength_ != 0) { + output.writeInt32(2, batchLength_); + } + if (timestamp_ != null) { + output.writeMessage(3, getTimestamp()); + } + for (int i = 0; i < sig_.size(); i++) { + output.writeMessage(4, sig_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (batchId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, batchId_); + } + if (batchLength_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, batchLength_); + } + if (timestamp_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTimestamp()); + } + for (int i = 0; i < sig_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sig_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage other = (meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage) obj; + + boolean result = true; + result = result && (getBatchId() + == other.getBatchId()); + result = result && (getBatchLength() + == other.getBatchLength()); + result = result && (hasTimestamp() == other.hasTimestamp()); + if (hasTimestamp()) { + result = result && getTimestamp() + .equals(other.getTimestamp()); + } + result = result && getSigList() + .equals(other.getSigList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BATCHID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBatchId()); + hash = (37 * hash) + BATCHLENGTH_FIELD_NUMBER; + hash = (53 * hash) + getBatchLength(); + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + if (getSigCount() > 0) { + hash = (37 * hash) + SIG_FIELD_NUMBER; + hash = (53 * hash) + getSigList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message is used to finalize and sign a batch transfer to the Bulletin Board Server
+     * 
+ * + * Protobuf type {@code meerkat.CloseBatchMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.CloseBatchMessage) + meerkat.protobuf.BulletinBoardAPI.CloseBatchMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.class, meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSigFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + batchId_ = 0L; + + batchLength_ = 0; + + if (timestampBuilder_ == null) { + timestamp_ = null; + } else { + timestamp_ = null; + timestampBuilder_ = null; + } + if (sigBuilder_ == null) { + sig_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + sigBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_CloseBatchMessage_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage build() { + meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage buildPartial() { + meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage result = new meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.batchId_ = batchId_; + result.batchLength_ = batchLength_; + if (timestampBuilder_ == null) { + result.timestamp_ = timestamp_; + } else { + result.timestamp_ = timestampBuilder_.build(); + } + if (sigBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + sig_ = java.util.Collections.unmodifiableList(sig_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.sig_ = sig_; + } else { + result.sig_ = sigBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage other) { + if (other == meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage.getDefaultInstance()) return this; + if (other.getBatchId() != 0L) { + setBatchId(other.getBatchId()); + } + if (other.getBatchLength() != 0) { + setBatchLength(other.getBatchLength()); + } + if (other.hasTimestamp()) { + mergeTimestamp(other.getTimestamp()); + } + if (sigBuilder_ == null) { + if (!other.sig_.isEmpty()) { + if (sig_.isEmpty()) { + sig_ = other.sig_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSigIsMutable(); + sig_.addAll(other.sig_); + } + onChanged(); + } + } else { + if (!other.sig_.isEmpty()) { + if (sigBuilder_.isEmpty()) { + sigBuilder_.dispose(); + sigBuilder_ = null; + sig_ = other.sig_; + bitField0_ = (bitField0_ & ~0x00000008); + sigBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSigFieldBuilder() : null; + } else { + sigBuilder_.addAllMessages(other.sig_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long batchId_ ; + /** + *
+       * Unique temporary identifier for the batch
+       * 
+ * + * int64 batchId = 1; + */ + public long getBatchId() { + return batchId_; + } + /** + *
+       * Unique temporary identifier for the batch
+       * 
+ * + * int64 batchId = 1; + */ + public Builder setBatchId(long value) { + + batchId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique temporary identifier for the batch
+       * 
+ * + * int64 batchId = 1; + */ + public Builder clearBatchId() { + + batchId_ = 0L; + onChanged(); + return this; + } + + private int batchLength_ ; + /** + *
+       * Number of messages in the batch
+       * 
+ * + * int32 batchLength = 2; + */ + public int getBatchLength() { + return batchLength_; + } + /** + *
+       * Number of messages in the batch
+       * 
+ * + * int32 batchLength = 2; + */ + public Builder setBatchLength(int value) { + + batchLength_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of messages in the batch
+       * 
+ * + * int32 batchLength = 2; + */ + public Builder clearBatchLength() { + + batchLength_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp timestamp_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public boolean hasTimestamp() { + return timestampBuilder_ != null || timestamp_ != null; + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public com.google.protobuf.Timestamp getTimestamp() { + if (timestampBuilder_ == null) { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } else { + return timestampBuilder_.getMessage(); + } + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public Builder setTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timestamp_ = value; + onChanged(); + } else { + timestampBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public Builder setTimestamp( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (timestampBuilder_ == null) { + timestamp_ = builderForValue.build(); + onChanged(); + } else { + timestampBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (timestamp_ != null) { + timestamp_ = + com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + } else { + timestamp_ = value; + } + onChanged(); + } else { + timestampBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public Builder clearTimestamp() { + if (timestampBuilder_ == null) { + timestamp_ = null; + onChanged(); + } else { + timestamp_ = null; + timestampBuilder_ = null; + } + + return this; + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { + + onChanged(); + return getTimestampFieldBuilder().getBuilder(); + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + if (timestampBuilder_ != null) { + return timestampBuilder_.getMessageOrBuilder(); + } else { + return timestamp_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + } + /** + *
+       * Timestamp of the batch (as defined by client)
+       * 
+ * + * .google.protobuf.Timestamp timestamp = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getTimestampFieldBuilder() { + if (timestampBuilder_ == null) { + timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTimestamp(), + getParentForChildren(), + isClean()); + timestamp_ = null; + } + return timestampBuilder_; + } + + private java.util.List sig_ = + java.util.Collections.emptyList(); + private void ensureSigIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + sig_ = new java.util.ArrayList(sig_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> sigBuilder_; + + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public java.util.List getSigList() { + if (sigBuilder_ == null) { + return java.util.Collections.unmodifiableList(sig_); + } else { + return sigBuilder_.getMessageList(); + } + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public int getSigCount() { + if (sigBuilder_ == null) { + return sig_.size(); + } else { + return sigBuilder_.getCount(); + } + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public meerkat.protobuf.Crypto.Signature getSig(int index) { + if (sigBuilder_ == null) { + return sig_.get(index); + } else { + return sigBuilder_.getMessage(index); + } + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder setSig( + int index, meerkat.protobuf.Crypto.Signature value) { + if (sigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSigIsMutable(); + sig_.set(index, value); + onChanged(); + } else { + sigBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder setSig( + int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.set(index, builderForValue.build()); + onChanged(); + } else { + sigBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder addSig(meerkat.protobuf.Crypto.Signature value) { + if (sigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSigIsMutable(); + sig_.add(value); + onChanged(); + } else { + sigBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder addSig( + int index, meerkat.protobuf.Crypto.Signature value) { + if (sigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSigIsMutable(); + sig_.add(index, value); + onChanged(); + } else { + sigBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder addSig( + meerkat.protobuf.Crypto.Signature.Builder builderForValue) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.add(builderForValue.build()); + onChanged(); + } else { + sigBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder addSig( + int index, meerkat.protobuf.Crypto.Signature.Builder builderForValue) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.add(index, builderForValue.build()); + onChanged(); + } else { + sigBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder addAllSig( + java.lang.Iterable values) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sig_); + onChanged(); + } else { + sigBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder clearSig() { + if (sigBuilder_ == null) { + sig_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + sigBuilder_.clear(); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public Builder removeSig(int index) { + if (sigBuilder_ == null) { + ensureSigIsMutable(); + sig_.remove(index); + onChanged(); + } else { + sigBuilder_.remove(index); + } + return this; + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public meerkat.protobuf.Crypto.Signature.Builder getSigBuilder( + int index) { + return getSigFieldBuilder().getBuilder(index); + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public meerkat.protobuf.Crypto.SignatureOrBuilder getSigOrBuilder( + int index) { + if (sigBuilder_ == null) { + return sig_.get(index); } else { + return sigBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public java.util.List + getSigOrBuilderList() { + if (sigBuilder_ != null) { + return sigBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sig_); + } + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder() { + return getSigFieldBuilder().addBuilder( + meerkat.protobuf.Crypto.Signature.getDefaultInstance()); + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public meerkat.protobuf.Crypto.Signature.Builder addSigBuilder( + int index) { + return getSigFieldBuilder().addBuilder( + index, meerkat.protobuf.Crypto.Signature.getDefaultInstance()); + } + /** + *
+       * Signatures on the (ordered) batch messages
+       * 
+ * + * repeated .meerkat.Signature sig = 4; + */ + public java.util.List + getSigBuilderList() { + return getSigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> + getSigFieldBuilder() { + if (sigBuilder_ == null) { + sigBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder>( + sig_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + sig_ = null; + } + return sigBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.CloseBatchMessage) + } + + // @@protoc_insertion_point(class_scope:meerkat.CloseBatchMessage) + private static final meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage(); + } + + public static meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CloseBatchMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloseBatchMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.CloseBatchMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BatchChunkOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BatchChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * Container for single chunk of abatch message
+   * 
+ * + * Protobuf type {@code meerkat.BatchChunk} + */ + public static final class BatchChunk extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BatchChunk) + BatchChunkOrBuilder { + // Use BatchChunk.newBuilder() to construct. + private BatchChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchChunk() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BatchChunk( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchChunk.class, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunk)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BatchChunk other = (meerkat.protobuf.BulletinBoardAPI.BatchChunk) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Container for single chunk of abatch message
+     * 
+ * + * Protobuf type {@code meerkat.BatchChunk} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BatchChunk) + meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchChunk.class, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BatchChunk.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunk_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunk getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunk build() { + meerkat.protobuf.BulletinBoardAPI.BatchChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunk buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BatchChunk result = new meerkat.protobuf.BulletinBoardAPI.BatchChunk(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunk) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchChunk)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchChunk other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BatchChunk parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchChunk) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BatchChunk) + } + + // @@protoc_insertion_point(class_scope:meerkat.BatchChunk) + private static final meerkat.protobuf.BulletinBoardAPI.BatchChunk DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchChunk(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BatchChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchChunk(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BatchChunkListOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BatchChunkList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .meerkat.BatchChunk data = 1; + */ + java.util.List + getDataList(); + /** + * repeated .meerkat.BatchChunk data = 1; + */ + meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(int index); + /** + * repeated .meerkat.BatchChunk data = 1; + */ + int getDataCount(); + /** + * repeated .meerkat.BatchChunk data = 1; + */ + java.util.List + getDataOrBuilderList(); + /** + * repeated .meerkat.BatchChunk data = 1; + */ + meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder( + int index); + } + /** + *
+   * List of BatchChunk; Only used for testing
+   * 
+ * + * Protobuf type {@code meerkat.BatchChunkList} + */ + public static final class BatchChunkList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BatchChunkList) + BatchChunkListOrBuilder { + // Use BatchChunkList.newBuilder() to construct. + private BatchChunkList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchChunkList() { + data_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BatchChunkList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + data_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + data_.add( + input.readMessage(meerkat.protobuf.BulletinBoardAPI.BatchChunk.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + data_ = java.util.Collections.unmodifiableList(data_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchChunkList.class, meerkat.protobuf.BulletinBoardAPI.BatchChunkList.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private java.util.List data_; + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public java.util.List getDataList() { + return data_; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public java.util.List + getDataOrBuilderList() { + return data_; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public int getDataCount() { + return data_.size(); + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(int index) { + return data_.get(index); + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder( + int index) { + return data_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(1, data_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < data_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, data_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunkList)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BatchChunkList other = (meerkat.protobuf.BulletinBoardAPI.BatchChunkList) obj; + + boolean result = true; + result = result && getDataList() + .equals(other.getDataList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchChunkList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * List of BatchChunk; Only used for testing
+     * 
+ * + * Protobuf type {@code meerkat.BatchChunkList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BatchChunkList) + meerkat.protobuf.BulletinBoardAPI.BatchChunkListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchChunkList.class, meerkat.protobuf.BulletinBoardAPI.BatchChunkList.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BatchChunkList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDataFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dataBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchChunkList_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunkList getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BatchChunkList.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunkList build() { + meerkat.protobuf.BulletinBoardAPI.BatchChunkList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunkList buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BatchChunkList result = new meerkat.protobuf.BulletinBoardAPI.BatchChunkList(this); + int from_bitField0_ = bitField0_; + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchChunkList) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchChunkList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchChunkList other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BatchChunkList.getDefaultInstance()) return this; + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000001); + dataBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataFieldBuilder() : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BatchChunkList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchChunkList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List data_ = + java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> dataBuilder_; + + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public java.util.List getDataList() { + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public int getDataCount() { + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder setData( + int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder setData( + int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder addData(meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder addData( + int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder addData( + meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder addData( + int index, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder addAllData( + java.lang.Iterable values) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataBuilder_.clear(); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder getDataBuilder( + int index) { + return getDataFieldBuilder().getBuilder(index); + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public java.util.List + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder addDataBuilder() { + return getDataFieldBuilder().addBuilder( + meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance()); + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder addDataBuilder( + int index) { + return getDataFieldBuilder().addBuilder( + index, meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance()); + } + /** + * repeated .meerkat.BatchChunk data = 1; + */ + public java.util.List + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder>( + data_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BatchChunkList) + } + + // @@protoc_insertion_point(class_scope:meerkat.BatchChunkList) + private static final meerkat.protobuf.BulletinBoardAPI.BatchChunkList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchChunkList(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchChunkList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BatchChunkList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchChunkList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchChunkList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BatchMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BatchMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique temporary identifier for the batch
+     * 
+ * + * int64 batchId = 1; + */ + long getBatchId(); + + /** + *
+     * Location of the message in the batch: starting from 0
+     * 
+ * + * int32 serialNum = 2; + */ + int getSerialNum(); + + /** + *
+     * Actual data
+     * 
+ * + * .meerkat.BatchChunk data = 3; + */ + boolean hasData(); + /** + *
+     * Actual data
+     * 
+ * + * .meerkat.BatchChunk data = 3; + */ + meerkat.protobuf.BulletinBoardAPI.BatchChunk getData(); + /** + *
+     * Actual data
+     * 
+ * + * .meerkat.BatchChunk data = 3; + */ + meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder(); + } + /** + *
+   * These messages comprise a batch message
+   * 
+ * + * Protobuf type {@code meerkat.BatchMessage} + */ + public static final class BatchMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BatchMessage) + BatchMessageOrBuilder { + // Use BatchMessage.newBuilder() to construct. + private BatchMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchMessage() { + batchId_ = 0L; + serialNum_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BatchMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + batchId_ = input.readInt64(); + break; + } + case 16: { + + serialNum_ = input.readInt32(); + break; + } + case 26: { + meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder subBuilder = null; + if (data_ != null) { + subBuilder = data_.toBuilder(); + } + data_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.BatchChunk.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(data_); + data_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BatchMessage.Builder.class); + } + + public static final int BATCHID_FIELD_NUMBER = 1; + private long batchId_; + /** + *
+     * Unique temporary identifier for the batch
+     * 
+ * + * int64 batchId = 1; + */ + public long getBatchId() { + return batchId_; + } + + public static final int SERIALNUM_FIELD_NUMBER = 2; + private int serialNum_; + /** + *
+     * Location of the message in the batch: starting from 0
+     * 
+ * + * int32 serialNum = 2; + */ + public int getSerialNum() { + return serialNum_; + } + + public static final int DATA_FIELD_NUMBER = 3; + private meerkat.protobuf.BulletinBoardAPI.BatchChunk data_; + /** + *
+     * Actual data
+     * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public boolean hasData() { + return data_ != null; + } + /** + *
+     * Actual data
+     * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData() { + return data_ == null ? meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance() : data_; + } + /** + *
+     * Actual data
+     * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder() { + return getData(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (batchId_ != 0L) { + output.writeInt64(1, batchId_); + } + if (serialNum_ != 0) { + output.writeInt32(2, serialNum_); + } + if (data_ != null) { + output.writeMessage(3, getData()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (batchId_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, batchId_); + } + if (serialNum_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, serialNum_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getData()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchMessage)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BatchMessage other = (meerkat.protobuf.BulletinBoardAPI.BatchMessage) obj; + + boolean result = true; + result = result && (getBatchId() + == other.getBatchId()); + result = result && (getSerialNum() + == other.getSerialNum()); + result = result && (hasData() == other.hasData()); + if (hasData()) { + result = result && getData() + .equals(other.getData()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BATCHID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBatchId()); + hash = (37 * hash) + SERIALNUM_FIELD_NUMBER; + hash = (53 * hash) + getSerialNum(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * These messages comprise a batch message
+     * 
+ * + * Protobuf type {@code meerkat.BatchMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BatchMessage) + meerkat.protobuf.BulletinBoardAPI.BatchMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchMessage.class, meerkat.protobuf.BulletinBoardAPI.BatchMessage.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BatchMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + batchId_ = 0L; + + serialNum_ = 0; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchMessage_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchMessage getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BatchMessage.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BatchMessage build() { + meerkat.protobuf.BulletinBoardAPI.BatchMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchMessage buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BatchMessage result = new meerkat.protobuf.BulletinBoardAPI.BatchMessage(this); + result.batchId_ = batchId_; + result.serialNum_ = serialNum_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchMessage) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchMessage other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BatchMessage.getDefaultInstance()) return this; + if (other.getBatchId() != 0L) { + setBatchId(other.getBatchId()); + } + if (other.getSerialNum() != 0) { + setSerialNum(other.getSerialNum()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BatchMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long batchId_ ; + /** + *
+       * Unique temporary identifier for the batch
+       * 
+ * + * int64 batchId = 1; + */ + public long getBatchId() { + return batchId_; + } + /** + *
+       * Unique temporary identifier for the batch
+       * 
+ * + * int64 batchId = 1; + */ + public Builder setBatchId(long value) { + + batchId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique temporary identifier for the batch
+       * 
+ * + * int64 batchId = 1; + */ + public Builder clearBatchId() { + + batchId_ = 0L; + onChanged(); + return this; + } + + private int serialNum_ ; + /** + *
+       * Location of the message in the batch: starting from 0
+       * 
+ * + * int32 serialNum = 2; + */ + public int getSerialNum() { + return serialNum_; + } + /** + *
+       * Location of the message in the batch: starting from 0
+       * 
+ * + * int32 serialNum = 2; + */ + public Builder setSerialNum(int value) { + + serialNum_ = value; + onChanged(); + return this; + } + /** + *
+       * Location of the message in the batch: starting from 0
+       * 
+ * + * int32 serialNum = 2; + */ + public Builder clearSerialNum() { + + serialNum_ = 0; + onChanged(); + return this; + } + + private meerkat.protobuf.BulletinBoardAPI.BatchChunk data_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> dataBuilder_; + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk getData() { + if (dataBuilder_ == null) { + return data_ == null ? meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public Builder setData(meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public Builder setData( + meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public Builder mergeData(meerkat.protobuf.BulletinBoardAPI.BatchChunk value) { + if (dataBuilder_ == null) { + if (data_ != null) { + data_ = + meerkat.protobuf.BulletinBoardAPI.BatchChunk.newBuilder(data_).mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + public meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + meerkat.protobuf.BulletinBoardAPI.BatchChunk.getDefaultInstance() : data_; + } + } + /** + *
+       * Actual data
+       * 
+ * + * .meerkat.BatchChunk data = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.BatchChunk, meerkat.protobuf.BulletinBoardAPI.BatchChunk.Builder, meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BatchMessage) + } + + // @@protoc_insertion_point(class_scope:meerkat.BatchMessage) + private static final meerkat.protobuf.BulletinBoardAPI.BatchMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchMessage(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BatchMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SingleSyncQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.SingleSyncQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + boolean hasTimeOfSync(); + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + com.google.protobuf.Timestamp getTimeOfSync(); + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + com.google.protobuf.TimestampOrBuilder getTimeOfSyncOrBuilder(); + + /** + * int64 checksum = 2; + */ + long getChecksum(); + } + /** + *
+   * This message is used to define a single query to the server to ascertain whether or not the server is synched with the client
+   *  up till a specified timestamp
+   * 
+ * + * Protobuf type {@code meerkat.SingleSyncQuery} + */ + public static final class SingleSyncQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.SingleSyncQuery) + SingleSyncQueryOrBuilder { + // Use SingleSyncQuery.newBuilder() to construct. + private SingleSyncQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SingleSyncQuery() { + checksum_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SingleSyncQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timeOfSync_ != null) { + subBuilder = timeOfSync_.toBuilder(); + } + timeOfSync_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeOfSync_); + timeOfSync_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + checksum_ = input.readInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder.class); + } + + public static final int TIMEOFSYNC_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp timeOfSync_; + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public boolean hasTimeOfSync() { + return timeOfSync_ != null; + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public com.google.protobuf.Timestamp getTimeOfSync() { + return timeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeOfSync_; + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOfSyncOrBuilder() { + return getTimeOfSync(); + } + + public static final int CHECKSUM_FIELD_NUMBER = 2; + private long checksum_; + /** + * int64 checksum = 2; + */ + public long getChecksum() { + return checksum_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (timeOfSync_ != null) { + output.writeMessage(1, getTimeOfSync()); + } + if (checksum_ != 0L) { + output.writeInt64(2, checksum_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeOfSync_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeOfSync()); + } + if (checksum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, checksum_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery other = (meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery) obj; + + boolean result = true; + result = result && (hasTimeOfSync() == other.hasTimeOfSync()); + if (hasTimeOfSync()) { + result = result && getTimeOfSync() + .equals(other.getTimeOfSync()); + } + result = result && (getChecksum() + == other.getChecksum()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTimeOfSync()) { + hash = (37 * hash) + TIMEOFSYNC_FIELD_NUMBER; + hash = (53 * hash) + getTimeOfSync().hashCode(); + } + hash = (37 * hash) + CHECKSUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getChecksum()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message is used to define a single query to the server to ascertain whether or not the server is synched with the client
+     *  up till a specified timestamp
+     * 
+ * + * Protobuf type {@code meerkat.SingleSyncQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.SingleSyncQuery) + meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (timeOfSyncBuilder_ == null) { + timeOfSync_ = null; + } else { + timeOfSync_ = null; + timeOfSyncBuilder_ = null; + } + checksum_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SingleSyncQuery_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery build() { + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery buildPartial() { + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery result = new meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery(this); + if (timeOfSyncBuilder_ == null) { + result.timeOfSync_ = timeOfSync_; + } else { + result.timeOfSync_ = timeOfSyncBuilder_.build(); + } + result.checksum_ = checksum_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery other) { + if (other == meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance()) return this; + if (other.hasTimeOfSync()) { + mergeTimeOfSync(other.getTimeOfSync()); + } + if (other.getChecksum() != 0L) { + setChecksum(other.getChecksum()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp timeOfSync_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeOfSyncBuilder_; + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public boolean hasTimeOfSync() { + return timeOfSyncBuilder_ != null || timeOfSync_ != null; + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public com.google.protobuf.Timestamp getTimeOfSync() { + if (timeOfSyncBuilder_ == null) { + return timeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timeOfSync_; + } else { + return timeOfSyncBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public Builder setTimeOfSync(com.google.protobuf.Timestamp value) { + if (timeOfSyncBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeOfSync_ = value; + onChanged(); + } else { + timeOfSyncBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public Builder setTimeOfSync( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (timeOfSyncBuilder_ == null) { + timeOfSync_ = builderForValue.build(); + onChanged(); + } else { + timeOfSyncBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public Builder mergeTimeOfSync(com.google.protobuf.Timestamp value) { + if (timeOfSyncBuilder_ == null) { + if (timeOfSync_ != null) { + timeOfSync_ = + com.google.protobuf.Timestamp.newBuilder(timeOfSync_).mergeFrom(value).buildPartial(); + } else { + timeOfSync_ = value; + } + onChanged(); + } else { + timeOfSyncBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public Builder clearTimeOfSync() { + if (timeOfSyncBuilder_ == null) { + timeOfSync_ = null; + onChanged(); + } else { + timeOfSync_ = null; + timeOfSyncBuilder_ = null; + } + + return this; + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public com.google.protobuf.Timestamp.Builder getTimeOfSyncBuilder() { + + onChanged(); + return getTimeOfSyncFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOfSyncOrBuilder() { + if (timeOfSyncBuilder_ != null) { + return timeOfSyncBuilder_.getMessageOrBuilder(); + } else { + return timeOfSync_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : timeOfSync_; + } + } + /** + * .google.protobuf.Timestamp timeOfSync = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getTimeOfSyncFieldBuilder() { + if (timeOfSyncBuilder_ == null) { + timeOfSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTimeOfSync(), + getParentForChildren(), + isClean()); + timeOfSync_ = null; + } + return timeOfSyncBuilder_; + } + + private long checksum_ ; + /** + * int64 checksum = 2; + */ + public long getChecksum() { + return checksum_; + } + /** + * int64 checksum = 2; + */ + public Builder setChecksum(long value) { + + checksum_ = value; + onChanged(); + return this; + } + /** + * int64 checksum = 2; + */ + public Builder clearChecksum() { + + checksum_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.SingleSyncQuery) + } + + // @@protoc_insertion_point(class_scope:meerkat.SingleSyncQuery) + private static final meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery(); + } + + public static meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SingleSyncQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SingleSyncQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SyncQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.SyncQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * .meerkat.MessageFilterList filterList = 1; + */ + boolean hasFilterList(); + /** + * .meerkat.MessageFilterList filterList = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList(); + /** + * .meerkat.MessageFilterList filterList = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder(); + + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + java.util.List + getQueryList(); + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getQuery(int index); + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + int getQueryCount(); + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + java.util.List + getQueryOrBuilderList(); + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder getQueryOrBuilder( + int index); + } + /** + *
+   * This message defines a complete server sync query
+   * 
+ * + * Protobuf type {@code meerkat.SyncQuery} + */ + public static final class SyncQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.SyncQuery) + SyncQueryOrBuilder { + // Use SyncQuery.newBuilder() to construct. + private SyncQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SyncQuery() { + query_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SyncQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder subBuilder = null; + if (filterList_ != null) { + subBuilder = filterList_.toBuilder(); + } + filterList_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageFilterList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterList_); + filterList_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + query_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + query_.add( + input.readMessage(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + query_ = java.util.Collections.unmodifiableList(query_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.SyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SyncQuery.Builder.class); + } + + private int bitField0_; + public static final int FILTERLIST_FIELD_NUMBER = 1; + private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_; + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public boolean hasFilterList() { + return filterList_ != null; + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { + return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { + return getFilterList(); + } + + public static final int QUERY_FIELD_NUMBER = 2; + private java.util.List query_; + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public java.util.List getQueryList() { + return query_; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public java.util.List + getQueryOrBuilderList() { + return query_; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public int getQueryCount() { + return query_.size(); + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getQuery(int index) { + return query_.get(index); + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder getQueryOrBuilder( + int index) { + return query_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (filterList_ != null) { + output.writeMessage(1, getFilterList()); + } + for (int i = 0; i < query_.size(); i++) { + output.writeMessage(2, query_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterList_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFilterList()); + } + for (int i = 0; i < query_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, query_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.SyncQuery)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.SyncQuery other = (meerkat.protobuf.BulletinBoardAPI.SyncQuery) obj; + + boolean result = true; + result = result && (hasFilterList() == other.hasFilterList()); + if (hasFilterList()) { + result = result && getFilterList() + .equals(other.getFilterList()); + } + result = result && getQueryList() + .equals(other.getQueryList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFilterList()) { + hash = (37 * hash) + FILTERLIST_FIELD_NUMBER; + hash = (53 * hash) + getFilterList().hashCode(); + } + if (getQueryCount() > 0) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQueryList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.SyncQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message defines a complete server sync query
+     * 
+ * + * Protobuf type {@code meerkat.SyncQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.SyncQuery) + meerkat.protobuf.BulletinBoardAPI.SyncQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.SyncQuery.class, meerkat.protobuf.BulletinBoardAPI.SyncQuery.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.SyncQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getQueryFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (filterListBuilder_ == null) { + filterList_ = null; + } else { + filterList_ = null; + filterListBuilder_ = null; + } + if (queryBuilder_ == null) { + query_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + queryBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQuery_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQuery getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.SyncQuery.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQuery build() { + meerkat.protobuf.BulletinBoardAPI.SyncQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQuery buildPartial() { + meerkat.protobuf.BulletinBoardAPI.SyncQuery result = new meerkat.protobuf.BulletinBoardAPI.SyncQuery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (filterListBuilder_ == null) { + result.filterList_ = filterList_; + } else { + result.filterList_ = filterListBuilder_.build(); + } + if (queryBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + query_ = java.util.Collections.unmodifiableList(query_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.query_ = query_; + } else { + result.query_ = queryBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.SyncQuery) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.SyncQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.SyncQuery other) { + if (other == meerkat.protobuf.BulletinBoardAPI.SyncQuery.getDefaultInstance()) return this; + if (other.hasFilterList()) { + mergeFilterList(other.getFilterList()); + } + if (queryBuilder_ == null) { + if (!other.query_.isEmpty()) { + if (query_.isEmpty()) { + query_ = other.query_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureQueryIsMutable(); + query_.addAll(other.query_); + } + onChanged(); + } + } else { + if (!other.query_.isEmpty()) { + if (queryBuilder_.isEmpty()) { + queryBuilder_.dispose(); + queryBuilder_ = null; + query_ = other.query_; + bitField0_ = (bitField0_ & ~0x00000002); + queryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQueryFieldBuilder() : null; + } else { + queryBuilder_.addAllMessages(other.query_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.SyncQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.SyncQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> filterListBuilder_; + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public boolean hasFilterList() { + return filterListBuilder_ != null || filterList_ != null; + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { + if (filterListBuilder_ == null) { + return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; + } else { + return filterListBuilder_.getMessage(); + } + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder setFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { + if (filterListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterList_ = value; + onChanged(); + } else { + filterListBuilder_.setMessage(value); + } + + return this; + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder setFilterList( + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder builderForValue) { + if (filterListBuilder_ == null) { + filterList_ = builderForValue.build(); + onChanged(); + } else { + filterListBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder mergeFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { + if (filterListBuilder_ == null) { + if (filterList_ != null) { + filterList_ = + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.newBuilder(filterList_).mergeFrom(value).buildPartial(); + } else { + filterList_ = value; + } + onChanged(); + } else { + filterListBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder clearFilterList() { + if (filterListBuilder_ == null) { + filterList_ = null; + onChanged(); + } else { + filterList_ = null; + filterListBuilder_ = null; + } + + return this; + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder getFilterListBuilder() { + + onChanged(); + return getFilterListFieldBuilder().getBuilder(); + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { + if (filterListBuilder_ != null) { + return filterListBuilder_.getMessageOrBuilder(); + } else { + return filterList_ == null ? + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; + } + } + /** + * .meerkat.MessageFilterList filterList = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> + getFilterListFieldBuilder() { + if (filterListBuilder_ == null) { + filterListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder>( + getFilterList(), + getParentForChildren(), + isClean()); + filterList_ = null; + } + return filterListBuilder_; + } + + private java.util.List query_ = + java.util.Collections.emptyList(); + private void ensureQueryIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + query_ = new java.util.ArrayList(query_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder, meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder> queryBuilder_; + + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public java.util.List getQueryList() { + if (queryBuilder_ == null) { + return java.util.Collections.unmodifiableList(query_); + } else { + return queryBuilder_.getMessageList(); + } + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public int getQueryCount() { + if (queryBuilder_ == null) { + return query_.size(); + } else { + return queryBuilder_.getCount(); + } + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery getQuery(int index) { + if (queryBuilder_ == null) { + return query_.get(index); + } else { + return queryBuilder_.getMessage(index); + } + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder setQuery( + int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryIsMutable(); + query_.set(index, value); + onChanged(); + } else { + queryBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder setQuery( + int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder builderForValue) { + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.set(index, builderForValue.build()); + onChanged(); + } else { + queryBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder addQuery(meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryIsMutable(); + query_.add(value); + onChanged(); + } else { + queryBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder addQuery( + int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryIsMutable(); + query_.add(index, value); + onChanged(); + } else { + queryBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder addQuery( + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder builderForValue) { + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.add(builderForValue.build()); + onChanged(); + } else { + queryBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder addQuery( + int index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder builderForValue) { + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.add(index, builderForValue.build()); + onChanged(); + } else { + queryBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder addAllQuery( + java.lang.Iterable values) { + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, query_); + onChanged(); + } else { + queryBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder clearQuery() { + if (queryBuilder_ == null) { + query_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + queryBuilder_.clear(); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public Builder removeQuery(int index) { + if (queryBuilder_ == null) { + ensureQueryIsMutable(); + query_.remove(index); + onChanged(); + } else { + queryBuilder_.remove(index); + } + return this; + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder getQueryBuilder( + int index) { + return getQueryFieldBuilder().getBuilder(index); + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder getQueryOrBuilder( + int index) { + if (queryBuilder_ == null) { + return query_.get(index); } else { + return queryBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public java.util.List + getQueryOrBuilderList() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(query_); + } + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder addQueryBuilder() { + return getQueryFieldBuilder().addBuilder( + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance()); + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder addQueryBuilder( + int index) { + return getQueryFieldBuilder().addBuilder( + index, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.getDefaultInstance()); + } + /** + * repeated .meerkat.SingleSyncQuery query = 2; + */ + public java.util.List + getQueryBuilderList() { + return getQueryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder, meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder> + getQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery, meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery.Builder, meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder>( + query_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + query_ = null; + } + return queryBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.SyncQuery) + } + + // @@protoc_insertion_point(class_scope:meerkat.SyncQuery) + private static final meerkat.protobuf.BulletinBoardAPI.SyncQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.SyncQuery(); + } + + public static meerkat.protobuf.BulletinBoardAPI.SyncQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SyncQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GenerateSyncQueryParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.GenerateSyncQueryParams) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines the set of messages required
+     * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + boolean hasFilterList(); + /** + *
+     * Defines the set of messages required
+     * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList(); + /** + *
+     * Defines the set of messages required
+     * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder(); + + /** + *
+     * Defines the locations in the list of messages to calculate single sync queries for
+     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+     * 
+ * + * repeated float breakpointList = 2; + */ + java.util.List getBreakpointListList(); + /** + *
+     * Defines the locations in the list of messages to calculate single sync queries for
+     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+     * 
+ * + * repeated float breakpointList = 2; + */ + int getBreakpointListCount(); + /** + *
+     * Defines the locations in the list of messages to calculate single sync queries for
+     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+     * 
+ * + * repeated float breakpointList = 2; + */ + float getBreakpointList(int index); + } + /** + *
+   * This message defines the required information for generation of a SyncQuery instance by the server
+   * 
+ * + * Protobuf type {@code meerkat.GenerateSyncQueryParams} + */ + public static final class GenerateSyncQueryParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.GenerateSyncQueryParams) + GenerateSyncQueryParamsOrBuilder { + // Use GenerateSyncQueryParams.newBuilder() to construct. + private GenerateSyncQueryParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GenerateSyncQueryParams() { + breakpointList_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private GenerateSyncQueryParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder subBuilder = null; + if (filterList_ != null) { + subBuilder = filterList_.toBuilder(); + } + filterList_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageFilterList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterList_); + filterList_ = subBuilder.buildPartial(); + } + + break; + } + case 21: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + breakpointList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + breakpointList_.add(input.readFloat()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + breakpointList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + breakpointList_.add(input.readFloat()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + breakpointList_ = java.util.Collections.unmodifiableList(breakpointList_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.class, meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.Builder.class); + } + + private int bitField0_; + public static final int FILTERLIST_FIELD_NUMBER = 1; + private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_; + /** + *
+     * Defines the set of messages required
+     * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public boolean hasFilterList() { + return filterList_ != null; + } + /** + *
+     * Defines the set of messages required
+     * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { + return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; + } + /** + *
+     * Defines the set of messages required
+     * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { + return getFilterList(); + } + + public static final int BREAKPOINTLIST_FIELD_NUMBER = 2; + private java.util.List breakpointList_; + /** + *
+     * Defines the locations in the list of messages to calculate single sync queries for
+     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+     * 
+ * + * repeated float breakpointList = 2; + */ + public java.util.List + getBreakpointListList() { + return breakpointList_; + } + /** + *
+     * Defines the locations in the list of messages to calculate single sync queries for
+     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+     * 
+ * + * repeated float breakpointList = 2; + */ + public int getBreakpointListCount() { + return breakpointList_.size(); + } + /** + *
+     * Defines the locations in the list of messages to calculate single sync queries for
+     * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+     * 
+ * + * repeated float breakpointList = 2; + */ + public float getBreakpointList(int index) { + return breakpointList_.get(index); + } + private int breakpointListMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (filterList_ != null) { + output.writeMessage(1, getFilterList()); + } + if (getBreakpointListList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(breakpointListMemoizedSerializedSize); + } + for (int i = 0; i < breakpointList_.size(); i++) { + output.writeFloatNoTag(breakpointList_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterList_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFilterList()); + } + { + int dataSize = 0; + dataSize = 4 * getBreakpointListList().size(); + size += dataSize; + if (!getBreakpointListList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + breakpointListMemoizedSerializedSize = dataSize; + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams other = (meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams) obj; + + boolean result = true; + result = result && (hasFilterList() == other.hasFilterList()); + if (hasFilterList()) { + result = result && getFilterList() + .equals(other.getFilterList()); + } + result = result && getBreakpointListList() + .equals(other.getBreakpointListList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFilterList()) { + hash = (37 * hash) + FILTERLIST_FIELD_NUMBER; + hash = (53 * hash) + getFilterList().hashCode(); + } + if (getBreakpointListCount() > 0) { + hash = (37 * hash) + BREAKPOINTLIST_FIELD_NUMBER; + hash = (53 * hash) + getBreakpointListList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message defines the required information for generation of a SyncQuery instance by the server
+     * 
+ * + * Protobuf type {@code meerkat.GenerateSyncQueryParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.GenerateSyncQueryParams) + meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.class, meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (filterListBuilder_ == null) { + filterList_ = null; + } else { + filterList_ = null; + filterListBuilder_ = null; + } + breakpointList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_GenerateSyncQueryParams_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams build() { + meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams buildPartial() { + meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams result = new meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (filterListBuilder_ == null) { + result.filterList_ = filterList_; + } else { + result.filterList_ = filterListBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + breakpointList_ = java.util.Collections.unmodifiableList(breakpointList_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.breakpointList_ = breakpointList_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams other) { + if (other == meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams.getDefaultInstance()) return this; + if (other.hasFilterList()) { + mergeFilterList(other.getFilterList()); + } + if (!other.breakpointList_.isEmpty()) { + if (breakpointList_.isEmpty()) { + breakpointList_ = other.breakpointList_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBreakpointListIsMutable(); + breakpointList_.addAll(other.breakpointList_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private meerkat.protobuf.BulletinBoardAPI.MessageFilterList filterList_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> filterListBuilder_; + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public boolean hasFilterList() { + return filterListBuilder_ != null || filterList_ != null; + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList getFilterList() { + if (filterListBuilder_ == null) { + return filterList_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; + } else { + return filterListBuilder_.getMessage(); + } + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder setFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { + if (filterListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterList_ = value; + onChanged(); + } else { + filterListBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder setFilterList( + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder builderForValue) { + if (filterListBuilder_ == null) { + filterList_ = builderForValue.build(); + onChanged(); + } else { + filterListBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder mergeFilterList(meerkat.protobuf.BulletinBoardAPI.MessageFilterList value) { + if (filterListBuilder_ == null) { + if (filterList_ != null) { + filterList_ = + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.newBuilder(filterList_).mergeFrom(value).buildPartial(); + } else { + filterList_ = value; + } + onChanged(); + } else { + filterListBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public Builder clearFilterList() { + if (filterListBuilder_ == null) { + filterList_ = null; + onChanged(); + } else { + filterList_ = null; + filterListBuilder_ = null; + } + + return this; + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder getFilterListBuilder() { + + onChanged(); + return getFilterListFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder getFilterListOrBuilder() { + if (filterListBuilder_ != null) { + return filterListBuilder_.getMessageOrBuilder(); + } else { + return filterList_ == null ? + meerkat.protobuf.BulletinBoardAPI.MessageFilterList.getDefaultInstance() : filterList_; + } + } + /** + *
+       * Defines the set of messages required
+       * 
+ * + * .meerkat.MessageFilterList filterList = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder> + getFilterListFieldBuilder() { + if (filterListBuilder_ == null) { + filterListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageFilterList, meerkat.protobuf.BulletinBoardAPI.MessageFilterList.Builder, meerkat.protobuf.BulletinBoardAPI.MessageFilterListOrBuilder>( + getFilterList(), + getParentForChildren(), + isClean()); + filterList_ = null; + } + return filterListBuilder_; + } + + private java.util.List breakpointList_ = java.util.Collections.emptyList(); + private void ensureBreakpointListIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + breakpointList_ = new java.util.ArrayList(breakpointList_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Defines the locations in the list of messages to calculate single sync queries for
+       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+       * 
+ * + * repeated float breakpointList = 2; + */ + public java.util.List + getBreakpointListList() { + return java.util.Collections.unmodifiableList(breakpointList_); + } + /** + *
+       * Defines the locations in the list of messages to calculate single sync queries for
+       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+       * 
+ * + * repeated float breakpointList = 2; + */ + public int getBreakpointListCount() { + return breakpointList_.size(); + } + /** + *
+       * Defines the locations in the list of messages to calculate single sync queries for
+       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+       * 
+ * + * repeated float breakpointList = 2; + */ + public float getBreakpointList(int index) { + return breakpointList_.get(index); + } + /** + *
+       * Defines the locations in the list of messages to calculate single sync queries for
+       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+       * 
+ * + * repeated float breakpointList = 2; + */ + public Builder setBreakpointList( + int index, float value) { + ensureBreakpointListIsMutable(); + breakpointList_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Defines the locations in the list of messages to calculate single sync queries for
+       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+       * 
+ * + * repeated float breakpointList = 2; + */ + public Builder addBreakpointList(float value) { + ensureBreakpointListIsMutable(); + breakpointList_.add(value); + onChanged(); + return this; + } + /** + *
+       * Defines the locations in the list of messages to calculate single sync queries for
+       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+       * 
+ * + * repeated float breakpointList = 2; + */ + public Builder addAllBreakpointList( + java.lang.Iterable values) { + ensureBreakpointListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, breakpointList_); + onChanged(); + return this; + } + /** + *
+       * Defines the locations in the list of messages to calculate single sync queries for
+       * The values should be between 0.0 and 1.0 and define the location in fractions of the size of the message set
+       * 
+ * + * repeated float breakpointList = 2; + */ + public Builder clearBreakpointList() { + breakpointList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.GenerateSyncQueryParams) + } + + // @@protoc_insertion_point(class_scope:meerkat.GenerateSyncQueryParams) + private static final meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams(); + } + + public static meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public GenerateSyncQueryParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateSyncQueryParams(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.GenerateSyncQueryParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SyncQueryResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.SyncQueryResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Serial entry number of current last entry in database
+     * Set to zero (0) in case no query checksums match
+     * 
+ * + * int64 lastEntryNum = 1; + */ + long getLastEntryNum(); + + /** + *
+     * Largest value of timestamp for which the checksums match
+     * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + boolean hasLastTimeOfSync(); + /** + *
+     * Largest value of timestamp for which the checksums match
+     * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + com.google.protobuf.Timestamp getLastTimeOfSync(); + /** + *
+     * Largest value of timestamp for which the checksums match
+     * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + com.google.protobuf.TimestampOrBuilder getLastTimeOfSyncOrBuilder(); + } + /** + *
+   * This message defines the server's response format to a sync query
+   * 
+ * + * Protobuf type {@code meerkat.SyncQueryResponse} + */ + public static final class SyncQueryResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.SyncQueryResponse) + SyncQueryResponseOrBuilder { + // Use SyncQueryResponse.newBuilder() to construct. + private SyncQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SyncQueryResponse() { + lastEntryNum_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SyncQueryResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + lastEntryNum_ = input.readInt64(); + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastTimeOfSync_ != null) { + subBuilder = lastTimeOfSync_.toBuilder(); + } + lastTimeOfSync_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTimeOfSync_); + lastTimeOfSync_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.class, meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.Builder.class); + } + + public static final int LASTENTRYNUM_FIELD_NUMBER = 1; + private long lastEntryNum_; + /** + *
+     * Serial entry number of current last entry in database
+     * Set to zero (0) in case no query checksums match
+     * 
+ * + * int64 lastEntryNum = 1; + */ + public long getLastEntryNum() { + return lastEntryNum_; + } + + public static final int LASTTIMEOFSYNC_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp lastTimeOfSync_; + /** + *
+     * Largest value of timestamp for which the checksums match
+     * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public boolean hasLastTimeOfSync() { + return lastTimeOfSync_ != null; + } + /** + *
+     * Largest value of timestamp for which the checksums match
+     * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public com.google.protobuf.Timestamp getLastTimeOfSync() { + return lastTimeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTimeOfSync_; + } + /** + *
+     * Largest value of timestamp for which the checksums match
+     * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public com.google.protobuf.TimestampOrBuilder getLastTimeOfSyncOrBuilder() { + return getLastTimeOfSync(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (lastEntryNum_ != 0L) { + output.writeInt64(1, lastEntryNum_); + } + if (lastTimeOfSync_ != null) { + output.writeMessage(2, getLastTimeOfSync()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (lastEntryNum_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, lastEntryNum_); + } + if (lastTimeOfSync_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLastTimeOfSync()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse other = (meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse) obj; + + boolean result = true; + result = result && (getLastEntryNum() + == other.getLastEntryNum()); + result = result && (hasLastTimeOfSync() == other.hasLastTimeOfSync()); + if (hasLastTimeOfSync()) { + result = result && getLastTimeOfSync() + .equals(other.getLastTimeOfSync()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LASTENTRYNUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastEntryNum()); + if (hasLastTimeOfSync()) { + hash = (37 * hash) + LASTTIMEOFSYNC_FIELD_NUMBER; + hash = (53 * hash) + getLastTimeOfSync().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message defines the server's response format to a sync query
+     * 
+ * + * Protobuf type {@code meerkat.SyncQueryResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.SyncQueryResponse) + meerkat.protobuf.BulletinBoardAPI.SyncQueryResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.class, meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + lastEntryNum_ = 0L; + + if (lastTimeOfSyncBuilder_ == null) { + lastTimeOfSync_ = null; + } else { + lastTimeOfSync_ = null; + lastTimeOfSyncBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_SyncQueryResponse_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse build() { + meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse buildPartial() { + meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse result = new meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse(this); + result.lastEntryNum_ = lastEntryNum_; + if (lastTimeOfSyncBuilder_ == null) { + result.lastTimeOfSync_ = lastTimeOfSync_; + } else { + result.lastTimeOfSync_ = lastTimeOfSyncBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse other) { + if (other == meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse.getDefaultInstance()) return this; + if (other.getLastEntryNum() != 0L) { + setLastEntryNum(other.getLastEntryNum()); + } + if (other.hasLastTimeOfSync()) { + mergeLastTimeOfSync(other.getLastTimeOfSync()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long lastEntryNum_ ; + /** + *
+       * Serial entry number of current last entry in database
+       * Set to zero (0) in case no query checksums match
+       * 
+ * + * int64 lastEntryNum = 1; + */ + public long getLastEntryNum() { + return lastEntryNum_; + } + /** + *
+       * Serial entry number of current last entry in database
+       * Set to zero (0) in case no query checksums match
+       * 
+ * + * int64 lastEntryNum = 1; + */ + public Builder setLastEntryNum(long value) { + + lastEntryNum_ = value; + onChanged(); + return this; + } + /** + *
+       * Serial entry number of current last entry in database
+       * Set to zero (0) in case no query checksums match
+       * 
+ * + * int64 lastEntryNum = 1; + */ + public Builder clearLastEntryNum() { + + lastEntryNum_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastTimeOfSync_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastTimeOfSyncBuilder_; + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public boolean hasLastTimeOfSync() { + return lastTimeOfSyncBuilder_ != null || lastTimeOfSync_ != null; + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public com.google.protobuf.Timestamp getLastTimeOfSync() { + if (lastTimeOfSyncBuilder_ == null) { + return lastTimeOfSync_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastTimeOfSync_; + } else { + return lastTimeOfSyncBuilder_.getMessage(); + } + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public Builder setLastTimeOfSync(com.google.protobuf.Timestamp value) { + if (lastTimeOfSyncBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTimeOfSync_ = value; + onChanged(); + } else { + lastTimeOfSyncBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public Builder setLastTimeOfSync( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastTimeOfSyncBuilder_ == null) { + lastTimeOfSync_ = builderForValue.build(); + onChanged(); + } else { + lastTimeOfSyncBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public Builder mergeLastTimeOfSync(com.google.protobuf.Timestamp value) { + if (lastTimeOfSyncBuilder_ == null) { + if (lastTimeOfSync_ != null) { + lastTimeOfSync_ = + com.google.protobuf.Timestamp.newBuilder(lastTimeOfSync_).mergeFrom(value).buildPartial(); + } else { + lastTimeOfSync_ = value; + } + onChanged(); + } else { + lastTimeOfSyncBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public Builder clearLastTimeOfSync() { + if (lastTimeOfSyncBuilder_ == null) { + lastTimeOfSync_ = null; + onChanged(); + } else { + lastTimeOfSync_ = null; + lastTimeOfSyncBuilder_ = null; + } + + return this; + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public com.google.protobuf.Timestamp.Builder getLastTimeOfSyncBuilder() { + + onChanged(); + return getLastTimeOfSyncFieldBuilder().getBuilder(); + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + public com.google.protobuf.TimestampOrBuilder getLastTimeOfSyncOrBuilder() { + if (lastTimeOfSyncBuilder_ != null) { + return lastTimeOfSyncBuilder_.getMessageOrBuilder(); + } else { + return lastTimeOfSync_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastTimeOfSync_; + } + } + /** + *
+       * Largest value of timestamp for which the checksums match
+       * 
+ * + * .google.protobuf.Timestamp lastTimeOfSync = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getLastTimeOfSyncFieldBuilder() { + if (lastTimeOfSyncBuilder_ == null) { + lastTimeOfSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastTimeOfSync(), + getParentForChildren(), + isClean()); + lastTimeOfSync_ = null; + } + return lastTimeOfSyncBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.SyncQueryResponse) + } + + // @@protoc_insertion_point(class_scope:meerkat.SyncQueryResponse) + private static final meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse(); + } + + public static meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SyncQueryResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncQueryResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.SyncQueryResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BatchQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BatchQuery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The unique message ID if the batch
+     * 
+ * + * .meerkat.MessageID msgID = 1; + */ + boolean hasMsgID(); + /** + *
+     * The unique message ID if the batch
+     * 
+ * + * .meerkat.MessageID msgID = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageID getMsgID(); + /** + *
+     * The unique message ID if the batch
+     * 
+ * + * .meerkat.MessageID msgID = 1; + */ + meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder getMsgIDOrBuilder(); + + /** + *
+     * The first chunk to retrieve (0 is the first chunk)
+     * 
+ * + * int32 startPosition = 2; + */ + int getStartPosition(); + } + /** + *
+   * This message defines a query for retrieval of batch data
+   * 
+ * + * Protobuf type {@code meerkat.BatchQuery} + */ + public static final class BatchQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BatchQuery) + BatchQueryOrBuilder { + // Use BatchQuery.newBuilder() to construct. + private BatchQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BatchQuery() { + startPosition_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BatchQuery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.BulletinBoardAPI.MessageID.Builder subBuilder = null; + if (msgID_ != null) { + subBuilder = msgID_.toBuilder(); + } + msgID_ = input.readMessage(meerkat.protobuf.BulletinBoardAPI.MessageID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(msgID_); + msgID_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + startPosition_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchQuery.class, meerkat.protobuf.BulletinBoardAPI.BatchQuery.Builder.class); + } + + public static final int MSGID_FIELD_NUMBER = 1; + private meerkat.protobuf.BulletinBoardAPI.MessageID msgID_; + /** + *
+     * The unique message ID if the batch
+     * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public boolean hasMsgID() { + return msgID_ != null; + } + /** + *
+     * The unique message ID if the batch
+     * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageID getMsgID() { + return msgID_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance() : msgID_; + } + /** + *
+     * The unique message ID if the batch
+     * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder getMsgIDOrBuilder() { + return getMsgID(); + } + + public static final int STARTPOSITION_FIELD_NUMBER = 2; + private int startPosition_; + /** + *
+     * The first chunk to retrieve (0 is the first chunk)
+     * 
+ * + * int32 startPosition = 2; + */ + public int getStartPosition() { + return startPosition_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (msgID_ != null) { + output.writeMessage(1, getMsgID()); + } + if (startPosition_ != 0) { + output.writeInt32(2, startPosition_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (msgID_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMsgID()); + } + if (startPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, startPosition_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.BulletinBoardAPI.BatchQuery)) { + return super.equals(obj); + } + meerkat.protobuf.BulletinBoardAPI.BatchQuery other = (meerkat.protobuf.BulletinBoardAPI.BatchQuery) obj; + + boolean result = true; + result = result && (hasMsgID() == other.hasMsgID()); + if (hasMsgID()) { + result = result && getMsgID() + .equals(other.getMsgID()); + } + result = result && (getStartPosition() + == other.getStartPosition()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMsgID()) { + hash = (37 * hash) + MSGID_FIELD_NUMBER; + hash = (53 * hash) + getMsgID().hashCode(); + } + hash = (37 * hash) + STARTPOSITION_FIELD_NUMBER; + hash = (53 * hash) + getStartPosition(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.BulletinBoardAPI.BatchQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * This message defines a query for retrieval of batch data
+     * 
+ * + * Protobuf type {@code meerkat.BatchQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BatchQuery) + meerkat.protobuf.BulletinBoardAPI.BatchQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.BulletinBoardAPI.BatchQuery.class, meerkat.protobuf.BulletinBoardAPI.BatchQuery.Builder.class); + } + + // Construct using meerkat.protobuf.BulletinBoardAPI.BatchQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (msgIDBuilder_ == null) { + msgID_ = null; + } else { + msgID_ = null; + msgIDBuilder_ = null; + } + startPosition_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.BulletinBoardAPI.internal_static_meerkat_BatchQuery_descriptor; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchQuery getDefaultInstanceForType() { + return meerkat.protobuf.BulletinBoardAPI.BatchQuery.getDefaultInstance(); + } + + public meerkat.protobuf.BulletinBoardAPI.BatchQuery build() { + meerkat.protobuf.BulletinBoardAPI.BatchQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchQuery buildPartial() { + meerkat.protobuf.BulletinBoardAPI.BatchQuery result = new meerkat.protobuf.BulletinBoardAPI.BatchQuery(this); + if (msgIDBuilder_ == null) { + result.msgID_ = msgID_; + } else { + result.msgID_ = msgIDBuilder_.build(); + } + result.startPosition_ = startPosition_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.BulletinBoardAPI.BatchQuery) { + return mergeFrom((meerkat.protobuf.BulletinBoardAPI.BatchQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.BulletinBoardAPI.BatchQuery other) { + if (other == meerkat.protobuf.BulletinBoardAPI.BatchQuery.getDefaultInstance()) return this; + if (other.hasMsgID()) { + mergeMsgID(other.getMsgID()); + } + if (other.getStartPosition() != 0) { + setStartPosition(other.getStartPosition()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.BulletinBoardAPI.BatchQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.BulletinBoardAPI.BatchQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private meerkat.protobuf.BulletinBoardAPI.MessageID msgID_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageID, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder, meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder> msgIDBuilder_; + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public boolean hasMsgID() { + return msgIDBuilder_ != null || msgID_ != null; + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageID getMsgID() { + if (msgIDBuilder_ == null) { + return msgID_ == null ? meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance() : msgID_; + } else { + return msgIDBuilder_.getMessage(); + } + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public Builder setMsgID(meerkat.protobuf.BulletinBoardAPI.MessageID value) { + if (msgIDBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + msgID_ = value; + onChanged(); + } else { + msgIDBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public Builder setMsgID( + meerkat.protobuf.BulletinBoardAPI.MessageID.Builder builderForValue) { + if (msgIDBuilder_ == null) { + msgID_ = builderForValue.build(); + onChanged(); + } else { + msgIDBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public Builder mergeMsgID(meerkat.protobuf.BulletinBoardAPI.MessageID value) { + if (msgIDBuilder_ == null) { + if (msgID_ != null) { + msgID_ = + meerkat.protobuf.BulletinBoardAPI.MessageID.newBuilder(msgID_).mergeFrom(value).buildPartial(); + } else { + msgID_ = value; + } + onChanged(); + } else { + msgIDBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public Builder clearMsgID() { + if (msgIDBuilder_ == null) { + msgID_ = null; + onChanged(); + } else { + msgID_ = null; + msgIDBuilder_ = null; + } + + return this; + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageID.Builder getMsgIDBuilder() { + + onChanged(); + return getMsgIDFieldBuilder().getBuilder(); + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + public meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder getMsgIDOrBuilder() { + if (msgIDBuilder_ != null) { + return msgIDBuilder_.getMessageOrBuilder(); + } else { + return msgID_ == null ? + meerkat.protobuf.BulletinBoardAPI.MessageID.getDefaultInstance() : msgID_; + } + } + /** + *
+       * The unique message ID if the batch
+       * 
+ * + * .meerkat.MessageID msgID = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageID, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder, meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder> + getMsgIDFieldBuilder() { + if (msgIDBuilder_ == null) { + msgIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.BulletinBoardAPI.MessageID, meerkat.protobuf.BulletinBoardAPI.MessageID.Builder, meerkat.protobuf.BulletinBoardAPI.MessageIDOrBuilder>( + getMsgID(), + getParentForChildren(), + isClean()); + msgID_ = null; + } + return msgIDBuilder_; + } + + private int startPosition_ ; + /** + *
+       * The first chunk to retrieve (0 is the first chunk)
+       * 
+ * + * int32 startPosition = 2; + */ + public int getStartPosition() { + return startPosition_; + } + /** + *
+       * The first chunk to retrieve (0 is the first chunk)
+       * 
+ * + * int32 startPosition = 2; + */ + public Builder setStartPosition(int value) { + + startPosition_ = value; + onChanged(); + return this; + } + /** + *
+       * The first chunk to retrieve (0 is the first chunk)
+       * 
+ * + * int32 startPosition = 2; + */ + public Builder clearStartPosition() { + + startPosition_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BatchQuery) + } + + // @@protoc_insertion_point(class_scope:meerkat.BatchQuery) + private static final meerkat.protobuf.BulletinBoardAPI.BatchQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.BulletinBoardAPI.BatchQuery(); + } + + public static meerkat.protobuf.BulletinBoardAPI.BatchQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BatchQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.BulletinBoardAPI.BatchQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BoolMsg_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BoolMsg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_IntMsg_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_IntMsg_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_MessageID_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_MessageID_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BulletinBoardMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BulletinBoardMessageList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_MessageFilter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_MessageFilter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_MessageFilterList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_MessageFilterList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BeginBatchMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BeginBatchMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_CloseBatchMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_CloseBatchMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BatchChunk_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BatchChunk_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BatchChunkList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BatchChunkList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BatchMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BatchMessage_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_SingleSyncQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_SingleSyncQuery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_SyncQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_SyncQuery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_GenerateSyncQueryParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_SyncQueryResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_SyncQueryResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BatchQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BatchQuery_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\036meerkat/BulletinBoardAPI.proto\022\007meerka" + + "t\032\024meerkat/crypto.proto\032\037google/protobuf" + + "/timestamp.proto\"\030\n\007BoolMsg\022\r\n\005value\030\001 \001" + + "(\010\"\027\n\006IntMsg\022\r\n\005value\030\001 \001(\005\"\027\n\tMessageID" + + "\022\n\n\002ID\030\001 \001(\014\"\207\001\n\034UnsignedBulletinBoardMe" + + "ssage\022\013\n\003tag\030\001 \003(\t\022-\n\ttimestamp\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\022\017\n\005msgId\030\003 \001(\014" + + "H\000\022\016\n\004data\030\004 \001(\014H\000B\n\n\010dataType\"}\n\024Bullet" + + "inBoardMessage\022\020\n\010entryNum\030\001 \001(\003\0222\n\003msg\030" + + "\002 \001(\0132%.meerkat.UnsignedBulletinBoardMes", + "sage\022\037\n\003sig\030\003 \003(\0132\022.meerkat.Signature\"J\n" + + "\030BulletinBoardMessageList\022.\n\007message\030\001 \003" + + "(\0132\035.meerkat.BulletinBoardMessage\"\262\001\n\rMe" + + "ssageFilter\022!\n\004type\030\001 \001(\0162\023.meerkat.Filt" + + "erType\022\014\n\002id\030\002 \001(\014H\000\022\017\n\005entry\030\003 \001(\003H\000\022\r\n" + + "\003tag\030\004 \001(\tH\000\022\025\n\013maxMessages\030\005 \001(\003H\000\022/\n\tt" + + "imestamp\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mpH\000B\010\n\006filter\";\n\021MessageFilterList\022&\n\006f" + + "ilter\030\001 \003(\0132\026.meerkat.MessageFilter\" \n\021B" + + "eginBatchMessage\022\013\n\003tag\030\001 \003(\t\"\211\001\n\021CloseB", + "atchMessage\022\017\n\007batchId\030\001 \001(\003\022\023\n\013batchLen" + + "gth\030\002 \001(\005\022-\n\ttimestamp\030\003 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\037\n\003sig\030\004 \003(\0132\022.meerkat." + + "Signature\"\032\n\nBatchChunk\022\014\n\004data\030\001 \001(\014\"3\n" + + "\016BatchChunkList\022!\n\004data\030\001 \003(\0132\023.meerkat." + + "BatchChunk\"U\n\014BatchMessage\022\017\n\007batchId\030\001 " + + "\001(\003\022\021\n\tserialNum\030\002 \001(\005\022!\n\004data\030\003 \001(\0132\023.m" + + "eerkat.BatchChunk\"S\n\017SingleSyncQuery\022.\n\n" + + "timeOfSync\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022\020\n\010checksum\030\002 \001(\003\"d\n\tSyncQuery\022.\n\nf", + "ilterList\030\001 \001(\0132\032.meerkat.MessageFilterL" + + "ist\022\'\n\005query\030\002 \003(\0132\030.meerkat.SingleSyncQ" + + "uery\"a\n\027GenerateSyncQueryParams\022.\n\nfilte" + + "rList\030\001 \001(\0132\032.meerkat.MessageFilterList\022" + + "\026\n\016breakpointList\030\002 \003(\002\"]\n\021SyncQueryResp" + + "onse\022\024\n\014lastEntryNum\030\001 \001(\003\0222\n\016lastTimeOf" + + "Sync\030\002 \001(\0132\032.google.protobuf.Timestamp\"F" + + "\n\nBatchQuery\022!\n\005msgID\030\001 \001(\0132\022.meerkat.Me" + + "ssageID\022\025\n\rstartPosition\030\002 \001(\005*\222\001\n\nFilte" + + "rType\022\n\n\006MSG_ID\020\000\022\017\n\013EXACT_ENTRY\020\001\022\r\n\tMA", + "X_ENTRY\020\002\022\r\n\tMIN_ENTRY\020\003\022\r\n\tSIGNER_ID\020\004\022" + + "\007\n\003TAG\020\005\022\016\n\nAFTER_TIME\020\006\022\017\n\013BEFORE_TIME\020" + + "\007\022\020\n\014MAX_MESSAGES\020\010B\022\n\020meerkat.protobufb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + meerkat.protobuf.Crypto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_meerkat_BoolMsg_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_BoolMsg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BoolMsg_descriptor, + new java.lang.String[] { "Value", }); + internal_static_meerkat_IntMsg_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_meerkat_IntMsg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_IntMsg_descriptor, + new java.lang.String[] { "Value", }); + internal_static_meerkat_MessageID_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_meerkat_MessageID_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_MessageID_descriptor, + new java.lang.String[] { "ID", }); + internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_meerkat_UnsignedBulletinBoardMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_UnsignedBulletinBoardMessage_descriptor, + new java.lang.String[] { "Tag", "Timestamp", "MsgId", "Data", "DataType", }); + internal_static_meerkat_BulletinBoardMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_meerkat_BulletinBoardMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BulletinBoardMessage_descriptor, + new java.lang.String[] { "EntryNum", "Msg", "Sig", }); + internal_static_meerkat_BulletinBoardMessageList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_meerkat_BulletinBoardMessageList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BulletinBoardMessageList_descriptor, + new java.lang.String[] { "Message", }); + internal_static_meerkat_MessageFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_meerkat_MessageFilter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_MessageFilter_descriptor, + new java.lang.String[] { "Type", "Id", "Entry", "Tag", "MaxMessages", "Timestamp", "Filter", }); + internal_static_meerkat_MessageFilterList_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_meerkat_MessageFilterList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_MessageFilterList_descriptor, + new java.lang.String[] { "Filter", }); + internal_static_meerkat_BeginBatchMessage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_meerkat_BeginBatchMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BeginBatchMessage_descriptor, + new java.lang.String[] { "Tag", }); + internal_static_meerkat_CloseBatchMessage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_meerkat_CloseBatchMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_CloseBatchMessage_descriptor, + new java.lang.String[] { "BatchId", "BatchLength", "Timestamp", "Sig", }); + internal_static_meerkat_BatchChunk_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_meerkat_BatchChunk_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BatchChunk_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_BatchChunkList_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_meerkat_BatchChunkList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BatchChunkList_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_BatchMessage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_meerkat_BatchMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BatchMessage_descriptor, + new java.lang.String[] { "BatchId", "SerialNum", "Data", }); + internal_static_meerkat_SingleSyncQuery_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_meerkat_SingleSyncQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_SingleSyncQuery_descriptor, + new java.lang.String[] { "TimeOfSync", "Checksum", }); + internal_static_meerkat_SyncQuery_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_meerkat_SyncQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_SyncQuery_descriptor, + new java.lang.String[] { "FilterList", "Query", }); + internal_static_meerkat_GenerateSyncQueryParams_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_meerkat_GenerateSyncQueryParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_GenerateSyncQueryParams_descriptor, + new java.lang.String[] { "FilterList", "BreakpointList", }); + internal_static_meerkat_SyncQueryResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_meerkat_SyncQueryResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_SyncQueryResponse_descriptor, + new java.lang.String[] { "LastEntryNum", "LastTimeOfSync", }); + internal_static_meerkat_BatchQuery_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_meerkat_BatchQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BatchQuery_descriptor, + new java.lang.String[] { "MsgID", "StartPosition", }); + meerkat.protobuf.Crypto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Comm.java b/android-scanner/src/main/java/meerkat/protobuf/Comm.java new file mode 100644 index 0000000..7acb672 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/Comm.java @@ -0,0 +1,679 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/comm.proto + +package meerkat.protobuf; + +public final class Comm { + private Comm() {} + 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 BroadcastMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BroadcastMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 sender = 1; + */ + int getSender(); + + /** + * int32 destination = 2; + */ + int getDestination(); + + /** + * bool is_private = 3; + */ + boolean getIsPrivate(); + + /** + * bytes payload = 5; + */ + com.google.protobuf.ByteString getPayload(); + } + /** + * Protobuf type {@code meerkat.BroadcastMessage} + */ + public static final class BroadcastMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BroadcastMessage) + BroadcastMessageOrBuilder { + // Use BroadcastMessage.newBuilder() to construct. + private BroadcastMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BroadcastMessage() { + sender_ = 0; + destination_ = 0; + isPrivate_ = false; + payload_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BroadcastMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + sender_ = input.readInt32(); + break; + } + case 16: { + + destination_ = input.readInt32(); + break; + } + case 24: { + + isPrivate_ = input.readBool(); + break; + } + case 42: { + + payload_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Comm.BroadcastMessage.class, meerkat.protobuf.Comm.BroadcastMessage.Builder.class); + } + + public static final int SENDER_FIELD_NUMBER = 1; + private int sender_; + /** + * int32 sender = 1; + */ + public int getSender() { + return sender_; + } + + public static final int DESTINATION_FIELD_NUMBER = 2; + private int destination_; + /** + * int32 destination = 2; + */ + public int getDestination() { + return destination_; + } + + public static final int IS_PRIVATE_FIELD_NUMBER = 3; + private boolean isPrivate_; + /** + * bool is_private = 3; + */ + public boolean getIsPrivate() { + return isPrivate_; + } + + public static final int PAYLOAD_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString payload_; + /** + * bytes payload = 5; + */ + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sender_ != 0) { + output.writeInt32(1, sender_); + } + if (destination_ != 0) { + output.writeInt32(2, destination_); + } + if (isPrivate_ != false) { + output.writeBool(3, isPrivate_); + } + if (!payload_.isEmpty()) { + output.writeBytes(5, payload_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sender_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sender_); + } + if (destination_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, destination_); + } + if (isPrivate_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isPrivate_); + } + if (!payload_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, payload_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Comm.BroadcastMessage)) { + return super.equals(obj); + } + meerkat.protobuf.Comm.BroadcastMessage other = (meerkat.protobuf.Comm.BroadcastMessage) obj; + + boolean result = true; + result = result && (getSender() + == other.getSender()); + result = result && (getDestination() + == other.getDestination()); + result = result && (getIsPrivate() + == other.getIsPrivate()); + result = result && getPayload() + .equals(other.getPayload()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SENDER_FIELD_NUMBER; + hash = (53 * hash) + getSender(); + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination(); + hash = (37 * hash) + IS_PRIVATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsPrivate()); + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Comm.BroadcastMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Comm.BroadcastMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BroadcastMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BroadcastMessage) + meerkat.protobuf.Comm.BroadcastMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Comm.BroadcastMessage.class, meerkat.protobuf.Comm.BroadcastMessage.Builder.class); + } + + // Construct using meerkat.protobuf.Comm.BroadcastMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + sender_ = 0; + + destination_ = 0; + + isPrivate_ = false; + + payload_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Comm.internal_static_meerkat_BroadcastMessage_descriptor; + } + + public meerkat.protobuf.Comm.BroadcastMessage getDefaultInstanceForType() { + return meerkat.protobuf.Comm.BroadcastMessage.getDefaultInstance(); + } + + public meerkat.protobuf.Comm.BroadcastMessage build() { + meerkat.protobuf.Comm.BroadcastMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Comm.BroadcastMessage buildPartial() { + meerkat.protobuf.Comm.BroadcastMessage result = new meerkat.protobuf.Comm.BroadcastMessage(this); + result.sender_ = sender_; + result.destination_ = destination_; + result.isPrivate_ = isPrivate_; + result.payload_ = payload_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Comm.BroadcastMessage) { + return mergeFrom((meerkat.protobuf.Comm.BroadcastMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Comm.BroadcastMessage other) { + if (other == meerkat.protobuf.Comm.BroadcastMessage.getDefaultInstance()) return this; + if (other.getSender() != 0) { + setSender(other.getSender()); + } + if (other.getDestination() != 0) { + setDestination(other.getDestination()); + } + if (other.getIsPrivate() != false) { + setIsPrivate(other.getIsPrivate()); + } + if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { + setPayload(other.getPayload()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Comm.BroadcastMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Comm.BroadcastMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int sender_ ; + /** + * int32 sender = 1; + */ + public int getSender() { + return sender_; + } + /** + * int32 sender = 1; + */ + public Builder setSender(int value) { + + sender_ = value; + onChanged(); + return this; + } + /** + * int32 sender = 1; + */ + public Builder clearSender() { + + sender_ = 0; + onChanged(); + return this; + } + + private int destination_ ; + /** + * int32 destination = 2; + */ + public int getDestination() { + return destination_; + } + /** + * int32 destination = 2; + */ + public Builder setDestination(int value) { + + destination_ = value; + onChanged(); + return this; + } + /** + * int32 destination = 2; + */ + public Builder clearDestination() { + + destination_ = 0; + onChanged(); + return this; + } + + private boolean isPrivate_ ; + /** + * bool is_private = 3; + */ + public boolean getIsPrivate() { + return isPrivate_; + } + /** + * bool is_private = 3; + */ + public Builder setIsPrivate(boolean value) { + + isPrivate_ = value; + onChanged(); + return this; + } + /** + * bool is_private = 3; + */ + public Builder clearIsPrivate() { + + isPrivate_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes payload = 5; + */ + public com.google.protobuf.ByteString getPayload() { + return payload_; + } + /** + * bytes payload = 5; + */ + public Builder setPayload(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + payload_ = value; + onChanged(); + return this; + } + /** + * bytes payload = 5; + */ + public Builder clearPayload() { + + payload_ = getDefaultInstance().getPayload(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BroadcastMessage) + } + + // @@protoc_insertion_point(class_scope:meerkat.BroadcastMessage) + private static final meerkat.protobuf.Comm.BroadcastMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Comm.BroadcastMessage(); + } + + public static meerkat.protobuf.Comm.BroadcastMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BroadcastMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BroadcastMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Comm.BroadcastMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BroadcastMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BroadcastMessage_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\022meerkat/comm.proto\022\007meerkat\"\\\n\020Broadca" + + "stMessage\022\016\n\006sender\030\001 \001(\005\022\023\n\013destination" + + "\030\002 \001(\005\022\022\n\nis_private\030\003 \001(\010\022\017\n\007payload\030\005 " + + "\001(\014B\022\n\020meerkat.protobufb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_meerkat_BroadcastMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_BroadcastMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BroadcastMessage_descriptor, + new java.lang.String[] { "Sender", "Destination", "IsPrivate", "Payload", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/ConcreteCrypto.java b/android-scanner/src/main/java/meerkat/protobuf/ConcreteCrypto.java new file mode 100644 index 0000000..8a29f69 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/ConcreteCrypto.java @@ -0,0 +1,1858 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/concrete_crypto.proto + +package meerkat.protobuf; + +public final class ConcreteCrypto { + private ConcreteCrypto() {} + 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 ElGamalPublicKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ElGamalPublicKey) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * DER-encoded SubjectPublicKeyInfo as in RFC 3279
+     * 
+ * + * bytes subject_public_key_info = 1; + */ + com.google.protobuf.ByteString getSubjectPublicKeyInfo(); + } + /** + * Protobuf type {@code meerkat.ElGamalPublicKey} + */ + public static final class ElGamalPublicKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ElGamalPublicKey) + ElGamalPublicKeyOrBuilder { + // Use ElGamalPublicKey.newBuilder() to construct. + private ElGamalPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ElGamalPublicKey() { + subjectPublicKeyInfo_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ElGamalPublicKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + subjectPublicKeyInfo_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.class, meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.Builder.class); + } + + public static final int SUBJECT_PUBLIC_KEY_INFO_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString subjectPublicKeyInfo_; + /** + *
+     * DER-encoded SubjectPublicKeyInfo as in RFC 3279
+     * 
+ * + * bytes subject_public_key_info = 1; + */ + public com.google.protobuf.ByteString getSubjectPublicKeyInfo() { + return subjectPublicKeyInfo_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!subjectPublicKeyInfo_.isEmpty()) { + output.writeBytes(1, subjectPublicKeyInfo_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!subjectPublicKeyInfo_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, subjectPublicKeyInfo_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey)) { + return super.equals(obj); + } + meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey other = (meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey) obj; + + boolean result = true; + result = result && getSubjectPublicKeyInfo() + .equals(other.getSubjectPublicKeyInfo()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBJECT_PUBLIC_KEY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSubjectPublicKeyInfo().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.ElGamalPublicKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.ElGamalPublicKey) + meerkat.protobuf.ConcreteCrypto.ElGamalPublicKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.class, meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.Builder.class); + } + + // Construct using meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subjectPublicKeyInfo_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalPublicKey_descriptor; + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey getDefaultInstanceForType() { + return meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.getDefaultInstance(); + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey build() { + meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey buildPartial() { + meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey result = new meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey(this); + result.subjectPublicKeyInfo_ = subjectPublicKeyInfo_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey) { + return mergeFrom((meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey other) { + if (other == meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey.getDefaultInstance()) return this; + if (other.getSubjectPublicKeyInfo() != com.google.protobuf.ByteString.EMPTY) { + setSubjectPublicKeyInfo(other.getSubjectPublicKeyInfo()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString subjectPublicKeyInfo_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * DER-encoded SubjectPublicKeyInfo as in RFC 3279
+       * 
+ * + * bytes subject_public_key_info = 1; + */ + public com.google.protobuf.ByteString getSubjectPublicKeyInfo() { + return subjectPublicKeyInfo_; + } + /** + *
+       * DER-encoded SubjectPublicKeyInfo as in RFC 3279
+       * 
+ * + * bytes subject_public_key_info = 1; + */ + public Builder setSubjectPublicKeyInfo(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + subjectPublicKeyInfo_ = value; + onChanged(); + return this; + } + /** + *
+       * DER-encoded SubjectPublicKeyInfo as in RFC 3279
+       * 
+ * + * bytes subject_public_key_info = 1; + */ + public Builder clearSubjectPublicKeyInfo() { + + subjectPublicKeyInfo_ = getDefaultInstance().getSubjectPublicKeyInfo(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ElGamalPublicKey) + } + + // @@protoc_insertion_point(class_scope:meerkat.ElGamalPublicKey) + private static final meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey(); + } + + public static meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ElGamalPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ElGamalPublicKey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalPublicKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GroupElementOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.GroupElement) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * Each group element should be an ASN.1 encoded curve point with compression.
+   * 
+ * + * Protobuf type {@code meerkat.GroupElement} + */ + public static final class GroupElement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.GroupElement) + GroupElementOrBuilder { + // Use GroupElement.newBuilder() to construct. + private GroupElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GroupElement() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private GroupElement( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.ConcreteCrypto.GroupElement.class, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.ConcreteCrypto.GroupElement)) { + return super.equals(obj); + } + meerkat.protobuf.ConcreteCrypto.GroupElement other = (meerkat.protobuf.ConcreteCrypto.GroupElement) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.GroupElement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.ConcreteCrypto.GroupElement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Each group element should be an ASN.1 encoded curve point with compression.
+     * 
+ * + * Protobuf type {@code meerkat.GroupElement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.GroupElement) + meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.ConcreteCrypto.GroupElement.class, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder.class); + } + + // Construct using meerkat.protobuf.ConcreteCrypto.GroupElement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_GroupElement_descriptor; + } + + public meerkat.protobuf.ConcreteCrypto.GroupElement getDefaultInstanceForType() { + return meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance(); + } + + public meerkat.protobuf.ConcreteCrypto.GroupElement build() { + meerkat.protobuf.ConcreteCrypto.GroupElement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.ConcreteCrypto.GroupElement buildPartial() { + meerkat.protobuf.ConcreteCrypto.GroupElement result = new meerkat.protobuf.ConcreteCrypto.GroupElement(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.ConcreteCrypto.GroupElement) { + return mergeFrom((meerkat.protobuf.ConcreteCrypto.GroupElement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.ConcreteCrypto.GroupElement other) { + if (other == meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.ConcreteCrypto.GroupElement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.ConcreteCrypto.GroupElement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.GroupElement) + } + + // @@protoc_insertion_point(class_scope:meerkat.GroupElement) + private static final meerkat.protobuf.ConcreteCrypto.GroupElement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.ConcreteCrypto.GroupElement(); + } + + public static meerkat.protobuf.ConcreteCrypto.GroupElement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public GroupElement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupElement(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.ConcreteCrypto.GroupElement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ElGamalCiphertextOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ElGamalCiphertext) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * First group element
+     * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + boolean hasC1(); + /** + *
+     * First group element
+     * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + meerkat.protobuf.ConcreteCrypto.GroupElement getC1(); + /** + *
+     * First group element
+     * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC1OrBuilder(); + + /** + *
+     * Second group element
+     * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + boolean hasC2(); + /** + *
+     * Second group element
+     * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + meerkat.protobuf.ConcreteCrypto.GroupElement getC2(); + /** + *
+     * Second group element
+     * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC2OrBuilder(); + } + /** + *
+   * An El-Gamal ciphertext
+   * 
+ * + * Protobuf type {@code meerkat.ElGamalCiphertext} + */ + public static final class ElGamalCiphertext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ElGamalCiphertext) + ElGamalCiphertextOrBuilder { + // Use ElGamalCiphertext.newBuilder() to construct. + private ElGamalCiphertext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ElGamalCiphertext() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ElGamalCiphertext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.ConcreteCrypto.GroupElement.Builder subBuilder = null; + if (c1_ != null) { + subBuilder = c1_.toBuilder(); + } + c1_ = input.readMessage(meerkat.protobuf.ConcreteCrypto.GroupElement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(c1_); + c1_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + meerkat.protobuf.ConcreteCrypto.GroupElement.Builder subBuilder = null; + if (c2_ != null) { + subBuilder = c2_.toBuilder(); + } + c2_ = input.readMessage(meerkat.protobuf.ConcreteCrypto.GroupElement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(c2_); + c2_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.class, meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.Builder.class); + } + + public static final int C1_FIELD_NUMBER = 1; + private meerkat.protobuf.ConcreteCrypto.GroupElement c1_; + /** + *
+     * First group element
+     * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public boolean hasC1() { + return c1_ != null; + } + /** + *
+     * First group element
+     * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElement getC1() { + return c1_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c1_; + } + /** + *
+     * First group element
+     * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC1OrBuilder() { + return getC1(); + } + + public static final int C2_FIELD_NUMBER = 2; + private meerkat.protobuf.ConcreteCrypto.GroupElement c2_; + /** + *
+     * Second group element
+     * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public boolean hasC2() { + return c2_ != null; + } + /** + *
+     * Second group element
+     * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElement getC2() { + return c2_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c2_; + } + /** + *
+     * Second group element
+     * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC2OrBuilder() { + return getC2(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (c1_ != null) { + output.writeMessage(1, getC1()); + } + if (c2_ != null) { + output.writeMessage(2, getC2()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (c1_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getC1()); + } + if (c2_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getC2()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext)) { + return super.equals(obj); + } + meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext other = (meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext) obj; + + boolean result = true; + result = result && (hasC1() == other.hasC1()); + if (hasC1()) { + result = result && getC1() + .equals(other.getC1()); + } + result = result && (hasC2() == other.hasC2()); + if (hasC2()) { + result = result && getC2() + .equals(other.getC2()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasC1()) { + hash = (37 * hash) + C1_FIELD_NUMBER; + hash = (53 * hash) + getC1().hashCode(); + } + if (hasC2()) { + hash = (37 * hash) + C2_FIELD_NUMBER; + hash = (53 * hash) + getC2().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An El-Gamal ciphertext
+     * 
+ * + * Protobuf type {@code meerkat.ElGamalCiphertext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.ElGamalCiphertext) + meerkat.protobuf.ConcreteCrypto.ElGamalCiphertextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.class, meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.Builder.class); + } + + // Construct using meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (c1Builder_ == null) { + c1_ = null; + } else { + c1_ = null; + c1Builder_ = null; + } + if (c2Builder_ == null) { + c2_ = null; + } else { + c2_ = null; + c2Builder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.ConcreteCrypto.internal_static_meerkat_ElGamalCiphertext_descriptor; + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext getDefaultInstanceForType() { + return meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.getDefaultInstance(); + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext build() { + meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext buildPartial() { + meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext result = new meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext(this); + if (c1Builder_ == null) { + result.c1_ = c1_; + } else { + result.c1_ = c1Builder_.build(); + } + if (c2Builder_ == null) { + result.c2_ = c2_; + } else { + result.c2_ = c2Builder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext) { + return mergeFrom((meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext other) { + if (other == meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext.getDefaultInstance()) return this; + if (other.hasC1()) { + mergeC1(other.getC1()); + } + if (other.hasC2()) { + mergeC2(other.getC2()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private meerkat.protobuf.ConcreteCrypto.GroupElement c1_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> c1Builder_; + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public boolean hasC1() { + return c1Builder_ != null || c1_ != null; + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElement getC1() { + if (c1Builder_ == null) { + return c1_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c1_; + } else { + return c1Builder_.getMessage(); + } + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public Builder setC1(meerkat.protobuf.ConcreteCrypto.GroupElement value) { + if (c1Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + c1_ = value; + onChanged(); + } else { + c1Builder_.setMessage(value); + } + + return this; + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public Builder setC1( + meerkat.protobuf.ConcreteCrypto.GroupElement.Builder builderForValue) { + if (c1Builder_ == null) { + c1_ = builderForValue.build(); + onChanged(); + } else { + c1Builder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public Builder mergeC1(meerkat.protobuf.ConcreteCrypto.GroupElement value) { + if (c1Builder_ == null) { + if (c1_ != null) { + c1_ = + meerkat.protobuf.ConcreteCrypto.GroupElement.newBuilder(c1_).mergeFrom(value).buildPartial(); + } else { + c1_ = value; + } + onChanged(); + } else { + c1Builder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public Builder clearC1() { + if (c1Builder_ == null) { + c1_ = null; + onChanged(); + } else { + c1_ = null; + c1Builder_ = null; + } + + return this; + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElement.Builder getC1Builder() { + + onChanged(); + return getC1FieldBuilder().getBuilder(); + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC1OrBuilder() { + if (c1Builder_ != null) { + return c1Builder_.getMessageOrBuilder(); + } else { + return c1_ == null ? + meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c1_; + } + } + /** + *
+       * First group element
+       * 
+ * + * .meerkat.GroupElement c1 = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> + getC1FieldBuilder() { + if (c1Builder_ == null) { + c1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder>( + getC1(), + getParentForChildren(), + isClean()); + c1_ = null; + } + return c1Builder_; + } + + private meerkat.protobuf.ConcreteCrypto.GroupElement c2_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> c2Builder_; + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public boolean hasC2() { + return c2Builder_ != null || c2_ != null; + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElement getC2() { + if (c2Builder_ == null) { + return c2_ == null ? meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c2_; + } else { + return c2Builder_.getMessage(); + } + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public Builder setC2(meerkat.protobuf.ConcreteCrypto.GroupElement value) { + if (c2Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + c2_ = value; + onChanged(); + } else { + c2Builder_.setMessage(value); + } + + return this; + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public Builder setC2( + meerkat.protobuf.ConcreteCrypto.GroupElement.Builder builderForValue) { + if (c2Builder_ == null) { + c2_ = builderForValue.build(); + onChanged(); + } else { + c2Builder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public Builder mergeC2(meerkat.protobuf.ConcreteCrypto.GroupElement value) { + if (c2Builder_ == null) { + if (c2_ != null) { + c2_ = + meerkat.protobuf.ConcreteCrypto.GroupElement.newBuilder(c2_).mergeFrom(value).buildPartial(); + } else { + c2_ = value; + } + onChanged(); + } else { + c2Builder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public Builder clearC2() { + if (c2Builder_ == null) { + c2_ = null; + onChanged(); + } else { + c2_ = null; + c2Builder_ = null; + } + + return this; + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElement.Builder getC2Builder() { + + onChanged(); + return getC2FieldBuilder().getBuilder(); + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + public meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder getC2OrBuilder() { + if (c2Builder_ != null) { + return c2Builder_.getMessageOrBuilder(); + } else { + return c2_ == null ? + meerkat.protobuf.ConcreteCrypto.GroupElement.getDefaultInstance() : c2_; + } + } + /** + *
+       * Second group element
+       * 
+ * + * .meerkat.GroupElement c2 = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder> + getC2FieldBuilder() { + if (c2Builder_ == null) { + c2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.ConcreteCrypto.GroupElement, meerkat.protobuf.ConcreteCrypto.GroupElement.Builder, meerkat.protobuf.ConcreteCrypto.GroupElementOrBuilder>( + getC2(), + getParentForChildren(), + isClean()); + c2_ = null; + } + return c2Builder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ElGamalCiphertext) + } + + // @@protoc_insertion_point(class_scope:meerkat.ElGamalCiphertext) + private static final meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext(); + } + + public static meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ElGamalCiphertext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ElGamalCiphertext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.ConcreteCrypto.ElGamalCiphertext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ElGamalPublicKey_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_GroupElement_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_GroupElement_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ElGamalCiphertext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ElGamalCiphertext_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\035meerkat/concrete_crypto.proto\022\007meerkat" + + "\032\024meerkat/crypto.proto\"3\n\020ElGamalPublicK" + + "ey\022\037\n\027subject_public_key_info\030\001 \001(\014\"\034\n\014G" + + "roupElement\022\014\n\004data\030\001 \001(\014\"Y\n\021ElGamalCiph" + + "ertext\022!\n\002c1\030\001 \001(\0132\025.meerkat.GroupElemen" + + "t\022!\n\002c2\030\002 \001(\0132\025.meerkat.GroupElementB\022\n\020" + + "meerkat.protobufb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + meerkat.protobuf.Crypto.getDescriptor(), + }, assigner); + internal_static_meerkat_ElGamalPublicKey_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_ElGamalPublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ElGamalPublicKey_descriptor, + new java.lang.String[] { "SubjectPublicKeyInfo", }); + internal_static_meerkat_GroupElement_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_meerkat_GroupElement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_GroupElement_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_ElGamalCiphertext_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_meerkat_ElGamalCiphertext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ElGamalCiphertext_descriptor, + new java.lang.String[] { "C1", "C2", }); + meerkat.protobuf.Crypto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Crypto.java b/android-scanner/src/main/java/meerkat/protobuf/Crypto.java new file mode 100644 index 0000000..5120ba2 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/Crypto.java @@ -0,0 +1,3611 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/crypto.proto + +package meerkat.protobuf; + +public final class Crypto { + private Crypto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * Protobuf enum {@code meerkat.SignatureType} + */ + public enum SignatureType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ECDSA = 0; + */ + ECDSA(0), + /** + * DSA = 1; + */ + DSA(1), + UNRECOGNIZED(-1), + ; + + /** + * ECDSA = 0; + */ + public static final int ECDSA_VALUE = 0; + /** + * DSA = 1; + */ + public static final int DSA_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SignatureType valueOf(int value) { + return forNumber(value); + } + + public static SignatureType forNumber(int value) { + switch (value) { + case 0: return ECDSA; + case 1: return DSA; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SignatureType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SignatureType findValueByNumber(int number) { + return SignatureType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return meerkat.protobuf.Crypto.getDescriptor().getEnumTypes().get(0); + } + + private static final SignatureType[] VALUES = values(); + + public static SignatureType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SignatureType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:meerkat.SignatureType) + } + + public interface BigIntegerOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BigInteger) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + * Protobuf type {@code meerkat.BigInteger} + */ + public static final class BigInteger extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BigInteger) + BigIntegerOrBuilder { + // Use BigInteger.newBuilder() to construct. + private BigInteger(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BigInteger() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BigInteger( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.BigInteger.class, meerkat.protobuf.Crypto.BigInteger.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Crypto.BigInteger)) { + return super.equals(obj); + } + meerkat.protobuf.Crypto.BigInteger other = (meerkat.protobuf.Crypto.BigInteger) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Crypto.BigInteger parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.BigInteger parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.BigInteger parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.BigInteger parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.BigInteger parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.BigInteger parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.BigInteger parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.BigInteger parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.BigInteger parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.BigInteger parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Crypto.BigInteger prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BigInteger} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.BigInteger) + meerkat.protobuf.Crypto.BigIntegerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.BigInteger.class, meerkat.protobuf.Crypto.BigInteger.Builder.class); + } + + // Construct using meerkat.protobuf.Crypto.BigInteger.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Crypto.internal_static_meerkat_BigInteger_descriptor; + } + + public meerkat.protobuf.Crypto.BigInteger getDefaultInstanceForType() { + return meerkat.protobuf.Crypto.BigInteger.getDefaultInstance(); + } + + public meerkat.protobuf.Crypto.BigInteger build() { + meerkat.protobuf.Crypto.BigInteger result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Crypto.BigInteger buildPartial() { + meerkat.protobuf.Crypto.BigInteger result = new meerkat.protobuf.Crypto.BigInteger(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Crypto.BigInteger) { + return mergeFrom((meerkat.protobuf.Crypto.BigInteger)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Crypto.BigInteger other) { + if (other == meerkat.protobuf.Crypto.BigInteger.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Crypto.BigInteger parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Crypto.BigInteger) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BigInteger) + } + + // @@protoc_insertion_point(class_scope:meerkat.BigInteger) + private static final meerkat.protobuf.Crypto.BigInteger DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.BigInteger(); + } + + public static meerkat.protobuf.Crypto.BigInteger getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BigInteger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigInteger(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Crypto.BigInteger getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.Signature) + com.google.protobuf.MessageOrBuilder { + + /** + * .meerkat.SignatureType type = 1; + */ + int getTypeValue(); + /** + * .meerkat.SignatureType type = 1; + */ + meerkat.protobuf.Crypto.SignatureType getType(); + + /** + *
+     * Data encoding depends on type; default is DER-encoded
+     * 
+ * + * bytes data = 2; + */ + com.google.protobuf.ByteString getData(); + + /** + *
+     * ID of the signer (should be the fingerprint of the signature verification key)
+     * 
+ * + * bytes signer_id = 3; + */ + com.google.protobuf.ByteString getSignerId(); + } + /** + *
+   * A digital signature
+   * 
+ * + * Protobuf type {@code meerkat.Signature} + */ + public static final class Signature extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.Signature) + SignatureOrBuilder { + // Use Signature.newBuilder() to construct. + private Signature(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Signature() { + type_ = 0; + data_ = com.google.protobuf.ByteString.EMPTY; + signerId_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Signature( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + + data_ = input.readBytes(); + break; + } + case 26: { + + signerId_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.Signature.class, meerkat.protobuf.Crypto.Signature.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .meerkat.SignatureType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .meerkat.SignatureType type = 1; + */ + public meerkat.protobuf.Crypto.SignatureType getType() { + meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); + return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + *
+     * Data encoding depends on type; default is DER-encoded
+     * 
+ * + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int SIGNER_ID_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString signerId_; + /** + *
+     * ID of the signer (should be the fingerprint of the signature verification key)
+     * 
+ * + * bytes signer_id = 3; + */ + public com.google.protobuf.ByteString getSignerId() { + return signerId_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { + output.writeEnum(1, type_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + if (!signerId_.isEmpty()) { + output.writeBytes(3, signerId_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + if (!signerId_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, signerId_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Crypto.Signature)) { + return super.equals(obj); + } + meerkat.protobuf.Crypto.Signature other = (meerkat.protobuf.Crypto.Signature) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getData() + .equals(other.getData()); + result = result && getSignerId() + .equals(other.getSignerId()); + return result; + } + + @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) + type_; + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + SIGNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getSignerId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Crypto.Signature parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.Signature parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.Signature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.Signature parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.Signature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.Signature parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.Signature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.Signature parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.Signature parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.Signature parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Crypto.Signature prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A digital signature
+     * 
+ * + * Protobuf type {@code meerkat.Signature} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.Signature) + meerkat.protobuf.Crypto.SignatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.Signature.class, meerkat.protobuf.Crypto.Signature.Builder.class); + } + + // Construct using meerkat.protobuf.Crypto.Signature.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = 0; + + data_ = com.google.protobuf.ByteString.EMPTY; + + signerId_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Crypto.internal_static_meerkat_Signature_descriptor; + } + + public meerkat.protobuf.Crypto.Signature getDefaultInstanceForType() { + return meerkat.protobuf.Crypto.Signature.getDefaultInstance(); + } + + public meerkat.protobuf.Crypto.Signature build() { + meerkat.protobuf.Crypto.Signature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Crypto.Signature buildPartial() { + meerkat.protobuf.Crypto.Signature result = new meerkat.protobuf.Crypto.Signature(this); + result.type_ = type_; + result.data_ = data_; + result.signerId_ = signerId_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Crypto.Signature) { + return mergeFrom((meerkat.protobuf.Crypto.Signature)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Crypto.Signature other) { + if (other == meerkat.protobuf.Crypto.Signature.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + if (other.getSignerId() != com.google.protobuf.ByteString.EMPTY) { + setSignerId(other.getSignerId()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Crypto.Signature parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Crypto.Signature) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * .meerkat.SignatureType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .meerkat.SignatureType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * .meerkat.SignatureType type = 1; + */ + public meerkat.protobuf.Crypto.SignatureType getType() { + meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); + return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; + } + /** + * .meerkat.SignatureType type = 1; + */ + public Builder setType(meerkat.protobuf.Crypto.SignatureType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .meerkat.SignatureType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Data encoding depends on type; default is DER-encoded
+       * 
+ * + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + *
+       * Data encoding depends on type; default is DER-encoded
+       * 
+ * + * bytes data = 2; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + *
+       * Data encoding depends on type; default is DER-encoded
+       * 
+ * + * bytes data = 2; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString signerId_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * ID of the signer (should be the fingerprint of the signature verification key)
+       * 
+ * + * bytes signer_id = 3; + */ + public com.google.protobuf.ByteString getSignerId() { + return signerId_; + } + /** + *
+       * ID of the signer (should be the fingerprint of the signature verification key)
+       * 
+ * + * bytes signer_id = 3; + */ + public Builder setSignerId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + signerId_ = value; + onChanged(); + return this; + } + /** + *
+       * ID of the signer (should be the fingerprint of the signature verification key)
+       * 
+ * + * bytes signer_id = 3; + */ + public Builder clearSignerId() { + + signerId_ = getDefaultInstance().getSignerId(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.Signature) + } + + // @@protoc_insertion_point(class_scope:meerkat.Signature) + private static final meerkat.protobuf.Crypto.Signature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.Signature(); + } + + public static meerkat.protobuf.Crypto.Signature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Signature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Signature(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Crypto.Signature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignatureVerificationKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.SignatureVerificationKey) + com.google.protobuf.MessageOrBuilder { + + /** + * .meerkat.SignatureType type = 1; + */ + int getTypeValue(); + /** + * .meerkat.SignatureType type = 1; + */ + meerkat.protobuf.Crypto.SignatureType getType(); + + /** + *
+     * Data encoding depends on type; default is x509 DER-encoded
+     * 
+ * + * bytes data = 2; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * Public key used to verify signatures
+   * 
+ * + * Protobuf type {@code meerkat.SignatureVerificationKey} + */ + public static final class SignatureVerificationKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.SignatureVerificationKey) + SignatureVerificationKeyOrBuilder { + // Use SignatureVerificationKey.newBuilder() to construct. + private SignatureVerificationKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SignatureVerificationKey() { + type_ = 0; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SignatureVerificationKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.SignatureVerificationKey.class, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .meerkat.SignatureType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .meerkat.SignatureType type = 1; + */ + public meerkat.protobuf.Crypto.SignatureType getType() { + meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); + return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + *
+     * Data encoding depends on type; default is x509 DER-encoded
+     * 
+ * + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { + output.writeEnum(1, type_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != meerkat.protobuf.Crypto.SignatureType.ECDSA.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Crypto.SignatureVerificationKey)) { + return super.equals(obj); + } + meerkat.protobuf.Crypto.SignatureVerificationKey other = (meerkat.protobuf.Crypto.SignatureVerificationKey) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getData() + .equals(other.getData()); + return result; + } + + @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) + type_; + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.SignatureVerificationKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Crypto.SignatureVerificationKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Public key used to verify signatures
+     * 
+ * + * Protobuf type {@code meerkat.SignatureVerificationKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.SignatureVerificationKey) + meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.SignatureVerificationKey.class, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder.class); + } + + // Construct using meerkat.protobuf.Crypto.SignatureVerificationKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = 0; + + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Crypto.internal_static_meerkat_SignatureVerificationKey_descriptor; + } + + public meerkat.protobuf.Crypto.SignatureVerificationKey getDefaultInstanceForType() { + return meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance(); + } + + public meerkat.protobuf.Crypto.SignatureVerificationKey build() { + meerkat.protobuf.Crypto.SignatureVerificationKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Crypto.SignatureVerificationKey buildPartial() { + meerkat.protobuf.Crypto.SignatureVerificationKey result = new meerkat.protobuf.Crypto.SignatureVerificationKey(this); + result.type_ = type_; + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Crypto.SignatureVerificationKey) { + return mergeFrom((meerkat.protobuf.Crypto.SignatureVerificationKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Crypto.SignatureVerificationKey other) { + if (other == meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Crypto.SignatureVerificationKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Crypto.SignatureVerificationKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * .meerkat.SignatureType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .meerkat.SignatureType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * .meerkat.SignatureType type = 1; + */ + public meerkat.protobuf.Crypto.SignatureType getType() { + meerkat.protobuf.Crypto.SignatureType result = meerkat.protobuf.Crypto.SignatureType.valueOf(type_); + return result == null ? meerkat.protobuf.Crypto.SignatureType.UNRECOGNIZED : result; + } + /** + * .meerkat.SignatureType type = 1; + */ + public Builder setType(meerkat.protobuf.Crypto.SignatureType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .meerkat.SignatureType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+       * Data encoding depends on type; default is x509 DER-encoded
+       * 
+ * + * bytes data = 2; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + *
+       * Data encoding depends on type; default is x509 DER-encoded
+       * 
+ * + * bytes data = 2; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + *
+       * Data encoding depends on type; default is x509 DER-encoded
+       * 
+ * + * bytes data = 2; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.SignatureVerificationKey) + } + + // @@protoc_insertion_point(class_scope:meerkat.SignatureVerificationKey) + private static final meerkat.protobuf.Crypto.SignatureVerificationKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.SignatureVerificationKey(); + } + + public static meerkat.protobuf.Crypto.SignatureVerificationKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SignatureVerificationKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignatureVerificationKey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Crypto.SignatureVerificationKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EncryptionPublicKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.EncryptionPublicKey) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * A public encryption key
+   * 
+ * + * Protobuf type {@code meerkat.EncryptionPublicKey} + */ + public static final class EncryptionPublicKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.EncryptionPublicKey) + EncryptionPublicKeyOrBuilder { + // Use EncryptionPublicKey.newBuilder() to construct. + private EncryptionPublicKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EncryptionPublicKey() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private EncryptionPublicKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.EncryptionPublicKey.class, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Crypto.EncryptionPublicKey)) { + return super.equals(obj); + } + meerkat.protobuf.Crypto.EncryptionPublicKey other = (meerkat.protobuf.Crypto.EncryptionPublicKey) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.EncryptionPublicKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Crypto.EncryptionPublicKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A public encryption key
+     * 
+ * + * Protobuf type {@code meerkat.EncryptionPublicKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.EncryptionPublicKey) + meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.EncryptionPublicKey.class, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder.class); + } + + // Construct using meerkat.protobuf.Crypto.EncryptionPublicKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionPublicKey_descriptor; + } + + public meerkat.protobuf.Crypto.EncryptionPublicKey getDefaultInstanceForType() { + return meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance(); + } + + public meerkat.protobuf.Crypto.EncryptionPublicKey build() { + meerkat.protobuf.Crypto.EncryptionPublicKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Crypto.EncryptionPublicKey buildPartial() { + meerkat.protobuf.Crypto.EncryptionPublicKey result = new meerkat.protobuf.Crypto.EncryptionPublicKey(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Crypto.EncryptionPublicKey) { + return mergeFrom((meerkat.protobuf.Crypto.EncryptionPublicKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Crypto.EncryptionPublicKey other) { + if (other == meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Crypto.EncryptionPublicKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Crypto.EncryptionPublicKey) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.EncryptionPublicKey) + } + + // @@protoc_insertion_point(class_scope:meerkat.EncryptionPublicKey) + private static final meerkat.protobuf.Crypto.EncryptionPublicKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.EncryptionPublicKey(); + } + + public static meerkat.protobuf.Crypto.EncryptionPublicKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EncryptionPublicKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptionPublicKey(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Crypto.EncryptionPublicKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EncryptionRandomnessOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.EncryptionRandomness) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * Randomness used for encryption
+   * 
+ * + * Protobuf type {@code meerkat.EncryptionRandomness} + */ + public static final class EncryptionRandomness extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.EncryptionRandomness) + EncryptionRandomnessOrBuilder { + // Use EncryptionRandomness.newBuilder() to construct. + private EncryptionRandomness(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EncryptionRandomness() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private EncryptionRandomness( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.EncryptionRandomness.class, meerkat.protobuf.Crypto.EncryptionRandomness.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Crypto.EncryptionRandomness)) { + return super.equals(obj); + } + meerkat.protobuf.Crypto.EncryptionRandomness other = (meerkat.protobuf.Crypto.EncryptionRandomness) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.EncryptionRandomness parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Crypto.EncryptionRandomness prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Randomness used for encryption
+     * 
+ * + * Protobuf type {@code meerkat.EncryptionRandomness} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.EncryptionRandomness) + meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.EncryptionRandomness.class, meerkat.protobuf.Crypto.EncryptionRandomness.Builder.class); + } + + // Construct using meerkat.protobuf.Crypto.EncryptionRandomness.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Crypto.internal_static_meerkat_EncryptionRandomness_descriptor; + } + + public meerkat.protobuf.Crypto.EncryptionRandomness getDefaultInstanceForType() { + return meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance(); + } + + public meerkat.protobuf.Crypto.EncryptionRandomness build() { + meerkat.protobuf.Crypto.EncryptionRandomness result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Crypto.EncryptionRandomness buildPartial() { + meerkat.protobuf.Crypto.EncryptionRandomness result = new meerkat.protobuf.Crypto.EncryptionRandomness(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Crypto.EncryptionRandomness) { + return mergeFrom((meerkat.protobuf.Crypto.EncryptionRandomness)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Crypto.EncryptionRandomness other) { + if (other == meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Crypto.EncryptionRandomness parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Crypto.EncryptionRandomness) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.EncryptionRandomness) + } + + // @@protoc_insertion_point(class_scope:meerkat.EncryptionRandomness) + private static final meerkat.protobuf.Crypto.EncryptionRandomness DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.EncryptionRandomness(); + } + + public static meerkat.protobuf.Crypto.EncryptionRandomness getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EncryptionRandomness parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptionRandomness(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Crypto.EncryptionRandomness getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RandomnessGenerationProofOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.RandomnessGenerationProof) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * A proof that randomness is correctly generated
+   * 
+ * + * Protobuf type {@code meerkat.RandomnessGenerationProof} + */ + public static final class RandomnessGenerationProof extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.RandomnessGenerationProof) + RandomnessGenerationProofOrBuilder { + // Use RandomnessGenerationProof.newBuilder() to construct. + private RandomnessGenerationProof(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RandomnessGenerationProof() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RandomnessGenerationProof( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.RandomnessGenerationProof.class, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Crypto.RandomnessGenerationProof)) { + return super.equals(obj); + } + meerkat.protobuf.Crypto.RandomnessGenerationProof other = (meerkat.protobuf.Crypto.RandomnessGenerationProof) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.RandomnessGenerationProof parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Crypto.RandomnessGenerationProof prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A proof that randomness is correctly generated
+     * 
+ * + * Protobuf type {@code meerkat.RandomnessGenerationProof} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.RandomnessGenerationProof) + meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.RandomnessGenerationProof.class, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder.class); + } + + // Construct using meerkat.protobuf.Crypto.RandomnessGenerationProof.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RandomnessGenerationProof_descriptor; + } + + public meerkat.protobuf.Crypto.RandomnessGenerationProof getDefaultInstanceForType() { + return meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance(); + } + + public meerkat.protobuf.Crypto.RandomnessGenerationProof build() { + meerkat.protobuf.Crypto.RandomnessGenerationProof result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Crypto.RandomnessGenerationProof buildPartial() { + meerkat.protobuf.Crypto.RandomnessGenerationProof result = new meerkat.protobuf.Crypto.RandomnessGenerationProof(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Crypto.RandomnessGenerationProof) { + return mergeFrom((meerkat.protobuf.Crypto.RandomnessGenerationProof)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Crypto.RandomnessGenerationProof other) { + if (other == meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Crypto.RandomnessGenerationProof parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Crypto.RandomnessGenerationProof) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.RandomnessGenerationProof) + } + + // @@protoc_insertion_point(class_scope:meerkat.RandomnessGenerationProof) + private static final meerkat.protobuf.Crypto.RandomnessGenerationProof DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.RandomnessGenerationProof(); + } + + public static meerkat.protobuf.Crypto.RandomnessGenerationProof getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RandomnessGenerationProof parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RandomnessGenerationProof(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Crypto.RandomnessGenerationProof getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RerandomizableEncryptedMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.RerandomizableEncryptedMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + *
+   * An encrypted message (rerandomizable)
+   * 
+ * + * Protobuf type {@code meerkat.RerandomizableEncryptedMessage} + */ + public static final class RerandomizableEncryptedMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.RerandomizableEncryptedMessage) + RerandomizableEncryptedMessageOrBuilder { + // Use RerandomizableEncryptedMessage.newBuilder() to construct. + private RerandomizableEncryptedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RerandomizableEncryptedMessage() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private RerandomizableEncryptedMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.class, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Crypto.RerandomizableEncryptedMessage)) { + return super.equals(obj); + } + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage other = (meerkat.protobuf.Crypto.RerandomizableEncryptedMessage) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An encrypted message (rerandomizable)
+     * 
+ * + * Protobuf type {@code meerkat.RerandomizableEncryptedMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.RerandomizableEncryptedMessage) + meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.class, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder.class); + } + + // Construct using meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Crypto.internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; + } + + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getDefaultInstanceForType() { + return meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance(); + } + + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage build() { + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage buildPartial() { + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage result = new meerkat.protobuf.Crypto.RerandomizableEncryptedMessage(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Crypto.RerandomizableEncryptedMessage) { + return mergeFrom((meerkat.protobuf.Crypto.RerandomizableEncryptedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage other) { + if (other == meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Crypto.RerandomizableEncryptedMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.RerandomizableEncryptedMessage) + } + + // @@protoc_insertion_point(class_scope:meerkat.RerandomizableEncryptedMessage) + private static final meerkat.protobuf.Crypto.RerandomizableEncryptedMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Crypto.RerandomizableEncryptedMessage(); + } + + public static meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RerandomizableEncryptedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RerandomizableEncryptedMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BigInteger_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BigInteger_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_Signature_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_Signature_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_SignatureVerificationKey_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_EncryptionPublicKey_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_EncryptionRandomness_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_EncryptionRandomness_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_RandomnessGenerationProof_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_RerandomizableEncryptedMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_RerandomizableEncryptedMessage_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\024meerkat/crypto.proto\022\007meerkat\"\032\n\nBigIn" + + "teger\022\014\n\004data\030\001 \001(\014\"R\n\tSignature\022$\n\004type" + + "\030\001 \001(\0162\026.meerkat.SignatureType\022\014\n\004data\030\002" + + " \001(\014\022\021\n\tsigner_id\030\003 \001(\014\"N\n\030SignatureVeri" + + "ficationKey\022$\n\004type\030\001 \001(\0162\026.meerkat.Sign" + + "atureType\022\014\n\004data\030\002 \001(\014\"#\n\023EncryptionPub" + + "licKey\022\014\n\004data\030\001 \001(\014\"$\n\024EncryptionRandom" + + "ness\022\014\n\004data\030\001 \001(\014\")\n\031RandomnessGenerati" + + "onProof\022\014\n\004data\030\001 \001(\014\".\n\036RerandomizableE" + + "ncryptedMessage\022\014\n\004data\030\001 \001(\014*#\n\rSignatu", + "reType\022\t\n\005ECDSA\020\000\022\007\n\003DSA\020\001B\022\n\020meerkat.pr" + + "otobufb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_meerkat_BigInteger_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_BigInteger_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BigInteger_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_Signature_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_meerkat_Signature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_Signature_descriptor, + new java.lang.String[] { "Type", "Data", "SignerId", }); + internal_static_meerkat_SignatureVerificationKey_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_meerkat_SignatureVerificationKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_SignatureVerificationKey_descriptor, + new java.lang.String[] { "Type", "Data", }); + internal_static_meerkat_EncryptionPublicKey_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_meerkat_EncryptionPublicKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_EncryptionPublicKey_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_EncryptionRandomness_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_meerkat_EncryptionRandomness_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_EncryptionRandomness_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_RandomnessGenerationProof_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_meerkat_RandomnessGenerationProof_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_RandomnessGenerationProof_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_RerandomizableEncryptedMessage_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_meerkat_RerandomizableEncryptedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_RerandomizableEncryptedMessage_descriptor, + new java.lang.String[] { "Data", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Mixing.java b/android-scanner/src/main/java/meerkat/protobuf/Mixing.java new file mode 100644 index 0000000..f16bab0 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/Mixing.java @@ -0,0 +1,5084 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/mixing.proto + +package meerkat.protobuf; + +public final class Mixing { + private Mixing() {} + 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 PlaintextOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.Plaintext) + com.google.protobuf.MessageOrBuilder { + + /** + * optional bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + } + /** + * Protobuf type {@code meerkat.Plaintext} + */ + public static final class Plaintext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.Plaintext) + PlaintextOrBuilder { + // Use Plaintext.newBuilder() to construct. + private Plaintext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Plaintext() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Plaintext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.Plaintext.class, meerkat.protobuf.Mixing.Plaintext.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * optional bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Mixing.Plaintext)) { + return super.equals(obj); + } + meerkat.protobuf.Mixing.Plaintext other = (meerkat.protobuf.Mixing.Plaintext) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Mixing.Plaintext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.Plaintext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.Plaintext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.Plaintext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.Plaintext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.Plaintext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.Plaintext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.Plaintext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.Plaintext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.Plaintext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Mixing.Plaintext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.Plaintext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:meerkat.Plaintext) + meerkat.protobuf.Mixing.PlaintextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.Plaintext.class, meerkat.protobuf.Mixing.Plaintext.Builder.class); + } + + // Construct using meerkat.protobuf.Mixing.Plaintext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Mixing.internal_static_meerkat_Plaintext_descriptor; + } + + public meerkat.protobuf.Mixing.Plaintext getDefaultInstanceForType() { + return meerkat.protobuf.Mixing.Plaintext.getDefaultInstance(); + } + + public meerkat.protobuf.Mixing.Plaintext build() { + meerkat.protobuf.Mixing.Plaintext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Mixing.Plaintext buildPartial() { + meerkat.protobuf.Mixing.Plaintext result = new meerkat.protobuf.Mixing.Plaintext(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Mixing.Plaintext) { + return mergeFrom((meerkat.protobuf.Mixing.Plaintext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Mixing.Plaintext other) { + if (other == meerkat.protobuf.Mixing.Plaintext.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Mixing.Plaintext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Mixing.Plaintext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * optional bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * optional bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.Plaintext) + } + + // @@protoc_insertion_point(class_scope:meerkat.Plaintext) + private static final meerkat.protobuf.Mixing.Plaintext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.Plaintext(); + } + + public static meerkat.protobuf.Mixing.Plaintext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser<Plaintext>() { + public Plaintext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Plaintext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<Plaintext> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<Plaintext> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Mixing.Plaintext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ZeroKnowledgeProofOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + boolean hasFirst(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFirst(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFirstOrBuilder(); + + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + boolean hasSecond(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getSecond(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getSecondOrBuilder(); + + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + boolean hasThird(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getThird(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getThirdOrBuilder(); + + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + boolean hasFourth(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFourth(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFourthOrBuilder(); + + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + boolean hasLocation(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getLocation(); + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder getLocationOrBuilder(); + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof} + */ + public static final class ZeroKnowledgeProof extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof) + ZeroKnowledgeProofOrBuilder { + // Use ZeroKnowledgeProof.newBuilder() to construct. + private ZeroKnowledgeProof(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ZeroKnowledgeProof() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ZeroKnowledgeProof( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; + if (first_ != null) { + subBuilder = first_.toBuilder(); + } + first_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(first_); + first_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; + if (second_ != null) { + subBuilder = second_.toBuilder(); + } + second_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(second_); + second_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; + if (third_ != null) { + subBuilder = third_.toBuilder(); + } + third_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(third_); + third_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder subBuilder = null; + if (fourth_ != null) { + subBuilder = fourth_.toBuilder(); + } + fourth_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fourth_); + fourth_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Builder.class); + } + + public interface OrProofOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof.OrProof) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; + * </pre> + * + * <code>optional bytes g1 = 1;</code> + */ + com.google.protobuf.ByteString getG1(); + + /** + * <code>optional bytes h1 = 2;</code> + */ + com.google.protobuf.ByteString getH1(); + + /** + * <code>optional bytes g2 = 3;</code> + */ + com.google.protobuf.ByteString getG2(); + + /** + * <code>optional bytes h2 = 4;</code> + */ + com.google.protobuf.ByteString getH2(); + + /** + * <code>optional bytes g1Tag = 5;</code> + */ + com.google.protobuf.ByteString getG1Tag(); + + /** + * <code>optional bytes h1Tag = 6;</code> + */ + com.google.protobuf.ByteString getH1Tag(); + + /** + * <code>optional bytes g2Tag = 7;</code> + */ + com.google.protobuf.ByteString getG2Tag(); + + /** + * <code>optional bytes h2Tag = 8;</code> + */ + com.google.protobuf.ByteString getH2Tag(); + + /** + * <pre> + *calc: u, v, uTag, vTag; + * </pre> + * + * <code>optional bytes u = 9;</code> + */ + com.google.protobuf.ByteString getU(); + + /** + * <code>optional bytes v = 10;</code> + */ + com.google.protobuf.ByteString getV(); + + /** + * <code>optional bytes uTag = 11;</code> + */ + com.google.protobuf.ByteString getUTag(); + + /** + * <code>optional bytes vTag = 12;</code> + */ + com.google.protobuf.ByteString getVTag(); + + /** + * <pre> + *generated: c1,c2,z,zTag + * </pre> + * + * <code>optional bytes c1 = 13;</code> + */ + com.google.protobuf.ByteString getC1(); + + /** + * <code>optional bytes c2 = 14;</code> + */ + com.google.protobuf.ByteString getC2(); + + /** + * <code>optional bytes z = 15;</code> + */ + com.google.protobuf.ByteString getZ(); + + /** + * <code>optional bytes zTag = 16;</code> + */ + com.google.protobuf.ByteString getZTag(); + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof} + */ + public static final class OrProof extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof.OrProof) + OrProofOrBuilder { + // Use OrProof.newBuilder() to construct. + private OrProof(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private OrProof() { + g1_ = com.google.protobuf.ByteString.EMPTY; + h1_ = com.google.protobuf.ByteString.EMPTY; + g2_ = com.google.protobuf.ByteString.EMPTY; + h2_ = com.google.protobuf.ByteString.EMPTY; + g1Tag_ = com.google.protobuf.ByteString.EMPTY; + h1Tag_ = com.google.protobuf.ByteString.EMPTY; + g2Tag_ = com.google.protobuf.ByteString.EMPTY; + h2Tag_ = com.google.protobuf.ByteString.EMPTY; + u_ = com.google.protobuf.ByteString.EMPTY; + v_ = com.google.protobuf.ByteString.EMPTY; + uTag_ = com.google.protobuf.ByteString.EMPTY; + vTag_ = com.google.protobuf.ByteString.EMPTY; + c1_ = com.google.protobuf.ByteString.EMPTY; + c2_ = com.google.protobuf.ByteString.EMPTY; + z_ = com.google.protobuf.ByteString.EMPTY; + zTag_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private OrProof( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + g1_ = input.readBytes(); + break; + } + case 18: { + + h1_ = input.readBytes(); + break; + } + case 26: { + + g2_ = input.readBytes(); + break; + } + case 34: { + + h2_ = input.readBytes(); + break; + } + case 42: { + + g1Tag_ = input.readBytes(); + break; + } + case 50: { + + h1Tag_ = input.readBytes(); + break; + } + case 58: { + + g2Tag_ = input.readBytes(); + break; + } + case 66: { + + h2Tag_ = input.readBytes(); + break; + } + case 74: { + + u_ = input.readBytes(); + break; + } + case 82: { + + v_ = input.readBytes(); + break; + } + case 90: { + + uTag_ = input.readBytes(); + break; + } + case 98: { + + vTag_ = input.readBytes(); + break; + } + case 106: { + + c1_ = input.readBytes(); + break; + } + case 114: { + + c2_ = input.readBytes(); + break; + } + case 122: { + + z_ = input.readBytes(); + break; + } + case 130: { + + zTag_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder.class); + } + + public interface ForRandomOracleOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>optional bytes g1 = 1;</code> + */ + com.google.protobuf.ByteString getG1(); + + /** + * <code>optional bytes h1 = 2;</code> + */ + com.google.protobuf.ByteString getH1(); + + /** + * <code>optional bytes g2 = 3;</code> + */ + com.google.protobuf.ByteString getG2(); + + /** + * <code>optional bytes h2 = 4;</code> + */ + com.google.protobuf.ByteString getH2(); + + /** + * <code>optional bytes g1Tag = 5;</code> + */ + com.google.protobuf.ByteString getG1Tag(); + + /** + * <code>optional bytes h1Tag = 6;</code> + */ + com.google.protobuf.ByteString getH1Tag(); + + /** + * <code>optional bytes g2Tag = 7;</code> + */ + com.google.protobuf.ByteString getG2Tag(); + + /** + * <code>optional bytes h2Tag = 8;</code> + */ + com.google.protobuf.ByteString getH2Tag(); + + /** + * <code>optional bytes u = 9;</code> + */ + com.google.protobuf.ByteString getU(); + + /** + * <code>optional bytes v = 10;</code> + */ + com.google.protobuf.ByteString getV(); + + /** + * <code>optional bytes uTag = 11;</code> + */ + com.google.protobuf.ByteString getUTag(); + + /** + * <code>optional bytes vTag = 12;</code> + */ + com.google.protobuf.ByteString getVTag(); + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle} + */ + public static final class ForRandomOracle extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) + ForRandomOracleOrBuilder { + // Use ForRandomOracle.newBuilder() to construct. + private ForRandomOracle(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ForRandomOracle() { + g1_ = com.google.protobuf.ByteString.EMPTY; + h1_ = com.google.protobuf.ByteString.EMPTY; + g2_ = com.google.protobuf.ByteString.EMPTY; + h2_ = com.google.protobuf.ByteString.EMPTY; + g1Tag_ = com.google.protobuf.ByteString.EMPTY; + h1Tag_ = com.google.protobuf.ByteString.EMPTY; + g2Tag_ = com.google.protobuf.ByteString.EMPTY; + h2Tag_ = com.google.protobuf.ByteString.EMPTY; + u_ = com.google.protobuf.ByteString.EMPTY; + v_ = com.google.protobuf.ByteString.EMPTY; + uTag_ = com.google.protobuf.ByteString.EMPTY; + vTag_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ForRandomOracle( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + g1_ = input.readBytes(); + break; + } + case 18: { + + h1_ = input.readBytes(); + break; + } + case 26: { + + g2_ = input.readBytes(); + break; + } + case 34: { + + h2_ = input.readBytes(); + break; + } + case 42: { + + g1Tag_ = input.readBytes(); + break; + } + case 50: { + + h1Tag_ = input.readBytes(); + break; + } + case 58: { + + g2Tag_ = input.readBytes(); + break; + } + case 66: { + + h2Tag_ = input.readBytes(); + break; + } + case 74: { + + u_ = input.readBytes(); + break; + } + case 82: { + + v_ = input.readBytes(); + break; + } + case 90: { + + uTag_ = input.readBytes(); + break; + } + case 98: { + + vTag_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.Builder.class); + } + + public static final int G1_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString g1_; + /** + * <code>optional bytes g1 = 1;</code> + */ + public com.google.protobuf.ByteString getG1() { + return g1_; + } + + public static final int H1_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString h1_; + /** + * <code>optional bytes h1 = 2;</code> + */ + public com.google.protobuf.ByteString getH1() { + return h1_; + } + + public static final int G2_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString g2_; + /** + * <code>optional bytes g2 = 3;</code> + */ + public com.google.protobuf.ByteString getG2() { + return g2_; + } + + public static final int H2_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString h2_; + /** + * <code>optional bytes h2 = 4;</code> + */ + public com.google.protobuf.ByteString getH2() { + return h2_; + } + + public static final int G1TAG_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString g1Tag_; + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public com.google.protobuf.ByteString getG1Tag() { + return g1Tag_; + } + + public static final int H1TAG_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString h1Tag_; + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public com.google.protobuf.ByteString getH1Tag() { + return h1Tag_; + } + + public static final int G2TAG_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString g2Tag_; + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public com.google.protobuf.ByteString getG2Tag() { + return g2Tag_; + } + + public static final int H2TAG_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString h2Tag_; + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public com.google.protobuf.ByteString getH2Tag() { + return h2Tag_; + } + + public static final int U_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString u_; + /** + * <code>optional bytes u = 9;</code> + */ + public com.google.protobuf.ByteString getU() { + return u_; + } + + public static final int V_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString v_; + /** + * <code>optional bytes v = 10;</code> + */ + public com.google.protobuf.ByteString getV() { + return v_; + } + + public static final int UTAG_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString uTag_; + /** + * <code>optional bytes uTag = 11;</code> + */ + public com.google.protobuf.ByteString getUTag() { + return uTag_; + } + + public static final int VTAG_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString vTag_; + /** + * <code>optional bytes vTag = 12;</code> + */ + public com.google.protobuf.ByteString getVTag() { + return vTag_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!g1_.isEmpty()) { + output.writeBytes(1, g1_); + } + if (!h1_.isEmpty()) { + output.writeBytes(2, h1_); + } + if (!g2_.isEmpty()) { + output.writeBytes(3, g2_); + } + if (!h2_.isEmpty()) { + output.writeBytes(4, h2_); + } + if (!g1Tag_.isEmpty()) { + output.writeBytes(5, g1Tag_); + } + if (!h1Tag_.isEmpty()) { + output.writeBytes(6, h1Tag_); + } + if (!g2Tag_.isEmpty()) { + output.writeBytes(7, g2Tag_); + } + if (!h2Tag_.isEmpty()) { + output.writeBytes(8, h2Tag_); + } + if (!u_.isEmpty()) { + output.writeBytes(9, u_); + } + if (!v_.isEmpty()) { + output.writeBytes(10, v_); + } + if (!uTag_.isEmpty()) { + output.writeBytes(11, uTag_); + } + if (!vTag_.isEmpty()) { + output.writeBytes(12, vTag_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!g1_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, g1_); + } + if (!h1_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, h1_); + } + if (!g2_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, g2_); + } + if (!h2_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, h2_); + } + if (!g1Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, g1Tag_); + } + if (!h1Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, h1Tag_); + } + if (!g2Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, g2Tag_); + } + if (!h2Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, h2Tag_); + } + if (!u_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, u_); + } + if (!v_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, v_); + } + if (!uTag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, uTag_); + } + if (!vTag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, vTag_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle)) { + return super.equals(obj); + } + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle) obj; + + boolean result = true; + result = result && getG1() + .equals(other.getG1()); + result = result && getH1() + .equals(other.getH1()); + result = result && getG2() + .equals(other.getG2()); + result = result && getH2() + .equals(other.getH2()); + result = result && getG1Tag() + .equals(other.getG1Tag()); + result = result && getH1Tag() + .equals(other.getH1Tag()); + result = result && getG2Tag() + .equals(other.getG2Tag()); + result = result && getH2Tag() + .equals(other.getH2Tag()); + result = result && getU() + .equals(other.getU()); + result = result && getV() + .equals(other.getV()); + result = result && getUTag() + .equals(other.getUTag()); + result = result && getVTag() + .equals(other.getVTag()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + G1_FIELD_NUMBER; + hash = (53 * hash) + getG1().hashCode(); + hash = (37 * hash) + H1_FIELD_NUMBER; + hash = (53 * hash) + getH1().hashCode(); + hash = (37 * hash) + G2_FIELD_NUMBER; + hash = (53 * hash) + getG2().hashCode(); + hash = (37 * hash) + H2_FIELD_NUMBER; + hash = (53 * hash) + getH2().hashCode(); + hash = (37 * hash) + G1TAG_FIELD_NUMBER; + hash = (53 * hash) + getG1Tag().hashCode(); + hash = (37 * hash) + H1TAG_FIELD_NUMBER; + hash = (53 * hash) + getH1Tag().hashCode(); + hash = (37 * hash) + G2TAG_FIELD_NUMBER; + hash = (53 * hash) + getG2Tag().hashCode(); + hash = (37 * hash) + H2TAG_FIELD_NUMBER; + hash = (53 * hash) + getH2Tag().hashCode(); + hash = (37 * hash) + U_FIELD_NUMBER; + hash = (53 * hash) + getU().hashCode(); + hash = (37 * hash) + V_FIELD_NUMBER; + hash = (53 * hash) + getV().hashCode(); + hash = (37 * hash) + UTAG_FIELD_NUMBER; + hash = (53 * hash) + getUTag().hashCode(); + hash = (37 * hash) + VTAG_FIELD_NUMBER; + hash = (53 * hash) + getVTag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.Builder.class); + } + + // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + g1_ = com.google.protobuf.ByteString.EMPTY; + + h1_ = com.google.protobuf.ByteString.EMPTY; + + g2_ = com.google.protobuf.ByteString.EMPTY; + + h2_ = com.google.protobuf.ByteString.EMPTY; + + g1Tag_ = com.google.protobuf.ByteString.EMPTY; + + h1Tag_ = com.google.protobuf.ByteString.EMPTY; + + g2Tag_ = com.google.protobuf.ByteString.EMPTY; + + h2Tag_ = com.google.protobuf.ByteString.EMPTY; + + u_ = com.google.protobuf.ByteString.EMPTY; + + v_ = com.google.protobuf.ByteString.EMPTY; + + uTag_ = com.google.protobuf.ByteString.EMPTY; + + vTag_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle getDefaultInstanceForType() { + return meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.getDefaultInstance(); + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle build() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle buildPartial() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle(this); + result.g1_ = g1_; + result.h1_ = h1_; + result.g2_ = g2_; + result.h2_ = h2_; + result.g1Tag_ = g1Tag_; + result.h1Tag_ = h1Tag_; + result.g2Tag_ = g2Tag_; + result.h2Tag_ = h2Tag_; + result.u_ = u_; + result.v_ = v_; + result.uTag_ = uTag_; + result.vTag_ = vTag_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle) { + return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle other) { + if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle.getDefaultInstance()) return this; + if (other.getG1() != com.google.protobuf.ByteString.EMPTY) { + setG1(other.getG1()); + } + if (other.getH1() != com.google.protobuf.ByteString.EMPTY) { + setH1(other.getH1()); + } + if (other.getG2() != com.google.protobuf.ByteString.EMPTY) { + setG2(other.getG2()); + } + if (other.getH2() != com.google.protobuf.ByteString.EMPTY) { + setH2(other.getH2()); + } + if (other.getG1Tag() != com.google.protobuf.ByteString.EMPTY) { + setG1Tag(other.getG1Tag()); + } + if (other.getH1Tag() != com.google.protobuf.ByteString.EMPTY) { + setH1Tag(other.getH1Tag()); + } + if (other.getG2Tag() != com.google.protobuf.ByteString.EMPTY) { + setG2Tag(other.getG2Tag()); + } + if (other.getH2Tag() != com.google.protobuf.ByteString.EMPTY) { + setH2Tag(other.getH2Tag()); + } + if (other.getU() != com.google.protobuf.ByteString.EMPTY) { + setU(other.getU()); + } + if (other.getV() != com.google.protobuf.ByteString.EMPTY) { + setV(other.getV()); + } + if (other.getUTag() != com.google.protobuf.ByteString.EMPTY) { + setUTag(other.getUTag()); + } + if (other.getVTag() != com.google.protobuf.ByteString.EMPTY) { + setVTag(other.getVTag()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString g1_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes g1 = 1;</code> + */ + public com.google.protobuf.ByteString getG1() { + return g1_; + } + /** + * <code>optional bytes g1 = 1;</code> + */ + public Builder setG1(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g1_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes g1 = 1;</code> + */ + public Builder clearG1() { + + g1_ = getDefaultInstance().getG1(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h1_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h1 = 2;</code> + */ + public com.google.protobuf.ByteString getH1() { + return h1_; + } + /** + * <code>optional bytes h1 = 2;</code> + */ + public Builder setH1(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h1_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h1 = 2;</code> + */ + public Builder clearH1() { + + h1_ = getDefaultInstance().getH1(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString g2_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes g2 = 3;</code> + */ + public com.google.protobuf.ByteString getG2() { + return g2_; + } + /** + * <code>optional bytes g2 = 3;</code> + */ + public Builder setG2(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g2_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes g2 = 3;</code> + */ + public Builder clearG2() { + + g2_ = getDefaultInstance().getG2(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h2_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h2 = 4;</code> + */ + public com.google.protobuf.ByteString getH2() { + return h2_; + } + /** + * <code>optional bytes h2 = 4;</code> + */ + public Builder setH2(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h2_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h2 = 4;</code> + */ + public Builder clearH2() { + + h2_ = getDefaultInstance().getH2(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString g1Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public com.google.protobuf.ByteString getG1Tag() { + return g1Tag_; + } + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public Builder setG1Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g1Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public Builder clearG1Tag() { + + g1Tag_ = getDefaultInstance().getG1Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h1Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public com.google.protobuf.ByteString getH1Tag() { + return h1Tag_; + } + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public Builder setH1Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h1Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public Builder clearH1Tag() { + + h1Tag_ = getDefaultInstance().getH1Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString g2Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public com.google.protobuf.ByteString getG2Tag() { + return g2Tag_; + } + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public Builder setG2Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g2Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public Builder clearG2Tag() { + + g2Tag_ = getDefaultInstance().getG2Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h2Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public com.google.protobuf.ByteString getH2Tag() { + return h2Tag_; + } + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public Builder setH2Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h2Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public Builder clearH2Tag() { + + h2Tag_ = getDefaultInstance().getH2Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString u_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes u = 9;</code> + */ + public com.google.protobuf.ByteString getU() { + return u_; + } + /** + * <code>optional bytes u = 9;</code> + */ + public Builder setU(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + u_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes u = 9;</code> + */ + public Builder clearU() { + + u_ = getDefaultInstance().getU(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString v_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes v = 10;</code> + */ + public com.google.protobuf.ByteString getV() { + return v_; + } + /** + * <code>optional bytes v = 10;</code> + */ + public Builder setV(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + v_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes v = 10;</code> + */ + public Builder clearV() { + + v_ = getDefaultInstance().getV(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString uTag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes uTag = 11;</code> + */ + public com.google.protobuf.ByteString getUTag() { + return uTag_; + } + /** + * <code>optional bytes uTag = 11;</code> + */ + public Builder setUTag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + uTag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes uTag = 11;</code> + */ + public Builder clearUTag() { + + uTag_ = getDefaultInstance().getUTag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString vTag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes vTag = 12;</code> + */ + public com.google.protobuf.ByteString getVTag() { + return vTag_; + } + /** + * <code>optional bytes vTag = 12;</code> + */ + public Builder setVTag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + vTag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes vTag = 12;</code> + */ + public Builder clearVTag() { + + vTag_ = getDefaultInstance().getVTag(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) + } + + // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof.OrProof.ForRandomOracle) + private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle(); + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ForRandomOracle> + PARSER = new com.google.protobuf.AbstractParser<ForRandomOracle>() { + public ForRandomOracle parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ForRandomOracle(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ForRandomOracle> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ForRandomOracle> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.ForRandomOracle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int G1_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString g1_; + /** + * <pre> + *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; + * </pre> + * + * <code>optional bytes g1 = 1;</code> + */ + public com.google.protobuf.ByteString getG1() { + return g1_; + } + + public static final int H1_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString h1_; + /** + * <code>optional bytes h1 = 2;</code> + */ + public com.google.protobuf.ByteString getH1() { + return h1_; + } + + public static final int G2_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString g2_; + /** + * <code>optional bytes g2 = 3;</code> + */ + public com.google.protobuf.ByteString getG2() { + return g2_; + } + + public static final int H2_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString h2_; + /** + * <code>optional bytes h2 = 4;</code> + */ + public com.google.protobuf.ByteString getH2() { + return h2_; + } + + public static final int G1TAG_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString g1Tag_; + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public com.google.protobuf.ByteString getG1Tag() { + return g1Tag_; + } + + public static final int H1TAG_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString h1Tag_; + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public com.google.protobuf.ByteString getH1Tag() { + return h1Tag_; + } + + public static final int G2TAG_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString g2Tag_; + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public com.google.protobuf.ByteString getG2Tag() { + return g2Tag_; + } + + public static final int H2TAG_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString h2Tag_; + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public com.google.protobuf.ByteString getH2Tag() { + return h2Tag_; + } + + public static final int U_FIELD_NUMBER = 9; + private com.google.protobuf.ByteString u_; + /** + * <pre> + *calc: u, v, uTag, vTag; + * </pre> + * + * <code>optional bytes u = 9;</code> + */ + public com.google.protobuf.ByteString getU() { + return u_; + } + + public static final int V_FIELD_NUMBER = 10; + private com.google.protobuf.ByteString v_; + /** + * <code>optional bytes v = 10;</code> + */ + public com.google.protobuf.ByteString getV() { + return v_; + } + + public static final int UTAG_FIELD_NUMBER = 11; + private com.google.protobuf.ByteString uTag_; + /** + * <code>optional bytes uTag = 11;</code> + */ + public com.google.protobuf.ByteString getUTag() { + return uTag_; + } + + public static final int VTAG_FIELD_NUMBER = 12; + private com.google.protobuf.ByteString vTag_; + /** + * <code>optional bytes vTag = 12;</code> + */ + public com.google.protobuf.ByteString getVTag() { + return vTag_; + } + + public static final int C1_FIELD_NUMBER = 13; + private com.google.protobuf.ByteString c1_; + /** + * <pre> + *generated: c1,c2,z,zTag + * </pre> + * + * <code>optional bytes c1 = 13;</code> + */ + public com.google.protobuf.ByteString getC1() { + return c1_; + } + + public static final int C2_FIELD_NUMBER = 14; + private com.google.protobuf.ByteString c2_; + /** + * <code>optional bytes c2 = 14;</code> + */ + public com.google.protobuf.ByteString getC2() { + return c2_; + } + + public static final int Z_FIELD_NUMBER = 15; + private com.google.protobuf.ByteString z_; + /** + * <code>optional bytes z = 15;</code> + */ + public com.google.protobuf.ByteString getZ() { + return z_; + } + + public static final int ZTAG_FIELD_NUMBER = 16; + private com.google.protobuf.ByteString zTag_; + /** + * <code>optional bytes zTag = 16;</code> + */ + public com.google.protobuf.ByteString getZTag() { + return zTag_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!g1_.isEmpty()) { + output.writeBytes(1, g1_); + } + if (!h1_.isEmpty()) { + output.writeBytes(2, h1_); + } + if (!g2_.isEmpty()) { + output.writeBytes(3, g2_); + } + if (!h2_.isEmpty()) { + output.writeBytes(4, h2_); + } + if (!g1Tag_.isEmpty()) { + output.writeBytes(5, g1Tag_); + } + if (!h1Tag_.isEmpty()) { + output.writeBytes(6, h1Tag_); + } + if (!g2Tag_.isEmpty()) { + output.writeBytes(7, g2Tag_); + } + if (!h2Tag_.isEmpty()) { + output.writeBytes(8, h2Tag_); + } + if (!u_.isEmpty()) { + output.writeBytes(9, u_); + } + if (!v_.isEmpty()) { + output.writeBytes(10, v_); + } + if (!uTag_.isEmpty()) { + output.writeBytes(11, uTag_); + } + if (!vTag_.isEmpty()) { + output.writeBytes(12, vTag_); + } + if (!c1_.isEmpty()) { + output.writeBytes(13, c1_); + } + if (!c2_.isEmpty()) { + output.writeBytes(14, c2_); + } + if (!z_.isEmpty()) { + output.writeBytes(15, z_); + } + if (!zTag_.isEmpty()) { + output.writeBytes(16, zTag_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!g1_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, g1_); + } + if (!h1_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, h1_); + } + if (!g2_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, g2_); + } + if (!h2_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, h2_); + } + if (!g1Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, g1Tag_); + } + if (!h1Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, h1Tag_); + } + if (!g2Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, g2Tag_); + } + if (!h2Tag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, h2Tag_); + } + if (!u_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, u_); + } + if (!v_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(10, v_); + } + if (!uTag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, uTag_); + } + if (!vTag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(12, vTag_); + } + if (!c1_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(13, c1_); + } + if (!c2_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(14, c2_); + } + if (!z_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(15, z_); + } + if (!zTag_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(16, zTag_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof)) { + return super.equals(obj); + } + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof) obj; + + boolean result = true; + result = result && getG1() + .equals(other.getG1()); + result = result && getH1() + .equals(other.getH1()); + result = result && getG2() + .equals(other.getG2()); + result = result && getH2() + .equals(other.getH2()); + result = result && getG1Tag() + .equals(other.getG1Tag()); + result = result && getH1Tag() + .equals(other.getH1Tag()); + result = result && getG2Tag() + .equals(other.getG2Tag()); + result = result && getH2Tag() + .equals(other.getH2Tag()); + result = result && getU() + .equals(other.getU()); + result = result && getV() + .equals(other.getV()); + result = result && getUTag() + .equals(other.getUTag()); + result = result && getVTag() + .equals(other.getVTag()); + result = result && getC1() + .equals(other.getC1()); + result = result && getC2() + .equals(other.getC2()); + result = result && getZ() + .equals(other.getZ()); + result = result && getZTag() + .equals(other.getZTag()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + G1_FIELD_NUMBER; + hash = (53 * hash) + getG1().hashCode(); + hash = (37 * hash) + H1_FIELD_NUMBER; + hash = (53 * hash) + getH1().hashCode(); + hash = (37 * hash) + G2_FIELD_NUMBER; + hash = (53 * hash) + getG2().hashCode(); + hash = (37 * hash) + H2_FIELD_NUMBER; + hash = (53 * hash) + getH2().hashCode(); + hash = (37 * hash) + G1TAG_FIELD_NUMBER; + hash = (53 * hash) + getG1Tag().hashCode(); + hash = (37 * hash) + H1TAG_FIELD_NUMBER; + hash = (53 * hash) + getH1Tag().hashCode(); + hash = (37 * hash) + G2TAG_FIELD_NUMBER; + hash = (53 * hash) + getG2Tag().hashCode(); + hash = (37 * hash) + H2TAG_FIELD_NUMBER; + hash = (53 * hash) + getH2Tag().hashCode(); + hash = (37 * hash) + U_FIELD_NUMBER; + hash = (53 * hash) + getU().hashCode(); + hash = (37 * hash) + V_FIELD_NUMBER; + hash = (53 * hash) + getV().hashCode(); + hash = (37 * hash) + UTAG_FIELD_NUMBER; + hash = (53 * hash) + getUTag().hashCode(); + hash = (37 * hash) + VTAG_FIELD_NUMBER; + hash = (53 * hash) + getVTag().hashCode(); + hash = (37 * hash) + C1_FIELD_NUMBER; + hash = (53 * hash) + getC1().hashCode(); + hash = (37 * hash) + C2_FIELD_NUMBER; + hash = (53 * hash) + getC2().hashCode(); + hash = (37 * hash) + Z_FIELD_NUMBER; + hash = (53 * hash) + getZ().hashCode(); + hash = (37 * hash) + ZTAG_FIELD_NUMBER; + hash = (53 * hash) + getZTag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof.OrProof} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof.OrProof) + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder.class); + } + + // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + g1_ = com.google.protobuf.ByteString.EMPTY; + + h1_ = com.google.protobuf.ByteString.EMPTY; + + g2_ = com.google.protobuf.ByteString.EMPTY; + + h2_ = com.google.protobuf.ByteString.EMPTY; + + g1Tag_ = com.google.protobuf.ByteString.EMPTY; + + h1Tag_ = com.google.protobuf.ByteString.EMPTY; + + g2Tag_ = com.google.protobuf.ByteString.EMPTY; + + h2Tag_ = com.google.protobuf.ByteString.EMPTY; + + u_ = com.google.protobuf.ByteString.EMPTY; + + v_ = com.google.protobuf.ByteString.EMPTY; + + uTag_ = com.google.protobuf.ByteString.EMPTY; + + vTag_ = com.google.protobuf.ByteString.EMPTY; + + c1_ = com.google.protobuf.ByteString.EMPTY; + + c2_ = com.google.protobuf.ByteString.EMPTY; + + z_ = com.google.protobuf.ByteString.EMPTY; + + zTag_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getDefaultInstanceForType() { + return meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance(); + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof build() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof buildPartial() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof(this); + result.g1_ = g1_; + result.h1_ = h1_; + result.g2_ = g2_; + result.h2_ = h2_; + result.g1Tag_ = g1Tag_; + result.h1Tag_ = h1Tag_; + result.g2Tag_ = g2Tag_; + result.h2Tag_ = h2Tag_; + result.u_ = u_; + result.v_ = v_; + result.uTag_ = uTag_; + result.vTag_ = vTag_; + result.c1_ = c1_; + result.c2_ = c2_; + result.z_ = z_; + result.zTag_ = zTag_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof) { + return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof other) { + if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance()) return this; + if (other.getG1() != com.google.protobuf.ByteString.EMPTY) { + setG1(other.getG1()); + } + if (other.getH1() != com.google.protobuf.ByteString.EMPTY) { + setH1(other.getH1()); + } + if (other.getG2() != com.google.protobuf.ByteString.EMPTY) { + setG2(other.getG2()); + } + if (other.getH2() != com.google.protobuf.ByteString.EMPTY) { + setH2(other.getH2()); + } + if (other.getG1Tag() != com.google.protobuf.ByteString.EMPTY) { + setG1Tag(other.getG1Tag()); + } + if (other.getH1Tag() != com.google.protobuf.ByteString.EMPTY) { + setH1Tag(other.getH1Tag()); + } + if (other.getG2Tag() != com.google.protobuf.ByteString.EMPTY) { + setG2Tag(other.getG2Tag()); + } + if (other.getH2Tag() != com.google.protobuf.ByteString.EMPTY) { + setH2Tag(other.getH2Tag()); + } + if (other.getU() != com.google.protobuf.ByteString.EMPTY) { + setU(other.getU()); + } + if (other.getV() != com.google.protobuf.ByteString.EMPTY) { + setV(other.getV()); + } + if (other.getUTag() != com.google.protobuf.ByteString.EMPTY) { + setUTag(other.getUTag()); + } + if (other.getVTag() != com.google.protobuf.ByteString.EMPTY) { + setVTag(other.getVTag()); + } + if (other.getC1() != com.google.protobuf.ByteString.EMPTY) { + setC1(other.getC1()); + } + if (other.getC2() != com.google.protobuf.ByteString.EMPTY) { + setC2(other.getC2()); + } + if (other.getZ() != com.google.protobuf.ByteString.EMPTY) { + setZ(other.getZ()); + } + if (other.getZTag() != com.google.protobuf.ByteString.EMPTY) { + setZTag(other.getZTag()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString g1_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; + * </pre> + * + * <code>optional bytes g1 = 1;</code> + */ + public com.google.protobuf.ByteString getG1() { + return g1_; + } + /** + * <pre> + *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; + * </pre> + * + * <code>optional bytes g1 = 1;</code> + */ + public Builder setG1(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g1_ = value; + onChanged(); + return this; + } + /** + * <pre> + *input : g1,h1, g2, h2, g1Tag, h1Tag, g2Tag, h2Tag; + * </pre> + * + * <code>optional bytes g1 = 1;</code> + */ + public Builder clearG1() { + + g1_ = getDefaultInstance().getG1(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h1_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h1 = 2;</code> + */ + public com.google.protobuf.ByteString getH1() { + return h1_; + } + /** + * <code>optional bytes h1 = 2;</code> + */ + public Builder setH1(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h1_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h1 = 2;</code> + */ + public Builder clearH1() { + + h1_ = getDefaultInstance().getH1(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString g2_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes g2 = 3;</code> + */ + public com.google.protobuf.ByteString getG2() { + return g2_; + } + /** + * <code>optional bytes g2 = 3;</code> + */ + public Builder setG2(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g2_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes g2 = 3;</code> + */ + public Builder clearG2() { + + g2_ = getDefaultInstance().getG2(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h2_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h2 = 4;</code> + */ + public com.google.protobuf.ByteString getH2() { + return h2_; + } + /** + * <code>optional bytes h2 = 4;</code> + */ + public Builder setH2(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h2_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h2 = 4;</code> + */ + public Builder clearH2() { + + h2_ = getDefaultInstance().getH2(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString g1Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public com.google.protobuf.ByteString getG1Tag() { + return g1Tag_; + } + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public Builder setG1Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g1Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes g1Tag = 5;</code> + */ + public Builder clearG1Tag() { + + g1Tag_ = getDefaultInstance().getG1Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h1Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public com.google.protobuf.ByteString getH1Tag() { + return h1Tag_; + } + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public Builder setH1Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h1Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h1Tag = 6;</code> + */ + public Builder clearH1Tag() { + + h1Tag_ = getDefaultInstance().getH1Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString g2Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public com.google.protobuf.ByteString getG2Tag() { + return g2Tag_; + } + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public Builder setG2Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + g2Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes g2Tag = 7;</code> + */ + public Builder clearG2Tag() { + + g2Tag_ = getDefaultInstance().getG2Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString h2Tag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public com.google.protobuf.ByteString getH2Tag() { + return h2Tag_; + } + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public Builder setH2Tag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + h2Tag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes h2Tag = 8;</code> + */ + public Builder clearH2Tag() { + + h2Tag_ = getDefaultInstance().getH2Tag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString u_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + *calc: u, v, uTag, vTag; + * </pre> + * + * <code>optional bytes u = 9;</code> + */ + public com.google.protobuf.ByteString getU() { + return u_; + } + /** + * <pre> + *calc: u, v, uTag, vTag; + * </pre> + * + * <code>optional bytes u = 9;</code> + */ + public Builder setU(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + u_ = value; + onChanged(); + return this; + } + /** + * <pre> + *calc: u, v, uTag, vTag; + * </pre> + * + * <code>optional bytes u = 9;</code> + */ + public Builder clearU() { + + u_ = getDefaultInstance().getU(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString v_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes v = 10;</code> + */ + public com.google.protobuf.ByteString getV() { + return v_; + } + /** + * <code>optional bytes v = 10;</code> + */ + public Builder setV(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + v_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes v = 10;</code> + */ + public Builder clearV() { + + v_ = getDefaultInstance().getV(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString uTag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes uTag = 11;</code> + */ + public com.google.protobuf.ByteString getUTag() { + return uTag_; + } + /** + * <code>optional bytes uTag = 11;</code> + */ + public Builder setUTag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + uTag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes uTag = 11;</code> + */ + public Builder clearUTag() { + + uTag_ = getDefaultInstance().getUTag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString vTag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes vTag = 12;</code> + */ + public com.google.protobuf.ByteString getVTag() { + return vTag_; + } + /** + * <code>optional bytes vTag = 12;</code> + */ + public Builder setVTag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + vTag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes vTag = 12;</code> + */ + public Builder clearVTag() { + + vTag_ = getDefaultInstance().getVTag(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString c1_ = com.google.protobuf.ByteString.EMPTY; + /** + * <pre> + *generated: c1,c2,z,zTag + * </pre> + * + * <code>optional bytes c1 = 13;</code> + */ + public com.google.protobuf.ByteString getC1() { + return c1_; + } + /** + * <pre> + *generated: c1,c2,z,zTag + * </pre> + * + * <code>optional bytes c1 = 13;</code> + */ + public Builder setC1(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + c1_ = value; + onChanged(); + return this; + } + /** + * <pre> + *generated: c1,c2,z,zTag + * </pre> + * + * <code>optional bytes c1 = 13;</code> + */ + public Builder clearC1() { + + c1_ = getDefaultInstance().getC1(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString c2_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes c2 = 14;</code> + */ + public com.google.protobuf.ByteString getC2() { + return c2_; + } + /** + * <code>optional bytes c2 = 14;</code> + */ + public Builder setC2(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + c2_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes c2 = 14;</code> + */ + public Builder clearC2() { + + c2_ = getDefaultInstance().getC2(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString z_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes z = 15;</code> + */ + public com.google.protobuf.ByteString getZ() { + return z_; + } + /** + * <code>optional bytes z = 15;</code> + */ + public Builder setZ(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + z_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes z = 15;</code> + */ + public Builder clearZ() { + + z_ = getDefaultInstance().getZ(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString zTag_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>optional bytes zTag = 16;</code> + */ + public com.google.protobuf.ByteString getZTag() { + return zTag_; + } + /** + * <code>optional bytes zTag = 16;</code> + */ + public Builder setZTag(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + zTag_ = value; + onChanged(); + return this; + } + /** + * <code>optional bytes zTag = 16;</code> + */ + public Builder clearZTag() { + + zTag_ = getDefaultInstance().getZTag(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof.OrProof) + } + + // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof.OrProof) + private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof(); + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<OrProof> + PARSER = new com.google.protobuf.AbstractParser<OrProof>() { + public OrProof parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OrProof(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<OrProof> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<OrProof> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LocationOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ZeroKnowledgeProof.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>optional int32 i = 1;</code> + */ + int getI(); + + /** + * <code>optional int32 j = 2;</code> + */ + int getJ(); + + /** + * <code>optional int32 layer = 3;</code> + */ + int getLayer(); + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof.Location} + */ + public static final class Location extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ZeroKnowledgeProof.Location) + LocationOrBuilder { + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private Location() { + i_ = 0; + j_ = 0; + layer_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Location( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + i_ = input.readInt32(); + break; + } + case 16: { + + j_ = input.readInt32(); + break; + } + case 24: { + + layer_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder.class); + } + + public static final int I_FIELD_NUMBER = 1; + private int i_; + /** + * <code>optional int32 i = 1;</code> + */ + public int getI() { + return i_; + } + + public static final int J_FIELD_NUMBER = 2; + private int j_; + /** + * <code>optional int32 j = 2;</code> + */ + public int getJ() { + return j_; + } + + public static final int LAYER_FIELD_NUMBER = 3; + private int layer_; + /** + * <code>optional int32 layer = 3;</code> + */ + public int getLayer() { + return layer_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (i_ != 0) { + output.writeInt32(1, i_); + } + if (j_ != 0) { + output.writeInt32(2, j_); + } + if (layer_ != 0) { + output.writeInt32(3, layer_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (i_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, i_); + } + if (j_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, j_); + } + if (layer_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, layer_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location)) { + return super.equals(obj); + } + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location) obj; + + boolean result = true; + result = result && (getI() + == other.getI()); + result = result && (getJ() + == other.getJ()); + result = result && (getLayer() + == other.getLayer()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + hash = (37 * hash) + I_FIELD_NUMBER; + hash = (53 * hash) + getI(); + hash = (37 * hash) + J_FIELD_NUMBER; + hash = (53 * hash) + getJ(); + hash = (37 * hash) + LAYER_FIELD_NUMBER; + hash = (53 * hash) + getLayer(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof.Location} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof.Location) + meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder.class); + } + + // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + i_ = 0; + + j_ = 0; + + layer_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getDefaultInstanceForType() { + return meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance(); + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location build() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location buildPartial() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location(this); + result.i_ = i_; + result.j_ = j_; + result.layer_ = layer_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location) { + return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location other) { + if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance()) return this; + if (other.getI() != 0) { + setI(other.getI()); + } + if (other.getJ() != 0) { + setJ(other.getJ()); + } + if (other.getLayer() != 0) { + setLayer(other.getLayer()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int i_ ; + /** + * <code>optional int32 i = 1;</code> + */ + public int getI() { + return i_; + } + /** + * <code>optional int32 i = 1;</code> + */ + public Builder setI(int value) { + + i_ = value; + onChanged(); + return this; + } + /** + * <code>optional int32 i = 1;</code> + */ + public Builder clearI() { + + i_ = 0; + onChanged(); + return this; + } + + private int j_ ; + /** + * <code>optional int32 j = 2;</code> + */ + public int getJ() { + return j_; + } + /** + * <code>optional int32 j = 2;</code> + */ + public Builder setJ(int value) { + + j_ = value; + onChanged(); + return this; + } + /** + * <code>optional int32 j = 2;</code> + */ + public Builder clearJ() { + + j_ = 0; + onChanged(); + return this; + } + + private int layer_ ; + /** + * <code>optional int32 layer = 3;</code> + */ + public int getLayer() { + return layer_; + } + /** + * <code>optional int32 layer = 3;</code> + */ + public Builder setLayer(int value) { + + layer_ = value; + onChanged(); + return this; + } + /** + * <code>optional int32 layer = 3;</code> + */ + public Builder clearLayer() { + + layer_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof.Location) + } + + // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof.Location) + private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location(); + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<Location> + PARSER = new com.google.protobuf.AbstractParser<Location>() { + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Location(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<Location> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<Location> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int FIRST_FIELD_NUMBER = 1; + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof first_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public boolean hasFirst() { + return first_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFirst() { + return first_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : first_; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFirstOrBuilder() { + return getFirst(); + } + + public static final int SECOND_FIELD_NUMBER = 2; + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof second_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public boolean hasSecond() { + return second_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getSecond() { + return second_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : second_; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getSecondOrBuilder() { + return getSecond(); + } + + public static final int THIRD_FIELD_NUMBER = 3; + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof third_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public boolean hasThird() { + return third_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getThird() { + return third_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : third_; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getThirdOrBuilder() { + return getThird(); + } + + public static final int FOURTH_FIELD_NUMBER = 4; + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof fourth_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public boolean hasFourth() { + return fourth_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFourth() { + return fourth_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : fourth_; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFourthOrBuilder() { + return getFourth(); + } + + public static final int LOCATION_FIELD_NUMBER = 5; + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location location_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public boolean hasLocation() { + return location_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getLocation() { + return location_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance() : location_; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder getLocationOrBuilder() { + return getLocation(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (first_ != null) { + output.writeMessage(1, getFirst()); + } + if (second_ != null) { + output.writeMessage(2, getSecond()); + } + if (third_ != null) { + output.writeMessage(3, getThird()); + } + if (fourth_ != null) { + output.writeMessage(4, getFourth()); + } + if (location_ != null) { + output.writeMessage(5, getLocation()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (first_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFirst()); + } + if (second_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSecond()); + } + if (third_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getThird()); + } + if (fourth_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFourth()); + } + if (location_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getLocation()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof)) { + return super.equals(obj); + } + meerkat.protobuf.Mixing.ZeroKnowledgeProof other = (meerkat.protobuf.Mixing.ZeroKnowledgeProof) obj; + + boolean result = true; + result = result && (hasFirst() == other.hasFirst()); + if (hasFirst()) { + result = result && getFirst() + .equals(other.getFirst()); + } + result = result && (hasSecond() == other.hasSecond()); + if (hasSecond()) { + result = result && getSecond() + .equals(other.getSecond()); + } + result = result && (hasThird() == other.hasThird()); + if (hasThird()) { + result = result && getThird() + .equals(other.getThird()); + } + result = result && (hasFourth() == other.hasFourth()); + if (hasFourth()) { + result = result && getFourth() + .equals(other.getFourth()); + } + result = result && (hasLocation() == other.hasLocation()); + if (hasLocation()) { + result = result && getLocation() + .equals(other.getLocation()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptorForType().hashCode(); + if (hasFirst()) { + hash = (37 * hash) + FIRST_FIELD_NUMBER; + hash = (53 * hash) + getFirst().hashCode(); + } + if (hasSecond()) { + hash = (37 * hash) + SECOND_FIELD_NUMBER; + hash = (53 * hash) + getSecond().hashCode(); + } + if (hasThird()) { + hash = (37 * hash) + THIRD_FIELD_NUMBER; + hash = (53 * hash) + getThird().hashCode(); + } + if (hasFourth()) { + hash = (37 * hash) + FOURTH_FIELD_NUMBER; + hash = (53 * hash) + getFourth().hashCode(); + } + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Mixing.ZeroKnowledgeProof prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.ZeroKnowledgeProof} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.ZeroKnowledgeProof) + meerkat.protobuf.Mixing.ZeroKnowledgeProofOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.class, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Builder.class); + } + + // Construct using meerkat.protobuf.Mixing.ZeroKnowledgeProof.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (firstBuilder_ == null) { + first_ = null; + } else { + first_ = null; + firstBuilder_ = null; + } + if (secondBuilder_ == null) { + second_ = null; + } else { + second_ = null; + secondBuilder_ = null; + } + if (thirdBuilder_ == null) { + third_ = null; + } else { + third_ = null; + thirdBuilder_ = null; + } + if (fourthBuilder_ == null) { + fourth_ = null; + } else { + fourth_ = null; + fourthBuilder_ = null; + } + if (locationBuilder_ == null) { + location_ = null; + } else { + location_ = null; + locationBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Mixing.internal_static_meerkat_ZeroKnowledgeProof_descriptor; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof getDefaultInstanceForType() { + return meerkat.protobuf.Mixing.ZeroKnowledgeProof.getDefaultInstance(); + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof build() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof buildPartial() { + meerkat.protobuf.Mixing.ZeroKnowledgeProof result = new meerkat.protobuf.Mixing.ZeroKnowledgeProof(this); + if (firstBuilder_ == null) { + result.first_ = first_; + } else { + result.first_ = firstBuilder_.build(); + } + if (secondBuilder_ == null) { + result.second_ = second_; + } else { + result.second_ = secondBuilder_.build(); + } + if (thirdBuilder_ == null) { + result.third_ = third_; + } else { + result.third_ = thirdBuilder_.build(); + } + if (fourthBuilder_ == null) { + result.fourth_ = fourth_; + } else { + result.fourth_ = fourthBuilder_.build(); + } + if (locationBuilder_ == null) { + result.location_ = location_; + } else { + result.location_ = locationBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Mixing.ZeroKnowledgeProof) { + return mergeFrom((meerkat.protobuf.Mixing.ZeroKnowledgeProof)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Mixing.ZeroKnowledgeProof other) { + if (other == meerkat.protobuf.Mixing.ZeroKnowledgeProof.getDefaultInstance()) return this; + if (other.hasFirst()) { + mergeFirst(other.getFirst()); + } + if (other.hasSecond()) { + mergeSecond(other.getSecond()); + } + if (other.hasThird()) { + mergeThird(other.getThird()); + } + if (other.hasFourth()) { + mergeFourth(other.getFourth()); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Mixing.ZeroKnowledgeProof parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Mixing.ZeroKnowledgeProof) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof first_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> firstBuilder_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public boolean hasFirst() { + return firstBuilder_ != null || first_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFirst() { + if (firstBuilder_ == null) { + return first_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : first_; + } else { + return firstBuilder_.getMessage(); + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public Builder setFirst(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (firstBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + first_ = value; + onChanged(); + } else { + firstBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public Builder setFirst( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { + if (firstBuilder_ == null) { + first_ = builderForValue.build(); + onChanged(); + } else { + firstBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public Builder mergeFirst(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (firstBuilder_ == null) { + if (first_ != null) { + first_ = + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(first_).mergeFrom(value).buildPartial(); + } else { + first_ = value; + } + onChanged(); + } else { + firstBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public Builder clearFirst() { + if (firstBuilder_ == null) { + first_ = null; + onChanged(); + } else { + first_ = null; + firstBuilder_ = null; + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getFirstBuilder() { + + onChanged(); + return getFirstFieldBuilder().getBuilder(); + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFirstOrBuilder() { + if (firstBuilder_ != null) { + return firstBuilder_.getMessageOrBuilder(); + } else { + return first_ == null ? + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : first_; + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof first = 1;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> + getFirstFieldBuilder() { + if (firstBuilder_ == null) { + firstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( + getFirst(), + getParentForChildren(), + isClean()); + first_ = null; + } + return firstBuilder_; + } + + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof second_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> secondBuilder_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public boolean hasSecond() { + return secondBuilder_ != null || second_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getSecond() { + if (secondBuilder_ == null) { + return second_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : second_; + } else { + return secondBuilder_.getMessage(); + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public Builder setSecond(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (secondBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + second_ = value; + onChanged(); + } else { + secondBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public Builder setSecond( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { + if (secondBuilder_ == null) { + second_ = builderForValue.build(); + onChanged(); + } else { + secondBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public Builder mergeSecond(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (secondBuilder_ == null) { + if (second_ != null) { + second_ = + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(second_).mergeFrom(value).buildPartial(); + } else { + second_ = value; + } + onChanged(); + } else { + secondBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public Builder clearSecond() { + if (secondBuilder_ == null) { + second_ = null; + onChanged(); + } else { + second_ = null; + secondBuilder_ = null; + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getSecondBuilder() { + + onChanged(); + return getSecondFieldBuilder().getBuilder(); + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getSecondOrBuilder() { + if (secondBuilder_ != null) { + return secondBuilder_.getMessageOrBuilder(); + } else { + return second_ == null ? + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : second_; + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof second = 2;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> + getSecondFieldBuilder() { + if (secondBuilder_ == null) { + secondBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( + getSecond(), + getParentForChildren(), + isClean()); + second_ = null; + } + return secondBuilder_; + } + + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof third_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> thirdBuilder_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public boolean hasThird() { + return thirdBuilder_ != null || third_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getThird() { + if (thirdBuilder_ == null) { + return third_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : third_; + } else { + return thirdBuilder_.getMessage(); + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public Builder setThird(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (thirdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + third_ = value; + onChanged(); + } else { + thirdBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public Builder setThird( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { + if (thirdBuilder_ == null) { + third_ = builderForValue.build(); + onChanged(); + } else { + thirdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public Builder mergeThird(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (thirdBuilder_ == null) { + if (third_ != null) { + third_ = + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(third_).mergeFrom(value).buildPartial(); + } else { + third_ = value; + } + onChanged(); + } else { + thirdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public Builder clearThird() { + if (thirdBuilder_ == null) { + third_ = null; + onChanged(); + } else { + third_ = null; + thirdBuilder_ = null; + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getThirdBuilder() { + + onChanged(); + return getThirdFieldBuilder().getBuilder(); + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getThirdOrBuilder() { + if (thirdBuilder_ != null) { + return thirdBuilder_.getMessageOrBuilder(); + } else { + return third_ == null ? + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : third_; + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof third = 3;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> + getThirdFieldBuilder() { + if (thirdBuilder_ == null) { + thirdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( + getThird(), + getParentForChildren(), + isClean()); + third_ = null; + } + return thirdBuilder_; + } + + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof fourth_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> fourthBuilder_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public boolean hasFourth() { + return fourthBuilder_ != null || fourth_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof getFourth() { + if (fourthBuilder_ == null) { + return fourth_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : fourth_; + } else { + return fourthBuilder_.getMessage(); + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public Builder setFourth(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (fourthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fourth_ = value; + onChanged(); + } else { + fourthBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public Builder setFourth( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder builderForValue) { + if (fourthBuilder_ == null) { + fourth_ = builderForValue.build(); + onChanged(); + } else { + fourthBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public Builder mergeFourth(meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof value) { + if (fourthBuilder_ == null) { + if (fourth_ != null) { + fourth_ = + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.newBuilder(fourth_).mergeFrom(value).buildPartial(); + } else { + fourth_ = value; + } + onChanged(); + } else { + fourthBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public Builder clearFourth() { + if (fourthBuilder_ == null) { + fourth_ = null; + onChanged(); + } else { + fourth_ = null; + fourthBuilder_ = null; + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder getFourthBuilder() { + + onChanged(); + return getFourthFieldBuilder().getBuilder(); + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder getFourthOrBuilder() { + if (fourthBuilder_ != null) { + return fourthBuilder_.getMessageOrBuilder(); + } else { + return fourth_ == null ? + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.getDefaultInstance() : fourth_; + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.OrProof fourth = 4;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder> + getFourthFieldBuilder() { + if (fourthBuilder_ == null) { + fourthBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProof.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.OrProofOrBuilder>( + getFourth(), + getParentForChildren(), + isClean()); + fourth_ = null; + } + return fourthBuilder_; + } + + private meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location location_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder> locationBuilder_; + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public boolean hasLocation() { + return locationBuilder_ != null || location_ != null; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location getLocation() { + if (locationBuilder_ == null) { + return location_ == null ? meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public Builder setLocation(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public Builder setLocation( + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public Builder mergeLocation(meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location value) { + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + + return this; + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + public meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.getDefaultInstance() : location_; + } + } + /** + * <code>optional .meerkat.ZeroKnowledgeProof.Location location = 5;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location, meerkat.protobuf.Mixing.ZeroKnowledgeProof.Location.Builder, meerkat.protobuf.Mixing.ZeroKnowledgeProof.LocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ZeroKnowledgeProof) + } + + // @@protoc_insertion_point(class_scope:meerkat.ZeroKnowledgeProof) + private static final meerkat.protobuf.Mixing.ZeroKnowledgeProof DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Mixing.ZeroKnowledgeProof(); + } + + public static meerkat.protobuf.Mixing.ZeroKnowledgeProof getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ZeroKnowledgeProof> + PARSER = new com.google.protobuf.AbstractParser<ZeroKnowledgeProof>() { + public ZeroKnowledgeProof parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ZeroKnowledgeProof(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ZeroKnowledgeProof> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ZeroKnowledgeProof> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Mixing.ZeroKnowledgeProof getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_Plaintext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_Plaintext_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ZeroKnowledgeProof_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ZeroKnowledgeProof_Location_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\024meerkat/mixing.proto\022\007meerkat\032\024meerkat" + + "/crypto.proto\"\031\n\tPlaintext\022\014\n\004data\030\001 \001(\014" + + "\"\334\005\n\022ZeroKnowledgeProof\0222\n\005first\030\001 \001(\0132#" + + ".meerkat.ZeroKnowledgeProof.OrProof\0223\n\006s" + + "econd\030\002 \001(\0132#.meerkat.ZeroKnowledgeProof" + + ".OrProof\0222\n\005third\030\003 \001(\0132#.meerkat.ZeroKn" + + "owledgeProof.OrProof\0223\n\006fourth\030\004 \001(\0132#.m" + + "eerkat.ZeroKnowledgeProof.OrProof\0226\n\010loc" + + "ation\030\005 \001(\0132$.meerkat.ZeroKnowledgeProof" + + ".Location\032\212\003\n\007OrProof\022\n\n\002g1\030\001 \001(\014\022\n\n\002h1\030", + "\002 \001(\014\022\n\n\002g2\030\003 \001(\014\022\n\n\002h2\030\004 \001(\014\022\r\n\005g1Tag\030\005" + + " \001(\014\022\r\n\005h1Tag\030\006 \001(\014\022\r\n\005g2Tag\030\007 \001(\014\022\r\n\005h2" + + "Tag\030\010 \001(\014\022\t\n\001u\030\t \001(\014\022\t\n\001v\030\n \001(\014\022\014\n\004uTag\030" + + "\013 \001(\014\022\014\n\004vTag\030\014 \001(\014\022\n\n\002c1\030\r \001(\014\022\n\n\002c2\030\016 " + + "\001(\014\022\t\n\001z\030\017 \001(\014\022\014\n\004zTag\030\020 \001(\014\032\257\001\n\017ForRand" + + "omOracle\022\n\n\002g1\030\001 \001(\014\022\n\n\002h1\030\002 \001(\014\022\n\n\002g2\030\003" + + " \001(\014\022\n\n\002h2\030\004 \001(\014\022\r\n\005g1Tag\030\005 \001(\014\022\r\n\005h1Tag" + + "\030\006 \001(\014\022\r\n\005g2Tag\030\007 \001(\014\022\r\n\005h2Tag\030\010 \001(\014\022\t\n\001" + + "u\030\t \001(\014\022\t\n\001v\030\n \001(\014\022\014\n\004uTag\030\013 \001(\014\022\014\n\004vTag" + + "\030\014 \001(\014\032/\n\010Location\022\t\n\001i\030\001 \001(\005\022\t\n\001j\030\002 \001(\005", + "\022\r\n\005layer\030\003 \001(\005B\022\n\020meerkat.protobufb\006pro" + + "to3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + meerkat.protobuf.Crypto.getDescriptor(), + }, assigner); + internal_static_meerkat_Plaintext_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_Plaintext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_Plaintext_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_ZeroKnowledgeProof_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_meerkat_ZeroKnowledgeProof_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ZeroKnowledgeProof_descriptor, + new java.lang.String[] { "First", "Second", "Third", "Fourth", "Location", }); + internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor = + internal_static_meerkat_ZeroKnowledgeProof_descriptor.getNestedTypes().get(0); + internal_static_meerkat_ZeroKnowledgeProof_OrProof_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor, + new java.lang.String[] { "G1", "H1", "G2", "H2", "G1Tag", "H1Tag", "G2Tag", "H2Tag", "U", "V", "UTag", "VTag", "C1", "C2", "Z", "ZTag", }); + internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor = + internal_static_meerkat_ZeroKnowledgeProof_OrProof_descriptor.getNestedTypes().get(0); + internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ZeroKnowledgeProof_OrProof_ForRandomOracle_descriptor, + new java.lang.String[] { "G1", "H1", "G2", "H2", "G1Tag", "H1Tag", "G2Tag", "H2Tag", "U", "V", "UTag", "VTag", }); + internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor = + internal_static_meerkat_ZeroKnowledgeProof_descriptor.getNestedTypes().get(1); + internal_static_meerkat_ZeroKnowledgeProof_Location_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ZeroKnowledgeProof_Location_descriptor, + new java.lang.String[] { "I", "J", "Layer", }); + meerkat.protobuf.Crypto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/PollingStation.java b/android-scanner/src/main/java/meerkat/protobuf/PollingStation.java new file mode 100644 index 0000000..6dee487 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/PollingStation.java @@ -0,0 +1,1217 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/PollingStation.proto + +package meerkat.protobuf; + +public final class PollingStation { + private PollingStation() {} + 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 ScannedDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ScannedData) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>bytes channel = 1;</code> + */ + com.google.protobuf.ByteString getChannel(); + + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + boolean hasSignedEncryptedBallot(); + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + meerkat.protobuf.Voting.SignedEncryptedBallot getSignedEncryptedBallot(); + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder getSignedEncryptedBallotOrBuilder(); + } + /** + * <pre> + * Container for scanned data + * </pre> + * + * Protobuf type {@code meerkat.ScannedData} + */ + public static final class ScannedData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ScannedData) + ScannedDataOrBuilder { + // Use ScannedData.newBuilder() to construct. + private ScannedData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ScannedData() { + channel_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ScannedData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + channel_ = input.readBytes(); + break; + } + case 18: { + meerkat.protobuf.Voting.SignedEncryptedBallot.Builder subBuilder = null; + if (signedEncryptedBallot_ != null) { + subBuilder = signedEncryptedBallot_.toBuilder(); + } + signedEncryptedBallot_ = input.readMessage(meerkat.protobuf.Voting.SignedEncryptedBallot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signedEncryptedBallot_); + signedEncryptedBallot_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.PollingStation.ScannedData.class, meerkat.protobuf.PollingStation.ScannedData.Builder.class); + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString channel_; + /** + * <code>bytes channel = 1;</code> + */ + public com.google.protobuf.ByteString getChannel() { + return channel_; + } + + public static final int SIGNED_ENCRYPTED_BALLOT_FIELD_NUMBER = 2; + private meerkat.protobuf.Voting.SignedEncryptedBallot signedEncryptedBallot_; + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public boolean hasSignedEncryptedBallot() { + return signedEncryptedBallot_ != null; + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public meerkat.protobuf.Voting.SignedEncryptedBallot getSignedEncryptedBallot() { + return signedEncryptedBallot_ == null ? meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance() : signedEncryptedBallot_; + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder getSignedEncryptedBallotOrBuilder() { + return getSignedEncryptedBallot(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!channel_.isEmpty()) { + output.writeBytes(1, channel_); + } + if (signedEncryptedBallot_ != null) { + output.writeMessage(2, getSignedEncryptedBallot()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!channel_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, channel_); + } + if (signedEncryptedBallot_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSignedEncryptedBallot()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.PollingStation.ScannedData)) { + return super.equals(obj); + } + meerkat.protobuf.PollingStation.ScannedData other = (meerkat.protobuf.PollingStation.ScannedData) obj; + + boolean result = true; + result = result && getChannel() + .equals(other.getChannel()); + result = result && (hasSignedEncryptedBallot() == other.hasSignedEncryptedBallot()); + if (hasSignedEncryptedBallot()) { + result = result && getSignedEncryptedBallot() + .equals(other.getSignedEncryptedBallot()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getChannel().hashCode(); + if (hasSignedEncryptedBallot()) { + hash = (37 * hash) + SIGNED_ENCRYPTED_BALLOT_FIELD_NUMBER; + hash = (53 * hash) + getSignedEncryptedBallot().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.PollingStation.ScannedData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.PollingStation.ScannedData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ScannedData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.PollingStation.ScannedData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ScannedData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.PollingStation.ScannedData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ScannedData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.PollingStation.ScannedData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ScannedData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.PollingStation.ScannedData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.PollingStation.ScannedData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * Container for scanned data + * </pre> + * + * Protobuf type {@code meerkat.ScannedData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.ScannedData) + meerkat.protobuf.PollingStation.ScannedDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.PollingStation.ScannedData.class, meerkat.protobuf.PollingStation.ScannedData.Builder.class); + } + + // Construct using meerkat.protobuf.PollingStation.ScannedData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + channel_ = com.google.protobuf.ByteString.EMPTY; + + if (signedEncryptedBallotBuilder_ == null) { + signedEncryptedBallot_ = null; + } else { + signedEncryptedBallot_ = null; + signedEncryptedBallotBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ScannedData_descriptor; + } + + public meerkat.protobuf.PollingStation.ScannedData getDefaultInstanceForType() { + return meerkat.protobuf.PollingStation.ScannedData.getDefaultInstance(); + } + + public meerkat.protobuf.PollingStation.ScannedData build() { + meerkat.protobuf.PollingStation.ScannedData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.PollingStation.ScannedData buildPartial() { + meerkat.protobuf.PollingStation.ScannedData result = new meerkat.protobuf.PollingStation.ScannedData(this); + result.channel_ = channel_; + if (signedEncryptedBallotBuilder_ == null) { + result.signedEncryptedBallot_ = signedEncryptedBallot_; + } else { + result.signedEncryptedBallot_ = signedEncryptedBallotBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.PollingStation.ScannedData) { + return mergeFrom((meerkat.protobuf.PollingStation.ScannedData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.PollingStation.ScannedData other) { + if (other == meerkat.protobuf.PollingStation.ScannedData.getDefaultInstance()) return this; + if (other.getChannel() != com.google.protobuf.ByteString.EMPTY) { + setChannel(other.getChannel()); + } + if (other.hasSignedEncryptedBallot()) { + mergeSignedEncryptedBallot(other.getSignedEncryptedBallot()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.PollingStation.ScannedData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.PollingStation.ScannedData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>bytes channel = 1;</code> + */ + public com.google.protobuf.ByteString getChannel() { + return channel_; + } + /** + * <code>bytes channel = 1;</code> + */ + public Builder setChannel(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + channel_ = value; + onChanged(); + return this; + } + /** + * <code>bytes channel = 1;</code> + */ + public Builder clearChannel() { + + channel_ = getDefaultInstance().getChannel(); + onChanged(); + return this; + } + + private meerkat.protobuf.Voting.SignedEncryptedBallot signedEncryptedBallot_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.SignedEncryptedBallot, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder, meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder> signedEncryptedBallotBuilder_; + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public boolean hasSignedEncryptedBallot() { + return signedEncryptedBallotBuilder_ != null || signedEncryptedBallot_ != null; + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public meerkat.protobuf.Voting.SignedEncryptedBallot getSignedEncryptedBallot() { + if (signedEncryptedBallotBuilder_ == null) { + return signedEncryptedBallot_ == null ? meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance() : signedEncryptedBallot_; + } else { + return signedEncryptedBallotBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public Builder setSignedEncryptedBallot(meerkat.protobuf.Voting.SignedEncryptedBallot value) { + if (signedEncryptedBallotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + signedEncryptedBallot_ = value; + onChanged(); + } else { + signedEncryptedBallotBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public Builder setSignedEncryptedBallot( + meerkat.protobuf.Voting.SignedEncryptedBallot.Builder builderForValue) { + if (signedEncryptedBallotBuilder_ == null) { + signedEncryptedBallot_ = builderForValue.build(); + onChanged(); + } else { + signedEncryptedBallotBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public Builder mergeSignedEncryptedBallot(meerkat.protobuf.Voting.SignedEncryptedBallot value) { + if (signedEncryptedBallotBuilder_ == null) { + if (signedEncryptedBallot_ != null) { + signedEncryptedBallot_ = + meerkat.protobuf.Voting.SignedEncryptedBallot.newBuilder(signedEncryptedBallot_).mergeFrom(value).buildPartial(); + } else { + signedEncryptedBallot_ = value; + } + onChanged(); + } else { + signedEncryptedBallotBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public Builder clearSignedEncryptedBallot() { + if (signedEncryptedBallotBuilder_ == null) { + signedEncryptedBallot_ = null; + onChanged(); + } else { + signedEncryptedBallot_ = null; + signedEncryptedBallotBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public meerkat.protobuf.Voting.SignedEncryptedBallot.Builder getSignedEncryptedBallotBuilder() { + + onChanged(); + return getSignedEncryptedBallotFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + public meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder getSignedEncryptedBallotOrBuilder() { + if (signedEncryptedBallotBuilder_ != null) { + return signedEncryptedBallotBuilder_.getMessageOrBuilder(); + } else { + return signedEncryptedBallot_ == null ? + meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance() : signedEncryptedBallot_; + } + } + /** + * <code>.meerkat.SignedEncryptedBallot signed_encrypted_ballot = 2;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.SignedEncryptedBallot, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder, meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder> + getSignedEncryptedBallotFieldBuilder() { + if (signedEncryptedBallotBuilder_ == null) { + signedEncryptedBallotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.SignedEncryptedBallot, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder, meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder>( + getSignedEncryptedBallot(), + getParentForChildren(), + isClean()); + signedEncryptedBallot_ = null; + } + return signedEncryptedBallotBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ScannedData) + } + + // @@protoc_insertion_point(class_scope:meerkat.ScannedData) + private static final meerkat.protobuf.PollingStation.ScannedData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.PollingStation.ScannedData(); + } + + public static meerkat.protobuf.PollingStation.ScannedData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ScannedData> + PARSER = new com.google.protobuf.AbstractParser<ScannedData>() { + public ScannedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScannedData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ScannedData> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ScannedData> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.PollingStation.ScannedData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorMsgOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ErrorMsg) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>string msg = 1;</code> + */ + java.lang.String getMsg(); + /** + * <code>string msg = 1;</code> + */ + com.google.protobuf.ByteString + getMsgBytes(); + } + /** + * <pre> + * Container for error messages + * </pre> + * + * Protobuf type {@code meerkat.ErrorMsg} + */ + public static final class ErrorMsg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ErrorMsg) + ErrorMsgOrBuilder { + // Use ErrorMsg.newBuilder() to construct. + private ErrorMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ErrorMsg() { + msg_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ErrorMsg( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + msg_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.PollingStation.ErrorMsg.class, meerkat.protobuf.PollingStation.ErrorMsg.Builder.class); + } + + public static final int MSG_FIELD_NUMBER = 1; + private volatile java.lang.Object msg_; + /** + * <code>string msg = 1;</code> + */ + 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; + } + } + /** + * <code>string msg = 1;</code> + */ + 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; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMsgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, msg_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMsgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, msg_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.PollingStation.ErrorMsg)) { + return super.equals(obj); + } + meerkat.protobuf.PollingStation.ErrorMsg other = (meerkat.protobuf.PollingStation.ErrorMsg) obj; + + boolean result = true; + result = result && getMsg() + .equals(other.getMsg()); + return result; + } + + @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(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.PollingStation.ErrorMsg parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.PollingStation.ErrorMsg prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * Container for error messages + * </pre> + * + * Protobuf type {@code meerkat.ErrorMsg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.ErrorMsg) + meerkat.protobuf.PollingStation.ErrorMsgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.PollingStation.ErrorMsg.class, meerkat.protobuf.PollingStation.ErrorMsg.Builder.class); + } + + // Construct using meerkat.protobuf.PollingStation.ErrorMsg.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + msg_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.PollingStation.internal_static_meerkat_ErrorMsg_descriptor; + } + + public meerkat.protobuf.PollingStation.ErrorMsg getDefaultInstanceForType() { + return meerkat.protobuf.PollingStation.ErrorMsg.getDefaultInstance(); + } + + public meerkat.protobuf.PollingStation.ErrorMsg build() { + meerkat.protobuf.PollingStation.ErrorMsg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.PollingStation.ErrorMsg buildPartial() { + meerkat.protobuf.PollingStation.ErrorMsg result = new meerkat.protobuf.PollingStation.ErrorMsg(this); + result.msg_ = msg_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.PollingStation.ErrorMsg) { + return mergeFrom((meerkat.protobuf.PollingStation.ErrorMsg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.PollingStation.ErrorMsg other) { + if (other == meerkat.protobuf.PollingStation.ErrorMsg.getDefaultInstance()) return this; + if (!other.getMsg().isEmpty()) { + msg_ = other.msg_; + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.PollingStation.ErrorMsg parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.PollingStation.ErrorMsg) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object msg_ = ""; + /** + * <code>string msg = 1;</code> + */ + 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; + } + } + /** + * <code>string msg = 1;</code> + */ + 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; + } + } + /** + * <code>string msg = 1;</code> + */ + public Builder setMsg( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + msg_ = value; + onChanged(); + return this; + } + /** + * <code>string msg = 1;</code> + */ + public Builder clearMsg() { + + msg_ = getDefaultInstance().getMsg(); + onChanged(); + return this; + } + /** + * <code>string msg = 1;</code> + */ + public Builder setMsgBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + msg_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ErrorMsg) + } + + // @@protoc_insertion_point(class_scope:meerkat.ErrorMsg) + private static final meerkat.protobuf.PollingStation.ErrorMsg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.PollingStation.ErrorMsg(); + } + + public static meerkat.protobuf.PollingStation.ErrorMsg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ErrorMsg> + PARSER = new com.google.protobuf.AbstractParser<ErrorMsg>() { + public ErrorMsg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorMsg(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ErrorMsg> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ErrorMsg> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.PollingStation.ErrorMsg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ScannedData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ScannedData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ErrorMsg_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ErrorMsg_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\034meerkat/PollingStation.proto\022\007meerkat\032" + + "\024meerkat/voting.proto\"_\n\013ScannedData\022\017\n\007" + + "channel\030\001 \001(\014\022?\n\027signed_encrypted_ballot" + + "\030\002 \001(\0132\036.meerkat.SignedEncryptedBallot\"\027" + + "\n\010ErrorMsg\022\013\n\003msg\030\001 \001(\tB\022\n\020meerkat.proto" + + "bufb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + meerkat.protobuf.Voting.getDescriptor(), + }, assigner); + internal_static_meerkat_ScannedData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_ScannedData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ScannedData_descriptor, + new java.lang.String[] { "Channel", "SignedEncryptedBallot", }); + internal_static_meerkat_ErrorMsg_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_meerkat_ErrorMsg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ErrorMsg_descriptor, + new java.lang.String[] { "Msg", }); + meerkat.protobuf.Voting.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/protobuf/Voting.java b/android-scanner/src/main/java/meerkat/protobuf/Voting.java new file mode 100644 index 0000000..0201180 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/protobuf/Voting.java @@ -0,0 +1,15529 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: meerkat/voting.proto + +package meerkat.protobuf; + +public final class Voting { + private Voting() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + * <pre> + * Type of the element data to be presented by UI + * </pre> + * + * Protobuf enum {@code meerkat.UIElementDataType} + */ + public enum UIElementDataType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * <code>TEXT = 0;</code> + */ + TEXT(0), + /** + * <code>IMAGE = 1;</code> + */ + IMAGE(1), + /** + * <code>VOICE = 2;</code> + */ + VOICE(2), + UNRECOGNIZED(-1), + ; + + /** + * <code>TEXT = 0;</code> + */ + public static final int TEXT_VALUE = 0; + /** + * <code>IMAGE = 1;</code> + */ + public static final int IMAGE_VALUE = 1; + /** + * <code>VOICE = 2;</code> + */ + public static final int VOICE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UIElementDataType valueOf(int value) { + return forNumber(value); + } + + public static UIElementDataType forNumber(int value) { + switch (value) { + case 0: return TEXT; + case 1: return IMAGE; + case 2: return VOICE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap<UIElementDataType> + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + UIElementDataType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<UIElementDataType>() { + public UIElementDataType findValueByNumber(int number) { + return UIElementDataType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return meerkat.protobuf.Voting.getDescriptor().getEnumTypes().get(0); + } + + private static final UIElementDataType[] VALUES = values(); + + public static UIElementDataType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UIElementDataType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:meerkat.UIElementDataType) + } + + /** + * <pre> + * Type of question + * </pre> + * + * Protobuf enum {@code meerkat.QuestionType} + */ + public enum QuestionType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * <code>MULTIPLE_CHOICE = 0;</code> + */ + MULTIPLE_CHOICE(0), + /** + * <code>MULTIPLE_SELECTION = 1;</code> + */ + MULTIPLE_SELECTION(1), + /** + * <code>ORDER = 2;</code> + */ + ORDER(2), + UNRECOGNIZED(-1), + ; + + /** + * <code>MULTIPLE_CHOICE = 0;</code> + */ + public static final int MULTIPLE_CHOICE_VALUE = 0; + /** + * <code>MULTIPLE_SELECTION = 1;</code> + */ + public static final int MULTIPLE_SELECTION_VALUE = 1; + /** + * <code>ORDER = 2;</code> + */ + public static final int ORDER_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QuestionType valueOf(int value) { + return forNumber(value); + } + + public static QuestionType forNumber(int value) { + switch (value) { + case 0: return MULTIPLE_CHOICE; + case 1: return MULTIPLE_SELECTION; + case 2: return ORDER; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap<QuestionType> + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + QuestionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap<QuestionType>() { + public QuestionType findValueByNumber(int number) { + return QuestionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return meerkat.protobuf.Voting.getDescriptor().getEnumTypes().get(1); + } + + private static final QuestionType[] VALUES = values(); + + public static QuestionType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QuestionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:meerkat.QuestionType) + } + + public interface UIElementOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.UIElement) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + int getTypeValue(); + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + meerkat.protobuf.Voting.UIElementDataType getType(); + + /** + * <code>bytes data = 2;</code> + */ + com.google.protobuf.ByteString getData(); + } + /** + * <pre> + * An element to be presented by UI + * </pre> + * + * Protobuf type {@code meerkat.UIElement} + */ + public static final class UIElement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.UIElement) + UIElementOrBuilder { + // Use UIElement.newBuilder() to construct. + private UIElement(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private UIElement() { + type_ = 0; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private UIElement( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.UIElement.class, meerkat.protobuf.Voting.UIElement.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + public int getTypeValue() { + return type_; + } + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + public meerkat.protobuf.Voting.UIElementDataType getType() { + meerkat.protobuf.Voting.UIElementDataType result = meerkat.protobuf.Voting.UIElementDataType.valueOf(type_); + return result == null ? meerkat.protobuf.Voting.UIElementDataType.UNRECOGNIZED : result; + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_; + /** + * <code>bytes data = 2;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != meerkat.protobuf.Voting.UIElementDataType.TEXT.getNumber()) { + output.writeEnum(1, type_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != meerkat.protobuf.Voting.UIElementDataType.TEXT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.UIElement)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.UIElement other = (meerkat.protobuf.Voting.UIElement) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getData() + .equals(other.getData()); + return result; + } + + @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) + type_; + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.UIElement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.UIElement parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.UIElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.UIElement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.UIElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.UIElement parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.UIElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.UIElement parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.UIElement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.UIElement parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.UIElement prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * An element to be presented by UI + * </pre> + * + * Protobuf type {@code meerkat.UIElement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.UIElement) + meerkat.protobuf.Voting.UIElementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.UIElement.class, meerkat.protobuf.Voting.UIElement.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.UIElement.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = 0; + + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_UIElement_descriptor; + } + + public meerkat.protobuf.Voting.UIElement getDefaultInstanceForType() { + return meerkat.protobuf.Voting.UIElement.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.UIElement build() { + meerkat.protobuf.Voting.UIElement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.UIElement buildPartial() { + meerkat.protobuf.Voting.UIElement result = new meerkat.protobuf.Voting.UIElement(this); + result.type_ = type_; + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.UIElement) { + return mergeFrom((meerkat.protobuf.Voting.UIElement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.UIElement other) { + if (other == meerkat.protobuf.Voting.UIElement.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.UIElement parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.UIElement) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + public int getTypeValue() { + return type_; + } + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + public meerkat.protobuf.Voting.UIElementDataType getType() { + meerkat.protobuf.Voting.UIElementDataType result = meerkat.protobuf.Voting.UIElementDataType.valueOf(type_); + return result == null ? meerkat.protobuf.Voting.UIElementDataType.UNRECOGNIZED : result; + } + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + public Builder setType(meerkat.protobuf.Voting.UIElementDataType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * <code>.meerkat.UIElementDataType type = 1;</code> + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>bytes data = 2;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * <code>bytes data = 2;</code> + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * <code>bytes data = 2;</code> + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.UIElement) + } + + // @@protoc_insertion_point(class_scope:meerkat.UIElement) + private static final meerkat.protobuf.Voting.UIElement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.UIElement(); + } + + public static meerkat.protobuf.Voting.UIElement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<UIElement> + PARSER = new com.google.protobuf.AbstractParser<UIElement>() { + public UIElement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UIElement(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<UIElement> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<UIElement> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.UIElement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BallotQuestionOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BallotQuestion) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>bool is_mandatory = 1;</code> + */ + boolean getIsMandatory(); + + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + boolean hasQuestion(); + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + meerkat.protobuf.Voting.UIElement getQuestion(); + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + meerkat.protobuf.Voting.UIElementOrBuilder getQuestionOrBuilder(); + + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + boolean hasDescription(); + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + meerkat.protobuf.Voting.UIElement getDescription(); + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + meerkat.protobuf.Voting.UIElementOrBuilder getDescriptionOrBuilder(); + + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + java.util.List<meerkat.protobuf.Voting.UIElement> + getAnswerList(); + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + meerkat.protobuf.Voting.UIElement getAnswer(int index); + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + int getAnswerCount(); + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + java.util.List<? extends meerkat.protobuf.Voting.UIElementOrBuilder> + getAnswerOrBuilderList(); + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + meerkat.protobuf.Voting.UIElementOrBuilder getAnswerOrBuilder( + int index); + } + /** + * <pre> + * A question in the ballot + * is_mandatory determines whether the question may be skipped with no answer + * description might hold information/guidlines for the voter + * </pre> + * + * Protobuf type {@code meerkat.BallotQuestion} + */ + public static final class BallotQuestion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BallotQuestion) + BallotQuestionOrBuilder { + // Use BallotQuestion.newBuilder() to construct. + private BallotQuestion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private BallotQuestion() { + isMandatory_ = false; + answer_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BallotQuestion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + isMandatory_ = input.readBool(); + break; + } + case 18: { + meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; + if (question_ != null) { + subBuilder = question_.toBuilder(); + } + question_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(question_); + question_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; + if (description_ != null) { + subBuilder = description_.toBuilder(); + } + description_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(description_); + description_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + answer_ = new java.util.ArrayList<meerkat.protobuf.Voting.UIElement>(); + mutable_bitField0_ |= 0x00000008; + } + answer_.add( + input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + answer_ = java.util.Collections.unmodifiableList(answer_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotQuestion.class, meerkat.protobuf.Voting.BallotQuestion.Builder.class); + } + + private int bitField0_; + public static final int IS_MANDATORY_FIELD_NUMBER = 1; + private boolean isMandatory_; + /** + * <code>bool is_mandatory = 1;</code> + */ + public boolean getIsMandatory() { + return isMandatory_; + } + + public static final int QUESTION_FIELD_NUMBER = 2; + private meerkat.protobuf.Voting.UIElement question_; + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public boolean hasQuestion() { + return question_ != null; + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public meerkat.protobuf.Voting.UIElement getQuestion() { + return question_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : question_; + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getQuestionOrBuilder() { + return getQuestion(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private meerkat.protobuf.Voting.UIElement description_; + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public boolean hasDescription() { + return description_ != null; + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public meerkat.protobuf.Voting.UIElement getDescription() { + return description_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : description_; + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getDescriptionOrBuilder() { + return getDescription(); + } + + public static final int ANSWER_FIELD_NUMBER = 4; + private java.util.List<meerkat.protobuf.Voting.UIElement> answer_; + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public java.util.List<meerkat.protobuf.Voting.UIElement> getAnswerList() { + return answer_; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.UIElementOrBuilder> + getAnswerOrBuilderList() { + return answer_; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public int getAnswerCount() { + return answer_.size(); + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public meerkat.protobuf.Voting.UIElement getAnswer(int index) { + return answer_.get(index); + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getAnswerOrBuilder( + int index) { + return answer_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (isMandatory_ != false) { + output.writeBool(1, isMandatory_); + } + if (question_ != null) { + output.writeMessage(2, getQuestion()); + } + if (description_ != null) { + output.writeMessage(3, getDescription()); + } + for (int i = 0; i < answer_.size(); i++) { + output.writeMessage(4, answer_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isMandatory_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, isMandatory_); + } + if (question_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQuestion()); + } + if (description_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDescription()); + } + for (int i = 0; i < answer_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, answer_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.BallotQuestion)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.BallotQuestion other = (meerkat.protobuf.Voting.BallotQuestion) obj; + + boolean result = true; + result = result && (getIsMandatory() + == other.getIsMandatory()); + result = result && (hasQuestion() == other.hasQuestion()); + if (hasQuestion()) { + result = result && getQuestion() + .equals(other.getQuestion()); + } + result = result && (hasDescription() == other.hasDescription()); + if (hasDescription()) { + result = result && getDescription() + .equals(other.getDescription()); + } + result = result && getAnswerList() + .equals(other.getAnswerList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IS_MANDATORY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMandatory()); + if (hasQuestion()) { + hash = (37 * hash) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (getAnswerCount() > 0) { + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswerList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.BallotQuestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotQuestion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotQuestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotQuestion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotQuestion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotQuestion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotQuestion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotQuestion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotQuestion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotQuestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.BallotQuestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * A question in the ballot + * is_mandatory determines whether the question may be skipped with no answer + * description might hold information/guidlines for the voter + * </pre> + * + * Protobuf type {@code meerkat.BallotQuestion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.BallotQuestion) + meerkat.protobuf.Voting.BallotQuestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotQuestion.class, meerkat.protobuf.Voting.BallotQuestion.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.BallotQuestion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAnswerFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + isMandatory_ = false; + + if (questionBuilder_ == null) { + question_ = null; + } else { + question_ = null; + questionBuilder_ = null; + } + if (descriptionBuilder_ == null) { + description_ = null; + } else { + description_ = null; + descriptionBuilder_ = null; + } + if (answerBuilder_ == null) { + answer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + answerBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotQuestion_descriptor; + } + + public meerkat.protobuf.Voting.BallotQuestion getDefaultInstanceForType() { + return meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.BallotQuestion build() { + meerkat.protobuf.Voting.BallotQuestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.BallotQuestion buildPartial() { + meerkat.protobuf.Voting.BallotQuestion result = new meerkat.protobuf.Voting.BallotQuestion(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.isMandatory_ = isMandatory_; + if (questionBuilder_ == null) { + result.question_ = question_; + } else { + result.question_ = questionBuilder_.build(); + } + if (descriptionBuilder_ == null) { + result.description_ = description_; + } else { + result.description_ = descriptionBuilder_.build(); + } + if (answerBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + answer_ = java.util.Collections.unmodifiableList(answer_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.answer_ = answer_; + } else { + result.answer_ = answerBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.BallotQuestion) { + return mergeFrom((meerkat.protobuf.Voting.BallotQuestion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.BallotQuestion other) { + if (other == meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()) return this; + if (other.getIsMandatory() != false) { + setIsMandatory(other.getIsMandatory()); + } + if (other.hasQuestion()) { + mergeQuestion(other.getQuestion()); + } + if (other.hasDescription()) { + mergeDescription(other.getDescription()); + } + if (answerBuilder_ == null) { + if (!other.answer_.isEmpty()) { + if (answer_.isEmpty()) { + answer_ = other.answer_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAnswerIsMutable(); + answer_.addAll(other.answer_); + } + onChanged(); + } + } else { + if (!other.answer_.isEmpty()) { + if (answerBuilder_.isEmpty()) { + answerBuilder_.dispose(); + answerBuilder_ = null; + answer_ = other.answer_; + bitField0_ = (bitField0_ & ~0x00000008); + answerBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnswerFieldBuilder() : null; + } else { + answerBuilder_.addAllMessages(other.answer_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.BallotQuestion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.BallotQuestion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private boolean isMandatory_ ; + /** + * <code>bool is_mandatory = 1;</code> + */ + public boolean getIsMandatory() { + return isMandatory_; + } + /** + * <code>bool is_mandatory = 1;</code> + */ + public Builder setIsMandatory(boolean value) { + + isMandatory_ = value; + onChanged(); + return this; + } + /** + * <code>bool is_mandatory = 1;</code> + */ + public Builder clearIsMandatory() { + + isMandatory_ = false; + onChanged(); + return this; + } + + private meerkat.protobuf.Voting.UIElement question_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> questionBuilder_; + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public boolean hasQuestion() { + return questionBuilder_ != null || question_ != null; + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public meerkat.protobuf.Voting.UIElement getQuestion() { + if (questionBuilder_ == null) { + return question_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : question_; + } else { + return questionBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public Builder setQuestion(meerkat.protobuf.Voting.UIElement value) { + if (questionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + onChanged(); + } else { + questionBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public Builder setQuestion( + meerkat.protobuf.Voting.UIElement.Builder builderForValue) { + if (questionBuilder_ == null) { + question_ = builderForValue.build(); + onChanged(); + } else { + questionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public Builder mergeQuestion(meerkat.protobuf.Voting.UIElement value) { + if (questionBuilder_ == null) { + if (question_ != null) { + question_ = + meerkat.protobuf.Voting.UIElement.newBuilder(question_).mergeFrom(value).buildPartial(); + } else { + question_ = value; + } + onChanged(); + } else { + questionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public Builder clearQuestion() { + if (questionBuilder_ == null) { + question_ = null; + onChanged(); + } else { + question_ = null; + questionBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public meerkat.protobuf.Voting.UIElement.Builder getQuestionBuilder() { + + onChanged(); + return getQuestionFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getQuestionOrBuilder() { + if (questionBuilder_ != null) { + return questionBuilder_.getMessageOrBuilder(); + } else { + return question_ == null ? + meerkat.protobuf.Voting.UIElement.getDefaultInstance() : question_; + } + } + /** + * <code>.meerkat.UIElement question = 2;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> + getQuestionFieldBuilder() { + if (questionBuilder_ == null) { + questionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( + getQuestion(), + getParentForChildren(), + isClean()); + question_ = null; + } + return questionBuilder_; + } + + private meerkat.protobuf.Voting.UIElement description_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> descriptionBuilder_; + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public boolean hasDescription() { + return descriptionBuilder_ != null || description_ != null; + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public meerkat.protobuf.Voting.UIElement getDescription() { + if (descriptionBuilder_ == null) { + return description_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : description_; + } else { + return descriptionBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public Builder setDescription(meerkat.protobuf.Voting.UIElement value) { + if (descriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + onChanged(); + } else { + descriptionBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public Builder setDescription( + meerkat.protobuf.Voting.UIElement.Builder builderForValue) { + if (descriptionBuilder_ == null) { + description_ = builderForValue.build(); + onChanged(); + } else { + descriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public Builder mergeDescription(meerkat.protobuf.Voting.UIElement value) { + if (descriptionBuilder_ == null) { + if (description_ != null) { + description_ = + meerkat.protobuf.Voting.UIElement.newBuilder(description_).mergeFrom(value).buildPartial(); + } else { + description_ = value; + } + onChanged(); + } else { + descriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public Builder clearDescription() { + if (descriptionBuilder_ == null) { + description_ = null; + onChanged(); + } else { + description_ = null; + descriptionBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public meerkat.protobuf.Voting.UIElement.Builder getDescriptionBuilder() { + + onChanged(); + return getDescriptionFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getDescriptionOrBuilder() { + if (descriptionBuilder_ != null) { + return descriptionBuilder_.getMessageOrBuilder(); + } else { + return description_ == null ? + meerkat.protobuf.Voting.UIElement.getDefaultInstance() : description_; + } + } + /** + * <code>.meerkat.UIElement description = 3;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> + getDescriptionFieldBuilder() { + if (descriptionBuilder_ == null) { + descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( + getDescription(), + getParentForChildren(), + isClean()); + description_ = null; + } + return descriptionBuilder_; + } + + private java.util.List<meerkat.protobuf.Voting.UIElement> answer_ = + java.util.Collections.emptyList(); + private void ensureAnswerIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + answer_ = new java.util.ArrayList<meerkat.protobuf.Voting.UIElement>(answer_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> answerBuilder_; + + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public java.util.List<meerkat.protobuf.Voting.UIElement> getAnswerList() { + if (answerBuilder_ == null) { + return java.util.Collections.unmodifiableList(answer_); + } else { + return answerBuilder_.getMessageList(); + } + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public int getAnswerCount() { + if (answerBuilder_ == null) { + return answer_.size(); + } else { + return answerBuilder_.getCount(); + } + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public meerkat.protobuf.Voting.UIElement getAnswer(int index) { + if (answerBuilder_ == null) { + return answer_.get(index); + } else { + return answerBuilder_.getMessage(index); + } + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder setAnswer( + int index, meerkat.protobuf.Voting.UIElement value) { + if (answerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswerIsMutable(); + answer_.set(index, value); + onChanged(); + } else { + answerBuilder_.setMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder setAnswer( + int index, meerkat.protobuf.Voting.UIElement.Builder builderForValue) { + if (answerBuilder_ == null) { + ensureAnswerIsMutable(); + answer_.set(index, builderForValue.build()); + onChanged(); + } else { + answerBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder addAnswer(meerkat.protobuf.Voting.UIElement value) { + if (answerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswerIsMutable(); + answer_.add(value); + onChanged(); + } else { + answerBuilder_.addMessage(value); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder addAnswer( + int index, meerkat.protobuf.Voting.UIElement value) { + if (answerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswerIsMutable(); + answer_.add(index, value); + onChanged(); + } else { + answerBuilder_.addMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder addAnswer( + meerkat.protobuf.Voting.UIElement.Builder builderForValue) { + if (answerBuilder_ == null) { + ensureAnswerIsMutable(); + answer_.add(builderForValue.build()); + onChanged(); + } else { + answerBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder addAnswer( + int index, meerkat.protobuf.Voting.UIElement.Builder builderForValue) { + if (answerBuilder_ == null) { + ensureAnswerIsMutable(); + answer_.add(index, builderForValue.build()); + onChanged(); + } else { + answerBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder addAllAnswer( + java.lang.Iterable<? extends meerkat.protobuf.Voting.UIElement> values) { + if (answerBuilder_ == null) { + ensureAnswerIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, answer_); + onChanged(); + } else { + answerBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder clearAnswer() { + if (answerBuilder_ == null) { + answer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + answerBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public Builder removeAnswer(int index) { + if (answerBuilder_ == null) { + ensureAnswerIsMutable(); + answer_.remove(index); + onChanged(); + } else { + answerBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public meerkat.protobuf.Voting.UIElement.Builder getAnswerBuilder( + int index) { + return getAnswerFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getAnswerOrBuilder( + int index) { + if (answerBuilder_ == null) { + return answer_.get(index); } else { + return answerBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.UIElementOrBuilder> + getAnswerOrBuilderList() { + if (answerBuilder_ != null) { + return answerBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(answer_); + } + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public meerkat.protobuf.Voting.UIElement.Builder addAnswerBuilder() { + return getAnswerFieldBuilder().addBuilder( + meerkat.protobuf.Voting.UIElement.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public meerkat.protobuf.Voting.UIElement.Builder addAnswerBuilder( + int index) { + return getAnswerFieldBuilder().addBuilder( + index, meerkat.protobuf.Voting.UIElement.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.UIElement answer = 4;</code> + */ + public java.util.List<meerkat.protobuf.Voting.UIElement.Builder> + getAnswerBuilderList() { + return getAnswerFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> + getAnswerFieldBuilder() { + if (answerBuilder_ == null) { + answerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( + answer_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + answer_ = null; + } + return answerBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BallotQuestion) + } + + // @@protoc_insertion_point(class_scope:meerkat.BallotQuestion) + private static final meerkat.protobuf.Voting.BallotQuestion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotQuestion(); + } + + public static meerkat.protobuf.Voting.BallotQuestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<BallotQuestion> + PARSER = new com.google.protobuf.AbstractParser<BallotQuestion>() { + public BallotQuestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BallotQuestion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<BallotQuestion> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<BallotQuestion> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.BallotQuestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QuestionClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.QuestionCluster) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + boolean hasClusterDescription(); + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + meerkat.protobuf.Voting.UIElement getClusterDescription(); + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + meerkat.protobuf.Voting.UIElementOrBuilder getClusterDescriptionOrBuilder(); + + /** + * <code>repeated int32 question_index = 2;</code> + */ + java.util.List<java.lang.Integer> getQuestionIndexList(); + /** + * <code>repeated int32 question_index = 2;</code> + */ + int getQuestionIndexCount(); + /** + * <code>repeated int32 question_index = 2;</code> + */ + int getQuestionIndex(int index); + } + /** + * Protobuf type {@code meerkat.QuestionCluster} + */ + public static final class QuestionCluster extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.QuestionCluster) + QuestionClusterOrBuilder { + // Use QuestionCluster.newBuilder() to construct. + private QuestionCluster(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private QuestionCluster() { + questionIndex_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private QuestionCluster( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; + if (clusterDescription_ != null) { + subBuilder = clusterDescription_.toBuilder(); + } + clusterDescription_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(clusterDescription_); + clusterDescription_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); + mutable_bitField0_ |= 0x00000002; + } + questionIndex_.add(input.readInt32()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + questionIndex_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.QuestionCluster.class, meerkat.protobuf.Voting.QuestionCluster.Builder.class); + } + + private int bitField0_; + public static final int CLUSTER_DESCRIPTION_FIELD_NUMBER = 1; + private meerkat.protobuf.Voting.UIElement clusterDescription_; + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public boolean hasClusterDescription() { + return clusterDescription_ != null; + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElement getClusterDescription() { + return clusterDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : clusterDescription_; + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getClusterDescriptionOrBuilder() { + return getClusterDescription(); + } + + public static final int QUESTION_INDEX_FIELD_NUMBER = 2; + private java.util.List<java.lang.Integer> questionIndex_; + /** + * <code>repeated int32 question_index = 2;</code> + */ + public java.util.List<java.lang.Integer> + getQuestionIndexList() { + return questionIndex_; + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public int getQuestionIndexCount() { + return questionIndex_.size(); + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public int getQuestionIndex(int index) { + return questionIndex_.get(index); + } + private int questionIndexMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (clusterDescription_ != null) { + output.writeMessage(1, getClusterDescription()); + } + if (getQuestionIndexList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(questionIndexMemoizedSerializedSize); + } + for (int i = 0; i < questionIndex_.size(); i++) { + output.writeInt32NoTag(questionIndex_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clusterDescription_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getClusterDescription()); + } + { + int dataSize = 0; + for (int i = 0; i < questionIndex_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(questionIndex_.get(i)); + } + size += dataSize; + if (!getQuestionIndexList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + questionIndexMemoizedSerializedSize = dataSize; + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.QuestionCluster)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.QuestionCluster other = (meerkat.protobuf.Voting.QuestionCluster) obj; + + boolean result = true; + result = result && (hasClusterDescription() == other.hasClusterDescription()); + if (hasClusterDescription()) { + result = result && getClusterDescription() + .equals(other.getClusterDescription()); + } + result = result && getQuestionIndexList() + .equals(other.getQuestionIndexList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasClusterDescription()) { + hash = (37 * hash) + CLUSTER_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getClusterDescription().hashCode(); + } + if (getQuestionIndexCount() > 0) { + hash = (37 * hash) + QUESTION_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getQuestionIndexList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.QuestionCluster parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.QuestionCluster parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.QuestionCluster parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.QuestionCluster parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.QuestionCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.QuestionCluster parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.QuestionCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.QuestionCluster parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.QuestionCluster parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.QuestionCluster parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.QuestionCluster prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.QuestionCluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.QuestionCluster) + meerkat.protobuf.Voting.QuestionClusterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.QuestionCluster.class, meerkat.protobuf.Voting.QuestionCluster.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.QuestionCluster.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (clusterDescriptionBuilder_ == null) { + clusterDescription_ = null; + } else { + clusterDescription_ = null; + clusterDescriptionBuilder_ = null; + } + questionIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_QuestionCluster_descriptor; + } + + public meerkat.protobuf.Voting.QuestionCluster getDefaultInstanceForType() { + return meerkat.protobuf.Voting.QuestionCluster.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.QuestionCluster build() { + meerkat.protobuf.Voting.QuestionCluster result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.QuestionCluster buildPartial() { + meerkat.protobuf.Voting.QuestionCluster result = new meerkat.protobuf.Voting.QuestionCluster(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (clusterDescriptionBuilder_ == null) { + result.clusterDescription_ = clusterDescription_; + } else { + result.clusterDescription_ = clusterDescriptionBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.questionIndex_ = questionIndex_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.QuestionCluster) { + return mergeFrom((meerkat.protobuf.Voting.QuestionCluster)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.QuestionCluster other) { + if (other == meerkat.protobuf.Voting.QuestionCluster.getDefaultInstance()) return this; + if (other.hasClusterDescription()) { + mergeClusterDescription(other.getClusterDescription()); + } + if (!other.questionIndex_.isEmpty()) { + if (questionIndex_.isEmpty()) { + questionIndex_ = other.questionIndex_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureQuestionIndexIsMutable(); + questionIndex_.addAll(other.questionIndex_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.QuestionCluster parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.QuestionCluster) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private meerkat.protobuf.Voting.UIElement clusterDescription_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> clusterDescriptionBuilder_; + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public boolean hasClusterDescription() { + return clusterDescriptionBuilder_ != null || clusterDescription_ != null; + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElement getClusterDescription() { + if (clusterDescriptionBuilder_ == null) { + return clusterDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : clusterDescription_; + } else { + return clusterDescriptionBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public Builder setClusterDescription(meerkat.protobuf.Voting.UIElement value) { + if (clusterDescriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clusterDescription_ = value; + onChanged(); + } else { + clusterDescriptionBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public Builder setClusterDescription( + meerkat.protobuf.Voting.UIElement.Builder builderForValue) { + if (clusterDescriptionBuilder_ == null) { + clusterDescription_ = builderForValue.build(); + onChanged(); + } else { + clusterDescriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public Builder mergeClusterDescription(meerkat.protobuf.Voting.UIElement value) { + if (clusterDescriptionBuilder_ == null) { + if (clusterDescription_ != null) { + clusterDescription_ = + meerkat.protobuf.Voting.UIElement.newBuilder(clusterDescription_).mergeFrom(value).buildPartial(); + } else { + clusterDescription_ = value; + } + onChanged(); + } else { + clusterDescriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public Builder clearClusterDescription() { + if (clusterDescriptionBuilder_ == null) { + clusterDescription_ = null; + onChanged(); + } else { + clusterDescription_ = null; + clusterDescriptionBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElement.Builder getClusterDescriptionBuilder() { + + onChanged(); + return getClusterDescriptionFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getClusterDescriptionOrBuilder() { + if (clusterDescriptionBuilder_ != null) { + return clusterDescriptionBuilder_.getMessageOrBuilder(); + } else { + return clusterDescription_ == null ? + meerkat.protobuf.Voting.UIElement.getDefaultInstance() : clusterDescription_; + } + } + /** + * <code>.meerkat.UIElement cluster_description = 1;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> + getClusterDescriptionFieldBuilder() { + if (clusterDescriptionBuilder_ == null) { + clusterDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( + getClusterDescription(), + getParentForChildren(), + isClean()); + clusterDescription_ = null; + } + return clusterDescriptionBuilder_; + } + + private java.util.List<java.lang.Integer> questionIndex_ = java.util.Collections.emptyList(); + private void ensureQuestionIndexIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + questionIndex_ = new java.util.ArrayList<java.lang.Integer>(questionIndex_); + bitField0_ |= 0x00000002; + } + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public java.util.List<java.lang.Integer> + getQuestionIndexList() { + return java.util.Collections.unmodifiableList(questionIndex_); + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public int getQuestionIndexCount() { + return questionIndex_.size(); + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public int getQuestionIndex(int index) { + return questionIndex_.get(index); + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public Builder setQuestionIndex( + int index, int value) { + ensureQuestionIndexIsMutable(); + questionIndex_.set(index, value); + onChanged(); + return this; + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public Builder addQuestionIndex(int value) { + ensureQuestionIndexIsMutable(); + questionIndex_.add(value); + onChanged(); + return this; + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public Builder addAllQuestionIndex( + java.lang.Iterable<? extends java.lang.Integer> values) { + ensureQuestionIndexIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, questionIndex_); + onChanged(); + return this; + } + /** + * <code>repeated int32 question_index = 2;</code> + */ + public Builder clearQuestionIndex() { + questionIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.QuestionCluster) + } + + // @@protoc_insertion_point(class_scope:meerkat.QuestionCluster) + private static final meerkat.protobuf.Voting.QuestionCluster DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.QuestionCluster(); + } + + public static meerkat.protobuf.Voting.QuestionCluster getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<QuestionCluster> + PARSER = new com.google.protobuf.AbstractParser<QuestionCluster>() { + public QuestionCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuestionCluster(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<QuestionCluster> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<QuestionCluster> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.QuestionCluster getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ChannelOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.Channel) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + boolean hasChannelDescription(); + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + meerkat.protobuf.Voting.UIElement getChannelDescription(); + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + meerkat.protobuf.Voting.UIElementOrBuilder getChannelDescriptionOrBuilder(); + + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + java.util.List<java.lang.Integer> getClusterIndexList(); + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + int getClusterIndexCount(); + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + int getClusterIndex(int index); + } + /** + * Protobuf type {@code meerkat.Channel} + */ + public static final class Channel extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.Channel) + ChannelOrBuilder { + // Use Channel.newBuilder() to construct. + private Channel(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private Channel() { + clusterIndex_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Channel( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.Voting.UIElement.Builder subBuilder = null; + if (channelDescription_ != null) { + subBuilder = channelDescription_.toBuilder(); + } + channelDescription_ = input.readMessage(meerkat.protobuf.Voting.UIElement.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(channelDescription_); + channelDescription_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + clusterIndex_ = new java.util.ArrayList<java.lang.Integer>(); + mutable_bitField0_ |= 0x00000002; + } + clusterIndex_.add(input.readInt32()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + clusterIndex_ = new java.util.ArrayList<java.lang.Integer>(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + clusterIndex_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + clusterIndex_ = java.util.Collections.unmodifiableList(clusterIndex_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_Channel_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_Channel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.Channel.class, meerkat.protobuf.Voting.Channel.Builder.class); + } + + private int bitField0_; + public static final int CHANNEL_DESCRIPTION_FIELD_NUMBER = 1; + private meerkat.protobuf.Voting.UIElement channelDescription_; + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public boolean hasChannelDescription() { + return channelDescription_ != null; + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElement getChannelDescription() { + return channelDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : channelDescription_; + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getChannelDescriptionOrBuilder() { + return getChannelDescription(); + } + + public static final int CLUSTER_INDEX_FIELD_NUMBER = 2; + private java.util.List<java.lang.Integer> clusterIndex_; + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public java.util.List<java.lang.Integer> + getClusterIndexList() { + return clusterIndex_; + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public int getClusterIndexCount() { + return clusterIndex_.size(); + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public int getClusterIndex(int index) { + return clusterIndex_.get(index); + } + private int clusterIndexMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (channelDescription_ != null) { + output.writeMessage(1, getChannelDescription()); + } + if (getClusterIndexList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(clusterIndexMemoizedSerializedSize); + } + for (int i = 0; i < clusterIndex_.size(); i++) { + output.writeInt32NoTag(clusterIndex_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channelDescription_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getChannelDescription()); + } + { + int dataSize = 0; + for (int i = 0; i < clusterIndex_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(clusterIndex_.get(i)); + } + size += dataSize; + if (!getClusterIndexList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + clusterIndexMemoizedSerializedSize = dataSize; + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.Channel)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.Channel other = (meerkat.protobuf.Voting.Channel) obj; + + boolean result = true; + result = result && (hasChannelDescription() == other.hasChannelDescription()); + if (hasChannelDescription()) { + result = result && getChannelDescription() + .equals(other.getChannelDescription()); + } + result = result && getClusterIndexList() + .equals(other.getClusterIndexList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasChannelDescription()) { + hash = (37 * hash) + CHANNEL_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getChannelDescription().hashCode(); + } + if (getClusterIndexCount() > 0) { + hash = (37 * hash) + CLUSTER_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getClusterIndexList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.Channel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.Channel parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.Channel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.Channel parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.Channel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.Channel parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.Channel parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.Channel parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.Channel parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.Channel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.Channel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.Channel} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.Channel) + meerkat.protobuf.Voting.ChannelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_Channel_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_Channel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.Channel.class, meerkat.protobuf.Voting.Channel.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.Channel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (channelDescriptionBuilder_ == null) { + channelDescription_ = null; + } else { + channelDescription_ = null; + channelDescriptionBuilder_ = null; + } + clusterIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_Channel_descriptor; + } + + public meerkat.protobuf.Voting.Channel getDefaultInstanceForType() { + return meerkat.protobuf.Voting.Channel.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.Channel build() { + meerkat.protobuf.Voting.Channel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.Channel buildPartial() { + meerkat.protobuf.Voting.Channel result = new meerkat.protobuf.Voting.Channel(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (channelDescriptionBuilder_ == null) { + result.channelDescription_ = channelDescription_; + } else { + result.channelDescription_ = channelDescriptionBuilder_.build(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + clusterIndex_ = java.util.Collections.unmodifiableList(clusterIndex_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.clusterIndex_ = clusterIndex_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.Channel) { + return mergeFrom((meerkat.protobuf.Voting.Channel)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.Channel other) { + if (other == meerkat.protobuf.Voting.Channel.getDefaultInstance()) return this; + if (other.hasChannelDescription()) { + mergeChannelDescription(other.getChannelDescription()); + } + if (!other.clusterIndex_.isEmpty()) { + if (clusterIndex_.isEmpty()) { + clusterIndex_ = other.clusterIndex_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureClusterIndexIsMutable(); + clusterIndex_.addAll(other.clusterIndex_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.Channel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.Channel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private meerkat.protobuf.Voting.UIElement channelDescription_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> channelDescriptionBuilder_; + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public boolean hasChannelDescription() { + return channelDescriptionBuilder_ != null || channelDescription_ != null; + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElement getChannelDescription() { + if (channelDescriptionBuilder_ == null) { + return channelDescription_ == null ? meerkat.protobuf.Voting.UIElement.getDefaultInstance() : channelDescription_; + } else { + return channelDescriptionBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public Builder setChannelDescription(meerkat.protobuf.Voting.UIElement value) { + if (channelDescriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelDescription_ = value; + onChanged(); + } else { + channelDescriptionBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public Builder setChannelDescription( + meerkat.protobuf.Voting.UIElement.Builder builderForValue) { + if (channelDescriptionBuilder_ == null) { + channelDescription_ = builderForValue.build(); + onChanged(); + } else { + channelDescriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public Builder mergeChannelDescription(meerkat.protobuf.Voting.UIElement value) { + if (channelDescriptionBuilder_ == null) { + if (channelDescription_ != null) { + channelDescription_ = + meerkat.protobuf.Voting.UIElement.newBuilder(channelDescription_).mergeFrom(value).buildPartial(); + } else { + channelDescription_ = value; + } + onChanged(); + } else { + channelDescriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public Builder clearChannelDescription() { + if (channelDescriptionBuilder_ == null) { + channelDescription_ = null; + onChanged(); + } else { + channelDescription_ = null; + channelDescriptionBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElement.Builder getChannelDescriptionBuilder() { + + onChanged(); + return getChannelDescriptionFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + public meerkat.protobuf.Voting.UIElementOrBuilder getChannelDescriptionOrBuilder() { + if (channelDescriptionBuilder_ != null) { + return channelDescriptionBuilder_.getMessageOrBuilder(); + } else { + return channelDescription_ == null ? + meerkat.protobuf.Voting.UIElement.getDefaultInstance() : channelDescription_; + } + } + /** + * <code>.meerkat.UIElement channel_description = 1;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder> + getChannelDescriptionFieldBuilder() { + if (channelDescriptionBuilder_ == null) { + channelDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.UIElement, meerkat.protobuf.Voting.UIElement.Builder, meerkat.protobuf.Voting.UIElementOrBuilder>( + getChannelDescription(), + getParentForChildren(), + isClean()); + channelDescription_ = null; + } + return channelDescriptionBuilder_; + } + + private java.util.List<java.lang.Integer> clusterIndex_ = java.util.Collections.emptyList(); + private void ensureClusterIndexIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + clusterIndex_ = new java.util.ArrayList<java.lang.Integer>(clusterIndex_); + bitField0_ |= 0x00000002; + } + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public java.util.List<java.lang.Integer> + getClusterIndexList() { + return java.util.Collections.unmodifiableList(clusterIndex_); + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public int getClusterIndexCount() { + return clusterIndex_.size(); + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public int getClusterIndex(int index) { + return clusterIndex_.get(index); + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public Builder setClusterIndex( + int index, int value) { + ensureClusterIndexIsMutable(); + clusterIndex_.set(index, value); + onChanged(); + return this; + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public Builder addClusterIndex(int value) { + ensureClusterIndexIsMutable(); + clusterIndex_.add(value); + onChanged(); + return this; + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public Builder addAllClusterIndex( + java.lang.Iterable<? extends java.lang.Integer> values) { + ensureClusterIndexIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, clusterIndex_); + onChanged(); + return this; + } + /** + * <code>repeated int32 cluster_index = 2;</code> + */ + public Builder clearClusterIndex() { + clusterIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.Channel) + } + + // @@protoc_insertion_point(class_scope:meerkat.Channel) + private static final meerkat.protobuf.Voting.Channel DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.Channel(); + } + + public static meerkat.protobuf.Voting.Channel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<Channel> + PARSER = new com.google.protobuf.AbstractParser<Channel>() { + public Channel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Channel(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<Channel> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<Channel> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.Channel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BallotAnswerOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BallotAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + java.util.List<java.lang.Long> getAnswerList(); + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + int getAnswerCount(); + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + long getAnswer(int index); + } + /** + * <pre> + * An answer to a specific ballot question. + * The answer is a vector of signed integers, + * to encompass voting schemes such as ranked voting + * and STV. + * </pre> + * + * Protobuf type {@code meerkat.BallotAnswer} + */ + public static final class BallotAnswer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BallotAnswer) + BallotAnswerOrBuilder { + // Use BallotAnswer.newBuilder() to construct. + private BallotAnswer(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private BallotAnswer() { + answer_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BallotAnswer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + answer_ = new java.util.ArrayList<java.lang.Long>(); + mutable_bitField0_ |= 0x00000001; + } + answer_.add(input.readSInt64()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + answer_ = new java.util.ArrayList<java.lang.Long>(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + answer_.add(input.readSInt64()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + answer_ = java.util.Collections.unmodifiableList(answer_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotAnswer.class, meerkat.protobuf.Voting.BallotAnswer.Builder.class); + } + + public static final int ANSWER_FIELD_NUMBER = 1; + private java.util.List<java.lang.Long> answer_; + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public java.util.List<java.lang.Long> + getAnswerList() { + return answer_; + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public int getAnswerCount() { + return answer_.size(); + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public long getAnswer(int index) { + return answer_.get(index); + } + private int answerMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getAnswerList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(answerMemoizedSerializedSize); + } + for (int i = 0; i < answer_.size(); i++) { + output.writeSInt64NoTag(answer_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < answer_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeSInt64SizeNoTag(answer_.get(i)); + } + size += dataSize; + if (!getAnswerList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + answerMemoizedSerializedSize = dataSize; + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.BallotAnswer)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.BallotAnswer other = (meerkat.protobuf.Voting.BallotAnswer) obj; + + boolean result = true; + result = result && getAnswerList() + .equals(other.getAnswerList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAnswerCount() > 0) { + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswerList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.BallotAnswer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotAnswer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotAnswer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotAnswer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotAnswer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotAnswer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.BallotAnswer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * An answer to a specific ballot question. + * The answer is a vector of signed integers, + * to encompass voting schemes such as ranked voting + * and STV. + * </pre> + * + * Protobuf type {@code meerkat.BallotAnswer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.BallotAnswer) + meerkat.protobuf.Voting.BallotAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotAnswer.class, meerkat.protobuf.Voting.BallotAnswer.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.BallotAnswer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + answer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswer_descriptor; + } + + public meerkat.protobuf.Voting.BallotAnswer getDefaultInstanceForType() { + return meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.BallotAnswer build() { + meerkat.protobuf.Voting.BallotAnswer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.BallotAnswer buildPartial() { + meerkat.protobuf.Voting.BallotAnswer result = new meerkat.protobuf.Voting.BallotAnswer(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + answer_ = java.util.Collections.unmodifiableList(answer_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.answer_ = answer_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.BallotAnswer) { + return mergeFrom((meerkat.protobuf.Voting.BallotAnswer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.BallotAnswer other) { + if (other == meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance()) return this; + if (!other.answer_.isEmpty()) { + if (answer_.isEmpty()) { + answer_ = other.answer_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAnswerIsMutable(); + answer_.addAll(other.answer_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.BallotAnswer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.BallotAnswer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List<java.lang.Long> answer_ = java.util.Collections.emptyList(); + private void ensureAnswerIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + answer_ = new java.util.ArrayList<java.lang.Long>(answer_); + bitField0_ |= 0x00000001; + } + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public java.util.List<java.lang.Long> + getAnswerList() { + return java.util.Collections.unmodifiableList(answer_); + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public int getAnswerCount() { + return answer_.size(); + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public long getAnswer(int index) { + return answer_.get(index); + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public Builder setAnswer( + int index, long value) { + ensureAnswerIsMutable(); + answer_.set(index, value); + onChanged(); + return this; + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public Builder addAnswer(long value) { + ensureAnswerIsMutable(); + answer_.add(value); + onChanged(); + return this; + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public Builder addAllAnswer( + java.lang.Iterable<? extends java.lang.Long> values) { + ensureAnswerIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, answer_); + onChanged(); + return this; + } + /** + * <code>repeated sint64 answer = 1 [packed = true];</code> + */ + public Builder clearAnswer() { + answer_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BallotAnswer) + } + + // @@protoc_insertion_point(class_scope:meerkat.BallotAnswer) + private static final meerkat.protobuf.Voting.BallotAnswer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotAnswer(); + } + + public static meerkat.protobuf.Voting.BallotAnswer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<BallotAnswer> + PARSER = new com.google.protobuf.AbstractParser<BallotAnswer>() { + public BallotAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BallotAnswer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<BallotAnswer> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<BallotAnswer> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.BallotAnswer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PlaintextBallotOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.PlaintextBallot) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + long getSerialNumber(); + + /** + * <code>bytes channel_identifier = 2;</code> + */ + com.google.protobuf.ByteString getChannelIdentifier(); + + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + java.util.List<meerkat.protobuf.Voting.BallotAnswer> + getAnswersList(); + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + meerkat.protobuf.Voting.BallotAnswer getAnswers(int index); + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + int getAnswersCount(); + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + java.util.List<? extends meerkat.protobuf.Voting.BallotAnswerOrBuilder> + getAnswersOrBuilderList(); + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + meerkat.protobuf.Voting.BallotAnswerOrBuilder getAnswersOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.PlaintextBallot} + */ + public static final class PlaintextBallot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.PlaintextBallot) + PlaintextBallotOrBuilder { + // Use PlaintextBallot.newBuilder() to construct. + private PlaintextBallot(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private PlaintextBallot() { + serialNumber_ = 0L; + channelIdentifier_ = com.google.protobuf.ByteString.EMPTY; + answers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private PlaintextBallot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + serialNumber_ = input.readUInt64(); + break; + } + case 18: { + + channelIdentifier_ = input.readBytes(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + answers_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotAnswer>(); + mutable_bitField0_ |= 0x00000004; + } + answers_.add( + input.readMessage(meerkat.protobuf.Voting.BallotAnswer.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + answers_ = java.util.Collections.unmodifiableList(answers_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.PlaintextBallot.class, meerkat.protobuf.Voting.PlaintextBallot.Builder.class); + } + + private int bitField0_; + public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; + private long serialNumber_; + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public long getSerialNumber() { + return serialNumber_; + } + + public static final int CHANNEL_IDENTIFIER_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString channelIdentifier_; + /** + * <code>bytes channel_identifier = 2;</code> + */ + public com.google.protobuf.ByteString getChannelIdentifier() { + return channelIdentifier_; + } + + public static final int ANSWERS_FIELD_NUMBER = 3; + private java.util.List<meerkat.protobuf.Voting.BallotAnswer> answers_; + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotAnswer> getAnswersList() { + return answers_; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.BallotAnswerOrBuilder> + getAnswersOrBuilderList() { + return answers_; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public int getAnswersCount() { + return answers_.size(); + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public meerkat.protobuf.Voting.BallotAnswer getAnswers(int index) { + return answers_.get(index); + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public meerkat.protobuf.Voting.BallotAnswerOrBuilder getAnswersOrBuilder( + int index) { + return answers_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (serialNumber_ != 0L) { + output.writeUInt64(1, serialNumber_); + } + if (!channelIdentifier_.isEmpty()) { + output.writeBytes(2, channelIdentifier_); + } + for (int i = 0; i < answers_.size(); i++) { + output.writeMessage(3, answers_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (serialNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, serialNumber_); + } + if (!channelIdentifier_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, channelIdentifier_); + } + for (int i = 0; i < answers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, answers_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.PlaintextBallot)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.PlaintextBallot other = (meerkat.protobuf.Voting.PlaintextBallot) obj; + + boolean result = true; + result = result && (getSerialNumber() + == other.getSerialNumber()); + result = result && getChannelIdentifier() + .equals(other.getChannelIdentifier()); + result = result && getAnswersList() + .equals(other.getAnswersList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERIAL_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSerialNumber()); + hash = (37 * hash) + CHANNEL_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getChannelIdentifier().hashCode(); + if (getAnswersCount() > 0) { + hash = (37 * hash) + ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getAnswersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.PlaintextBallot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.PlaintextBallot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.PlaintextBallot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.PlaintextBallot) + meerkat.protobuf.Voting.PlaintextBallotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.PlaintextBallot.class, meerkat.protobuf.Voting.PlaintextBallot.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.PlaintextBallot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAnswersFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + serialNumber_ = 0L; + + channelIdentifier_ = com.google.protobuf.ByteString.EMPTY; + + if (answersBuilder_ == null) { + answers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + answersBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_PlaintextBallot_descriptor; + } + + public meerkat.protobuf.Voting.PlaintextBallot getDefaultInstanceForType() { + return meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.PlaintextBallot build() { + meerkat.protobuf.Voting.PlaintextBallot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.PlaintextBallot buildPartial() { + meerkat.protobuf.Voting.PlaintextBallot result = new meerkat.protobuf.Voting.PlaintextBallot(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.serialNumber_ = serialNumber_; + result.channelIdentifier_ = channelIdentifier_; + if (answersBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + answers_ = java.util.Collections.unmodifiableList(answers_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.answers_ = answers_; + } else { + result.answers_ = answersBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.PlaintextBallot) { + return mergeFrom((meerkat.protobuf.Voting.PlaintextBallot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.PlaintextBallot other) { + if (other == meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance()) return this; + if (other.getSerialNumber() != 0L) { + setSerialNumber(other.getSerialNumber()); + } + if (other.getChannelIdentifier() != com.google.protobuf.ByteString.EMPTY) { + setChannelIdentifier(other.getChannelIdentifier()); + } + if (answersBuilder_ == null) { + if (!other.answers_.isEmpty()) { + if (answers_.isEmpty()) { + answers_ = other.answers_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAnswersIsMutable(); + answers_.addAll(other.answers_); + } + onChanged(); + } + } else { + if (!other.answers_.isEmpty()) { + if (answersBuilder_.isEmpty()) { + answersBuilder_.dispose(); + answersBuilder_ = null; + answers_ = other.answers_; + bitField0_ = (bitField0_ & ~0x00000004); + answersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnswersFieldBuilder() : null; + } else { + answersBuilder_.addAllMessages(other.answers_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.PlaintextBallot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.PlaintextBallot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long serialNumber_ ; + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public long getSerialNumber() { + return serialNumber_; + } + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public Builder setSerialNumber(long value) { + + serialNumber_ = value; + onChanged(); + return this; + } + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public Builder clearSerialNumber() { + + serialNumber_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString channelIdentifier_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>bytes channel_identifier = 2;</code> + */ + public com.google.protobuf.ByteString getChannelIdentifier() { + return channelIdentifier_; + } + /** + * <code>bytes channel_identifier = 2;</code> + */ + public Builder setChannelIdentifier(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + channelIdentifier_ = value; + onChanged(); + return this; + } + /** + * <code>bytes channel_identifier = 2;</code> + */ + public Builder clearChannelIdentifier() { + + channelIdentifier_ = getDefaultInstance().getChannelIdentifier(); + onChanged(); + return this; + } + + private java.util.List<meerkat.protobuf.Voting.BallotAnswer> answers_ = + java.util.Collections.emptyList(); + private void ensureAnswersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + answers_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotAnswer>(answers_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotAnswer, meerkat.protobuf.Voting.BallotAnswer.Builder, meerkat.protobuf.Voting.BallotAnswerOrBuilder> answersBuilder_; + + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotAnswer> getAnswersList() { + if (answersBuilder_ == null) { + return java.util.Collections.unmodifiableList(answers_); + } else { + return answersBuilder_.getMessageList(); + } + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public int getAnswersCount() { + if (answersBuilder_ == null) { + return answers_.size(); + } else { + return answersBuilder_.getCount(); + } + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public meerkat.protobuf.Voting.BallotAnswer getAnswers(int index) { + if (answersBuilder_ == null) { + return answers_.get(index); + } else { + return answersBuilder_.getMessage(index); + } + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder setAnswers( + int index, meerkat.protobuf.Voting.BallotAnswer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.set(index, value); + onChanged(); + } else { + answersBuilder_.setMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder setAnswers( + int index, meerkat.protobuf.Voting.BallotAnswer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.set(index, builderForValue.build()); + onChanged(); + } else { + answersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder addAnswers(meerkat.protobuf.Voting.BallotAnswer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.add(value); + onChanged(); + } else { + answersBuilder_.addMessage(value); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder addAnswers( + int index, meerkat.protobuf.Voting.BallotAnswer value) { + if (answersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswersIsMutable(); + answers_.add(index, value); + onChanged(); + } else { + answersBuilder_.addMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder addAnswers( + meerkat.protobuf.Voting.BallotAnswer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.add(builderForValue.build()); + onChanged(); + } else { + answersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder addAnswers( + int index, meerkat.protobuf.Voting.BallotAnswer.Builder builderForValue) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.add(index, builderForValue.build()); + onChanged(); + } else { + answersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder addAllAnswers( + java.lang.Iterable<? extends meerkat.protobuf.Voting.BallotAnswer> values) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, answers_); + onChanged(); + } else { + answersBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder clearAnswers() { + if (answersBuilder_ == null) { + answers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + answersBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public Builder removeAnswers(int index) { + if (answersBuilder_ == null) { + ensureAnswersIsMutable(); + answers_.remove(index); + onChanged(); + } else { + answersBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public meerkat.protobuf.Voting.BallotAnswer.Builder getAnswersBuilder( + int index) { + return getAnswersFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public meerkat.protobuf.Voting.BallotAnswerOrBuilder getAnswersOrBuilder( + int index) { + if (answersBuilder_ == null) { + return answers_.get(index); } else { + return answersBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.BallotAnswerOrBuilder> + getAnswersOrBuilderList() { + if (answersBuilder_ != null) { + return answersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(answers_); + } + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public meerkat.protobuf.Voting.BallotAnswer.Builder addAnswersBuilder() { + return getAnswersFieldBuilder().addBuilder( + meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public meerkat.protobuf.Voting.BallotAnswer.Builder addAnswersBuilder( + int index) { + return getAnswersFieldBuilder().addBuilder( + index, meerkat.protobuf.Voting.BallotAnswer.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.BallotAnswer answers = 3;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotAnswer.Builder> + getAnswersBuilderList() { + return getAnswersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotAnswer, meerkat.protobuf.Voting.BallotAnswer.Builder, meerkat.protobuf.Voting.BallotAnswerOrBuilder> + getAnswersFieldBuilder() { + if (answersBuilder_ == null) { + answersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotAnswer, meerkat.protobuf.Voting.BallotAnswer.Builder, meerkat.protobuf.Voting.BallotAnswerOrBuilder>( + answers_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + answers_ = null; + } + return answersBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.PlaintextBallot) + } + + // @@protoc_insertion_point(class_scope:meerkat.PlaintextBallot) + private static final meerkat.protobuf.Voting.PlaintextBallot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.PlaintextBallot(); + } + + public static meerkat.protobuf.Voting.PlaintextBallot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<PlaintextBallot> + PARSER = new com.google.protobuf.AbstractParser<PlaintextBallot>() { + public PlaintextBallot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PlaintextBallot(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<PlaintextBallot> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<PlaintextBallot> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.PlaintextBallot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EncryptedBallotOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.EncryptedBallot) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + long getSerialNumber(); + + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + boolean hasData(); + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getData(); + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code meerkat.EncryptedBallot} + */ + public static final class EncryptedBallot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.EncryptedBallot) + EncryptedBallotOrBuilder { + // Use EncryptedBallot.newBuilder() to construct. + private EncryptedBallot(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private EncryptedBallot() { + serialNumber_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private EncryptedBallot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + + serialNumber_ = input.readUInt64(); + break; + } + case 18: { + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder subBuilder = null; + if (data_ != null) { + subBuilder = data_.toBuilder(); + } + data_ = input.readMessage(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(data_); + data_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.EncryptedBallot.class, meerkat.protobuf.Voting.EncryptedBallot.Builder.class); + } + + public static final int SERIAL_NUMBER_FIELD_NUMBER = 1; + private long serialNumber_; + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public long getSerialNumber() { + return serialNumber_; + } + + public static final int DATA_FIELD_NUMBER = 2; + private meerkat.protobuf.Crypto.RerandomizableEncryptedMessage data_; + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public boolean hasData() { + return data_ != null; + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getData() { + return data_ == null ? meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance() : data_; + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder getDataOrBuilder() { + return getData(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (serialNumber_ != 0L) { + output.writeUInt64(1, serialNumber_); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (serialNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, serialNumber_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.EncryptedBallot)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.EncryptedBallot other = (meerkat.protobuf.Voting.EncryptedBallot) obj; + + boolean result = true; + result = result && (getSerialNumber() + == other.getSerialNumber()); + result = result && (hasData() == other.hasData()); + if (hasData()) { + result = result && getData() + .equals(other.getData()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERIAL_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSerialNumber()); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.EncryptedBallot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.EncryptedBallot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.EncryptedBallot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.EncryptedBallot) + meerkat.protobuf.Voting.EncryptedBallotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.EncryptedBallot.class, meerkat.protobuf.Voting.EncryptedBallot.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.EncryptedBallot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + serialNumber_ = 0L; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_EncryptedBallot_descriptor; + } + + public meerkat.protobuf.Voting.EncryptedBallot getDefaultInstanceForType() { + return meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.EncryptedBallot build() { + meerkat.protobuf.Voting.EncryptedBallot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.EncryptedBallot buildPartial() { + meerkat.protobuf.Voting.EncryptedBallot result = new meerkat.protobuf.Voting.EncryptedBallot(this); + result.serialNumber_ = serialNumber_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.EncryptedBallot) { + return mergeFrom((meerkat.protobuf.Voting.EncryptedBallot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.EncryptedBallot other) { + if (other == meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance()) return this; + if (other.getSerialNumber() != 0L) { + setSerialNumber(other.getSerialNumber()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.EncryptedBallot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.EncryptedBallot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long serialNumber_ ; + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public long getSerialNumber() { + return serialNumber_; + } + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public Builder setSerialNumber(long value) { + + serialNumber_ = value; + onChanged(); + return this; + } + /** + * <pre> + * Ballot serial number + * </pre> + * + * <code>uint64 serial_number = 1;</code> + */ + public Builder clearSerialNumber() { + + serialNumber_ = 0L; + onChanged(); + return this; + } + + private meerkat.protobuf.Crypto.RerandomizableEncryptedMessage data_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder, meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder> dataBuilder_; + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage getData() { + if (dataBuilder_ == null) { + return data_ == null ? meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public Builder setData(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public Builder setData( + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public Builder mergeData(meerkat.protobuf.Crypto.RerandomizableEncryptedMessage value) { + if (dataBuilder_ == null) { + if (data_ != null) { + data_ = + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.newBuilder(data_).mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + public meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.getDefaultInstance() : data_; + } + } + /** + * <code>.meerkat.RerandomizableEncryptedMessage data = 2;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder, meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.RerandomizableEncryptedMessage, meerkat.protobuf.Crypto.RerandomizableEncryptedMessage.Builder, meerkat.protobuf.Crypto.RerandomizableEncryptedMessageOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.EncryptedBallot) + } + + // @@protoc_insertion_point(class_scope:meerkat.EncryptedBallot) + private static final meerkat.protobuf.Voting.EncryptedBallot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.EncryptedBallot(); + } + + public static meerkat.protobuf.Voting.EncryptedBallot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<EncryptedBallot> + PARSER = new com.google.protobuf.AbstractParser<EncryptedBallot>() { + public EncryptedBallot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EncryptedBallot(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<EncryptedBallot> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<EncryptedBallot> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.EncryptedBallot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SignedEncryptedBallotOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.SignedEncryptedBallot) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + boolean hasEncryptedBallot(); + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + meerkat.protobuf.Voting.EncryptedBallot getEncryptedBallot(); + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + meerkat.protobuf.Voting.EncryptedBallotOrBuilder getEncryptedBallotOrBuilder(); + + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + boolean hasSignature(); + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + meerkat.protobuf.Crypto.Signature getSignature(); + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + meerkat.protobuf.Crypto.SignatureOrBuilder getSignatureOrBuilder(); + } + /** + * Protobuf type {@code meerkat.SignedEncryptedBallot} + */ + public static final class SignedEncryptedBallot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.SignedEncryptedBallot) + SignedEncryptedBallotOrBuilder { + // Use SignedEncryptedBallot.newBuilder() to construct. + private SignedEncryptedBallot(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private SignedEncryptedBallot() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SignedEncryptedBallot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.Voting.EncryptedBallot.Builder subBuilder = null; + if (encryptedBallot_ != null) { + subBuilder = encryptedBallot_.toBuilder(); + } + encryptedBallot_ = input.readMessage(meerkat.protobuf.Voting.EncryptedBallot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(encryptedBallot_); + encryptedBallot_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + meerkat.protobuf.Crypto.Signature.Builder subBuilder = null; + if (signature_ != null) { + subBuilder = signature_.toBuilder(); + } + signature_ = input.readMessage(meerkat.protobuf.Crypto.Signature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(signature_); + signature_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.SignedEncryptedBallot.class, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder.class); + } + + public static final int ENCRYPTED_BALLOT_FIELD_NUMBER = 1; + private meerkat.protobuf.Voting.EncryptedBallot encryptedBallot_; + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public boolean hasEncryptedBallot() { + return encryptedBallot_ != null; + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.EncryptedBallot getEncryptedBallot() { + return encryptedBallot_ == null ? meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance() : encryptedBallot_; + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.EncryptedBallotOrBuilder getEncryptedBallotOrBuilder() { + return getEncryptedBallot(); + } + + public static final int SIGNATURE_FIELD_NUMBER = 2; + private meerkat.protobuf.Crypto.Signature signature_; + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public boolean hasSignature() { + return signature_ != null; + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public meerkat.protobuf.Crypto.Signature getSignature() { + return signature_ == null ? meerkat.protobuf.Crypto.Signature.getDefaultInstance() : signature_; + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public meerkat.protobuf.Crypto.SignatureOrBuilder getSignatureOrBuilder() { + return getSignature(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encryptedBallot_ != null) { + output.writeMessage(1, getEncryptedBallot()); + } + if (signature_ != null) { + output.writeMessage(2, getSignature()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (encryptedBallot_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEncryptedBallot()); + } + if (signature_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSignature()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.SignedEncryptedBallot)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.SignedEncryptedBallot other = (meerkat.protobuf.Voting.SignedEncryptedBallot) obj; + + boolean result = true; + result = result && (hasEncryptedBallot() == other.hasEncryptedBallot()); + if (hasEncryptedBallot()) { + result = result && getEncryptedBallot() + .equals(other.getEncryptedBallot()); + } + result = result && (hasSignature() == other.hasSignature()); + if (hasSignature()) { + result = result && getSignature() + .equals(other.getSignature()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEncryptedBallot()) { + hash = (37 * hash) + ENCRYPTED_BALLOT_FIELD_NUMBER; + hash = (53 * hash) + getEncryptedBallot().hashCode(); + } + if (hasSignature()) { + hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; + hash = (53 * hash) + getSignature().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.SignedEncryptedBallot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.SignedEncryptedBallot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.SignedEncryptedBallot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.SignedEncryptedBallot) + meerkat.protobuf.Voting.SignedEncryptedBallotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.SignedEncryptedBallot.class, meerkat.protobuf.Voting.SignedEncryptedBallot.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.SignedEncryptedBallot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (encryptedBallotBuilder_ == null) { + encryptedBallot_ = null; + } else { + encryptedBallot_ = null; + encryptedBallotBuilder_ = null; + } + if (signatureBuilder_ == null) { + signature_ = null; + } else { + signature_ = null; + signatureBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_SignedEncryptedBallot_descriptor; + } + + public meerkat.protobuf.Voting.SignedEncryptedBallot getDefaultInstanceForType() { + return meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.SignedEncryptedBallot build() { + meerkat.protobuf.Voting.SignedEncryptedBallot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.SignedEncryptedBallot buildPartial() { + meerkat.protobuf.Voting.SignedEncryptedBallot result = new meerkat.protobuf.Voting.SignedEncryptedBallot(this); + if (encryptedBallotBuilder_ == null) { + result.encryptedBallot_ = encryptedBallot_; + } else { + result.encryptedBallot_ = encryptedBallotBuilder_.build(); + } + if (signatureBuilder_ == null) { + result.signature_ = signature_; + } else { + result.signature_ = signatureBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.SignedEncryptedBallot) { + return mergeFrom((meerkat.protobuf.Voting.SignedEncryptedBallot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.SignedEncryptedBallot other) { + if (other == meerkat.protobuf.Voting.SignedEncryptedBallot.getDefaultInstance()) return this; + if (other.hasEncryptedBallot()) { + mergeEncryptedBallot(other.getEncryptedBallot()); + } + if (other.hasSignature()) { + mergeSignature(other.getSignature()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.SignedEncryptedBallot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.SignedEncryptedBallot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private meerkat.protobuf.Voting.EncryptedBallot encryptedBallot_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.EncryptedBallot, meerkat.protobuf.Voting.EncryptedBallot.Builder, meerkat.protobuf.Voting.EncryptedBallotOrBuilder> encryptedBallotBuilder_; + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public boolean hasEncryptedBallot() { + return encryptedBallotBuilder_ != null || encryptedBallot_ != null; + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.EncryptedBallot getEncryptedBallot() { + if (encryptedBallotBuilder_ == null) { + return encryptedBallot_ == null ? meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance() : encryptedBallot_; + } else { + return encryptedBallotBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public Builder setEncryptedBallot(meerkat.protobuf.Voting.EncryptedBallot value) { + if (encryptedBallotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptedBallot_ = value; + onChanged(); + } else { + encryptedBallotBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public Builder setEncryptedBallot( + meerkat.protobuf.Voting.EncryptedBallot.Builder builderForValue) { + if (encryptedBallotBuilder_ == null) { + encryptedBallot_ = builderForValue.build(); + onChanged(); + } else { + encryptedBallotBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public Builder mergeEncryptedBallot(meerkat.protobuf.Voting.EncryptedBallot value) { + if (encryptedBallotBuilder_ == null) { + if (encryptedBallot_ != null) { + encryptedBallot_ = + meerkat.protobuf.Voting.EncryptedBallot.newBuilder(encryptedBallot_).mergeFrom(value).buildPartial(); + } else { + encryptedBallot_ = value; + } + onChanged(); + } else { + encryptedBallotBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public Builder clearEncryptedBallot() { + if (encryptedBallotBuilder_ == null) { + encryptedBallot_ = null; + onChanged(); + } else { + encryptedBallot_ = null; + encryptedBallotBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.EncryptedBallot.Builder getEncryptedBallotBuilder() { + + onChanged(); + return getEncryptedBallotFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.EncryptedBallotOrBuilder getEncryptedBallotOrBuilder() { + if (encryptedBallotBuilder_ != null) { + return encryptedBallotBuilder_.getMessageOrBuilder(); + } else { + return encryptedBallot_ == null ? + meerkat.protobuf.Voting.EncryptedBallot.getDefaultInstance() : encryptedBallot_; + } + } + /** + * <code>.meerkat.EncryptedBallot encrypted_ballot = 1;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.EncryptedBallot, meerkat.protobuf.Voting.EncryptedBallot.Builder, meerkat.protobuf.Voting.EncryptedBallotOrBuilder> + getEncryptedBallotFieldBuilder() { + if (encryptedBallotBuilder_ == null) { + encryptedBallotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.EncryptedBallot, meerkat.protobuf.Voting.EncryptedBallot.Builder, meerkat.protobuf.Voting.EncryptedBallotOrBuilder>( + getEncryptedBallot(), + getParentForChildren(), + isClean()); + encryptedBallot_ = null; + } + return encryptedBallotBuilder_; + } + + private meerkat.protobuf.Crypto.Signature signature_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> signatureBuilder_; + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public boolean hasSignature() { + return signatureBuilder_ != null || signature_ != null; + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public meerkat.protobuf.Crypto.Signature getSignature() { + if (signatureBuilder_ == null) { + return signature_ == null ? meerkat.protobuf.Crypto.Signature.getDefaultInstance() : signature_; + } else { + return signatureBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public Builder setSignature(meerkat.protobuf.Crypto.Signature value) { + if (signatureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + signature_ = value; + onChanged(); + } else { + signatureBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public Builder setSignature( + meerkat.protobuf.Crypto.Signature.Builder builderForValue) { + if (signatureBuilder_ == null) { + signature_ = builderForValue.build(); + onChanged(); + } else { + signatureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public Builder mergeSignature(meerkat.protobuf.Crypto.Signature value) { + if (signatureBuilder_ == null) { + if (signature_ != null) { + signature_ = + meerkat.protobuf.Crypto.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); + } else { + signature_ = value; + } + onChanged(); + } else { + signatureBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public Builder clearSignature() { + if (signatureBuilder_ == null) { + signature_ = null; + onChanged(); + } else { + signature_ = null; + signatureBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public meerkat.protobuf.Crypto.Signature.Builder getSignatureBuilder() { + + onChanged(); + return getSignatureFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + public meerkat.protobuf.Crypto.SignatureOrBuilder getSignatureOrBuilder() { + if (signatureBuilder_ != null) { + return signatureBuilder_.getMessageOrBuilder(); + } else { + return signature_ == null ? + meerkat.protobuf.Crypto.Signature.getDefaultInstance() : signature_; + } + } + /** + * <code>.meerkat.Signature signature = 2;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder> + getSignatureFieldBuilder() { + if (signatureBuilder_ == null) { + signatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.Signature, meerkat.protobuf.Crypto.Signature.Builder, meerkat.protobuf.Crypto.SignatureOrBuilder>( + getSignature(), + getParentForChildren(), + isClean()); + signature_ = null; + } + return signatureBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.SignedEncryptedBallot) + } + + // @@protoc_insertion_point(class_scope:meerkat.SignedEncryptedBallot) + private static final meerkat.protobuf.Voting.SignedEncryptedBallot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.SignedEncryptedBallot(); + } + + public static meerkat.protobuf.Voting.SignedEncryptedBallot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<SignedEncryptedBallot> + PARSER = new com.google.protobuf.AbstractParser<SignedEncryptedBallot>() { + public SignedEncryptedBallot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SignedEncryptedBallot(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<SignedEncryptedBallot> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<SignedEncryptedBallot> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.SignedEncryptedBallot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BallotSecretsOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BallotSecrets) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + boolean hasPlaintextBallot(); + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + meerkat.protobuf.Voting.PlaintextBallot getPlaintextBallot(); + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + meerkat.protobuf.Voting.PlaintextBallotOrBuilder getPlaintextBallotOrBuilder(); + + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + boolean hasEncryptionRandomness(); + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + meerkat.protobuf.Crypto.EncryptionRandomness getEncryptionRandomness(); + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder getEncryptionRandomnessOrBuilder(); + + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + boolean hasProof(); + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + meerkat.protobuf.Crypto.RandomnessGenerationProof getProof(); + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder getProofOrBuilder(); + } + /** + * Protobuf type {@code meerkat.BallotSecrets} + */ + public static final class BallotSecrets extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BallotSecrets) + BallotSecretsOrBuilder { + // Use BallotSecrets.newBuilder() to construct. + private BallotSecrets(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private BallotSecrets() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BallotSecrets( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.Voting.PlaintextBallot.Builder subBuilder = null; + if (plaintextBallot_ != null) { + subBuilder = plaintextBallot_.toBuilder(); + } + plaintextBallot_ = input.readMessage(meerkat.protobuf.Voting.PlaintextBallot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(plaintextBallot_); + plaintextBallot_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + meerkat.protobuf.Crypto.EncryptionRandomness.Builder subBuilder = null; + if (encryptionRandomness_ != null) { + subBuilder = encryptionRandomness_.toBuilder(); + } + encryptionRandomness_ = input.readMessage(meerkat.protobuf.Crypto.EncryptionRandomness.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(encryptionRandomness_); + encryptionRandomness_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder subBuilder = null; + if (proof_ != null) { + subBuilder = proof_.toBuilder(); + } + proof_ = input.readMessage(meerkat.protobuf.Crypto.RandomnessGenerationProof.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(proof_); + proof_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotSecrets.class, meerkat.protobuf.Voting.BallotSecrets.Builder.class); + } + + public static final int PLAINTEXT_BALLOT_FIELD_NUMBER = 1; + private meerkat.protobuf.Voting.PlaintextBallot plaintextBallot_; + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public boolean hasPlaintextBallot() { + return plaintextBallot_ != null; + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.PlaintextBallot getPlaintextBallot() { + return plaintextBallot_ == null ? meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance() : plaintextBallot_; + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.PlaintextBallotOrBuilder getPlaintextBallotOrBuilder() { + return getPlaintextBallot(); + } + + public static final int ENCRYPTION_RANDOMNESS_FIELD_NUMBER = 2; + private meerkat.protobuf.Crypto.EncryptionRandomness encryptionRandomness_; + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public boolean hasEncryptionRandomness() { + return encryptionRandomness_ != null; + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public meerkat.protobuf.Crypto.EncryptionRandomness getEncryptionRandomness() { + return encryptionRandomness_ == null ? meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance() : encryptionRandomness_; + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder getEncryptionRandomnessOrBuilder() { + return getEncryptionRandomness(); + } + + public static final int PROOF_FIELD_NUMBER = 3; + private meerkat.protobuf.Crypto.RandomnessGenerationProof proof_; + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public boolean hasProof() { + return proof_ != null; + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public meerkat.protobuf.Crypto.RandomnessGenerationProof getProof() { + return proof_ == null ? meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance() : proof_; + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder getProofOrBuilder() { + return getProof(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (plaintextBallot_ != null) { + output.writeMessage(1, getPlaintextBallot()); + } + if (encryptionRandomness_ != null) { + output.writeMessage(2, getEncryptionRandomness()); + } + if (proof_ != null) { + output.writeMessage(3, getProof()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (plaintextBallot_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPlaintextBallot()); + } + if (encryptionRandomness_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEncryptionRandomness()); + } + if (proof_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProof()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.BallotSecrets)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.BallotSecrets other = (meerkat.protobuf.Voting.BallotSecrets) obj; + + boolean result = true; + result = result && (hasPlaintextBallot() == other.hasPlaintextBallot()); + if (hasPlaintextBallot()) { + result = result && getPlaintextBallot() + .equals(other.getPlaintextBallot()); + } + result = result && (hasEncryptionRandomness() == other.hasEncryptionRandomness()); + if (hasEncryptionRandomness()) { + result = result && getEncryptionRandomness() + .equals(other.getEncryptionRandomness()); + } + result = result && (hasProof() == other.hasProof()); + if (hasProof()) { + result = result && getProof() + .equals(other.getProof()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPlaintextBallot()) { + hash = (37 * hash) + PLAINTEXT_BALLOT_FIELD_NUMBER; + hash = (53 * hash) + getPlaintextBallot().hashCode(); + } + if (hasEncryptionRandomness()) { + hash = (37 * hash) + ENCRYPTION_RANDOMNESS_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionRandomness().hashCode(); + } + if (hasProof()) { + hash = (37 * hash) + PROOF_FIELD_NUMBER; + hash = (53 * hash) + getProof().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.BallotSecrets parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotSecrets parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotSecrets parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotSecrets parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotSecrets parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotSecrets parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotSecrets parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotSecrets parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotSecrets parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotSecrets parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.BallotSecrets prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BallotSecrets} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.BallotSecrets) + meerkat.protobuf.Voting.BallotSecretsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotSecrets.class, meerkat.protobuf.Voting.BallotSecrets.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.BallotSecrets.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (plaintextBallotBuilder_ == null) { + plaintextBallot_ = null; + } else { + plaintextBallot_ = null; + plaintextBallotBuilder_ = null; + } + if (encryptionRandomnessBuilder_ == null) { + encryptionRandomness_ = null; + } else { + encryptionRandomness_ = null; + encryptionRandomnessBuilder_ = null; + } + if (proofBuilder_ == null) { + proof_ = null; + } else { + proof_ = null; + proofBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotSecrets_descriptor; + } + + public meerkat.protobuf.Voting.BallotSecrets getDefaultInstanceForType() { + return meerkat.protobuf.Voting.BallotSecrets.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.BallotSecrets build() { + meerkat.protobuf.Voting.BallotSecrets result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.BallotSecrets buildPartial() { + meerkat.protobuf.Voting.BallotSecrets result = new meerkat.protobuf.Voting.BallotSecrets(this); + if (plaintextBallotBuilder_ == null) { + result.plaintextBallot_ = plaintextBallot_; + } else { + result.plaintextBallot_ = plaintextBallotBuilder_.build(); + } + if (encryptionRandomnessBuilder_ == null) { + result.encryptionRandomness_ = encryptionRandomness_; + } else { + result.encryptionRandomness_ = encryptionRandomnessBuilder_.build(); + } + if (proofBuilder_ == null) { + result.proof_ = proof_; + } else { + result.proof_ = proofBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.BallotSecrets) { + return mergeFrom((meerkat.protobuf.Voting.BallotSecrets)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.BallotSecrets other) { + if (other == meerkat.protobuf.Voting.BallotSecrets.getDefaultInstance()) return this; + if (other.hasPlaintextBallot()) { + mergePlaintextBallot(other.getPlaintextBallot()); + } + if (other.hasEncryptionRandomness()) { + mergeEncryptionRandomness(other.getEncryptionRandomness()); + } + if (other.hasProof()) { + mergeProof(other.getProof()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.BallotSecrets parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.BallotSecrets) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private meerkat.protobuf.Voting.PlaintextBallot plaintextBallot_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.PlaintextBallot, meerkat.protobuf.Voting.PlaintextBallot.Builder, meerkat.protobuf.Voting.PlaintextBallotOrBuilder> plaintextBallotBuilder_; + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public boolean hasPlaintextBallot() { + return plaintextBallotBuilder_ != null || plaintextBallot_ != null; + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.PlaintextBallot getPlaintextBallot() { + if (plaintextBallotBuilder_ == null) { + return plaintextBallot_ == null ? meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance() : plaintextBallot_; + } else { + return plaintextBallotBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public Builder setPlaintextBallot(meerkat.protobuf.Voting.PlaintextBallot value) { + if (plaintextBallotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + plaintextBallot_ = value; + onChanged(); + } else { + plaintextBallotBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public Builder setPlaintextBallot( + meerkat.protobuf.Voting.PlaintextBallot.Builder builderForValue) { + if (plaintextBallotBuilder_ == null) { + plaintextBallot_ = builderForValue.build(); + onChanged(); + } else { + plaintextBallotBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public Builder mergePlaintextBallot(meerkat.protobuf.Voting.PlaintextBallot value) { + if (plaintextBallotBuilder_ == null) { + if (plaintextBallot_ != null) { + plaintextBallot_ = + meerkat.protobuf.Voting.PlaintextBallot.newBuilder(plaintextBallot_).mergeFrom(value).buildPartial(); + } else { + plaintextBallot_ = value; + } + onChanged(); + } else { + plaintextBallotBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public Builder clearPlaintextBallot() { + if (plaintextBallotBuilder_ == null) { + plaintextBallot_ = null; + onChanged(); + } else { + plaintextBallot_ = null; + plaintextBallotBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.PlaintextBallot.Builder getPlaintextBallotBuilder() { + + onChanged(); + return getPlaintextBallotFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + public meerkat.protobuf.Voting.PlaintextBallotOrBuilder getPlaintextBallotOrBuilder() { + if (plaintextBallotBuilder_ != null) { + return plaintextBallotBuilder_.getMessageOrBuilder(); + } else { + return plaintextBallot_ == null ? + meerkat.protobuf.Voting.PlaintextBallot.getDefaultInstance() : plaintextBallot_; + } + } + /** + * <code>.meerkat.PlaintextBallot plaintext_ballot = 1;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.PlaintextBallot, meerkat.protobuf.Voting.PlaintextBallot.Builder, meerkat.protobuf.Voting.PlaintextBallotOrBuilder> + getPlaintextBallotFieldBuilder() { + if (plaintextBallotBuilder_ == null) { + plaintextBallotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.PlaintextBallot, meerkat.protobuf.Voting.PlaintextBallot.Builder, meerkat.protobuf.Voting.PlaintextBallotOrBuilder>( + getPlaintextBallot(), + getParentForChildren(), + isClean()); + plaintextBallot_ = null; + } + return plaintextBallotBuilder_; + } + + private meerkat.protobuf.Crypto.EncryptionRandomness encryptionRandomness_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.EncryptionRandomness, meerkat.protobuf.Crypto.EncryptionRandomness.Builder, meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder> encryptionRandomnessBuilder_; + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public boolean hasEncryptionRandomness() { + return encryptionRandomnessBuilder_ != null || encryptionRandomness_ != null; + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public meerkat.protobuf.Crypto.EncryptionRandomness getEncryptionRandomness() { + if (encryptionRandomnessBuilder_ == null) { + return encryptionRandomness_ == null ? meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance() : encryptionRandomness_; + } else { + return encryptionRandomnessBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public Builder setEncryptionRandomness(meerkat.protobuf.Crypto.EncryptionRandomness value) { + if (encryptionRandomnessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionRandomness_ = value; + onChanged(); + } else { + encryptionRandomnessBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public Builder setEncryptionRandomness( + meerkat.protobuf.Crypto.EncryptionRandomness.Builder builderForValue) { + if (encryptionRandomnessBuilder_ == null) { + encryptionRandomness_ = builderForValue.build(); + onChanged(); + } else { + encryptionRandomnessBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public Builder mergeEncryptionRandomness(meerkat.protobuf.Crypto.EncryptionRandomness value) { + if (encryptionRandomnessBuilder_ == null) { + if (encryptionRandomness_ != null) { + encryptionRandomness_ = + meerkat.protobuf.Crypto.EncryptionRandomness.newBuilder(encryptionRandomness_).mergeFrom(value).buildPartial(); + } else { + encryptionRandomness_ = value; + } + onChanged(); + } else { + encryptionRandomnessBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public Builder clearEncryptionRandomness() { + if (encryptionRandomnessBuilder_ == null) { + encryptionRandomness_ = null; + onChanged(); + } else { + encryptionRandomness_ = null; + encryptionRandomnessBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public meerkat.protobuf.Crypto.EncryptionRandomness.Builder getEncryptionRandomnessBuilder() { + + onChanged(); + return getEncryptionRandomnessFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + public meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder getEncryptionRandomnessOrBuilder() { + if (encryptionRandomnessBuilder_ != null) { + return encryptionRandomnessBuilder_.getMessageOrBuilder(); + } else { + return encryptionRandomness_ == null ? + meerkat.protobuf.Crypto.EncryptionRandomness.getDefaultInstance() : encryptionRandomness_; + } + } + /** + * <code>.meerkat.EncryptionRandomness encryption_randomness = 2;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.EncryptionRandomness, meerkat.protobuf.Crypto.EncryptionRandomness.Builder, meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder> + getEncryptionRandomnessFieldBuilder() { + if (encryptionRandomnessBuilder_ == null) { + encryptionRandomnessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.EncryptionRandomness, meerkat.protobuf.Crypto.EncryptionRandomness.Builder, meerkat.protobuf.Crypto.EncryptionRandomnessOrBuilder>( + getEncryptionRandomness(), + getParentForChildren(), + isClean()); + encryptionRandomness_ = null; + } + return encryptionRandomnessBuilder_; + } + + private meerkat.protobuf.Crypto.RandomnessGenerationProof proof_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.RandomnessGenerationProof, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder, meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder> proofBuilder_; + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public boolean hasProof() { + return proofBuilder_ != null || proof_ != null; + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public meerkat.protobuf.Crypto.RandomnessGenerationProof getProof() { + if (proofBuilder_ == null) { + return proof_ == null ? meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance() : proof_; + } else { + return proofBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public Builder setProof(meerkat.protobuf.Crypto.RandomnessGenerationProof value) { + if (proofBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + proof_ = value; + onChanged(); + } else { + proofBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public Builder setProof( + meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder builderForValue) { + if (proofBuilder_ == null) { + proof_ = builderForValue.build(); + onChanged(); + } else { + proofBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public Builder mergeProof(meerkat.protobuf.Crypto.RandomnessGenerationProof value) { + if (proofBuilder_ == null) { + if (proof_ != null) { + proof_ = + meerkat.protobuf.Crypto.RandomnessGenerationProof.newBuilder(proof_).mergeFrom(value).buildPartial(); + } else { + proof_ = value; + } + onChanged(); + } else { + proofBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public Builder clearProof() { + if (proofBuilder_ == null) { + proof_ = null; + onChanged(); + } else { + proof_ = null; + proofBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder getProofBuilder() { + + onChanged(); + return getProofFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + public meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder getProofOrBuilder() { + if (proofBuilder_ != null) { + return proofBuilder_.getMessageOrBuilder(); + } else { + return proof_ == null ? + meerkat.protobuf.Crypto.RandomnessGenerationProof.getDefaultInstance() : proof_; + } + } + /** + * <code>.meerkat.RandomnessGenerationProof proof = 3;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.RandomnessGenerationProof, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder, meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder> + getProofFieldBuilder() { + if (proofBuilder_ == null) { + proofBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.RandomnessGenerationProof, meerkat.protobuf.Crypto.RandomnessGenerationProof.Builder, meerkat.protobuf.Crypto.RandomnessGenerationProofOrBuilder>( + getProof(), + getParentForChildren(), + isClean()); + proof_ = null; + } + return proofBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BallotSecrets) + } + + // @@protoc_insertion_point(class_scope:meerkat.BallotSecrets) + private static final meerkat.protobuf.Voting.BallotSecrets DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotSecrets(); + } + + public static meerkat.protobuf.Voting.BallotSecrets getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<BallotSecrets> + PARSER = new com.google.protobuf.AbstractParser<BallotSecrets>() { + public BallotSecrets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BallotSecrets(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<BallotSecrets> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<BallotSecrets> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.BallotSecrets getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BoothParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BoothParams) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> + getPscVerificationKeysList(); + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + meerkat.protobuf.Crypto.SignatureVerificationKey getPscVerificationKeys(int index); + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + int getPscVerificationKeysCount(); + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getPscVerificationKeysOrBuilderList(); + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getPscVerificationKeysOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.BoothParams} + */ + public static final class BoothParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BoothParams) + BoothParamsOrBuilder { + // Use BoothParams.newBuilder() to construct. + private BoothParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private BoothParams() { + pscVerificationKeys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BoothParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + pscVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(); + mutable_bitField0_ |= 0x00000001; + } + pscVerificationKeys_.add( + input.readMessage(meerkat.protobuf.Crypto.SignatureVerificationKey.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + pscVerificationKeys_ = java.util.Collections.unmodifiableList(pscVerificationKeys_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BoothParams.class, meerkat.protobuf.Voting.BoothParams.Builder.class); + } + + public static final int PSCVERIFICATIONKEYS_FIELD_NUMBER = 1; + private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> pscVerificationKeys_; + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getPscVerificationKeysList() { + return pscVerificationKeys_; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getPscVerificationKeysOrBuilderList() { + return pscVerificationKeys_; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public int getPscVerificationKeysCount() { + return pscVerificationKeys_.size(); + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey getPscVerificationKeys(int index) { + return pscVerificationKeys_.get(index); + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getPscVerificationKeysOrBuilder( + int index) { + return pscVerificationKeys_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < pscVerificationKeys_.size(); i++) { + output.writeMessage(1, pscVerificationKeys_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < pscVerificationKeys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, pscVerificationKeys_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.BoothParams)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.BoothParams other = (meerkat.protobuf.Voting.BoothParams) obj; + + boolean result = true; + result = result && getPscVerificationKeysList() + .equals(other.getPscVerificationKeysList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPscVerificationKeysCount() > 0) { + hash = (37 * hash) + PSCVERIFICATIONKEYS_FIELD_NUMBER; + hash = (53 * hash) + getPscVerificationKeysList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.BoothParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BoothParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BoothParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BoothParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BoothParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BoothParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.BoothParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BoothParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.BoothParams) + meerkat.protobuf.Voting.BoothParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BoothParams.class, meerkat.protobuf.Voting.BoothParams.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.BoothParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPscVerificationKeysFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (pscVerificationKeysBuilder_ == null) { + pscVerificationKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + pscVerificationKeysBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothParams_descriptor; + } + + public meerkat.protobuf.Voting.BoothParams getDefaultInstanceForType() { + return meerkat.protobuf.Voting.BoothParams.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.BoothParams build() { + meerkat.protobuf.Voting.BoothParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.BoothParams buildPartial() { + meerkat.protobuf.Voting.BoothParams result = new meerkat.protobuf.Voting.BoothParams(this); + int from_bitField0_ = bitField0_; + if (pscVerificationKeysBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + pscVerificationKeys_ = java.util.Collections.unmodifiableList(pscVerificationKeys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pscVerificationKeys_ = pscVerificationKeys_; + } else { + result.pscVerificationKeys_ = pscVerificationKeysBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.BoothParams) { + return mergeFrom((meerkat.protobuf.Voting.BoothParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.BoothParams other) { + if (other == meerkat.protobuf.Voting.BoothParams.getDefaultInstance()) return this; + if (pscVerificationKeysBuilder_ == null) { + if (!other.pscVerificationKeys_.isEmpty()) { + if (pscVerificationKeys_.isEmpty()) { + pscVerificationKeys_ = other.pscVerificationKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.addAll(other.pscVerificationKeys_); + } + onChanged(); + } + } else { + if (!other.pscVerificationKeys_.isEmpty()) { + if (pscVerificationKeysBuilder_.isEmpty()) { + pscVerificationKeysBuilder_.dispose(); + pscVerificationKeysBuilder_ = null; + pscVerificationKeys_ = other.pscVerificationKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + pscVerificationKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPscVerificationKeysFieldBuilder() : null; + } else { + pscVerificationKeysBuilder_.addAllMessages(other.pscVerificationKeys_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.BoothParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.BoothParams) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> pscVerificationKeys_ = + java.util.Collections.emptyList(); + private void ensurePscVerificationKeysIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + pscVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(pscVerificationKeys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> pscVerificationKeysBuilder_; + + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getPscVerificationKeysList() { + if (pscVerificationKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(pscVerificationKeys_); + } else { + return pscVerificationKeysBuilder_.getMessageList(); + } + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public int getPscVerificationKeysCount() { + if (pscVerificationKeysBuilder_ == null) { + return pscVerificationKeys_.size(); + } else { + return pscVerificationKeysBuilder_.getCount(); + } + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey getPscVerificationKeys(int index) { + if (pscVerificationKeysBuilder_ == null) { + return pscVerificationKeys_.get(index); + } else { + return pscVerificationKeysBuilder_.getMessage(index); + } + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder setPscVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (pscVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.set(index, value); + onChanged(); + } else { + pscVerificationKeysBuilder_.setMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder setPscVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (pscVerificationKeysBuilder_ == null) { + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + pscVerificationKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder addPscVerificationKeys(meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (pscVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.add(value); + onChanged(); + } else { + pscVerificationKeysBuilder_.addMessage(value); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder addPscVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (pscVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.add(index, value); + onChanged(); + } else { + pscVerificationKeysBuilder_.addMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder addPscVerificationKeys( + meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (pscVerificationKeysBuilder_ == null) { + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.add(builderForValue.build()); + onChanged(); + } else { + pscVerificationKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder addPscVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (pscVerificationKeysBuilder_ == null) { + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + pscVerificationKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder addAllPscVerificationKeys( + java.lang.Iterable<? extends meerkat.protobuf.Crypto.SignatureVerificationKey> values) { + if (pscVerificationKeysBuilder_ == null) { + ensurePscVerificationKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pscVerificationKeys_); + onChanged(); + } else { + pscVerificationKeysBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder clearPscVerificationKeys() { + if (pscVerificationKeysBuilder_ == null) { + pscVerificationKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + pscVerificationKeysBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public Builder removePscVerificationKeys(int index) { + if (pscVerificationKeysBuilder_ == null) { + ensurePscVerificationKeysIsMutable(); + pscVerificationKeys_.remove(index); + onChanged(); + } else { + pscVerificationKeysBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder getPscVerificationKeysBuilder( + int index) { + return getPscVerificationKeysFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getPscVerificationKeysOrBuilder( + int index) { + if (pscVerificationKeysBuilder_ == null) { + return pscVerificationKeys_.get(index); } else { + return pscVerificationKeysBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getPscVerificationKeysOrBuilderList() { + if (pscVerificationKeysBuilder_ != null) { + return pscVerificationKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pscVerificationKeys_); + } + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addPscVerificationKeysBuilder() { + return getPscVerificationKeysFieldBuilder().addBuilder( + meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addPscVerificationKeysBuilder( + int index) { + return getPscVerificationKeysFieldBuilder().addBuilder( + index, meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.SignatureVerificationKey pscVerificationKeys = 1;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey.Builder> + getPscVerificationKeysBuilderList() { + return getPscVerificationKeysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getPscVerificationKeysFieldBuilder() { + if (pscVerificationKeysBuilder_ == null) { + pscVerificationKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder>( + pscVerificationKeys_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + pscVerificationKeys_ = null; + } + return pscVerificationKeysBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BoothParams) + } + + // @@protoc_insertion_point(class_scope:meerkat.BoothParams) + private static final meerkat.protobuf.Voting.BoothParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BoothParams(); + } + + public static meerkat.protobuf.Voting.BoothParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<BoothParams> + PARSER = new com.google.protobuf.AbstractParser<BoothParams>() { + public BoothParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoothParams(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<BoothParams> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<BoothParams> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.BoothParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BoothSystemMessagesOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BoothSystemMessages) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + int getSystemMessageCount(); + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + boolean containsSystemMessage( + java.lang.String key); + /** + * Use {@link #getSystemMessageMap()} instead. + */ + @java.lang.Deprecated + java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> + getSystemMessage(); + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> + getSystemMessageMap(); + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + meerkat.protobuf.Voting.UIElement getSystemMessageOrDefault( + java.lang.String key, + meerkat.protobuf.Voting.UIElement defaultValue); + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + meerkat.protobuf.Voting.UIElement getSystemMessageOrThrow( + java.lang.String key); + } + /** + * Protobuf type {@code meerkat.BoothSystemMessages} + */ + public static final class BoothSystemMessages extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BoothSystemMessages) + BoothSystemMessagesOrBuilder { + // Use BoothSystemMessages.newBuilder() to construct. + private BoothSystemMessages(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private BoothSystemMessages() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BoothSystemMessages( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + systemMessage_ = com.google.protobuf.MapField.newMapField( + SystemMessageDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry<java.lang.String, meerkat.protobuf.Voting.UIElement> + systemMessage__ = input.readMessage( + SystemMessageDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + systemMessage_.getMutableMap().put( + systemMessage__.getKey(), systemMessage__.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetSystemMessage(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BoothSystemMessages.class, meerkat.protobuf.Voting.BoothSystemMessages.Builder.class); + } + + public static final int SYSTEM_MESSAGE_FIELD_NUMBER = 1; + private static final class SystemMessageDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, meerkat.protobuf.Voting.UIElement> defaultEntry = + com.google.protobuf.MapEntry + .<java.lang.String, meerkat.protobuf.Voting.UIElement>newDefaultInstance( + meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + meerkat.protobuf.Voting.UIElement.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, meerkat.protobuf.Voting.UIElement> systemMessage_; + private com.google.protobuf.MapField<java.lang.String, meerkat.protobuf.Voting.UIElement> + internalGetSystemMessage() { + if (systemMessage_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SystemMessageDefaultEntryHolder.defaultEntry); + } + return systemMessage_; + } + + public int getSystemMessageCount() { + return internalGetSystemMessage().getMap().size(); + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public boolean containsSystemMessage( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSystemMessage().getMap().containsKey(key); + } + /** + * Use {@link #getSystemMessageMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessage() { + return getSystemMessageMap(); + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessageMap() { + return internalGetSystemMessage().getMap(); + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public meerkat.protobuf.Voting.UIElement getSystemMessageOrDefault( + java.lang.String key, + meerkat.protobuf.Voting.UIElement defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = + internalGetSystemMessage().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public meerkat.protobuf.Voting.UIElement getSystemMessageOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = + internalGetSystemMessage().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSystemMessage(), + SystemMessageDefaultEntryHolder.defaultEntry, + 1); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry<java.lang.String, meerkat.protobuf.Voting.UIElement> entry + : internalGetSystemMessage().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, meerkat.protobuf.Voting.UIElement> + systemMessage__ = SystemMessageDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, systemMessage__); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.BoothSystemMessages)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.BoothSystemMessages other = (meerkat.protobuf.Voting.BoothSystemMessages) obj; + + boolean result = true; + result = result && internalGetSystemMessage().equals( + other.internalGetSystemMessage()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetSystemMessage().getMap().isEmpty()) { + hash = (37 * hash) + SYSTEM_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + internalGetSystemMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BoothSystemMessages parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.BoothSystemMessages prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.BoothSystemMessages} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.BoothSystemMessages) + meerkat.protobuf.Voting.BoothSystemMessagesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetSystemMessage(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableSystemMessage(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BoothSystemMessages.class, meerkat.protobuf.Voting.BoothSystemMessages.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.BoothSystemMessages.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableSystemMessage().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_BoothSystemMessages_descriptor; + } + + public meerkat.protobuf.Voting.BoothSystemMessages getDefaultInstanceForType() { + return meerkat.protobuf.Voting.BoothSystemMessages.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.BoothSystemMessages build() { + meerkat.protobuf.Voting.BoothSystemMessages result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.BoothSystemMessages buildPartial() { + meerkat.protobuf.Voting.BoothSystemMessages result = new meerkat.protobuf.Voting.BoothSystemMessages(this); + int from_bitField0_ = bitField0_; + result.systemMessage_ = internalGetSystemMessage(); + result.systemMessage_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.BoothSystemMessages) { + return mergeFrom((meerkat.protobuf.Voting.BoothSystemMessages)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.BoothSystemMessages other) { + if (other == meerkat.protobuf.Voting.BoothSystemMessages.getDefaultInstance()) return this; + internalGetMutableSystemMessage().mergeFrom( + other.internalGetSystemMessage()); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.BoothSystemMessages parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.BoothSystemMessages) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, meerkat.protobuf.Voting.UIElement> systemMessage_; + private com.google.protobuf.MapField<java.lang.String, meerkat.protobuf.Voting.UIElement> + internalGetSystemMessage() { + if (systemMessage_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SystemMessageDefaultEntryHolder.defaultEntry); + } + return systemMessage_; + } + private com.google.protobuf.MapField<java.lang.String, meerkat.protobuf.Voting.UIElement> + internalGetMutableSystemMessage() { + onChanged();; + if (systemMessage_ == null) { + systemMessage_ = com.google.protobuf.MapField.newMapField( + SystemMessageDefaultEntryHolder.defaultEntry); + } + if (!systemMessage_.isMutable()) { + systemMessage_ = systemMessage_.copy(); + } + return systemMessage_; + } + + public int getSystemMessageCount() { + return internalGetSystemMessage().getMap().size(); + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public boolean containsSystemMessage( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSystemMessage().getMap().containsKey(key); + } + /** + * Use {@link #getSystemMessageMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessage() { + return getSystemMessageMap(); + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> getSystemMessageMap() { + return internalGetSystemMessage().getMap(); + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public meerkat.protobuf.Voting.UIElement getSystemMessageOrDefault( + java.lang.String key, + meerkat.protobuf.Voting.UIElement defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = + internalGetSystemMessage().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public meerkat.protobuf.Voting.UIElement getSystemMessageOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> map = + internalGetSystemMessage().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSystemMessage() { + internalGetMutableSystemMessage().getMutableMap() + .clear(); + return this; + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public Builder removeSystemMessage( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSystemMessage().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> + getMutableSystemMessage() { + return internalGetMutableSystemMessage().getMutableMap(); + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + public Builder putSystemMessage( + java.lang.String key, + meerkat.protobuf.Voting.UIElement value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSystemMessage().getMutableMap() + .put(key, value); + return this; + } + /** + * <code>map&lt;string, .meerkat.UIElement&gt; system_message = 1;</code> + */ + + public Builder putAllSystemMessage( + java.util.Map<java.lang.String, meerkat.protobuf.Voting.UIElement> values) { + internalGetMutableSystemMessage().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BoothSystemMessages) + } + + // @@protoc_insertion_point(class_scope:meerkat.BoothSystemMessages) + private static final meerkat.protobuf.Voting.BoothSystemMessages DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BoothSystemMessages(); + } + + public static meerkat.protobuf.Voting.BoothSystemMessages getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<BoothSystemMessages> + PARSER = new com.google.protobuf.AbstractParser<BoothSystemMessages>() { + public BoothSystemMessages parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoothSystemMessages(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<BoothSystemMessages> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<BoothSystemMessages> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.BoothSystemMessages getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BallotAnswerTranslationTableOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BallotAnswerTranslationTable) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>bytes data = 1;</code> + */ + com.google.protobuf.ByteString getData(); + } + /** + * <pre> + * A table to translate to and from compactly encoded answers + * and their human-understandable counterparts. + * This should be parsable by the UI + * </pre> + * + * Protobuf type {@code meerkat.BallotAnswerTranslationTable} + */ + public static final class BallotAnswerTranslationTable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BallotAnswerTranslationTable) + BallotAnswerTranslationTableOrBuilder { + // Use BallotAnswerTranslationTable.newBuilder() to construct. + private BallotAnswerTranslationTable(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private BallotAnswerTranslationTable() { + data_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BallotAnswerTranslationTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotAnswerTranslationTable.class, meerkat.protobuf.Voting.BallotAnswerTranslationTable.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + * <code>bytes data = 1;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.BallotAnswerTranslationTable)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.BallotAnswerTranslationTable other = (meerkat.protobuf.Voting.BallotAnswerTranslationTable) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.BallotAnswerTranslationTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * A table to translate to and from compactly encoded answers + * and their human-understandable counterparts. + * This should be parsable by the UI + * </pre> + * + * Protobuf type {@code meerkat.BallotAnswerTranslationTable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.BallotAnswerTranslationTable) + meerkat.protobuf.Voting.BallotAnswerTranslationTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BallotAnswerTranslationTable.class, meerkat.protobuf.Voting.BallotAnswerTranslationTable.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.BallotAnswerTranslationTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_BallotAnswerTranslationTable_descriptor; + } + + public meerkat.protobuf.Voting.BallotAnswerTranslationTable getDefaultInstanceForType() { + return meerkat.protobuf.Voting.BallotAnswerTranslationTable.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.BallotAnswerTranslationTable build() { + meerkat.protobuf.Voting.BallotAnswerTranslationTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.BallotAnswerTranslationTable buildPartial() { + meerkat.protobuf.Voting.BallotAnswerTranslationTable result = new meerkat.protobuf.Voting.BallotAnswerTranslationTable(this); + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.BallotAnswerTranslationTable) { + return mergeFrom((meerkat.protobuf.Voting.BallotAnswerTranslationTable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.BallotAnswerTranslationTable other) { + if (other == meerkat.protobuf.Voting.BallotAnswerTranslationTable.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.BallotAnswerTranslationTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.BallotAnswerTranslationTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * <code>bytes data = 1;</code> + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * <code>bytes data = 1;</code> + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + * <code>bytes data = 1;</code> + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BallotAnswerTranslationTable) + } + + // @@protoc_insertion_point(class_scope:meerkat.BallotAnswerTranslationTable) + private static final meerkat.protobuf.Voting.BallotAnswerTranslationTable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BallotAnswerTranslationTable(); + } + + public static meerkat.protobuf.Voting.BallotAnswerTranslationTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<BallotAnswerTranslationTable> + PARSER = new com.google.protobuf.AbstractParser<BallotAnswerTranslationTable>() { + public BallotAnswerTranslationTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BallotAnswerTranslationTable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<BallotAnswerTranslationTable> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<BallotAnswerTranslationTable> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.BallotAnswerTranslationTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BulletinBoardClientParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.BulletinBoardClientParams) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + java.util.List<java.lang.String> + getBulletinBoardAddressList(); + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + int getBulletinBoardAddressCount(); + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + java.lang.String getBulletinBoardAddress(int index); + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + com.google.protobuf.ByteString + getBulletinBoardAddressBytes(int index); + + /** + * <pre> + * Threshold fraction of successful servers posts before a post task is considered complete + * </pre> + * + * <code>float minRedundancy = 2;</code> + */ + float getMinRedundancy(); + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * Protobuf type {@code meerkat.BulletinBoardClientParams} + */ + public static final class BulletinBoardClientParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.BulletinBoardClientParams) + BulletinBoardClientParamsOrBuilder { + // Use BulletinBoardClientParams.newBuilder() to construct. + private BulletinBoardClientParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private BulletinBoardClientParams() { + bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + minRedundancy_ = 0F; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private BulletinBoardClientParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + bulletinBoardAddress_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bulletinBoardAddress_.add(s); + break; + } + case 21: { + + minRedundancy_ = input.readFloat(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + bulletinBoardAddress_ = bulletinBoardAddress_.getUnmodifiableView(); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BulletinBoardClientParams.class, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder.class); + } + + private int bitField0_; + public static final int BULLETINBOARDADDRESS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList bulletinBoardAddress_; + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public com.google.protobuf.ProtocolStringList + getBulletinBoardAddressList() { + return bulletinBoardAddress_; + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public int getBulletinBoardAddressCount() { + return bulletinBoardAddress_.size(); + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public java.lang.String getBulletinBoardAddress(int index) { + return bulletinBoardAddress_.get(index); + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public com.google.protobuf.ByteString + getBulletinBoardAddressBytes(int index) { + return bulletinBoardAddress_.getByteString(index); + } + + public static final int MINREDUNDANCY_FIELD_NUMBER = 2; + private float minRedundancy_; + /** + * <pre> + * Threshold fraction of successful servers posts before a post task is considered complete + * </pre> + * + * <code>float minRedundancy = 2;</code> + */ + public float getMinRedundancy() { + return minRedundancy_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < bulletinBoardAddress_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bulletinBoardAddress_.getRaw(i)); + } + if (minRedundancy_ != 0F) { + output.writeFloat(2, minRedundancy_); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < bulletinBoardAddress_.size(); i++) { + dataSize += computeStringSizeNoTag(bulletinBoardAddress_.getRaw(i)); + } + size += dataSize; + size += 1 * getBulletinBoardAddressList().size(); + } + if (minRedundancy_ != 0F) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, minRedundancy_); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.BulletinBoardClientParams)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.BulletinBoardClientParams other = (meerkat.protobuf.Voting.BulletinBoardClientParams) obj; + + boolean result = true; + result = result && getBulletinBoardAddressList() + .equals(other.getBulletinBoardAddressList()); + result = result && ( + java.lang.Float.floatToIntBits(getMinRedundancy()) + == java.lang.Float.floatToIntBits( + other.getMinRedundancy())); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBulletinBoardAddressCount() > 0) { + hash = (37 * hash) + BULLETINBOARDADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getBulletinBoardAddressList().hashCode(); + } + hash = (37 * hash) + MINREDUNDANCY_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMinRedundancy()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.BulletinBoardClientParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.BulletinBoardClientParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * Protobuf type {@code meerkat.BulletinBoardClientParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.BulletinBoardClientParams) + meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.BulletinBoardClientParams.class, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.BulletinBoardClientParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + minRedundancy_ = 0F; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_BulletinBoardClientParams_descriptor; + } + + public meerkat.protobuf.Voting.BulletinBoardClientParams getDefaultInstanceForType() { + return meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.BulletinBoardClientParams build() { + meerkat.protobuf.Voting.BulletinBoardClientParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.BulletinBoardClientParams buildPartial() { + meerkat.protobuf.Voting.BulletinBoardClientParams result = new meerkat.protobuf.Voting.BulletinBoardClientParams(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + bulletinBoardAddress_ = bulletinBoardAddress_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bulletinBoardAddress_ = bulletinBoardAddress_; + result.minRedundancy_ = minRedundancy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.BulletinBoardClientParams) { + return mergeFrom((meerkat.protobuf.Voting.BulletinBoardClientParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.BulletinBoardClientParams other) { + if (other == meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance()) return this; + if (!other.bulletinBoardAddress_.isEmpty()) { + if (bulletinBoardAddress_.isEmpty()) { + bulletinBoardAddress_ = other.bulletinBoardAddress_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBulletinBoardAddressIsMutable(); + bulletinBoardAddress_.addAll(other.bulletinBoardAddress_); + } + onChanged(); + } + if (other.getMinRedundancy() != 0F) { + setMinRedundancy(other.getMinRedundancy()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.BulletinBoardClientParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.BulletinBoardClientParams) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBulletinBoardAddressIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + bulletinBoardAddress_ = new com.google.protobuf.LazyStringArrayList(bulletinBoardAddress_); + bitField0_ |= 0x00000001; + } + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public com.google.protobuf.ProtocolStringList + getBulletinBoardAddressList() { + return bulletinBoardAddress_.getUnmodifiableView(); + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public int getBulletinBoardAddressCount() { + return bulletinBoardAddress_.size(); + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public java.lang.String getBulletinBoardAddress(int index) { + return bulletinBoardAddress_.get(index); + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public com.google.protobuf.ByteString + getBulletinBoardAddressBytes(int index) { + return bulletinBoardAddress_.getByteString(index); + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public Builder setBulletinBoardAddress( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBulletinBoardAddressIsMutable(); + bulletinBoardAddress_.set(index, value); + onChanged(); + return this; + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public Builder addBulletinBoardAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBulletinBoardAddressIsMutable(); + bulletinBoardAddress_.add(value); + onChanged(); + return this; + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public Builder addAllBulletinBoardAddress( + java.lang.Iterable<java.lang.String> values) { + ensureBulletinBoardAddressIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bulletinBoardAddress_); + onChanged(); + return this; + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public Builder clearBulletinBoardAddress() { + bulletinBoardAddress_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * <pre> + * Addresses of all Bulletin Board Servers + * </pre> + * + * <code>repeated string bulletinBoardAddress = 1;</code> + */ + public Builder addBulletinBoardAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBulletinBoardAddressIsMutable(); + bulletinBoardAddress_.add(value); + onChanged(); + return this; + } + + private float minRedundancy_ ; + /** + * <pre> + * Threshold fraction of successful servers posts before a post task is considered complete + * </pre> + * + * <code>float minRedundancy = 2;</code> + */ + public float getMinRedundancy() { + return minRedundancy_; + } + /** + * <pre> + * Threshold fraction of successful servers posts before a post task is considered complete + * </pre> + * + * <code>float minRedundancy = 2;</code> + */ + public Builder setMinRedundancy(float value) { + + minRedundancy_ = value; + onChanged(); + return this; + } + /** + * <pre> + * Threshold fraction of successful servers posts before a post task is considered complete + * </pre> + * + * <code>float minRedundancy = 2;</code> + */ + public Builder clearMinRedundancy() { + + minRedundancy_ = 0F; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.BulletinBoardClientParams) + } + + // @@protoc_insertion_point(class_scope:meerkat.BulletinBoardClientParams) + private static final meerkat.protobuf.Voting.BulletinBoardClientParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.BulletinBoardClientParams(); + } + + public static meerkat.protobuf.Voting.BulletinBoardClientParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<BulletinBoardClientParams> + PARSER = new com.google.protobuf.AbstractParser<BulletinBoardClientParams>() { + public BulletinBoardClientParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BulletinBoardClientParams(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<BulletinBoardClientParams> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<BulletinBoardClientParams> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.BulletinBoardClientParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ElectionParamsOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.ElectionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> + getTrusteeVerificationKeysList(); + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + meerkat.protobuf.Crypto.SignatureVerificationKey getTrusteeVerificationKeys(int index); + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + int getTrusteeVerificationKeysCount(); + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getTrusteeVerificationKeysOrBuilderList(); + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getTrusteeVerificationKeysOrBuilder( + int index); + + /** + * <pre> + * How many trustees must participate in a signature for it to be considered valid. + * </pre> + * + * <code>uint32 trusteeSignatureThreshold = 2;</code> + */ + int getTrusteeSignatureThreshold(); + + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + boolean hasBallotEncryptionKey(); + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + meerkat.protobuf.Crypto.EncryptionPublicKey getBallotEncryptionKey(); + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder getBallotEncryptionKeyOrBuilder(); + + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> + getMixerVerificationKeysList(); + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + meerkat.protobuf.Crypto.SignatureVerificationKey getMixerVerificationKeys(int index); + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + int getMixerVerificationKeysCount(); + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getMixerVerificationKeysOrBuilderList(); + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getMixerVerificationKeysOrBuilder( + int index); + + /** + * <pre> + * How many mixers must participate for the network to be considered valid + * </pre> + * + * <code>uint32 mixerThreshold = 5;</code> + */ + int getMixerThreshold(); + + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + java.util.List<meerkat.protobuf.Voting.BallotQuestion> + getChannelChoiceQuestionsList(); + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + meerkat.protobuf.Voting.BallotQuestion getChannelChoiceQuestions(int index); + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + int getChannelChoiceQuestionsCount(); + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getChannelChoiceQuestionsOrBuilderList(); + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + meerkat.protobuf.Voting.BallotQuestionOrBuilder getChannelChoiceQuestionsOrBuilder( + int index); + + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + boolean hasSelectionData(); + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + meerkat.protobuf.Voting.SimpleCategoriesSelectionData getSelectionData(); + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder getSelectionDataOrBuilder(); + + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + java.util.List<meerkat.protobuf.Voting.BallotQuestion> + getRaceQuestionsList(); + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + meerkat.protobuf.Voting.BallotQuestion getRaceQuestions(int index); + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + int getRaceQuestionsCount(); + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getRaceQuestionsOrBuilderList(); + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + meerkat.protobuf.Voting.BallotQuestionOrBuilder getRaceQuestionsOrBuilder( + int index); + + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + boolean hasBulletinBoardClientParams(); + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + meerkat.protobuf.Voting.BulletinBoardClientParams getBulletinBoardClientParams(); + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder getBulletinBoardClientParamsOrBuilder(); + } + /** + * Protobuf type {@code meerkat.ElectionParams} + */ + public static final class ElectionParams extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.ElectionParams) + ElectionParamsOrBuilder { + // Use ElectionParams.newBuilder() to construct. + private ElectionParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private ElectionParams() { + trusteeVerificationKeys_ = java.util.Collections.emptyList(); + trusteeSignatureThreshold_ = 0; + mixerVerificationKeys_ = java.util.Collections.emptyList(); + mixerThreshold_ = 0; + channelChoiceQuestions_ = java.util.Collections.emptyList(); + raceQuestions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private ElectionParams( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + trusteeVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(); + mutable_bitField0_ |= 0x00000001; + } + trusteeVerificationKeys_.add( + input.readMessage(meerkat.protobuf.Crypto.SignatureVerificationKey.parser(), extensionRegistry)); + break; + } + case 16: { + + trusteeSignatureThreshold_ = input.readUInt32(); + break; + } + case 26: { + meerkat.protobuf.Crypto.EncryptionPublicKey.Builder subBuilder = null; + if (ballotEncryptionKey_ != null) { + subBuilder = ballotEncryptionKey_.toBuilder(); + } + ballotEncryptionKey_ = input.readMessage(meerkat.protobuf.Crypto.EncryptionPublicKey.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ballotEncryptionKey_); + ballotEncryptionKey_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + mixerVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(); + mutable_bitField0_ |= 0x00000008; + } + mixerVerificationKeys_.add( + input.readMessage(meerkat.protobuf.Crypto.SignatureVerificationKey.parser(), extensionRegistry)); + break; + } + case 40: { + + mixerThreshold_ = input.readUInt32(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + channelChoiceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(); + mutable_bitField0_ |= 0x00000020; + } + channelChoiceQuestions_.add( + input.readMessage(meerkat.protobuf.Voting.BallotQuestion.parser(), extensionRegistry)); + break; + } + case 58: { + meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder subBuilder = null; + if (selectionData_ != null) { + subBuilder = selectionData_.toBuilder(); + } + selectionData_ = input.readMessage(meerkat.protobuf.Voting.SimpleCategoriesSelectionData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(selectionData_); + selectionData_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + raceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(); + mutable_bitField0_ |= 0x00000080; + } + raceQuestions_.add( + input.readMessage(meerkat.protobuf.Voting.BallotQuestion.parser(), extensionRegistry)); + break; + } + case 74: { + meerkat.protobuf.Voting.BulletinBoardClientParams.Builder subBuilder = null; + if (bulletinBoardClientParams_ != null) { + subBuilder = bulletinBoardClientParams_.toBuilder(); + } + bulletinBoardClientParams_ = input.readMessage(meerkat.protobuf.Voting.BulletinBoardClientParams.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bulletinBoardClientParams_); + bulletinBoardClientParams_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + trusteeVerificationKeys_ = java.util.Collections.unmodifiableList(trusteeVerificationKeys_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + mixerVerificationKeys_ = java.util.Collections.unmodifiableList(mixerVerificationKeys_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + channelChoiceQuestions_ = java.util.Collections.unmodifiableList(channelChoiceQuestions_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + raceQuestions_ = java.util.Collections.unmodifiableList(raceQuestions_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.ElectionParams.class, meerkat.protobuf.Voting.ElectionParams.Builder.class); + } + + private int bitField0_; + public static final int TRUSTEEVERIFICATIONKEYS_FIELD_NUMBER = 1; + private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> trusteeVerificationKeys_; + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getTrusteeVerificationKeysList() { + return trusteeVerificationKeys_; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getTrusteeVerificationKeysOrBuilderList() { + return trusteeVerificationKeys_; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public int getTrusteeVerificationKeysCount() { + return trusteeVerificationKeys_.size(); + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey getTrusteeVerificationKeys(int index) { + return trusteeVerificationKeys_.get(index); + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getTrusteeVerificationKeysOrBuilder( + int index) { + return trusteeVerificationKeys_.get(index); + } + + public static final int TRUSTEESIGNATURETHRESHOLD_FIELD_NUMBER = 2; + private int trusteeSignatureThreshold_; + /** + * <pre> + * How many trustees must participate in a signature for it to be considered valid. + * </pre> + * + * <code>uint32 trusteeSignatureThreshold = 2;</code> + */ + public int getTrusteeSignatureThreshold() { + return trusteeSignatureThreshold_; + } + + public static final int BALLOTENCRYPTIONKEY_FIELD_NUMBER = 3; + private meerkat.protobuf.Crypto.EncryptionPublicKey ballotEncryptionKey_; + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public boolean hasBallotEncryptionKey() { + return ballotEncryptionKey_ != null; + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public meerkat.protobuf.Crypto.EncryptionPublicKey getBallotEncryptionKey() { + return ballotEncryptionKey_ == null ? meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance() : ballotEncryptionKey_; + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder getBallotEncryptionKeyOrBuilder() { + return getBallotEncryptionKey(); + } + + public static final int MIXERVERIFICATIONKEYS_FIELD_NUMBER = 4; + private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> mixerVerificationKeys_; + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getMixerVerificationKeysList() { + return mixerVerificationKeys_; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getMixerVerificationKeysOrBuilderList() { + return mixerVerificationKeys_; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public int getMixerVerificationKeysCount() { + return mixerVerificationKeys_.size(); + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey getMixerVerificationKeys(int index) { + return mixerVerificationKeys_.get(index); + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getMixerVerificationKeysOrBuilder( + int index) { + return mixerVerificationKeys_.get(index); + } + + public static final int MIXERTHRESHOLD_FIELD_NUMBER = 5; + private int mixerThreshold_; + /** + * <pre> + * How many mixers must participate for the network to be considered valid + * </pre> + * + * <code>uint32 mixerThreshold = 5;</code> + */ + public int getMixerThreshold() { + return mixerThreshold_; + } + + public static final int CHANNEL_CHOICE_QUESTIONS_FIELD_NUMBER = 6; + private java.util.List<meerkat.protobuf.Voting.BallotQuestion> channelChoiceQuestions_; + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getChannelChoiceQuestionsList() { + return channelChoiceQuestions_; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getChannelChoiceQuestionsOrBuilderList() { + return channelChoiceQuestions_; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public int getChannelChoiceQuestionsCount() { + return channelChoiceQuestions_.size(); + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion getChannelChoiceQuestions(int index) { + return channelChoiceQuestions_.get(index); + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public meerkat.protobuf.Voting.BallotQuestionOrBuilder getChannelChoiceQuestionsOrBuilder( + int index) { + return channelChoiceQuestions_.get(index); + } + + public static final int SELECTION_DATA_FIELD_NUMBER = 7; + private meerkat.protobuf.Voting.SimpleCategoriesSelectionData selectionData_; + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public boolean hasSelectionData() { + return selectionData_ != null; + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getSelectionData() { + return selectionData_ == null ? meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance() : selectionData_; + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder getSelectionDataOrBuilder() { + return getSelectionData(); + } + + public static final int RACE_QUESTIONS_FIELD_NUMBER = 8; + private java.util.List<meerkat.protobuf.Voting.BallotQuestion> raceQuestions_; + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getRaceQuestionsList() { + return raceQuestions_; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getRaceQuestionsOrBuilderList() { + return raceQuestions_; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public int getRaceQuestionsCount() { + return raceQuestions_.size(); + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion getRaceQuestions(int index) { + return raceQuestions_.get(index); + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public meerkat.protobuf.Voting.BallotQuestionOrBuilder getRaceQuestionsOrBuilder( + int index) { + return raceQuestions_.get(index); + } + + public static final int BULLETINBOARDCLIENTPARAMS_FIELD_NUMBER = 9; + private meerkat.protobuf.Voting.BulletinBoardClientParams bulletinBoardClientParams_; + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public boolean hasBulletinBoardClientParams() { + return bulletinBoardClientParams_ != null; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public meerkat.protobuf.Voting.BulletinBoardClientParams getBulletinBoardClientParams() { + return bulletinBoardClientParams_ == null ? meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance() : bulletinBoardClientParams_; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder getBulletinBoardClientParamsOrBuilder() { + return getBulletinBoardClientParams(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < trusteeVerificationKeys_.size(); i++) { + output.writeMessage(1, trusteeVerificationKeys_.get(i)); + } + if (trusteeSignatureThreshold_ != 0) { + output.writeUInt32(2, trusteeSignatureThreshold_); + } + if (ballotEncryptionKey_ != null) { + output.writeMessage(3, getBallotEncryptionKey()); + } + for (int i = 0; i < mixerVerificationKeys_.size(); i++) { + output.writeMessage(4, mixerVerificationKeys_.get(i)); + } + if (mixerThreshold_ != 0) { + output.writeUInt32(5, mixerThreshold_); + } + for (int i = 0; i < channelChoiceQuestions_.size(); i++) { + output.writeMessage(6, channelChoiceQuestions_.get(i)); + } + if (selectionData_ != null) { + output.writeMessage(7, getSelectionData()); + } + for (int i = 0; i < raceQuestions_.size(); i++) { + output.writeMessage(8, raceQuestions_.get(i)); + } + if (bulletinBoardClientParams_ != null) { + output.writeMessage(9, getBulletinBoardClientParams()); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < trusteeVerificationKeys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, trusteeVerificationKeys_.get(i)); + } + if (trusteeSignatureThreshold_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, trusteeSignatureThreshold_); + } + if (ballotEncryptionKey_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBallotEncryptionKey()); + } + for (int i = 0; i < mixerVerificationKeys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, mixerVerificationKeys_.get(i)); + } + if (mixerThreshold_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, mixerThreshold_); + } + for (int i = 0; i < channelChoiceQuestions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, channelChoiceQuestions_.get(i)); + } + if (selectionData_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSelectionData()); + } + for (int i = 0; i < raceQuestions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, raceQuestions_.get(i)); + } + if (bulletinBoardClientParams_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getBulletinBoardClientParams()); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.ElectionParams)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.ElectionParams other = (meerkat.protobuf.Voting.ElectionParams) obj; + + boolean result = true; + result = result && getTrusteeVerificationKeysList() + .equals(other.getTrusteeVerificationKeysList()); + result = result && (getTrusteeSignatureThreshold() + == other.getTrusteeSignatureThreshold()); + result = result && (hasBallotEncryptionKey() == other.hasBallotEncryptionKey()); + if (hasBallotEncryptionKey()) { + result = result && getBallotEncryptionKey() + .equals(other.getBallotEncryptionKey()); + } + result = result && getMixerVerificationKeysList() + .equals(other.getMixerVerificationKeysList()); + result = result && (getMixerThreshold() + == other.getMixerThreshold()); + result = result && getChannelChoiceQuestionsList() + .equals(other.getChannelChoiceQuestionsList()); + result = result && (hasSelectionData() == other.hasSelectionData()); + if (hasSelectionData()) { + result = result && getSelectionData() + .equals(other.getSelectionData()); + } + result = result && getRaceQuestionsList() + .equals(other.getRaceQuestionsList()); + result = result && (hasBulletinBoardClientParams() == other.hasBulletinBoardClientParams()); + if (hasBulletinBoardClientParams()) { + result = result && getBulletinBoardClientParams() + .equals(other.getBulletinBoardClientParams()); + } + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTrusteeVerificationKeysCount() > 0) { + hash = (37 * hash) + TRUSTEEVERIFICATIONKEYS_FIELD_NUMBER; + hash = (53 * hash) + getTrusteeVerificationKeysList().hashCode(); + } + hash = (37 * hash) + TRUSTEESIGNATURETHRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getTrusteeSignatureThreshold(); + if (hasBallotEncryptionKey()) { + hash = (37 * hash) + BALLOTENCRYPTIONKEY_FIELD_NUMBER; + hash = (53 * hash) + getBallotEncryptionKey().hashCode(); + } + if (getMixerVerificationKeysCount() > 0) { + hash = (37 * hash) + MIXERVERIFICATIONKEYS_FIELD_NUMBER; + hash = (53 * hash) + getMixerVerificationKeysList().hashCode(); + } + hash = (37 * hash) + MIXERTHRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getMixerThreshold(); + if (getChannelChoiceQuestionsCount() > 0) { + hash = (37 * hash) + CHANNEL_CHOICE_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getChannelChoiceQuestionsList().hashCode(); + } + if (hasSelectionData()) { + hash = (37 * hash) + SELECTION_DATA_FIELD_NUMBER; + hash = (53 * hash) + getSelectionData().hashCode(); + } + if (getRaceQuestionsCount() > 0) { + hash = (37 * hash) + RACE_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRaceQuestionsList().hashCode(); + } + if (hasBulletinBoardClientParams()) { + hash = (37 * hash) + BULLETINBOARDCLIENTPARAMS_FIELD_NUMBER; + hash = (53 * hash) + getBulletinBoardClientParams().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.ElectionParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.ElectionParams parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.ElectionParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.ElectionParams parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.ElectionParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.ElectionParams parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.ElectionParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.ElectionParams parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.ElectionParams parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.ElectionParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.ElectionParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.ElectionParams} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.ElectionParams) + meerkat.protobuf.Voting.ElectionParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.ElectionParams.class, meerkat.protobuf.Voting.ElectionParams.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.ElectionParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTrusteeVerificationKeysFieldBuilder(); + getMixerVerificationKeysFieldBuilder(); + getChannelChoiceQuestionsFieldBuilder(); + getRaceQuestionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (trusteeVerificationKeysBuilder_ == null) { + trusteeVerificationKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + trusteeVerificationKeysBuilder_.clear(); + } + trusteeSignatureThreshold_ = 0; + + if (ballotEncryptionKeyBuilder_ == null) { + ballotEncryptionKey_ = null; + } else { + ballotEncryptionKey_ = null; + ballotEncryptionKeyBuilder_ = null; + } + if (mixerVerificationKeysBuilder_ == null) { + mixerVerificationKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + mixerVerificationKeysBuilder_.clear(); + } + mixerThreshold_ = 0; + + if (channelChoiceQuestionsBuilder_ == null) { + channelChoiceQuestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + channelChoiceQuestionsBuilder_.clear(); + } + if (selectionDataBuilder_ == null) { + selectionData_ = null; + } else { + selectionData_ = null; + selectionDataBuilder_ = null; + } + if (raceQuestionsBuilder_ == null) { + raceQuestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + raceQuestionsBuilder_.clear(); + } + if (bulletinBoardClientParamsBuilder_ == null) { + bulletinBoardClientParams_ = null; + } else { + bulletinBoardClientParams_ = null; + bulletinBoardClientParamsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_ElectionParams_descriptor; + } + + public meerkat.protobuf.Voting.ElectionParams getDefaultInstanceForType() { + return meerkat.protobuf.Voting.ElectionParams.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.ElectionParams build() { + meerkat.protobuf.Voting.ElectionParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.ElectionParams buildPartial() { + meerkat.protobuf.Voting.ElectionParams result = new meerkat.protobuf.Voting.ElectionParams(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (trusteeVerificationKeysBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + trusteeVerificationKeys_ = java.util.Collections.unmodifiableList(trusteeVerificationKeys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.trusteeVerificationKeys_ = trusteeVerificationKeys_; + } else { + result.trusteeVerificationKeys_ = trusteeVerificationKeysBuilder_.build(); + } + result.trusteeSignatureThreshold_ = trusteeSignatureThreshold_; + if (ballotEncryptionKeyBuilder_ == null) { + result.ballotEncryptionKey_ = ballotEncryptionKey_; + } else { + result.ballotEncryptionKey_ = ballotEncryptionKeyBuilder_.build(); + } + if (mixerVerificationKeysBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + mixerVerificationKeys_ = java.util.Collections.unmodifiableList(mixerVerificationKeys_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.mixerVerificationKeys_ = mixerVerificationKeys_; + } else { + result.mixerVerificationKeys_ = mixerVerificationKeysBuilder_.build(); + } + result.mixerThreshold_ = mixerThreshold_; + if (channelChoiceQuestionsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + channelChoiceQuestions_ = java.util.Collections.unmodifiableList(channelChoiceQuestions_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.channelChoiceQuestions_ = channelChoiceQuestions_; + } else { + result.channelChoiceQuestions_ = channelChoiceQuestionsBuilder_.build(); + } + if (selectionDataBuilder_ == null) { + result.selectionData_ = selectionData_; + } else { + result.selectionData_ = selectionDataBuilder_.build(); + } + if (raceQuestionsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + raceQuestions_ = java.util.Collections.unmodifiableList(raceQuestions_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.raceQuestions_ = raceQuestions_; + } else { + result.raceQuestions_ = raceQuestionsBuilder_.build(); + } + if (bulletinBoardClientParamsBuilder_ == null) { + result.bulletinBoardClientParams_ = bulletinBoardClientParams_; + } else { + result.bulletinBoardClientParams_ = bulletinBoardClientParamsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.ElectionParams) { + return mergeFrom((meerkat.protobuf.Voting.ElectionParams)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.ElectionParams other) { + if (other == meerkat.protobuf.Voting.ElectionParams.getDefaultInstance()) return this; + if (trusteeVerificationKeysBuilder_ == null) { + if (!other.trusteeVerificationKeys_.isEmpty()) { + if (trusteeVerificationKeys_.isEmpty()) { + trusteeVerificationKeys_ = other.trusteeVerificationKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.addAll(other.trusteeVerificationKeys_); + } + onChanged(); + } + } else { + if (!other.trusteeVerificationKeys_.isEmpty()) { + if (trusteeVerificationKeysBuilder_.isEmpty()) { + trusteeVerificationKeysBuilder_.dispose(); + trusteeVerificationKeysBuilder_ = null; + trusteeVerificationKeys_ = other.trusteeVerificationKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + trusteeVerificationKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTrusteeVerificationKeysFieldBuilder() : null; + } else { + trusteeVerificationKeysBuilder_.addAllMessages(other.trusteeVerificationKeys_); + } + } + } + if (other.getTrusteeSignatureThreshold() != 0) { + setTrusteeSignatureThreshold(other.getTrusteeSignatureThreshold()); + } + if (other.hasBallotEncryptionKey()) { + mergeBallotEncryptionKey(other.getBallotEncryptionKey()); + } + if (mixerVerificationKeysBuilder_ == null) { + if (!other.mixerVerificationKeys_.isEmpty()) { + if (mixerVerificationKeys_.isEmpty()) { + mixerVerificationKeys_ = other.mixerVerificationKeys_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.addAll(other.mixerVerificationKeys_); + } + onChanged(); + } + } else { + if (!other.mixerVerificationKeys_.isEmpty()) { + if (mixerVerificationKeysBuilder_.isEmpty()) { + mixerVerificationKeysBuilder_.dispose(); + mixerVerificationKeysBuilder_ = null; + mixerVerificationKeys_ = other.mixerVerificationKeys_; + bitField0_ = (bitField0_ & ~0x00000008); + mixerVerificationKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMixerVerificationKeysFieldBuilder() : null; + } else { + mixerVerificationKeysBuilder_.addAllMessages(other.mixerVerificationKeys_); + } + } + } + if (other.getMixerThreshold() != 0) { + setMixerThreshold(other.getMixerThreshold()); + } + if (channelChoiceQuestionsBuilder_ == null) { + if (!other.channelChoiceQuestions_.isEmpty()) { + if (channelChoiceQuestions_.isEmpty()) { + channelChoiceQuestions_ = other.channelChoiceQuestions_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.addAll(other.channelChoiceQuestions_); + } + onChanged(); + } + } else { + if (!other.channelChoiceQuestions_.isEmpty()) { + if (channelChoiceQuestionsBuilder_.isEmpty()) { + channelChoiceQuestionsBuilder_.dispose(); + channelChoiceQuestionsBuilder_ = null; + channelChoiceQuestions_ = other.channelChoiceQuestions_; + bitField0_ = (bitField0_ & ~0x00000020); + channelChoiceQuestionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getChannelChoiceQuestionsFieldBuilder() : null; + } else { + channelChoiceQuestionsBuilder_.addAllMessages(other.channelChoiceQuestions_); + } + } + } + if (other.hasSelectionData()) { + mergeSelectionData(other.getSelectionData()); + } + if (raceQuestionsBuilder_ == null) { + if (!other.raceQuestions_.isEmpty()) { + if (raceQuestions_.isEmpty()) { + raceQuestions_ = other.raceQuestions_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureRaceQuestionsIsMutable(); + raceQuestions_.addAll(other.raceQuestions_); + } + onChanged(); + } + } else { + if (!other.raceQuestions_.isEmpty()) { + if (raceQuestionsBuilder_.isEmpty()) { + raceQuestionsBuilder_.dispose(); + raceQuestionsBuilder_ = null; + raceQuestions_ = other.raceQuestions_; + bitField0_ = (bitField0_ & ~0x00000080); + raceQuestionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRaceQuestionsFieldBuilder() : null; + } else { + raceQuestionsBuilder_.addAllMessages(other.raceQuestions_); + } + } + } + if (other.hasBulletinBoardClientParams()) { + mergeBulletinBoardClientParams(other.getBulletinBoardClientParams()); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.ElectionParams parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.ElectionParams) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> trusteeVerificationKeys_ = + java.util.Collections.emptyList(); + private void ensureTrusteeVerificationKeysIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + trusteeVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(trusteeVerificationKeys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> trusteeVerificationKeysBuilder_; + + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getTrusteeVerificationKeysList() { + if (trusteeVerificationKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(trusteeVerificationKeys_); + } else { + return trusteeVerificationKeysBuilder_.getMessageList(); + } + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public int getTrusteeVerificationKeysCount() { + if (trusteeVerificationKeysBuilder_ == null) { + return trusteeVerificationKeys_.size(); + } else { + return trusteeVerificationKeysBuilder_.getCount(); + } + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey getTrusteeVerificationKeys(int index) { + if (trusteeVerificationKeysBuilder_ == null) { + return trusteeVerificationKeys_.get(index); + } else { + return trusteeVerificationKeysBuilder_.getMessage(index); + } + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder setTrusteeVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (trusteeVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.set(index, value); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.setMessage(index, value); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder setTrusteeVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (trusteeVerificationKeysBuilder_ == null) { + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder addTrusteeVerificationKeys(meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (trusteeVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.add(value); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.addMessage(value); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder addTrusteeVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (trusteeVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.add(index, value); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.addMessage(index, value); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder addTrusteeVerificationKeys( + meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (trusteeVerificationKeysBuilder_ == null) { + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.add(builderForValue.build()); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder addTrusteeVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (trusteeVerificationKeysBuilder_ == null) { + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder addAllTrusteeVerificationKeys( + java.lang.Iterable<? extends meerkat.protobuf.Crypto.SignatureVerificationKey> values) { + if (trusteeVerificationKeysBuilder_ == null) { + ensureTrusteeVerificationKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, trusteeVerificationKeys_); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.addAllMessages(values); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder clearTrusteeVerificationKeys() { + if (trusteeVerificationKeysBuilder_ == null) { + trusteeVerificationKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.clear(); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public Builder removeTrusteeVerificationKeys(int index) { + if (trusteeVerificationKeysBuilder_ == null) { + ensureTrusteeVerificationKeysIsMutable(); + trusteeVerificationKeys_.remove(index); + onChanged(); + } else { + trusteeVerificationKeysBuilder_.remove(index); + } + return this; + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder getTrusteeVerificationKeysBuilder( + int index) { + return getTrusteeVerificationKeysFieldBuilder().getBuilder(index); + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getTrusteeVerificationKeysOrBuilder( + int index) { + if (trusteeVerificationKeysBuilder_ == null) { + return trusteeVerificationKeys_.get(index); } else { + return trusteeVerificationKeysBuilder_.getMessageOrBuilder(index); + } + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getTrusteeVerificationKeysOrBuilderList() { + if (trusteeVerificationKeysBuilder_ != null) { + return trusteeVerificationKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(trusteeVerificationKeys_); + } + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addTrusteeVerificationKeysBuilder() { + return getTrusteeVerificationKeysFieldBuilder().addBuilder( + meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addTrusteeVerificationKeysBuilder( + int index) { + return getTrusteeVerificationKeysFieldBuilder().addBuilder( + index, meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); + } + /** + * <pre> + * TODO: different sets of keys for different roles? + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey trusteeVerificationKeys = 1;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey.Builder> + getTrusteeVerificationKeysBuilderList() { + return getTrusteeVerificationKeysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getTrusteeVerificationKeysFieldBuilder() { + if (trusteeVerificationKeysBuilder_ == null) { + trusteeVerificationKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder>( + trusteeVerificationKeys_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + trusteeVerificationKeys_ = null; + } + return trusteeVerificationKeysBuilder_; + } + + private int trusteeSignatureThreshold_ ; + /** + * <pre> + * How many trustees must participate in a signature for it to be considered valid. + * </pre> + * + * <code>uint32 trusteeSignatureThreshold = 2;</code> + */ + public int getTrusteeSignatureThreshold() { + return trusteeSignatureThreshold_; + } + /** + * <pre> + * How many trustees must participate in a signature for it to be considered valid. + * </pre> + * + * <code>uint32 trusteeSignatureThreshold = 2;</code> + */ + public Builder setTrusteeSignatureThreshold(int value) { + + trusteeSignatureThreshold_ = value; + onChanged(); + return this; + } + /** + * <pre> + * How many trustees must participate in a signature for it to be considered valid. + * </pre> + * + * <code>uint32 trusteeSignatureThreshold = 2;</code> + */ + public Builder clearTrusteeSignatureThreshold() { + + trusteeSignatureThreshold_ = 0; + onChanged(); + return this; + } + + private meerkat.protobuf.Crypto.EncryptionPublicKey ballotEncryptionKey_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.EncryptionPublicKey, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder, meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder> ballotEncryptionKeyBuilder_; + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public boolean hasBallotEncryptionKey() { + return ballotEncryptionKeyBuilder_ != null || ballotEncryptionKey_ != null; + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public meerkat.protobuf.Crypto.EncryptionPublicKey getBallotEncryptionKey() { + if (ballotEncryptionKeyBuilder_ == null) { + return ballotEncryptionKey_ == null ? meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance() : ballotEncryptionKey_; + } else { + return ballotEncryptionKeyBuilder_.getMessage(); + } + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public Builder setBallotEncryptionKey(meerkat.protobuf.Crypto.EncryptionPublicKey value) { + if (ballotEncryptionKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ballotEncryptionKey_ = value; + onChanged(); + } else { + ballotEncryptionKeyBuilder_.setMessage(value); + } + + return this; + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public Builder setBallotEncryptionKey( + meerkat.protobuf.Crypto.EncryptionPublicKey.Builder builderForValue) { + if (ballotEncryptionKeyBuilder_ == null) { + ballotEncryptionKey_ = builderForValue.build(); + onChanged(); + } else { + ballotEncryptionKeyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public Builder mergeBallotEncryptionKey(meerkat.protobuf.Crypto.EncryptionPublicKey value) { + if (ballotEncryptionKeyBuilder_ == null) { + if (ballotEncryptionKey_ != null) { + ballotEncryptionKey_ = + meerkat.protobuf.Crypto.EncryptionPublicKey.newBuilder(ballotEncryptionKey_).mergeFrom(value).buildPartial(); + } else { + ballotEncryptionKey_ = value; + } + onChanged(); + } else { + ballotEncryptionKeyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public Builder clearBallotEncryptionKey() { + if (ballotEncryptionKeyBuilder_ == null) { + ballotEncryptionKey_ = null; + onChanged(); + } else { + ballotEncryptionKey_ = null; + ballotEncryptionKeyBuilder_ = null; + } + + return this; + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public meerkat.protobuf.Crypto.EncryptionPublicKey.Builder getBallotEncryptionKeyBuilder() { + + onChanged(); + return getBallotEncryptionKeyFieldBuilder().getBuilder(); + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + public meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder getBallotEncryptionKeyOrBuilder() { + if (ballotEncryptionKeyBuilder_ != null) { + return ballotEncryptionKeyBuilder_.getMessageOrBuilder(); + } else { + return ballotEncryptionKey_ == null ? + meerkat.protobuf.Crypto.EncryptionPublicKey.getDefaultInstance() : ballotEncryptionKey_; + } + } + /** + * <pre> + * The key used to encrypt ballots. The corresponding private key + * is shared between the trustees. + * </pre> + * + * <code>.meerkat.EncryptionPublicKey ballotEncryptionKey = 3;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.EncryptionPublicKey, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder, meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder> + getBallotEncryptionKeyFieldBuilder() { + if (ballotEncryptionKeyBuilder_ == null) { + ballotEncryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Crypto.EncryptionPublicKey, meerkat.protobuf.Crypto.EncryptionPublicKey.Builder, meerkat.protobuf.Crypto.EncryptionPublicKeyOrBuilder>( + getBallotEncryptionKey(), + getParentForChildren(), + isClean()); + ballotEncryptionKey_ = null; + } + return ballotEncryptionKeyBuilder_; + } + + private java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> mixerVerificationKeys_ = + java.util.Collections.emptyList(); + private void ensureMixerVerificationKeysIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + mixerVerificationKeys_ = new java.util.ArrayList<meerkat.protobuf.Crypto.SignatureVerificationKey>(mixerVerificationKeys_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> mixerVerificationKeysBuilder_; + + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey> getMixerVerificationKeysList() { + if (mixerVerificationKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(mixerVerificationKeys_); + } else { + return mixerVerificationKeysBuilder_.getMessageList(); + } + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public int getMixerVerificationKeysCount() { + if (mixerVerificationKeysBuilder_ == null) { + return mixerVerificationKeys_.size(); + } else { + return mixerVerificationKeysBuilder_.getCount(); + } + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey getMixerVerificationKeys(int index) { + if (mixerVerificationKeysBuilder_ == null) { + return mixerVerificationKeys_.get(index); + } else { + return mixerVerificationKeysBuilder_.getMessage(index); + } + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder setMixerVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (mixerVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.set(index, value); + onChanged(); + } else { + mixerVerificationKeysBuilder_.setMessage(index, value); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder setMixerVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (mixerVerificationKeysBuilder_ == null) { + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + mixerVerificationKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder addMixerVerificationKeys(meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (mixerVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.add(value); + onChanged(); + } else { + mixerVerificationKeysBuilder_.addMessage(value); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder addMixerVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey value) { + if (mixerVerificationKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.add(index, value); + onChanged(); + } else { + mixerVerificationKeysBuilder_.addMessage(index, value); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder addMixerVerificationKeys( + meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (mixerVerificationKeysBuilder_ == null) { + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.add(builderForValue.build()); + onChanged(); + } else { + mixerVerificationKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder addMixerVerificationKeys( + int index, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder builderForValue) { + if (mixerVerificationKeysBuilder_ == null) { + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + mixerVerificationKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder addAllMixerVerificationKeys( + java.lang.Iterable<? extends meerkat.protobuf.Crypto.SignatureVerificationKey> values) { + if (mixerVerificationKeysBuilder_ == null) { + ensureMixerVerificationKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mixerVerificationKeys_); + onChanged(); + } else { + mixerVerificationKeysBuilder_.addAllMessages(values); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder clearMixerVerificationKeys() { + if (mixerVerificationKeysBuilder_ == null) { + mixerVerificationKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + mixerVerificationKeysBuilder_.clear(); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public Builder removeMixerVerificationKeys(int index) { + if (mixerVerificationKeysBuilder_ == null) { + ensureMixerVerificationKeysIsMutable(); + mixerVerificationKeys_.remove(index); + onChanged(); + } else { + mixerVerificationKeysBuilder_.remove(index); + } + return this; + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder getMixerVerificationKeysBuilder( + int index) { + return getMixerVerificationKeysFieldBuilder().getBuilder(index); + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder getMixerVerificationKeysOrBuilder( + int index) { + if (mixerVerificationKeysBuilder_ == null) { + return mixerVerificationKeys_.get(index); } else { + return mixerVerificationKeysBuilder_.getMessageOrBuilder(index); + } + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public java.util.List<? extends meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getMixerVerificationKeysOrBuilderList() { + if (mixerVerificationKeysBuilder_ != null) { + return mixerVerificationKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mixerVerificationKeys_); + } + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addMixerVerificationKeysBuilder() { + return getMixerVerificationKeysFieldBuilder().addBuilder( + meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public meerkat.protobuf.Crypto.SignatureVerificationKey.Builder addMixerVerificationKeysBuilder( + int index) { + return getMixerVerificationKeysFieldBuilder().addBuilder( + index, meerkat.protobuf.Crypto.SignatureVerificationKey.getDefaultInstance()); + } + /** + * <pre> + * Verification keys for valid mixers. + * </pre> + * + * <code>repeated .meerkat.SignatureVerificationKey mixerVerificationKeys = 4;</code> + */ + public java.util.List<meerkat.protobuf.Crypto.SignatureVerificationKey.Builder> + getMixerVerificationKeysBuilderList() { + return getMixerVerificationKeysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder> + getMixerVerificationKeysFieldBuilder() { + if (mixerVerificationKeysBuilder_ == null) { + mixerVerificationKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Crypto.SignatureVerificationKey, meerkat.protobuf.Crypto.SignatureVerificationKey.Builder, meerkat.protobuf.Crypto.SignatureVerificationKeyOrBuilder>( + mixerVerificationKeys_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + mixerVerificationKeys_ = null; + } + return mixerVerificationKeysBuilder_; + } + + private int mixerThreshold_ ; + /** + * <pre> + * How many mixers must participate for the network to be considered valid + * </pre> + * + * <code>uint32 mixerThreshold = 5;</code> + */ + public int getMixerThreshold() { + return mixerThreshold_; + } + /** + * <pre> + * How many mixers must participate for the network to be considered valid + * </pre> + * + * <code>uint32 mixerThreshold = 5;</code> + */ + public Builder setMixerThreshold(int value) { + + mixerThreshold_ = value; + onChanged(); + return this; + } + /** + * <pre> + * How many mixers must participate for the network to be considered valid + * </pre> + * + * <code>uint32 mixerThreshold = 5;</code> + */ + public Builder clearMixerThreshold() { + + mixerThreshold_ = 0; + onChanged(); + return this; + } + + private java.util.List<meerkat.protobuf.Voting.BallotQuestion> channelChoiceQuestions_ = + java.util.Collections.emptyList(); + private void ensureChannelChoiceQuestionsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + channelChoiceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(channelChoiceQuestions_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> channelChoiceQuestionsBuilder_; + + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getChannelChoiceQuestionsList() { + if (channelChoiceQuestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channelChoiceQuestions_); + } else { + return channelChoiceQuestionsBuilder_.getMessageList(); + } + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public int getChannelChoiceQuestionsCount() { + if (channelChoiceQuestionsBuilder_ == null) { + return channelChoiceQuestions_.size(); + } else { + return channelChoiceQuestionsBuilder_.getCount(); + } + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion getChannelChoiceQuestions(int index) { + if (channelChoiceQuestionsBuilder_ == null) { + return channelChoiceQuestions_.get(index); + } else { + return channelChoiceQuestionsBuilder_.getMessage(index); + } + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder setChannelChoiceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion value) { + if (channelChoiceQuestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.set(index, value); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder setChannelChoiceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { + if (channelChoiceQuestionsBuilder_ == null) { + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.set(index, builderForValue.build()); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder addChannelChoiceQuestions(meerkat.protobuf.Voting.BallotQuestion value) { + if (channelChoiceQuestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.add(value); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.addMessage(value); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder addChannelChoiceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion value) { + if (channelChoiceQuestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.add(index, value); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder addChannelChoiceQuestions( + meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { + if (channelChoiceQuestionsBuilder_ == null) { + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.add(builderForValue.build()); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder addChannelChoiceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { + if (channelChoiceQuestionsBuilder_ == null) { + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.add(index, builderForValue.build()); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder addAllChannelChoiceQuestions( + java.lang.Iterable<? extends meerkat.protobuf.Voting.BallotQuestion> values) { + if (channelChoiceQuestionsBuilder_ == null) { + ensureChannelChoiceQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, channelChoiceQuestions_); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder clearChannelChoiceQuestions() { + if (channelChoiceQuestionsBuilder_ == null) { + channelChoiceQuestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.clear(); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public Builder removeChannelChoiceQuestions(int index) { + if (channelChoiceQuestionsBuilder_ == null) { + ensureChannelChoiceQuestionsIsMutable(); + channelChoiceQuestions_.remove(index); + onChanged(); + } else { + channelChoiceQuestionsBuilder_.remove(index); + } + return this; + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion.Builder getChannelChoiceQuestionsBuilder( + int index) { + return getChannelChoiceQuestionsFieldBuilder().getBuilder(index); + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public meerkat.protobuf.Voting.BallotQuestionOrBuilder getChannelChoiceQuestionsOrBuilder( + int index) { + if (channelChoiceQuestionsBuilder_ == null) { + return channelChoiceQuestions_.get(index); } else { + return channelChoiceQuestionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getChannelChoiceQuestionsOrBuilderList() { + if (channelChoiceQuestionsBuilder_ != null) { + return channelChoiceQuestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channelChoiceQuestions_); + } + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion.Builder addChannelChoiceQuestionsBuilder() { + return getChannelChoiceQuestionsFieldBuilder().addBuilder( + meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion.Builder addChannelChoiceQuestionsBuilder( + int index) { + return getChannelChoiceQuestionsFieldBuilder().addBuilder( + index, meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); + } + /** + * <pre> + * questions to first indicate the voter's channel + * </pre> + * + * <code>repeated .meerkat.BallotQuestion channel_choice_questions = 6;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotQuestion.Builder> + getChannelChoiceQuestionsBuilderList() { + return getChannelChoiceQuestionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getChannelChoiceQuestionsFieldBuilder() { + if (channelChoiceQuestionsBuilder_ == null) { + channelChoiceQuestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder>( + channelChoiceQuestions_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + channelChoiceQuestions_ = null; + } + return channelChoiceQuestionsBuilder_; + } + + private meerkat.protobuf.Voting.SimpleCategoriesSelectionData selectionData_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.SimpleCategoriesSelectionData, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder, meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder> selectionDataBuilder_; + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public boolean hasSelectionData() { + return selectionDataBuilder_ != null || selectionData_ != null; + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getSelectionData() { + if (selectionDataBuilder_ == null) { + return selectionData_ == null ? meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance() : selectionData_; + } else { + return selectionDataBuilder_.getMessage(); + } + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public Builder setSelectionData(meerkat.protobuf.Voting.SimpleCategoriesSelectionData value) { + if (selectionDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + selectionData_ = value; + onChanged(); + } else { + selectionDataBuilder_.setMessage(value); + } + + return this; + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public Builder setSelectionData( + meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder builderForValue) { + if (selectionDataBuilder_ == null) { + selectionData_ = builderForValue.build(); + onChanged(); + } else { + selectionDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public Builder mergeSelectionData(meerkat.protobuf.Voting.SimpleCategoriesSelectionData value) { + if (selectionDataBuilder_ == null) { + if (selectionData_ != null) { + selectionData_ = + meerkat.protobuf.Voting.SimpleCategoriesSelectionData.newBuilder(selectionData_).mergeFrom(value).buildPartial(); + } else { + selectionData_ = value; + } + onChanged(); + } else { + selectionDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public Builder clearSelectionData() { + if (selectionDataBuilder_ == null) { + selectionData_ = null; + onChanged(); + } else { + selectionData_ = null; + selectionDataBuilder_ = null; + } + + return this; + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder getSelectionDataBuilder() { + + onChanged(); + return getSelectionDataFieldBuilder().getBuilder(); + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + public meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder getSelectionDataOrBuilder() { + if (selectionDataBuilder_ != null) { + return selectionDataBuilder_.getMessageOrBuilder(); + } else { + return selectionData_ == null ? + meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance() : selectionData_; + } + } + /** + * <pre> + * translating the channel-choice answers to the voter's channel + * </pre> + * + * <code>.meerkat.SimpleCategoriesSelectionData selection_data = 7;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.SimpleCategoriesSelectionData, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder, meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder> + getSelectionDataFieldBuilder() { + if (selectionDataBuilder_ == null) { + selectionDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.SimpleCategoriesSelectionData, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder, meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder>( + getSelectionData(), + getParentForChildren(), + isClean()); + selectionData_ = null; + } + return selectionDataBuilder_; + } + + private java.util.List<meerkat.protobuf.Voting.BallotQuestion> raceQuestions_ = + java.util.Collections.emptyList(); + private void ensureRaceQuestionsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + raceQuestions_ = new java.util.ArrayList<meerkat.protobuf.Voting.BallotQuestion>(raceQuestions_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> raceQuestionsBuilder_; + + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotQuestion> getRaceQuestionsList() { + if (raceQuestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(raceQuestions_); + } else { + return raceQuestionsBuilder_.getMessageList(); + } + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public int getRaceQuestionsCount() { + if (raceQuestionsBuilder_ == null) { + return raceQuestions_.size(); + } else { + return raceQuestionsBuilder_.getCount(); + } + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion getRaceQuestions(int index) { + if (raceQuestionsBuilder_ == null) { + return raceQuestions_.get(index); + } else { + return raceQuestionsBuilder_.getMessage(index); + } + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder setRaceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion value) { + if (raceQuestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaceQuestionsIsMutable(); + raceQuestions_.set(index, value); + onChanged(); + } else { + raceQuestionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder setRaceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { + if (raceQuestionsBuilder_ == null) { + ensureRaceQuestionsIsMutable(); + raceQuestions_.set(index, builderForValue.build()); + onChanged(); + } else { + raceQuestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder addRaceQuestions(meerkat.protobuf.Voting.BallotQuestion value) { + if (raceQuestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaceQuestionsIsMutable(); + raceQuestions_.add(value); + onChanged(); + } else { + raceQuestionsBuilder_.addMessage(value); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder addRaceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion value) { + if (raceQuestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRaceQuestionsIsMutable(); + raceQuestions_.add(index, value); + onChanged(); + } else { + raceQuestionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder addRaceQuestions( + meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { + if (raceQuestionsBuilder_ == null) { + ensureRaceQuestionsIsMutable(); + raceQuestions_.add(builderForValue.build()); + onChanged(); + } else { + raceQuestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder addRaceQuestions( + int index, meerkat.protobuf.Voting.BallotQuestion.Builder builderForValue) { + if (raceQuestionsBuilder_ == null) { + ensureRaceQuestionsIsMutable(); + raceQuestions_.add(index, builderForValue.build()); + onChanged(); + } else { + raceQuestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder addAllRaceQuestions( + java.lang.Iterable<? extends meerkat.protobuf.Voting.BallotQuestion> values) { + if (raceQuestionsBuilder_ == null) { + ensureRaceQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, raceQuestions_); + onChanged(); + } else { + raceQuestionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder clearRaceQuestions() { + if (raceQuestionsBuilder_ == null) { + raceQuestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + raceQuestionsBuilder_.clear(); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public Builder removeRaceQuestions(int index) { + if (raceQuestionsBuilder_ == null) { + ensureRaceQuestionsIsMutable(); + raceQuestions_.remove(index); + onChanged(); + } else { + raceQuestionsBuilder_.remove(index); + } + return this; + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion.Builder getRaceQuestionsBuilder( + int index) { + return getRaceQuestionsFieldBuilder().getBuilder(index); + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public meerkat.protobuf.Voting.BallotQuestionOrBuilder getRaceQuestionsOrBuilder( + int index) { + if (raceQuestionsBuilder_ == null) { + return raceQuestions_.get(index); } else { + return raceQuestionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getRaceQuestionsOrBuilderList() { + if (raceQuestionsBuilder_ != null) { + return raceQuestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(raceQuestions_); + } + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion.Builder addRaceQuestionsBuilder() { + return getRaceQuestionsFieldBuilder().addBuilder( + meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public meerkat.protobuf.Voting.BallotQuestion.Builder addRaceQuestionsBuilder( + int index) { + return getRaceQuestionsFieldBuilder().addBuilder( + index, meerkat.protobuf.Voting.BallotQuestion.getDefaultInstance()); + } + /** + * <pre> + * Candidate list (or other question format) + * </pre> + * + * <code>repeated .meerkat.BallotQuestion race_questions = 8;</code> + */ + public java.util.List<meerkat.protobuf.Voting.BallotQuestion.Builder> + getRaceQuestionsBuilderList() { + return getRaceQuestionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder> + getRaceQuestionsFieldBuilder() { + if (raceQuestionsBuilder_ == null) { + raceQuestionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.BallotQuestion, meerkat.protobuf.Voting.BallotQuestion.Builder, meerkat.protobuf.Voting.BallotQuestionOrBuilder>( + raceQuestions_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + raceQuestions_ = null; + } + return raceQuestionsBuilder_; + } + + private meerkat.protobuf.Voting.BulletinBoardClientParams bulletinBoardClientParams_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.BulletinBoardClientParams, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder, meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder> bulletinBoardClientParamsBuilder_; + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public boolean hasBulletinBoardClientParams() { + return bulletinBoardClientParamsBuilder_ != null || bulletinBoardClientParams_ != null; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public meerkat.protobuf.Voting.BulletinBoardClientParams getBulletinBoardClientParams() { + if (bulletinBoardClientParamsBuilder_ == null) { + return bulletinBoardClientParams_ == null ? meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance() : bulletinBoardClientParams_; + } else { + return bulletinBoardClientParamsBuilder_.getMessage(); + } + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public Builder setBulletinBoardClientParams(meerkat.protobuf.Voting.BulletinBoardClientParams value) { + if (bulletinBoardClientParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bulletinBoardClientParams_ = value; + onChanged(); + } else { + bulletinBoardClientParamsBuilder_.setMessage(value); + } + + return this; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public Builder setBulletinBoardClientParams( + meerkat.protobuf.Voting.BulletinBoardClientParams.Builder builderForValue) { + if (bulletinBoardClientParamsBuilder_ == null) { + bulletinBoardClientParams_ = builderForValue.build(); + onChanged(); + } else { + bulletinBoardClientParamsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public Builder mergeBulletinBoardClientParams(meerkat.protobuf.Voting.BulletinBoardClientParams value) { + if (bulletinBoardClientParamsBuilder_ == null) { + if (bulletinBoardClientParams_ != null) { + bulletinBoardClientParams_ = + meerkat.protobuf.Voting.BulletinBoardClientParams.newBuilder(bulletinBoardClientParams_).mergeFrom(value).buildPartial(); + } else { + bulletinBoardClientParams_ = value; + } + onChanged(); + } else { + bulletinBoardClientParamsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public Builder clearBulletinBoardClientParams() { + if (bulletinBoardClientParamsBuilder_ == null) { + bulletinBoardClientParams_ = null; + onChanged(); + } else { + bulletinBoardClientParams_ = null; + bulletinBoardClientParamsBuilder_ = null; + } + + return this; + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public meerkat.protobuf.Voting.BulletinBoardClientParams.Builder getBulletinBoardClientParamsBuilder() { + + onChanged(); + return getBulletinBoardClientParamsFieldBuilder().getBuilder(); + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + public meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder getBulletinBoardClientParamsOrBuilder() { + if (bulletinBoardClientParamsBuilder_ != null) { + return bulletinBoardClientParamsBuilder_.getMessageOrBuilder(); + } else { + return bulletinBoardClientParams_ == null ? + meerkat.protobuf.Voting.BulletinBoardClientParams.getDefaultInstance() : bulletinBoardClientParams_; + } + } + /** + * <pre> + * Data required in order to access the Bulletin Board Servers + * </pre> + * + * <code>.meerkat.BulletinBoardClientParams bulletinBoardClientParams = 9;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.BulletinBoardClientParams, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder, meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder> + getBulletinBoardClientParamsFieldBuilder() { + if (bulletinBoardClientParamsBuilder_ == null) { + bulletinBoardClientParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.BulletinBoardClientParams, meerkat.protobuf.Voting.BulletinBoardClientParams.Builder, meerkat.protobuf.Voting.BulletinBoardClientParamsOrBuilder>( + getBulletinBoardClientParams(), + getParentForChildren(), + isClean()); + bulletinBoardClientParams_ = null; + } + return bulletinBoardClientParamsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.ElectionParams) + } + + // @@protoc_insertion_point(class_scope:meerkat.ElectionParams) + private static final meerkat.protobuf.Voting.ElectionParams DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.ElectionParams(); + } + + public static meerkat.protobuf.Voting.ElectionParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<ElectionParams> + PARSER = new com.google.protobuf.AbstractParser<ElectionParams>() { + public ElectionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ElectionParams(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<ElectionParams> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<ElectionParams> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.ElectionParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoryOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.Category) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + java.util.List<java.lang.Integer> getQuestionIndexList(); + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + int getQuestionIndexCount(); + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + int getQuestionIndex(int index); + } + /** + * Protobuf type {@code meerkat.Category} + */ + public static final class Category extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.Category) + CategoryOrBuilder { + // Use Category.newBuilder() to construct. + private Category(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private Category() { + questionIndex_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private Category( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 8: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); + mutable_bitField0_ |= 0x00000001; + } + questionIndex_.add(input.readUInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + questionIndex_ = new java.util.ArrayList<java.lang.Integer>(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + questionIndex_.add(input.readUInt32()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_Category_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_Category_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.Category.class, meerkat.protobuf.Voting.Category.Builder.class); + } + + public static final int QUESTIONINDEX_FIELD_NUMBER = 1; + private java.util.List<java.lang.Integer> questionIndex_; + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public java.util.List<java.lang.Integer> + getQuestionIndexList() { + return questionIndex_; + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public int getQuestionIndexCount() { + return questionIndex_.size(); + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public int getQuestionIndex(int index) { + return questionIndex_.get(index); + } + private int questionIndexMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getQuestionIndexList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(questionIndexMemoizedSerializedSize); + } + for (int i = 0; i < questionIndex_.size(); i++) { + output.writeUInt32NoTag(questionIndex_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < questionIndex_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(questionIndex_.get(i)); + } + size += dataSize; + if (!getQuestionIndexList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + questionIndexMemoizedSerializedSize = dataSize; + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.Category)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.Category other = (meerkat.protobuf.Voting.Category) obj; + + boolean result = true; + result = result && getQuestionIndexList() + .equals(other.getQuestionIndexList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getQuestionIndexCount() > 0) { + hash = (37 * hash) + QUESTIONINDEX_FIELD_NUMBER; + hash = (53 * hash) + getQuestionIndexList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.Category parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.Category parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.Category parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.Category parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.Category parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.Category parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.Category parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.Category parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.Category parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.Category parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.Category prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.Category} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.Category) + meerkat.protobuf.Voting.CategoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_Category_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_Category_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.Category.class, meerkat.protobuf.Voting.Category.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.Category.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + questionIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_Category_descriptor; + } + + public meerkat.protobuf.Voting.Category getDefaultInstanceForType() { + return meerkat.protobuf.Voting.Category.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.Category build() { + meerkat.protobuf.Voting.Category result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.Category buildPartial() { + meerkat.protobuf.Voting.Category result = new meerkat.protobuf.Voting.Category(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + questionIndex_ = java.util.Collections.unmodifiableList(questionIndex_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.questionIndex_ = questionIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.Category) { + return mergeFrom((meerkat.protobuf.Voting.Category)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.Category other) { + if (other == meerkat.protobuf.Voting.Category.getDefaultInstance()) return this; + if (!other.questionIndex_.isEmpty()) { + if (questionIndex_.isEmpty()) { + questionIndex_ = other.questionIndex_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQuestionIndexIsMutable(); + questionIndex_.addAll(other.questionIndex_); + } + onChanged(); + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.Category parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.Category) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List<java.lang.Integer> questionIndex_ = java.util.Collections.emptyList(); + private void ensureQuestionIndexIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + questionIndex_ = new java.util.ArrayList<java.lang.Integer>(questionIndex_); + bitField0_ |= 0x00000001; + } + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public java.util.List<java.lang.Integer> + getQuestionIndexList() { + return java.util.Collections.unmodifiableList(questionIndex_); + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public int getQuestionIndexCount() { + return questionIndex_.size(); + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public int getQuestionIndex(int index) { + return questionIndex_.get(index); + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public Builder setQuestionIndex( + int index, int value) { + ensureQuestionIndexIsMutable(); + questionIndex_.set(index, value); + onChanged(); + return this; + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public Builder addQuestionIndex(int value) { + ensureQuestionIndexIsMutable(); + questionIndex_.add(value); + onChanged(); + return this; + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public Builder addAllQuestionIndex( + java.lang.Iterable<? extends java.lang.Integer> values) { + ensureQuestionIndexIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, questionIndex_); + onChanged(); + return this; + } + /** + * <code>repeated uint32 questionIndex = 1;</code> + */ + public Builder clearQuestionIndex() { + questionIndex_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.Category) + } + + // @@protoc_insertion_point(class_scope:meerkat.Category) + private static final meerkat.protobuf.Voting.Category DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.Category(); + } + + public static meerkat.protobuf.Voting.Category getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<Category> + PARSER = new com.google.protobuf.AbstractParser<Category>() { + public Category parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Category(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<Category> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<Category> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.Category getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CategoryChooserOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.CategoryChooser) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + java.util.List<meerkat.protobuf.Voting.Category> + getCategoryList(); + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + meerkat.protobuf.Voting.Category getCategory(int index); + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + int getCategoryCount(); + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + java.util.List<? extends meerkat.protobuf.Voting.CategoryOrBuilder> + getCategoryOrBuilderList(); + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + meerkat.protobuf.Voting.CategoryOrBuilder getCategoryOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.CategoryChooser} + */ + public static final class CategoryChooser extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.CategoryChooser) + CategoryChooserOrBuilder { + // Use CategoryChooser.newBuilder() to construct. + private CategoryChooser(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private CategoryChooser() { + category_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private CategoryChooser( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + category_ = new java.util.ArrayList<meerkat.protobuf.Voting.Category>(); + mutable_bitField0_ |= 0x00000001; + } + category_.add( + input.readMessage(meerkat.protobuf.Voting.Category.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + category_ = java.util.Collections.unmodifiableList(category_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.CategoryChooser.class, meerkat.protobuf.Voting.CategoryChooser.Builder.class); + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private java.util.List<meerkat.protobuf.Voting.Category> category_; + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public java.util.List<meerkat.protobuf.Voting.Category> getCategoryList() { + return category_; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.CategoryOrBuilder> + getCategoryOrBuilderList() { + return category_; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public int getCategoryCount() { + return category_.size(); + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public meerkat.protobuf.Voting.Category getCategory(int index) { + return category_.get(index); + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public meerkat.protobuf.Voting.CategoryOrBuilder getCategoryOrBuilder( + int index) { + return category_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < category_.size(); i++) { + output.writeMessage(1, category_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < category_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, category_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.CategoryChooser)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.CategoryChooser other = (meerkat.protobuf.Voting.CategoryChooser) obj; + + boolean result = true; + result = result && getCategoryList() + .equals(other.getCategoryList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCategoryCount() > 0) { + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + getCategoryList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.CategoryChooser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.CategoryChooser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.CategoryChooser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.CategoryChooser parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.CategoryChooser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.CategoryChooser parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.CategoryChooser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.CategoryChooser parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.CategoryChooser parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.CategoryChooser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.CategoryChooser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.CategoryChooser} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.CategoryChooser) + meerkat.protobuf.Voting.CategoryChooserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.CategoryChooser.class, meerkat.protobuf.Voting.CategoryChooser.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.CategoryChooser.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCategoryFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (categoryBuilder_ == null) { + category_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + categoryBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_CategoryChooser_descriptor; + } + + public meerkat.protobuf.Voting.CategoryChooser getDefaultInstanceForType() { + return meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.CategoryChooser build() { + meerkat.protobuf.Voting.CategoryChooser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.CategoryChooser buildPartial() { + meerkat.protobuf.Voting.CategoryChooser result = new meerkat.protobuf.Voting.CategoryChooser(this); + int from_bitField0_ = bitField0_; + if (categoryBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + category_ = java.util.Collections.unmodifiableList(category_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.category_ = category_; + } else { + result.category_ = categoryBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.CategoryChooser) { + return mergeFrom((meerkat.protobuf.Voting.CategoryChooser)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.CategoryChooser other) { + if (other == meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance()) return this; + if (categoryBuilder_ == null) { + if (!other.category_.isEmpty()) { + if (category_.isEmpty()) { + category_ = other.category_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCategoryIsMutable(); + category_.addAll(other.category_); + } + onChanged(); + } + } else { + if (!other.category_.isEmpty()) { + if (categoryBuilder_.isEmpty()) { + categoryBuilder_.dispose(); + categoryBuilder_ = null; + category_ = other.category_; + bitField0_ = (bitField0_ & ~0x00000001); + categoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCategoryFieldBuilder() : null; + } else { + categoryBuilder_.addAllMessages(other.category_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.CategoryChooser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.CategoryChooser) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List<meerkat.protobuf.Voting.Category> category_ = + java.util.Collections.emptyList(); + private void ensureCategoryIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + category_ = new java.util.ArrayList<meerkat.protobuf.Voting.Category>(category_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> categoryBuilder_; + + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public java.util.List<meerkat.protobuf.Voting.Category> getCategoryList() { + if (categoryBuilder_ == null) { + return java.util.Collections.unmodifiableList(category_); + } else { + return categoryBuilder_.getMessageList(); + } + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public int getCategoryCount() { + if (categoryBuilder_ == null) { + return category_.size(); + } else { + return categoryBuilder_.getCount(); + } + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public meerkat.protobuf.Voting.Category getCategory(int index) { + if (categoryBuilder_ == null) { + return category_.get(index); + } else { + return categoryBuilder_.getMessage(index); + } + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder setCategory( + int index, meerkat.protobuf.Voting.Category value) { + if (categoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryIsMutable(); + category_.set(index, value); + onChanged(); + } else { + categoryBuilder_.setMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder setCategory( + int index, meerkat.protobuf.Voting.Category.Builder builderForValue) { + if (categoryBuilder_ == null) { + ensureCategoryIsMutable(); + category_.set(index, builderForValue.build()); + onChanged(); + } else { + categoryBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder addCategory(meerkat.protobuf.Voting.Category value) { + if (categoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryIsMutable(); + category_.add(value); + onChanged(); + } else { + categoryBuilder_.addMessage(value); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder addCategory( + int index, meerkat.protobuf.Voting.Category value) { + if (categoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryIsMutable(); + category_.add(index, value); + onChanged(); + } else { + categoryBuilder_.addMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder addCategory( + meerkat.protobuf.Voting.Category.Builder builderForValue) { + if (categoryBuilder_ == null) { + ensureCategoryIsMutable(); + category_.add(builderForValue.build()); + onChanged(); + } else { + categoryBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder addCategory( + int index, meerkat.protobuf.Voting.Category.Builder builderForValue) { + if (categoryBuilder_ == null) { + ensureCategoryIsMutable(); + category_.add(index, builderForValue.build()); + onChanged(); + } else { + categoryBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder addAllCategory( + java.lang.Iterable<? extends meerkat.protobuf.Voting.Category> values) { + if (categoryBuilder_ == null) { + ensureCategoryIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, category_); + onChanged(); + } else { + categoryBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder clearCategory() { + if (categoryBuilder_ == null) { + category_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + categoryBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public Builder removeCategory(int index) { + if (categoryBuilder_ == null) { + ensureCategoryIsMutable(); + category_.remove(index); + onChanged(); + } else { + categoryBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public meerkat.protobuf.Voting.Category.Builder getCategoryBuilder( + int index) { + return getCategoryFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public meerkat.protobuf.Voting.CategoryOrBuilder getCategoryOrBuilder( + int index) { + if (categoryBuilder_ == null) { + return category_.get(index); } else { + return categoryBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.CategoryOrBuilder> + getCategoryOrBuilderList() { + if (categoryBuilder_ != null) { + return categoryBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(category_); + } + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public meerkat.protobuf.Voting.Category.Builder addCategoryBuilder() { + return getCategoryFieldBuilder().addBuilder( + meerkat.protobuf.Voting.Category.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public meerkat.protobuf.Voting.Category.Builder addCategoryBuilder( + int index) { + return getCategoryFieldBuilder().addBuilder( + index, meerkat.protobuf.Voting.Category.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.Category category = 1;</code> + */ + public java.util.List<meerkat.protobuf.Voting.Category.Builder> + getCategoryBuilderList() { + return getCategoryFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> + getCategoryFieldBuilder() { + if (categoryBuilder_ == null) { + categoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder>( + category_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + category_ = null; + } + return categoryBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.CategoryChooser) + } + + // @@protoc_insertion_point(class_scope:meerkat.CategoryChooser) + private static final meerkat.protobuf.Voting.CategoryChooser DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.CategoryChooser(); + } + + public static meerkat.protobuf.Voting.CategoryChooser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<CategoryChooser> + PARSER = new com.google.protobuf.AbstractParser<CategoryChooser>() { + public CategoryChooser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoryChooser(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<CategoryChooser> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<CategoryChooser> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.CategoryChooser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SimpleCategoriesSelectionDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:meerkat.SimpleCategoriesSelectionData) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + boolean hasSharedDefaults(); + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + meerkat.protobuf.Voting.Category getSharedDefaults(); + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + meerkat.protobuf.Voting.CategoryOrBuilder getSharedDefaultsOrBuilder(); + + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + java.util.List<meerkat.protobuf.Voting.CategoryChooser> + getCategoryChooserList(); + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + meerkat.protobuf.Voting.CategoryChooser getCategoryChooser(int index); + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + int getCategoryChooserCount(); + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + java.util.List<? extends meerkat.protobuf.Voting.CategoryChooserOrBuilder> + getCategoryChooserOrBuilderList(); + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + meerkat.protobuf.Voting.CategoryChooserOrBuilder getCategoryChooserOrBuilder( + int index); + } + /** + * Protobuf type {@code meerkat.SimpleCategoriesSelectionData} + */ + public static final class SimpleCategoriesSelectionData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:meerkat.SimpleCategoriesSelectionData) + SimpleCategoriesSelectionDataOrBuilder { + // Use SimpleCategoriesSelectionData.newBuilder() to construct. + private SimpleCategoriesSelectionData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { + super(builder); + } + private SimpleCategoriesSelectionData() { + categoryChooser_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + } + private SimpleCategoriesSelectionData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!input.skipField(tag)) { + done = true; + } + break; + } + case 10: { + meerkat.protobuf.Voting.Category.Builder subBuilder = null; + if (sharedDefaults_ != null) { + subBuilder = sharedDefaults_.toBuilder(); + } + sharedDefaults_ = input.readMessage(meerkat.protobuf.Voting.Category.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sharedDefaults_); + sharedDefaults_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + categoryChooser_ = new java.util.ArrayList<meerkat.protobuf.Voting.CategoryChooser>(); + mutable_bitField0_ |= 0x00000002; + } + categoryChooser_.add( + input.readMessage(meerkat.protobuf.Voting.CategoryChooser.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + categoryChooser_ = java.util.Collections.unmodifiableList(categoryChooser_); + } + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.SimpleCategoriesSelectionData.class, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder.class); + } + + private int bitField0_; + public static final int SHARED_DEFAULTS_FIELD_NUMBER = 1; + private meerkat.protobuf.Voting.Category sharedDefaults_; + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public boolean hasSharedDefaults() { + return sharedDefaults_ != null; + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public meerkat.protobuf.Voting.Category getSharedDefaults() { + return sharedDefaults_ == null ? meerkat.protobuf.Voting.Category.getDefaultInstance() : sharedDefaults_; + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public meerkat.protobuf.Voting.CategoryOrBuilder getSharedDefaultsOrBuilder() { + return getSharedDefaults(); + } + + public static final int CATEGORYCHOOSER_FIELD_NUMBER = 2; + private java.util.List<meerkat.protobuf.Voting.CategoryChooser> categoryChooser_; + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public java.util.List<meerkat.protobuf.Voting.CategoryChooser> getCategoryChooserList() { + return categoryChooser_; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.CategoryChooserOrBuilder> + getCategoryChooserOrBuilderList() { + return categoryChooser_; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public int getCategoryChooserCount() { + return categoryChooser_.size(); + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public meerkat.protobuf.Voting.CategoryChooser getCategoryChooser(int index) { + return categoryChooser_.get(index); + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public meerkat.protobuf.Voting.CategoryChooserOrBuilder getCategoryChooserOrBuilder( + int index) { + return categoryChooser_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (sharedDefaults_ != null) { + output.writeMessage(1, getSharedDefaults()); + } + for (int i = 0; i < categoryChooser_.size(); i++) { + output.writeMessage(2, categoryChooser_.get(i)); + } + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sharedDefaults_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSharedDefaults()); + } + for (int i = 0; i < categoryChooser_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, categoryChooser_.get(i)); + } + memoizedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof meerkat.protobuf.Voting.SimpleCategoriesSelectionData)) { + return super.equals(obj); + } + meerkat.protobuf.Voting.SimpleCategoriesSelectionData other = (meerkat.protobuf.Voting.SimpleCategoriesSelectionData) obj; + + boolean result = true; + result = result && (hasSharedDefaults() == other.hasSharedDefaults()); + if (hasSharedDefaults()) { + result = result && getSharedDefaults() + .equals(other.getSharedDefaults()); + } + result = result && getCategoryChooserList() + .equals(other.getCategoryChooserList()); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSharedDefaults()) { + hash = (37 * hash) + SHARED_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getSharedDefaults().hashCode(); + } + if (getCategoryChooserCount() > 0) { + hash = (37 * hash) + CATEGORYCHOOSER_FIELD_NUMBER; + hash = (53 * hash) + getCategoryChooserList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(meerkat.protobuf.Voting.SimpleCategoriesSelectionData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code meerkat.SimpleCategoriesSelectionData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements + // @@protoc_insertion_point(builder_implements:meerkat.SimpleCategoriesSelectionData) + meerkat.protobuf.Voting.SimpleCategoriesSelectionDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + meerkat.protobuf.Voting.SimpleCategoriesSelectionData.class, meerkat.protobuf.Voting.SimpleCategoriesSelectionData.Builder.class); + } + + // Construct using meerkat.protobuf.Voting.SimpleCategoriesSelectionData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCategoryChooserFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (sharedDefaultsBuilder_ == null) { + sharedDefaults_ = null; + } else { + sharedDefaults_ = null; + sharedDefaultsBuilder_ = null; + } + if (categoryChooserBuilder_ == null) { + categoryChooser_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + categoryChooserBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return meerkat.protobuf.Voting.internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; + } + + public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getDefaultInstanceForType() { + return meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance(); + } + + public meerkat.protobuf.Voting.SimpleCategoriesSelectionData build() { + meerkat.protobuf.Voting.SimpleCategoriesSelectionData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public meerkat.protobuf.Voting.SimpleCategoriesSelectionData buildPartial() { + meerkat.protobuf.Voting.SimpleCategoriesSelectionData result = new meerkat.protobuf.Voting.SimpleCategoriesSelectionData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (sharedDefaultsBuilder_ == null) { + result.sharedDefaults_ = sharedDefaults_; + } else { + result.sharedDefaults_ = sharedDefaultsBuilder_.build(); + } + if (categoryChooserBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + categoryChooser_ = java.util.Collections.unmodifiableList(categoryChooser_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.categoryChooser_ = categoryChooser_; + } else { + result.categoryChooser_ = categoryChooserBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof meerkat.protobuf.Voting.SimpleCategoriesSelectionData) { + return mergeFrom((meerkat.protobuf.Voting.SimpleCategoriesSelectionData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(meerkat.protobuf.Voting.SimpleCategoriesSelectionData other) { + if (other == meerkat.protobuf.Voting.SimpleCategoriesSelectionData.getDefaultInstance()) return this; + if (other.hasSharedDefaults()) { + mergeSharedDefaults(other.getSharedDefaults()); + } + if (categoryChooserBuilder_ == null) { + if (!other.categoryChooser_.isEmpty()) { + if (categoryChooser_.isEmpty()) { + categoryChooser_ = other.categoryChooser_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCategoryChooserIsMutable(); + categoryChooser_.addAll(other.categoryChooser_); + } + onChanged(); + } + } else { + if (!other.categoryChooser_.isEmpty()) { + if (categoryChooserBuilder_.isEmpty()) { + categoryChooserBuilder_.dispose(); + categoryChooserBuilder_ = null; + categoryChooser_ = other.categoryChooser_; + bitField0_ = (bitField0_ & ~0x00000002); + categoryChooserBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCategoryChooserFieldBuilder() : null; + } else { + categoryChooserBuilder_.addAllMessages(other.categoryChooser_); + } + } + } + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + meerkat.protobuf.Voting.SimpleCategoriesSelectionData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (meerkat.protobuf.Voting.SimpleCategoriesSelectionData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private meerkat.protobuf.Voting.Category sharedDefaults_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> sharedDefaultsBuilder_; + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public boolean hasSharedDefaults() { + return sharedDefaultsBuilder_ != null || sharedDefaults_ != null; + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public meerkat.protobuf.Voting.Category getSharedDefaults() { + if (sharedDefaultsBuilder_ == null) { + return sharedDefaults_ == null ? meerkat.protobuf.Voting.Category.getDefaultInstance() : sharedDefaults_; + } else { + return sharedDefaultsBuilder_.getMessage(); + } + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public Builder setSharedDefaults(meerkat.protobuf.Voting.Category value) { + if (sharedDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sharedDefaults_ = value; + onChanged(); + } else { + sharedDefaultsBuilder_.setMessage(value); + } + + return this; + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public Builder setSharedDefaults( + meerkat.protobuf.Voting.Category.Builder builderForValue) { + if (sharedDefaultsBuilder_ == null) { + sharedDefaults_ = builderForValue.build(); + onChanged(); + } else { + sharedDefaultsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public Builder mergeSharedDefaults(meerkat.protobuf.Voting.Category value) { + if (sharedDefaultsBuilder_ == null) { + if (sharedDefaults_ != null) { + sharedDefaults_ = + meerkat.protobuf.Voting.Category.newBuilder(sharedDefaults_).mergeFrom(value).buildPartial(); + } else { + sharedDefaults_ = value; + } + onChanged(); + } else { + sharedDefaultsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public Builder clearSharedDefaults() { + if (sharedDefaultsBuilder_ == null) { + sharedDefaults_ = null; + onChanged(); + } else { + sharedDefaults_ = null; + sharedDefaultsBuilder_ = null; + } + + return this; + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public meerkat.protobuf.Voting.Category.Builder getSharedDefaultsBuilder() { + + onChanged(); + return getSharedDefaultsFieldBuilder().getBuilder(); + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + public meerkat.protobuf.Voting.CategoryOrBuilder getSharedDefaultsOrBuilder() { + if (sharedDefaultsBuilder_ != null) { + return sharedDefaultsBuilder_.getMessageOrBuilder(); + } else { + return sharedDefaults_ == null ? + meerkat.protobuf.Voting.Category.getDefaultInstance() : sharedDefaults_; + } + } + /** + * <code>.meerkat.Category shared_defaults = 1;</code> + */ + private com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder> + getSharedDefaultsFieldBuilder() { + if (sharedDefaultsBuilder_ == null) { + sharedDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + meerkat.protobuf.Voting.Category, meerkat.protobuf.Voting.Category.Builder, meerkat.protobuf.Voting.CategoryOrBuilder>( + getSharedDefaults(), + getParentForChildren(), + isClean()); + sharedDefaults_ = null; + } + return sharedDefaultsBuilder_; + } + + private java.util.List<meerkat.protobuf.Voting.CategoryChooser> categoryChooser_ = + java.util.Collections.emptyList(); + private void ensureCategoryChooserIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + categoryChooser_ = new java.util.ArrayList<meerkat.protobuf.Voting.CategoryChooser>(categoryChooser_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.CategoryChooser, meerkat.protobuf.Voting.CategoryChooser.Builder, meerkat.protobuf.Voting.CategoryChooserOrBuilder> categoryChooserBuilder_; + + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public java.util.List<meerkat.protobuf.Voting.CategoryChooser> getCategoryChooserList() { + if (categoryChooserBuilder_ == null) { + return java.util.Collections.unmodifiableList(categoryChooser_); + } else { + return categoryChooserBuilder_.getMessageList(); + } + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public int getCategoryChooserCount() { + if (categoryChooserBuilder_ == null) { + return categoryChooser_.size(); + } else { + return categoryChooserBuilder_.getCount(); + } + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public meerkat.protobuf.Voting.CategoryChooser getCategoryChooser(int index) { + if (categoryChooserBuilder_ == null) { + return categoryChooser_.get(index); + } else { + return categoryChooserBuilder_.getMessage(index); + } + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder setCategoryChooser( + int index, meerkat.protobuf.Voting.CategoryChooser value) { + if (categoryChooserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryChooserIsMutable(); + categoryChooser_.set(index, value); + onChanged(); + } else { + categoryChooserBuilder_.setMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder setCategoryChooser( + int index, meerkat.protobuf.Voting.CategoryChooser.Builder builderForValue) { + if (categoryChooserBuilder_ == null) { + ensureCategoryChooserIsMutable(); + categoryChooser_.set(index, builderForValue.build()); + onChanged(); + } else { + categoryChooserBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder addCategoryChooser(meerkat.protobuf.Voting.CategoryChooser value) { + if (categoryChooserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryChooserIsMutable(); + categoryChooser_.add(value); + onChanged(); + } else { + categoryChooserBuilder_.addMessage(value); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder addCategoryChooser( + int index, meerkat.protobuf.Voting.CategoryChooser value) { + if (categoryChooserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoryChooserIsMutable(); + categoryChooser_.add(index, value); + onChanged(); + } else { + categoryChooserBuilder_.addMessage(index, value); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder addCategoryChooser( + meerkat.protobuf.Voting.CategoryChooser.Builder builderForValue) { + if (categoryChooserBuilder_ == null) { + ensureCategoryChooserIsMutable(); + categoryChooser_.add(builderForValue.build()); + onChanged(); + } else { + categoryChooserBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder addCategoryChooser( + int index, meerkat.protobuf.Voting.CategoryChooser.Builder builderForValue) { + if (categoryChooserBuilder_ == null) { + ensureCategoryChooserIsMutable(); + categoryChooser_.add(index, builderForValue.build()); + onChanged(); + } else { + categoryChooserBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder addAllCategoryChooser( + java.lang.Iterable<? extends meerkat.protobuf.Voting.CategoryChooser> values) { + if (categoryChooserBuilder_ == null) { + ensureCategoryChooserIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categoryChooser_); + onChanged(); + } else { + categoryChooserBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder clearCategoryChooser() { + if (categoryChooserBuilder_ == null) { + categoryChooser_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + categoryChooserBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public Builder removeCategoryChooser(int index) { + if (categoryChooserBuilder_ == null) { + ensureCategoryChooserIsMutable(); + categoryChooser_.remove(index); + onChanged(); + } else { + categoryChooserBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public meerkat.protobuf.Voting.CategoryChooser.Builder getCategoryChooserBuilder( + int index) { + return getCategoryChooserFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public meerkat.protobuf.Voting.CategoryChooserOrBuilder getCategoryChooserOrBuilder( + int index) { + if (categoryChooserBuilder_ == null) { + return categoryChooser_.get(index); } else { + return categoryChooserBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public java.util.List<? extends meerkat.protobuf.Voting.CategoryChooserOrBuilder> + getCategoryChooserOrBuilderList() { + if (categoryChooserBuilder_ != null) { + return categoryChooserBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(categoryChooser_); + } + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public meerkat.protobuf.Voting.CategoryChooser.Builder addCategoryChooserBuilder() { + return getCategoryChooserFieldBuilder().addBuilder( + meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public meerkat.protobuf.Voting.CategoryChooser.Builder addCategoryChooserBuilder( + int index) { + return getCategoryChooserFieldBuilder().addBuilder( + index, meerkat.protobuf.Voting.CategoryChooser.getDefaultInstance()); + } + /** + * <code>repeated .meerkat.CategoryChooser categoryChooser = 2;</code> + */ + public java.util.List<meerkat.protobuf.Voting.CategoryChooser.Builder> + getCategoryChooserBuilderList() { + return getCategoryChooserFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.CategoryChooser, meerkat.protobuf.Voting.CategoryChooser.Builder, meerkat.protobuf.Voting.CategoryChooserOrBuilder> + getCategoryChooserFieldBuilder() { + if (categoryChooserBuilder_ == null) { + categoryChooserBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + meerkat.protobuf.Voting.CategoryChooser, meerkat.protobuf.Voting.CategoryChooser.Builder, meerkat.protobuf.Voting.CategoryChooserOrBuilder>( + categoryChooser_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + categoryChooser_ = null; + } + return categoryChooserBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return this; + } + + + // @@protoc_insertion_point(builder_scope:meerkat.SimpleCategoriesSelectionData) + } + + // @@protoc_insertion_point(class_scope:meerkat.SimpleCategoriesSelectionData) + private static final meerkat.protobuf.Voting.SimpleCategoriesSelectionData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new meerkat.protobuf.Voting.SimpleCategoriesSelectionData(); + } + + public static meerkat.protobuf.Voting.SimpleCategoriesSelectionData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser<SimpleCategoriesSelectionData> + PARSER = new com.google.protobuf.AbstractParser<SimpleCategoriesSelectionData>() { + public SimpleCategoriesSelectionData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SimpleCategoriesSelectionData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser<SimpleCategoriesSelectionData> parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser<SimpleCategoriesSelectionData> getParserForType() { + return PARSER; + } + + public meerkat.protobuf.Voting.SimpleCategoriesSelectionData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_UIElement_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_UIElement_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BallotQuestion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BallotQuestion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_QuestionCluster_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_QuestionCluster_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_Channel_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_Channel_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BallotAnswer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BallotAnswer_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_PlaintextBallot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_PlaintextBallot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_EncryptedBallot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_EncryptedBallot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_SignedEncryptedBallot_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BallotSecrets_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BallotSecrets_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BoothParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BoothParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BoothSystemMessages_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BoothSystemMessages_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BallotAnswerTranslationTable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_BulletinBoardClientParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_ElectionParams_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_ElectionParams_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_Category_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_Category_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_CategoryChooser_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_CategoryChooser_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_meerkat_SimpleCategoriesSelectionData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_meerkat_SimpleCategoriesSelectionData_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\024meerkat/voting.proto\022\007meerkat\032\024meerkat" + + "/crypto.proto\"C\n\tUIElement\022(\n\004type\030\001 \001(\016" + + "2\032.meerkat.UIElementDataType\022\014\n\004data\030\002 \001" + + "(\014\"\231\001\n\016BallotQuestion\022\024\n\014is_mandatory\030\001 " + + "\001(\010\022$\n\010question\030\002 \001(\0132\022.meerkat.UIElemen" + + "t\022\'\n\013description\030\003 \001(\0132\022.meerkat.UIEleme" + + "nt\022\"\n\006answer\030\004 \003(\0132\022.meerkat.UIElement\"Z" + + "\n\017QuestionCluster\022/\n\023cluster_description" + + "\030\001 \001(\0132\022.meerkat.UIElement\022\026\n\016question_i" + + "ndex\030\002 \003(\005\"Q\n\007Channel\022/\n\023channel_descrip", + "tion\030\001 \001(\0132\022.meerkat.UIElement\022\025\n\rcluste" + + "r_index\030\002 \003(\005\"\"\n\014BallotAnswer\022\022\n\006answer\030" + + "\001 \003(\022B\002\020\001\"l\n\017PlaintextBallot\022\025\n\rserial_n" + + "umber\030\001 \001(\004\022\032\n\022channel_identifier\030\002 \001(\014\022" + + "&\n\007answers\030\003 \003(\0132\025.meerkat.BallotAnswer\"" + + "_\n\017EncryptedBallot\022\025\n\rserial_number\030\001 \001(" + + "\004\0225\n\004data\030\002 \001(\0132\'.meerkat.Rerandomizable" + + "EncryptedMessage\"r\n\025SignedEncryptedBallo" + + "t\0222\n\020encrypted_ballot\030\001 \001(\0132\030.meerkat.En" + + "cryptedBallot\022%\n\tsignature\030\002 \001(\0132\022.meerk", + "at.Signature\"\264\001\n\rBallotSecrets\0222\n\020plaint" + + "ext_ballot\030\001 \001(\0132\030.meerkat.PlaintextBall" + + "ot\022<\n\025encryption_randomness\030\002 \001(\0132\035.meer" + + "kat.EncryptionRandomness\0221\n\005proof\030\003 \001(\0132" + + "\".meerkat.RandomnessGenerationProof\"M\n\013B" + + "oothParams\022>\n\023pscVerificationKeys\030\001 \003(\0132" + + "!.meerkat.SignatureVerificationKey\"\250\001\n\023B" + + "oothSystemMessages\022G\n\016system_message\030\001 \003" + + "(\0132/.meerkat.BoothSystemMessages.SystemM" + + "essageEntry\032H\n\022SystemMessageEntry\022\013\n\003key", + "\030\001 \001(\t\022!\n\005value\030\002 \001(\0132\022.meerkat.UIElemen" + + "t:\0028\001\",\n\034BallotAnswerTranslationTable\022\014\n" + + "\004data\030\001 \001(\014\"P\n\031BulletinBoardClientParams" + + "\022\034\n\024bulletinBoardAddress\030\001 \003(\t\022\025\n\rminRed" + + "undancy\030\002 \001(\002\"\377\003\n\016ElectionParams\022B\n\027trus" + + "teeVerificationKeys\030\001 \003(\0132!.meerkat.Sign" + + "atureVerificationKey\022!\n\031trusteeSignature" + + "Threshold\030\002 \001(\r\0229\n\023ballotEncryptionKey\030\003" + + " \001(\0132\034.meerkat.EncryptionPublicKey\022@\n\025mi" + + "xerVerificationKeys\030\004 \003(\0132!.meerkat.Sign", + "atureVerificationKey\022\026\n\016mixerThreshold\030\005" + + " \001(\r\0229\n\030channel_choice_questions\030\006 \003(\0132\027" + + ".meerkat.BallotQuestion\022>\n\016selection_dat" + + "a\030\007 \001(\0132&.meerkat.SimpleCategoriesSelect" + + "ionData\022/\n\016race_questions\030\010 \003(\0132\027.meerka" + + "t.BallotQuestion\022E\n\031bulletinBoardClientP" + + "arams\030\t \001(\0132\".meerkat.BulletinBoardClien" + + "tParams\"!\n\010Category\022\025\n\rquestionIndex\030\001 \003" + + "(\r\"6\n\017CategoryChooser\022#\n\010category\030\001 \003(\0132" + + "\021.meerkat.Category\"~\n\035SimpleCategoriesSe", + "lectionData\022*\n\017shared_defaults\030\001 \001(\0132\021.m" + + "eerkat.Category\0221\n\017categoryChooser\030\002 \003(\013" + + "2\030.meerkat.CategoryChooser*3\n\021UIElementD" + + "ataType\022\010\n\004TEXT\020\000\022\t\n\005IMAGE\020\001\022\t\n\005VOICE\020\002*" + + "F\n\014QuestionType\022\023\n\017MULTIPLE_CHOICE\020\000\022\026\n\022" + + "MULTIPLE_SELECTION\020\001\022\t\n\005ORDER\020\002B\022\n\020meerk" + + "at.protobufb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + meerkat.protobuf.Crypto.getDescriptor(), + }, assigner); + internal_static_meerkat_UIElement_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_meerkat_UIElement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_UIElement_descriptor, + new java.lang.String[] { "Type", "Data", }); + internal_static_meerkat_BallotQuestion_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_meerkat_BallotQuestion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BallotQuestion_descriptor, + new java.lang.String[] { "IsMandatory", "Question", "Description", "Answer", }); + internal_static_meerkat_QuestionCluster_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_meerkat_QuestionCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_QuestionCluster_descriptor, + new java.lang.String[] { "ClusterDescription", "QuestionIndex", }); + internal_static_meerkat_Channel_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_meerkat_Channel_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_Channel_descriptor, + new java.lang.String[] { "ChannelDescription", "ClusterIndex", }); + internal_static_meerkat_BallotAnswer_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_meerkat_BallotAnswer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BallotAnswer_descriptor, + new java.lang.String[] { "Answer", }); + internal_static_meerkat_PlaintextBallot_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_meerkat_PlaintextBallot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_PlaintextBallot_descriptor, + new java.lang.String[] { "SerialNumber", "ChannelIdentifier", "Answers", }); + internal_static_meerkat_EncryptedBallot_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_meerkat_EncryptedBallot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_EncryptedBallot_descriptor, + new java.lang.String[] { "SerialNumber", "Data", }); + internal_static_meerkat_SignedEncryptedBallot_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_meerkat_SignedEncryptedBallot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_SignedEncryptedBallot_descriptor, + new java.lang.String[] { "EncryptedBallot", "Signature", }); + internal_static_meerkat_BallotSecrets_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_meerkat_BallotSecrets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BallotSecrets_descriptor, + new java.lang.String[] { "PlaintextBallot", "EncryptionRandomness", "Proof", }); + internal_static_meerkat_BoothParams_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_meerkat_BoothParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BoothParams_descriptor, + new java.lang.String[] { "PscVerificationKeys", }); + internal_static_meerkat_BoothSystemMessages_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_meerkat_BoothSystemMessages_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BoothSystemMessages_descriptor, + new java.lang.String[] { "SystemMessage", }); + internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor = + internal_static_meerkat_BoothSystemMessages_descriptor.getNestedTypes().get(0); + internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BoothSystemMessages_SystemMessageEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_meerkat_BallotAnswerTranslationTable_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_meerkat_BallotAnswerTranslationTable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BallotAnswerTranslationTable_descriptor, + new java.lang.String[] { "Data", }); + internal_static_meerkat_BulletinBoardClientParams_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_meerkat_BulletinBoardClientParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_BulletinBoardClientParams_descriptor, + new java.lang.String[] { "BulletinBoardAddress", "MinRedundancy", }); + internal_static_meerkat_ElectionParams_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_meerkat_ElectionParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_ElectionParams_descriptor, + new java.lang.String[] { "TrusteeVerificationKeys", "TrusteeSignatureThreshold", "BallotEncryptionKey", "MixerVerificationKeys", "MixerThreshold", "ChannelChoiceQuestions", "SelectionData", "RaceQuestions", "BulletinBoardClientParams", }); + internal_static_meerkat_Category_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_meerkat_Category_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_Category_descriptor, + new java.lang.String[] { "QuestionIndex", }); + internal_static_meerkat_CategoryChooser_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_meerkat_CategoryChooser_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_CategoryChooser_descriptor, + new java.lang.String[] { "Category", }); + internal_static_meerkat_SimpleCategoriesSelectionData_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_meerkat_SimpleCategoriesSelectionData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_meerkat_SimpleCategoriesSelectionData_descriptor, + new java.lang.String[] { "SharedDefaults", "CategoryChooser", }); + meerkat.protobuf.Crypto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/android-scanner/src/main/java/meerkat/rest/Constants.java b/android-scanner/src/main/java/meerkat/rest/Constants.java new file mode 100644 index 0000000..2c04248 --- /dev/null +++ b/android-scanner/src/main/java/meerkat/rest/Constants.java @@ -0,0 +1,8 @@ +package meerkat.rest; + +/** + * Created by talm on 10/11/15. + */ +public interface Constants { + public static final String MEDIATYPE_PROTOBUF = "application/x-protobuf"; +} diff --git a/android-scanner/src/main/res/layout/activity_main.xml b/android-scanner/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..ffa36dd --- /dev/null +++ b/android-scanner/src/main/res/layout/activity_main.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" + android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> + + <TextView android:text="@string/instructions" android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/textView" /> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/button_txt" + android:id="@+id/scan_button" + android:layout_below="@+id/textView" + android:layout_centerHorizontal="true" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textIsSelectable="true" + android:id="@+id/scan_format" + android:layout_below="@+id/scan_button" + android:layout_centerHorizontal="true" + android:layout_marginTop="44dp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textIsSelectable="true" + android:id="@+id/scan_content" + android:layout_below="@+id/scan_format" + android:layout_centerHorizontal="true" + android:layout_marginTop="32dp" /> + + <TextView + android:id="@+id/server_response" + android:layout_below="@+id/scan_content" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textIsSelectable="true" + android:layout_centerHorizontal="true" + android:layout_marginTop="44dp" /> + +</RelativeLayout> diff --git a/android-scanner/src/main/res/mipmap-hdpi/ic_launcher.png b/android-scanner/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..cde69bcccec65160d92116f20ffce4fce0b5245c GIT binary patch literal 3418 zcmZ{nX*|@A^T0p5j$I+^%FVhdvMbgt%d+mG98ubwNv_tpITppba^GiieBBZGI>I89 zGgm8TA>_)DlEu&W;s3#ZUNiH4&CF{a%siTjzG;eOzQB6{003qKeT?}z_5U*{{kgZ; zdV@U&tqa-&4FGisjMN8o=P}$t-`oTM2oeB5d<Fo2&r`%T0PsZszz-Y%sAd8Hmsf6! znfiHw-rfj{Ip?_?>9mHPgTYJx4jup)+5a;Tke$m708DocFzDL>U$$}s6FGiy_I1?O zHXq`q884|^O4Q*%V#vwxqCz-#8i`Gu)2LeB0{%%VKunOF%9~JcFB9MM>N00M`E~;o zBU%)O5u-D6NF~OQV7TV#JAN;=Lylgxy0kncoQpGq<<_gxw`FC=C-cV#$L|(47Hatl ztq3Jngq00x#}HGW@_tj{&A?lwOwrVX4@d66vLVyj1H@i}VD2YXd)n03?U5?cKtFz4 zW#@+MLeDVP>fY0F2IzT;r5*MAJ2}P8Z{g3utX0<+ZdAC)Tvm-4uN!I7|BTw&G%RQn zR+A5VFx(}r<1q9^N40XzP=Jp?i=jlS7}T~tB4CsWx<vPNkjHlfMEcf45&>!XbiHSm zLu}yar%t>-3jlutK=wdZhES->*1X({YI;DN?6R=C*{1U6%wG`<pWB-#v65;$Uw-Rb zF{@Lj>0>^?u}h0hhqns|SeTmV=s;Gxx5F9DtK>{>{f-`SpJ`dO26Ujk?^%ucsuCPe zIUk1(@I3D^7{@jmXO2@<84|}`tDjB}?S#k$ik;jC))B<wM4}HcmvjBg>H8>8mQWmZ zF#V|$gW|Xc_wmmkoI-b5;4AWxkA>>0t4&&-eC-J_iP(tLT~c6*(ZnSFlhw%}0IbiJ ztgnrZwP{RBd(6Ds`dM~k;rNFgkbU&Yo$KR#q&%Kno^YXF5ONJwGwZ*wEr4wYkGiXs z$&?qX!H5sV*m%5t@3_>ijaS5hp#^Pu>N_9Q?2grdNp({IZnt|P9Xyh);q|BuoqeUJ zfk(AGX4odIVADHEmozF|I{9j>Vj^jCU}K)r>^%9#E#Y6B0i#f^iYsNA!b|kVS$*zE zx7+P?0{oudeZ2(ke=YEjn#+_cdu_``g9R95qet28SG>}@Me!D6&}un*e#Cyvl<b-E zXo9CA{cYIm*z0frH@uTU%Ts>URrg8d;i$&-0B?4{eYEgzwotp*DOQ_<=Ai21Kzb0u zegCN%3bdwxj!ZTLvBvexHmpTw{Z3GRGtvkwEoKB1?!#+6h1i2JR%4>vOkPN_6`J}N zk}zeyY3dPV+IAyn;zRtFH5e$Mx}V(|k+Ey#=nMg-4F#%h(*nDZDK=k1snlh~Pd3dA zV!$BoX_JfEGw^R6Q2kpdK<cb|wSjvyLSt2(pKa{y2SDX<sXjI44}h$Ru;FgV;lne; z;hGc0g4Yzre5tcr;9I1lJf4G7?}hl}ntj*AG<&x5oWft0q%VUi>D_e0m*NX?M5;)C zb3x+v?J1d#jRGr=*?(7Habkk1F_#72_iT7{IQFl<;hkqK83fA8Q8@(oS?WYuQd4z^ z)7eB?N01v=oS47`bBcBnKvI&)yS8`W8qHi(h2na?<cD&MSotA>c6%t4mU(}H(n4MO zHIpFdsWql()UNTE8b=|ZzY*>$Z@O5m9QCnhOiM%)+P0S06p<yr{B2ReSs0Q%(m45& zTuV^Ue$RBH8|_PV<;l4G&Wnb#{(BZfJ8?M*Z6INA(OoTV2M33s-f(1XQgP!nIh9L= z?0vLS(5Z)=An$K$I;h0)MAZjfUB!Xn3)IT>rr6!VET%*HTeL4iu~!y$pN!mOo5t@1 z?$$q-!uP(+O-%7<+Zn5i=)2OftC+wOV;zAU8b`M5f))CrM6xu94e2s78i&zck@}%= zZq2l!$N8~@63!^|`{<=A&*fg;XN*7CndL&;zE(y+GZVs-IkK~}+5F`?ergDp=9x1w z0hkii!N(o!iiQr`k`^P2LvljczPcM`%7~2n#|K7nJq_e0Ew;UsXV_~3)<;L?K9$&D zUzgUOr{C6VLl{Aon}zp`+fH3>$*~swkjCw|e>_31G<=U0@B*~hIE)|WSb_M<j5qxo zX)Xd2(z4t$>aE41Prxp-2eEg!gcon$fN6Ctl7A_lV8^@B9B+G~0=IYgc%VsprfC`e zoBn&O3O)3MraW#z{h3bWm;*HPbp*h+I*<AlWTtlp_b8q$UiGZV56{mLx%{$ElAtiG zy%M+T>DoB%Y~(Fqp9+x;c>K2+niydO5&@E?SoiX_zf+cI09%%m$y=YMA~rg!xP*>k zmYxKS-|3r*n0J4y`Nt1eO@oyT0Xvj*E3ssVNZAqQnj-Uq{N_&3e45Gg5pna+r~Z6^ z>4PJ7r(gO~D0TctJQyMVyMIwmzw3rbM!};>C@8JA<&6j3+Y9zHUw?tT_-uNh^u@np zM?4qmcc4MZjY1mWLK!>1>7uZ*%Pe%=DV|skj)@OLYvwGXuYBoZvbB{@l}cHK!~UHm z4jV&m&uQAOLsZUYxORkW4|>9t3L@*ieU&b0$sAMH&tKidc%;nb4Z=)D7H<-`#%$^# zi`>amtzJ^^#zB2e%o*wF!gZBqML9>Hq9jqsl-|a}yD&JKsX{Op$7)_=CiZvqj;xN& zqb@L;#4xW$+icPN?@MB|{I!>6U(h!Wxa}14Z0S&y|A5$zbH(DXuE?~WrqNv^;x}vI z0PWfSUuL7Yy``H~*<yhGy%dFt&0d{uhOwkBU)hd@Z^3IE+^<vu6&I~MV(sIn>?|%z zT~ZWYq}{X;q*u-}CT;zc_NM|2MKT8)cMy|d>?i^^k)O*}hbEcCrU5Bk{Tjf1>$Q=@ zJ9=R}%vW$~GFV_PuXqE4!6AIuC?Tn~Z=m#<l>Kbj3bUfpb82bxsJ=?2wL>EGp=wsj zAPVwM=Cffc<gi2%?eZM3^j-LMZNc_5fLX*l*=@WJYD_p~WgajaxbG%SQ787>ycEF; z@kPngVDwPM>T-Bj4##H9VONhbq%=SG;$AjQlV^HOH7!_vZk=}TMt*8qF<L~_@`_d} z_j)Sh#mA3K{HunFi27c{q4EzP`FP3UMhDp|?8wZ1s7QT~bV%89V`1j8^E#Zq<fQc< zIk=f{9<6r63%KDkV?#MoJ{XH9Zkp)^Vjt)waKSg!Mfl(--(+vWob6;GelGRHSy~eO za`?_fr5rr6b4u5Wjh2nhv2}m0bG<}1i^BcAFiVZJ58Lu$LTr+>I}bI=K9g$fgD9$! zO%cK1_+Wbk0Ph}E$BR2}4wO<_b0{qtIA1ll>s*2^!7d2e`Y>$!z54Z4FmZ*vyO}EP z@p&MG_C_?XiKBaP#_XrmRYszF;Hyz#2xqG%yr991pez^qN!~gT_Jc=PPCq^8V(Y9K zz33S+Mzi#$R}ncqe!oJ3>{gacj44kx(SOuC%^9~vT}%7itrC3b;ZPfX;R`D2AlGgN zw$o4-F77!eWU0$?^MhG9zxO@&zDcF;@w2beXEa3SL^htWYY{5k?ywyq7u&)~Nys;@ z8ZNIzUw$#ci&^bZ9mp@A;7y^*XpdWlzy%auO1hU=UfNvfHti<VS`)O@ts>PM@+99# z!uo2`>!*MzphecTjN4x6H)xLeeDVEO#@1oDp`*QsBvmky=JpY@fC0$yIexO%f>c-O zAzUA{ch#N&l;RClb~;`@dqeLPh?e-Mr)T-*?Sr{32|n(}m>4}4c3_H3*U&Yj)grth z{%F0z7YPyjux9hfqa+J|`Y%4gwrZ_TZCQq~0wUR8<v4ji{Efs89Rp0f>}9@Jj4lh( z#~%AcbKZ++&f1e^G8LPQ)*Yy?lp5^z4pDTI@b^hlv06?GC%{ZywJcy}3U@zS3|M{M zGPp|cq4Zu~9o_cEZiiNyU*tc73=#Mf>7uzue|6Qo_e!U;oJ)Z$DP~(hOcRy&hR{`J zP7cNIgc)F%E2?p%{%&sxXGDb0yF#zac5fr2x>b)NZz8prv~HBhw^q=R$nZ~@&zdBi z)cEDu+cc1?-;ZLm?^x5Ov#XRhw9{zr;Q#0*wglhWD={Pn$Qm$;z?Vx)_f>igNB!id zmTlMmkp@8kP212#@jq=m%g4ZEl$*a_T;5nHrbt-6D0@eqFP7u+P`;X_Qk68bzwA0h zf{EW5xAV5fD)il-cV&zFmPG|KV4^Z{YJe-g^>uL2l7Ep|NeA2#;k$yerpffdlXY<2 znDODl8(v(24^8Cs3wr(UajK*lY*9yAqcS>92eF<Y3gc1|ZshLmk9SzlCzB=eE(@Vl zSx;%g;O3iXA`?+8u75ppM6DXl-#GsuBPlfDWJ88Y)TZ96T~UDdW~M{OMf17U!2hoL zbJaS9i1mgzygd5RfBt-k`{-KxI6m-kQgwLZbPhlsfmD!1sK_D|ZzB<^ib|@A%CZP0 lRRp4~554_=8r(e{U7Z8}|AwLLqyN4qz(Cg&Q=^Rw{~v+pKxzO0 literal 0 HcmV?d00001 diff --git a/android-scanner/src/main/res/mipmap-mdpi/ic_launcher.png b/android-scanner/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..c133a0cbd379f5af6dbf1a899a0293ca5eccfad0 GIT binary patch literal 2206 zcmZ{mc|6mPAICqNwJrBe)OTwlM~;a|Uz&T!k&1?zWA4p4M`7F7`J;wP4IvS^nJ7{y zAtgDMD>=W8<&GtU-}>|S$M5}kyxz~p>-~Pb{(irc?QF~icx8A201&Xin%Hxx@kekd zw>yHjlemC*8(JFz05gs6x7#7EM|xoGtpVVs0szqB0bqwaqAdVG7&rLc6#(=y0YEA! z=jFw}xeKVfmAMI*+}bv7qH=LK2#X5^06wul0s+}M(f|O<w=glh>@&WMyG9frlGyLb z&Eix=47rL84J+tEWcy_XTyc*xw9uOQy`qmHCjAeJ?d=dUhm;P}^F=LH42AEMIh6X8 z*I7Q1jK%gVlL|8w?%##)xSIY`Y+9$SC8!X*_A*S0SWOKNUtza(FZHahoC2|6f=*oD zxJ8-RZk!+YpG+J}Uqnq$y%y>O^@e5M3SSw^29PMwt%8lX^9FT=O@VX$FCLBdlj#<{ zJWWH<#iU!^E7axvK+`u;$*sGq1SmGYc&{g03Md&$r@btQSUIjl&yJXA&=79FdJ+D< z4K^ORdM{M0b2{wRROvjz1@Rb>5dFb@gfkYiIOAK<w6>M(NR3*1JpeR_Hk3>W<D;EJ z=L^rbEb1z`&n*lf)V?1WAH;irYq7~E^R{os%v7=+?7ik??QMBnQJ%3+(IM;60ly~m z@ZOb_{t@czht$nEo{x$AT}*`jW=~n)lob!)RV@huYj}T+*!>GvU&>}D^HXZ02JUnM z@1s_HhX#rG7;|FkSh2#agJ_2fREo)L`ws+6{?IeWV(>Dy8A(6)IjpSH-n_uO=810y z#4?ez9NnERv6k)N13sXmx)=sv=$$i_QK`hp%I2cyi*J=ihBWZLwpx9Z#|s;+XI!0s zLjYRVt!1KO;mnb7ZL~XoefWU02f{jcY`2wZ4QK+q7gc4iz%d0)5$tPUg~$jVI6vFO zK^wG7t=**T40km@TNUK+WTx<1mL|6Tn6+kB+E$Gpt8SauF9E-CR9Uui_EHn_nmBqS z>o#G}58nHFtICqJPx<_?UZ;z0_(0&UqMnTftMKW@%AxYpa!g0fxGe060^xkRtYguj ze&fPtC!?RgE}FsE0*^2lnE>42K#jp^nJDyzp{J<CBF5a@ocO7b)Z*wL*+}|Q;CWWj zrwsXTOl`-2{lbm4_4aC{QD21#W`vUOZ5yq|c}Yu(jfick{kvvY;d^A;*7fl^F^PgF zE^^B^!~Gp+yxT<(CeR103HrJ0mXtZx{Mstpa3KUbTd^we=*bx&JaJD!Z@!Y}PU~=Y zdbRB<n~K+so^Sdtb;3H|cBsyyNEC){JS_;9-h2%2GXe#C-nl>V*jU?{+%KzW37-<w zIxz|W)?M=N*&fn)y2~5w)93EBfNNwh20l48!lDyr8yX$0f}}EIl1DR$5qr%_!731? z$CD!icnK!z*K}sR6?nIEfc0!936D!o&z3O5kerNmqcIhqu>q|d3i&%eooE6C8Z2t2 z9bBL;^fzVhdLxCQh1+Ms5P)ilz9MYFKdqYN%*u^ch(Fq~QJASr5V_=szAKA4Xm5M} z(Kka%r!noMtz6ZUbjBrJ?Hy&c+mHB{OFQ}=41Irej{0N90`E*~_F1&7Du+zF{Dky) z+KN|-mmIT`Thcij!{3=ibyIn83<d<OT5i1-IQr8Gr5K-KQg{=u<eGy}mrjL`H+>0G zN{kI3d`NgUEJ|2If}J!?@w~FV+v?<LU~T-4(VN8gIgL(%C%`HWWR_oWnP(88)n?Ld zlIP>~tlo8ps3Nl`3^kI)WfZ0|ms6U8HEvD9HIDWkz6`T_QSewYZ<aNGH`0<mTbtl! zd{>yzkRh)!g~R>!jaR9;K|#82kfE5^;R!~}H4C?q{1AG?O$5kGp)G$f%VML%aPD?{ zG6)*KodSZRXbl8OD=ETxQLJz)KMI7xjArKUNh3@0f|T|75?Yy=pD7056ja0W)O;Td zCEJ=7q?d|$3rZb+8Cvt6mybV-#1B2}Jai^DOjM2<90tpql|M5tmheg){2NyZR}x3w zL6u}<C@I$%D3jvZoR+SyE4?bu3pcyFB@NXhKg#9hR{7~GrIcLAx9iQSV5Q1;AK{Gj zk1*g!!y2C3khozZGr`#B30Bq)E=<n2bt}YHO(!GTj@)dk{Fje=Fs7Ut3j92L^xYtN z366lMCfoRH4$mmz5vdM3M*6NNpI)kK@Kud@K>F<v61r~o#{W2qEfbe@D=*ZzoQzd& z88dqcf&%r4`R%4?GNuS@PHU^}sjr5Ndxk7-`{k?|32GhxfEK%Q{Bx0fZ~eQQX3TqE zL_QJjBtx5jD5%%Ma!%A`-l#mJ+0vL<_k6@t<ki5!a|WjGjpIA9CEAZ%iBBek1qH<@ zU-FHDs|H7>+C-PIzZ56q0x$;mVJXM1V0;F}y9F29ob<j8GOm|9@-)i`{Tr5Bcs*IM zEZIh~g7x!XkOaf}t4g>51f<S0jw)Y#cApQ22~)Q<Li@*N6!jiIXHhD?d!p!B!F~D` za*ZgoB7%prLA!KI)Mfu?o+Na4QGH$P@Fe@vKd{ZW6`P-yW7c1s7r2)FC2V5qEH)?U zn7wq0d!Y0%hZMJkxG<vQApI-r$k}y<$GmzJ`d5H_N2j-i%;<T^@Zy#Vzqc(^RXGA_ zcqt*N%VldsMDJqd3hRUQ_j}a`#7SAiD=PaG@J;_IUL4?LCq9%?^AE5WpG|R8Zc}tw zKUC@_O{Avf>;;+)t&7l30gloMMHPTuod530FC}j^4#qOJV%5!&e!H9#!N&XQvs5{R zD_FOomd-uk@?_JiWP%&nQ_myBlM6so1Ffa1aaL7B`!ZTXPg_S%TUS*>M^8iJRj1*~ e{{%>Z1YfTk|3C04d;8A^0$7;Zm{b|L#{L(;l>}-4 literal 0 HcmV?d00001 diff --git a/android-scanner/src/main/res/mipmap-xhdpi/ic_launcher.png b/android-scanner/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..bfa42f0e7b91d006d22352c9ff2f134e504e3c1d GIT binary patch literal 4842 zcmZ{oXE5C1x5t0WvTCfdv7&7fy$d2l*k#q|U5FAbL??P!61}%ovaIM)mL!5G(V|6J zAtDH(OY|Du^}l!K&fFLG%sJ2JIp@rG=9y>Ci)Wq~U2RobsvA@Q0MM$dq4lq5{hy#9 zzgp+B{O(-=?1<7r0l>Q?>N6X%s~lmgrmqD6fjj_!c?AF`S0&6U06Z51fWOuNAe#jM z%pSN#J-Mp}`ICpL=qp~?u~Jj$6(~K_%)9}Bn(;pY0&;M00H9x2N23h=CpR7kr8A9X zU%oh4-E@i!Ac}P+&%vOPQ3warO9l!SCN)ixGW54Jsh!`>*aU)#&Mg7;#O_6xd5%I6 zneGSZL3Kn-4B^>#T7pVaIHs3^PY-N^v1!W=%gzfioIWosZ!BN?_M)OOux&6HCyyMf z3ToZ@_h75A33KyC!T)-zYC-bp`@^1n;w3~N+vQ0#4V7!f<X7X_k3I~yV5Rc@r=<4D zC;=EfVDn?d>|JPMlWWJ@+Tg~8>1$GzLlHGuxS)w&NAF*&Y;ef`T^w4HP7GK%6UA8( z{&ALM(%!w2U7WFWwq8v4H3|0cOjdt7$JLh(;U8VcTG;R-vmR7?21nA?@@b+XPgJbD z*Y@v&dTqo5Bcp-dIQQ4@?-m{=7>`LZ{g4jvo$CE&(+7(rp#WShT9<yd{TWbSD6q(G zv>&9y>V#ikmXFau03*^{&d(AId0Jg9G;tc7K_{ivzBjqHuJx08cx<8U`z2JjtOK3( zvtuduBHha>D&iu#))5RKXm>(|$m=_;e?7ZveYy=J$3wjL>xPCte-MDcVW<;ng`nf= z9);CVVZjI-&UcSAlhDB{%0v$wPd=w6MBwsVEaV!hw~8G(rs`lw@|#AAHbyA&(I-7Y zFE&1iIGORsaskMqSYfX33U%&17oTszdHPjr&Sx(`IQzoccST*}!cU!ZnJ+~duBM6f z{Lf<O%<l3*%Y$=O5RN2SL@`e&0v4V%H2mkq1}A%PkoP$01PF{~Ca|3&Bt?I-5UFZ` zK{YhMfQi0{`HRoG5WjH$l_^AIIo}pQ1JL8M*hy72eeQ+%x|ODo;8o<f4f~lP{5NYy zq;j}O@JFG3t$!{jBU=Kh=pJ~d&w4($Li5}X^PH=UuOKt8R(YDJ`Ci6y3C~?K5oU9G zJ#(_K1YY_<65ZQW&NSA&W%C#+Uj{06V_0)($y1$jtLYbu!)-Gw93gWaK|zi;Fy*1} z=1vGG`q#;DMqG|#(Itf#MjR)X6YMwr-mx0&!Gx?QV03qpKRwOBP>8PIT<V_>t%uWZ zTY09Jm5t<2+Un~yC-%DYEP>c-7?=+|reXO4Cd^neCQ{&aP@yODLN8}TQAJ8ogsnkb zM~O>~3&n6d+ee`V_m@$6V`^ltL&?uwt|-afgd7BQ9Kz|g{B@K#q<F7S4QSf<`?y{W z|KMpI=_*O`FrF@=!x%tOOLc<cP51V={d90fpE?>Q#$o4ut`9lQsYfHofccNoqE+`V zQ&UXP{X4=&Z16O_wCk9SFBQPKyu?<&B2zDVhI6%B$12c^SfcRYIIv!s1&r|8;xw5t zF~*-cE@V$v<Il!UURyOXBY82FS(HbWhJcT*El?gM{k^vGMey8*9jdofKs0zgm~h#A z*|7F62=qG<Vxk3qAmv*MB?{@hrNqF(o9>aB;*+91`CiN~1l8w${?~3Uy#c|D{S$I? zb!9y)DbLJ3pZ>!*+j<h3$)$bBLE^!HWVji@@v@^boK3&vgn=(E!!I6h=1oZtl$Eiw z;2#j|_kXN~+;e|1_H?O-Mf_WNO}rm383D{4QQThieLqrsHzAX7HV{8a|2(KfwDMOQ zx|n0w`GT4A!BO>=n@kOLTMr-T2>Hj^I~<!V2$Gz6H`h;>lml-a26UP1_?#!5S_a&v zeZ86(21wU0)4(h&W0iE*HaDlw+-LngX=}es#X$u*1v9>qR&qUGfADc7yz6$WN`cx9 zzB#!5&F%AK=ed|-eV6kb;R>Atp2Rk=g3lU6(IVEP3!;0YNAmqz=x|-mE&8u5W+zo7 z-QfwS6uzp9K4wC-Te-1~u?zPb{RjjI<J0Mft<$`G(z#cj4qpRGkw+kn6wLI=_Gi)Z zo!0ZEzE0}P?cwFy!{vA#^ff5Z`;7CvyRxM3&x+AasR8~1YB92fR#yM6uFyO|lC&VY zmSUlX%WkbET@vnB?BQTw_aFYKCt@&-vAQ8_D~w5}FxhO$AS%|dt8|Fbs`Y#h=H1?k zo2RZ3J5AjRntz@7LrYB|joxtlbHEb?yezp*lbJM)vX=U7$KlIg7rkGPDa<Hs{`=hH zg%u)hxJYKhu?m7HTVSoPoQVeO<+MMeVOf;#`+$G5``@p>VoL1bQ=-HK_a_muB>&3I z*{e{sE_sI$CzyK-x>7abBc+uIZf?#e8;K_JtJexgpFEBMq92+Fm0j*DziUMras`o= zTzby8_XjyCYHeE@q&Q_7x?i|V9XY?MnSK;cLV?k>vf?!N87)gFPc9#XB?p)bEWGs$ zH>f$8?U7In{9@vsd%#sY5u!I$)g^%ZyutkNBBJ0eHQeiR5!DlQbYZJ-@09;c?IP7A zx>P=t*xm1rOqr@ec>|ziw@3e$ymK7YSXtafMk30i?>>1lC>LLK1~JV1n6EJUGJT{6 zWP4A(129xkvDP09j<3#1$T6j6$mZaZ@vqUBBM4Pi!H>U8xvy`bkdSNTGVcfkk&y8% z=2nfA@3kEaubZ{1nwTV1gUReza>QX%_d}x&2`jE*6JZN{HZtXSr{{6v6`r47MoA~R zejyMpeYbJ$F4*+?*=Fm7E`S_rUC0v+dHTlj{JnkW-_eRa#9V`9o!8yv_+|lB4*+p1 zUI-t)X$J{RRfSrvh80$OW_Wwp>`4*iBr|oodPt*&A9!SO(x|)UgtVvETLuLZ<-vRp z&zAubgm&J8Pt647V?Qxh;`f6E#Zgx5^2XV($YMV7;Jn2kx6aJn8T>bo?5&;GM4O~| zj>ksV0U}b}wDHW`pgO$L@Hjy2`a)T}<g%*)J3E<PG`V$OoL5*}w5Or+>s@(0#?y3n zj;yjD76HU&*s!+k5!G4<3{hKah#gBz8HZ6v`bmURyDi(wJ!C7+F%bKnRD4=q{(Fl0 zOp*r}F`6~6HHBtq$afFuXsGAk58!e?O(W$*+3?R|cDO88<$~pg^|GRHN}yml3WkbL zzSH*jmpY=`g#ZX?_XT`>-`INZ#d__BJ)Ho^&ww+h+3>y8Z&T*EI!mtgEqiofJ@5&E z6M6a}b255hCw6SFJ4q(==QN6CUE3GYnfjFNE+x8T(+J!C!?v~Sbh`Sl_0CJ;vvXsP z5oZRiPM-Vz{tK(sJM~GI&VRbBOd0JZmGzqDrr9|?iPT(qD#M*RYb$><VfEH++uGxJ z&wM}DZo>gZi*i)xGMD`NbmZt;ky&FR_2+YqpmFb`8b`ry;}D+y&WpUNd%3cfuUsb8 z7)1$Zw?bm@O6J1CY9UMrle_BUM<$pL=YI^DCz~!@p25hE&g62n{j$?UsyYjf#LH~b z_n!l6Z(J9daalVYSlA?%=mfp(!e+Hk%%oh`t%0`F`KR*b-<dxASPcI-WG4BR92e)) ztZs_CSMTeP^{^9#8MhO<ex{#UK_fBs$N|G>Zb=7SdtDS4`&&S@A)f>bKC7vmRWwT2 zH}k+2Hd7@>jiHwz^GrOeU8Y#h?YK8>a*vJ#s|8-uX_IYp*$9Y=W_Edf%$V4>w;C3h z&>ZDGavV7UA@0QIQV$&?Z_*)vj{Q%z&(IW!b-!MVDGytRb4DJJV)(@WG|MbhwCx!2 z6QJMkl^4ju9ou8Xjb*pv=Hm8DwYsw23wZqQFUI)4wCMjPB6o8yG7@Sn^5%fmaFnfD zSxp8R-L({J{p&cR7)lY+PA9#8Bx87;mB$zXCW8VDh0&g#@Z@lktyArvzgOn&-zerA zVEa9h{EYvWOukwVUGWUB5xr4{nh}a*$v^~OEasKj)~HyP`YqeLUdN~f!r;0dV7uho zX)iSYE&VG67^NbcP5F*SIE@T#=NVjJ1=!Mn!^<C{hYt+~e{keNfhQAFG}t>oeCg1L z?lv_%(ZEe%z*pGM<(UG{eF1T(#PMw}$n0aihzGoJAP^UceQMiBuE8Y`lZ|sF2_h_6 zQw*b*=;2Ey_Flpfgsr4PimZ~8G~R(v<PpO)5o>U}^Zxmri5)l?N>M_dWyCsjZw<+a zqjmL0l*}PXNGUOh)YxP>;ENiJTd|S^%BARx9D~%7x?F6u4K(Bx0`KK2mianotlX^9 z3z?MW7Coqy^ol0pH)Z3+GwU|Lyuj#7HCrqs#01ZF&KqEg!olHc$O#Wn>Ok_k2`zoD z+LYbxxVMf<(d2OkPIm8Xn>bwFsF6m8@i7PA$sdK~ZA4|ic?k*q2j1YQ>&<D1Mt<>A zjPO%H@H(h`t+irQqx+e)ll9LGmdv<D`;bQhk0JG0m>r1zXV;WTi}KCa>K82n90s|K zi`X}C*Vb12p?C-sp5maVDP5{&5$E^k6~BuJ^UxZaM=o+@(LXBWChJUJ|KEckEJTZL zI2K&Nd$U65YoF3_J6+&YU4uKGMq2W6ZQ%BG>4HnIM?V;;Ohes{`Ucs56ue^7@D7;4 z+EsFB)a_(%K6jhxND}n!UBTuF3wfrvll|mp7)3wi&2?LW$+PJ<NItn{BkVRO@OE6t z%!F#?tD~nCm#48qMA=g^0LfL7kfq&Nv$PB|_Tg6$b5oZn1s~|ssLop2E?LsJmkuU0 z)D6M~T@+H_sKiGj753fsXo$lE&tXnec9QrtAa|*hKJan-0Ao<>>2)2C-6c@O&lKAn zOm=$x*dn&dI8!QCb(ul|t3oDY^MjHqxl~lp{p@#C%Od-U4y@NQ4=`U!YjK$7b=V}D z%?E40*f8DVrvV2nV>`Z3f5yuz^??$#3qR#q6F($w>kmKK`x21VmX=9kb^+cPdBY2l zGkIZS<U?o4uKF=hG{exxqn9bm;%iqp$@K$!bkrYay3aie@)`3=po@>f%C+`2nj^)j zo}g}v;5{nk<>%xj-2OqDbJ3S`7|tQWqdvJdgiL{1=w0!qS9$A`w9Qm7>N0Y*Ma%P_ zr@fR4>5u{mKwgZ33Xs$RD6(tcVH~Mas-87Fd^6M6iuV^_o$~ql+!eBIw$U)lzl`q9 z=L6zVsZzi0IIW=DT&ES9HajKhb5lz4yQxT-NRBLv_=2sn7WFX&Wp6Y!&}P+%`!A;s zrCwXO3}jrdA7mB`h~N~HT64TM{R$lNj<KPA2cV95Unfye^xU$FRd9gYtZ5*U+DxI} ztlZZr2#cY^fye+1pVMfy&t#dM=4Y*D3$5uTeZm2&f$XzgsZ3=>*~ekqSP^n9P~z;P zWPlRPz0h6za8-P>!ARb+A1-r><tA4^cnan-IVvbqVw5SnBNGnYGpFn1ngcTO&~UbG z(&b(WhVV)*4Inz-p)&u|OZWPalAdapuEn1*l#hrs*N)oE@&N#<3?LdVMzX1oCL-=< zf*)e>8VF*xhrGa8W6J$p*wy`ULrD$CmYV7Gt^scLydQWbo7XN-o9X1i7;l+J_8Ncu zc=EX&dg`GRo4==cz2d_Rz28oLS`Suf6OCp~f{0-aQ`t5YZ=!CAMc6-RZw#}A%;s44 znf2`6gcgm=0SezTH9h+JzeR3Lcm;<dBxU+8v{+GKaM&&uSG48Xn2{^fW3n6nNMIXe z{SV8?dEE{a0c!)ws^t!5QZ@-;hqpY3sCxFsc(f=dTfGy1iaBhaI_NY{@Y=RBRJG$z zX}f7di0>8?*@+?FDfguK^9)z(Z`I!RKrSAI?H~4et6GTkz07Qgq4B6%Q*8Y0yPc4x z8(^YwtZjYIeOvVLey#>@$UzIciJ#x0pJLFg=8UaZv%-&?Yzp7gWNIo_x^(d75=x2c zv|LQ`HrKP(8TqFxTiP5gdT2>aTN0S7XW*pilASS$UkJ2*n+==D)0mgTGxv43t61fr z47GkfMnD-zSH@|mZ26r*d3WEtr+l-xH@L}BM)~ThoMvKqGw=Ifc}B<BbjZooGv)JW z%jLOiE;|qi;D8l#X@6JKSBJNYmxgDOnWBtQ8M|aqJeU5P7EWQ%hO&EU`|%KqB^mq^ zGW@t(wuyu!w}EC`bFLHhQb(W`U#gBGo$+VULUEjjJMeXE9AH9;RMuj%-%V<EJsElU zD3sD4I;QE-e1p>dkL$^wC}=(XSf4YpG;sA9#O<SO>SJf)V=rs#Wq$?Wj+nTlu$YXn yn3SQon5>kvtkl(BT2@T#Mvca!|08g9w{vm``2PjZHg=b<1c17-HkzPl9sXa)&-Ts$ literal 0 HcmV?d00001 diff --git a/android-scanner/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android-scanner/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..324e72cdd7480cb983fa1bcc7ce686e51ef87fe7 GIT binary patch literal 7718 zcmZ{JWl)?=u<pyEi@VF>?hpbj?h-6mfK3P*Eck~k0Tzeg5-hkABxtZea0_k$f-mlF z0S@Qqtva`>x}TYzc}9LrO?P#qj+P1@HZ?W?0C;Muih9o&|G$cb@ocx1*PEUJ%~tM} z901hB;rx4#{@jOHs_MN00ADr$2n+#$yJuJ64gh!x0KlF(07#?(0ENrf7G3D`0EUHz zisCaq%dJ9dz%zhdRNuG*01nCjDhiPCl@b8xIMfv7^t~4jVRrSTGYyZUWqY@yW=)V_ z&3sUP1SK9v1f{4lDSN(agrKYUL<yVg6_sc^i}ous!M&&i%7MgRaC{=sK2;0abwZb( zK%#g7%=DwbmIhhZ1uZS#${mjO_Sy?&45vP|j(#7Les}nDOs51Pu~%9U`+pdGns~0+ zvNqu*INhiYi7)co_=k)DBQdjb<qb@Mh&`qA6+u!@sx<mwmiS5IqdoYTbB@RKc=`iu zFpI$KysP|h@dpl|n8LIt5H3%P4_wP=@Jk6z)9xDIZ^ix~f4p|jx)nhraBxr*i)3^- z4~muiU{HKJ#;5|`?8KQM6U#Y8{u`5dg5snr4rS@9a84t^Qg^eP!%BSOMu}*OH)-D= zHZE$s{4ICw0T5`CnYRPW$n!L&pr}7lPi92zja4X%-VSv4i_-ZRCLy+QHUb+P;&FUd z4NJCxZ`p+UW9eahn%8Q#29e8OaUpgEOQT4ydrRCtS<X;UQZiNUhHJeOaE~uPoxwVC zphKt2{%<Y%>c;#EGDVeU*5b@#MOSY5JBn#QG8<UEJ{pk9>wqxQh+mdR638{mo5f>O zLUdZIPSjFk0~F26zDrM3y_#P^P91oWtLlPaZrhnM$NR%qsb<kdTT73_8n%q)B+x)v zl#><sP1_rm*?^2ki-5TCx|7C~4%t%-T+LG1(=pH1#BWbc+n9-bZAobnsBBZA8zr&Y zx!x2rmGMKKud<=VuG6GPu6>HHK#?fN?cX<IN5>?EvAhY1Sr9A(1;Kw4@87~|;2QP~ z(kKOGvCdB}qr4m#)1DwQFlh^NdBZvNLkld&yg%&GU`+boBMsoj5o?8tVuY^b0?4;E zsxoLxz8?S$y~a~x0{?dqk+6~Dd(EG7px_yH(X&NX&qEtHPUhu*JHD258=5$JS12rQ zcN+7p>R>tbFJ3NzEcRIpS98?}YEYxBIA8}1Y8zH9wq0c{hx+<r>EXY&ZQ!-Hvy03X zLTMo4EZwtKfwb294-cY5XhQRxYJSybphcrNJWW2FY+b?|QB^?$5ZN=JlSs9Og(;8+ z*~-#<Q$_Z<#jC_?kK}U#GC7kzD?l0<*zz}5XXVyjW1wtr)u1|lP$Nq@D|IU65HpYT z?Bx32f1SNpMQnQ{2TLhSSI7rv{!q<qQY#R;1QiWZFRWIpz&P(wUmdHX)_b4M*5CFY zKUhT{Ol5*^Mey}(W<J2%ZvLC(`E3MFQ7HxWWsZi#?euwZU%wXhJk&!|g(N0n7EOt{ zKj}L_jsa*{h!gQ-jh_8X*Kc&c-je!BGv|2t*!}b=Ua_WbdS7QR)#Rht842(=l~2N7 z^_=oiI$=`;tVnb-Wtp?|MIHPz9-OQ^afh~b^=)m6Gf*J#WuOgExpKcrbse3a_);k+ zjg@2!CbeDjS%0Xer7k)m-&MQ>CeeEOxt~F#aWn8wy-N_ilDDe_o+SwJD>4y?j5Lpj z2&!EX)RNxnadPBAa?fOj5D1C{l1E0X?&G3+ckcVfk`?%2FTsoUf4@~eaS#th=zq7v zMEJR@1T?Pi4;$xiPv`3)9rsrbVUH&b0e2{YTEG%;$GGzKUKEim;R6r>F@Q-}9JR-< zOPp<K28VTvy^v&=KmVj95BrUzPPwe+N*La!y`jJk9L<7z929cLeqE4e@uQBcsr$95 z4A#R4N)F`!ms|Y49HG5JSMhcci6)GZCBAuOktp@k9e&p<BVBve{bS{AlHp(#d-B`B zu8_5B|C-f8-EfUDdysA4_zLgUlGiDBiPz!oA~+Yv?WCed27xb8t^@&z7e}Cc0FAe- zW^9b6`E(AnmTECE^-4btrc`U)I$qi?ao`bN7OrWDd)cf{<FMzXeTef*iUYIT^pd*C z6aP-c-XtlFmv&~v!s_zFeb0w4*#A)DZ2Q!;*>QI>W0Vt6&7d?~$d&}chKTr_rELu} zWY;KTvtpJFr?P~ReHL4~2=ABn1`GN4Li%OI_1{mMRQi1Bf?+^Va?xdn4>h)Bq#ZRK zYo%R_h5etrv|!$1QF8fu80fN?1oXe(Jx#e6H^$+>C}N{*i$bNbELsXDA>cxlh|iFq zh~$yJ?1lTdcFd1Yv+Hr^PP!yupP!0H@Y6(wFcaVE+0?qjDJ1;*-Q8qL{NNPc{GAoi z_kBH`kw^(^7ShmzArk^A-!3_$W%!M-pGaZC=K`p-ch&iT%CV0>ofS74aPd7oT&cRr zXI30fVV6#PR*Z?c*orR0!$K6SUl9!H>hG+%`LdifNk`!Sw7Hon{Wn=|qV{a%v9nEq zAdBW*5kq6il=yA}x8cZQt^c+RBS|TRn;!?$ue?@jIV~0w1dt1FJRYI-K5>z-^01)R z)r}A&QXp^?-?}Uj`}ZPqB#}xO-?{0wrmi|eJOEjzdXbey4$rtKNHz)M*o?Ov+;S=K z-l~`)xV`%7Gvzy5wfvwqc0|80K29k0G~1nuBO+y-6)w11Kz2{>yD{HTt-uybe2pe? zUZK*Eij7TT4NwF1Jr@6R7gMuu^@qn#zPIgRtF?-SJL8<Mc`S1HdWBuGD-MQ;NWX#n zm{qA-7zL&H59`ts%}&=jDBO_?vNZgNR$nQqZgq$MxBru(qaKn%d?nu~{ZNVmnu$UO zouSk~R7vG69vI(!$W-wl^6Z8@_PD%0LRKW>3LBDrh7k#{F^222EXPg}S0d4Lf0!|1 z|2k$^b~)^8$Z-yH{B-vo%7sVU@ZCvXN+Am)-fy$afZ_4HAUpK}j4p`UyXRel-+(VS z#K>-=-oA1pH+Lo$&|!lYB|M7Y&&bF##Oi@y_G3p1X$0I{jS1!NEdTz#x0`H`d*l%X z*8Y3>L*>j@ZQGOdPqwY(GzbA4nxqT(UAP<-tBf{_cb&Hn8hO5gEAot<ib?%<<wZhQ ziMCJ_mGMEZA^3w5hP5ig?N-b=zT{TLnzpU#m`+-c_?M$^#o;H*RfO_HM462pjgE_N zG#Gq+c%x3W4YvHJOJ5*F;358Z(+1ljalfUrZPYY|Ef;Dk+G5@G!&A)YmCX$+r<wc2 zu%GT&+}E;FdEh9$FH6f=%8PNh9cLV!o#UWw>oV;tF6K4~wr2-M0v|2acQ!E@G*g$J z)~&_lvwN%WW>@U_taX5YX@a~pnG7A~jGwQwd4)QKk|^d_x9j+3JYmI5H`a)XMKwDt zk(nmso_I$Kc5m+8iVbIhY<4$34Oz!sg3oZF%UtS(sc6iq3?e8Z;P<{OFU9MACE6y( zeVprnhr!P;oc8pbE%A~S<+NGI2ZT@4A|o9bByQ0er$rYB3(c)7;=)^?$%a${0@70N zuiBVnAMd|qX7BE)8})+FAI&HM|BIb3e=e`b{Do8`J0jc$H>gl$zF26=haG31FDaep zd~i}CHSn$#8|WtE06vcA%1yxiy_TH|RmZ5><NLS&^y_AYS?K?VW;1UnFMF4n({@$( z?p@gWoiT)*6AP!%hv&M=diya=$(LJ;zWO8;y3FG8t^<w5cl2RbBlUqIs-RAmUZLCr zw~%p6+u!T9H=%P-GX2%BgHn=oqkD^h8JQd7I43yOO`3q^-B;$>pI5*8pJZk0X5<JX zPzhTuJ3p5Yr1xZ#7FAe>4JDQQZgIf1Pp3*6hepV_cXe)L2iW$Ov=RZ4T)SP^a_8V} z+Nl?NJL7fAi<)Gt98U+LhE>x4W=bfo4F>5)qBx@^8&5-b>y*Wq19MyS(72ka8XFr2 zf*j(ExtQkjwN|4<LN%}Kf^okNC-ihciwITU-G_ROn1ukb!(}Xpmq6ZPz^AQEi>B?D z7+WzS*h6e_Po+Iqc-2n)gTz|de%FcTd_i9n+Y5*Vb=E{8xj&|h`CcUC*(yeCf~#Mf zzb-_ji&PNcctK6Xhe#gB0skjFFK5C4=k%tQQ}F|ZvEnPcH=#yH4n%z78?McMh!vek zVzwC0*OpmW2*-A6xz0=pE#WdXHMNxSJ*qGY(RoV9)|eu)HSSi_+<!^qG@+YujLsRX zef={m?mwCEugQX311;2XXlJ#bn0tC%kny)^<1cWa6ZArj><v`MNB`a(?7VX*!!&ZU zC2@Wm(3QyFJwNrcYV8L)7w-JAncriOj_Dq@b`d3qquxDdn)pAOh|>|)IgT|!7HRx~ zjM$zp%LEBY)1AKKNI?~*>9DE3<uIa{*RpD5dmDM=(au>Y2<z|M&7DbRzJzaSMGyaQ zIxKsC9FfpBcbgcaEEU*$P7)$xMwkmR%`gXsG{PrFrUWZD92c1~m=#>t5p#jeqeq`1 zsjA-8eQKC*<BDCvoxoF)<mQ@F7x{0862jCdU!ce^ym)U+OZMkcmk5*<a9tx7VOHE( zZ2hHB_t%6#Ed8B9zkI!tvW5I2PZ2RgW(oPyr{?hbtiahFtp42&frB7oijss*rA0Th z;>!$%k#=&jm+JG?UD(}M!tI{wD*3FQFt8jgv2xrRUJ}t}rWx2>XWz9ndH*cxl()ZC zoq?di!h6HY$fsglgay7|b6$cUG-f!U4blbj(rpP^<skXaJPfo9+Y;IiR%kD&1%JN9 z_h~!02TxF%6ks+v!w(>1ZhHv@Oi~;BBvrv<+uC;%6QK!nyQ!bb3i3D~cvnpDAo3*3 zXRfZ@$J{FP?jf(NY7~-%Kem>jzZ2+LtbG!9I_fdJdD*;^T9gaiY>d+S$EdQrW9W62 z6w8M&v*8VWD_j)fmt?+b<tT}$U#&c}AuLrKYqFo*JP{=4`VrqHox>davPn>oW8djd zRnQ}{XsIlwYWPp;GWLXvbSZ8#w25z1T}!<{_~(dcR_i1U?hyAe+lL*(Y6c;j2q7l! zMeN(nuA8Z9$#w2%ETSLjF{A#kE#WKus+%pal;-wx&tTsmFPOcbJtT?j&i(#-rB}l@ zXz|&%MXjD2YcYCZ3h4)?KnC*X$G%5N)1s!0!Ok!F9KLgV@wxMiFJIVH?E5JcwAnZF zU8ZPDJ_U_l81@&npI5WS7Y@<B5x$8(sXXCK<FjRJ5jbnv342XIFDUN!TFC?_m%9#? zX?Qg-Ol@{|Qu1V*mw+iVF5n*|_8m@fwA!DAdm?2KExBapdiBT@$<+4`(gBsF)FJ(= z81+wANd%1^D2<;ZzHp?<(gqHQ&oOxV)JKk76nV1!N%<Q%mb5=kOc(ZYrM#I<)vjW` z4&;2`O*`*5PKWFB_ppCdjni?*mxOk0f}9SlUSGm<to5<S!88C70}D8R<=p3Mu3F#g z)qZ+W!mYctYqOcgk3En30(vutGfSl9cwRZv(ziE3Ngp&jfOTR<`Oy67PtpR~rB=Uv zQvaYqcE|)hO|YUjp(1CnR2lEi@FAb`+O(3i7S>_gf3vTXa;511h_(@{y1q-O{&bzJ z*8g>?c5=lUH6UfPj3=iuuHf4j?KJPq`x@en2Bp>#zIQjX5(C<9-X<S-*&~X98{MS! zy5V<7Pa2a}{V$8P<#O493tyZeK$z>4X{<tefnYTi4o-=Ja^L6-S1GZjAP(#XI>a^S znWF1zJ=7rEUwQ&cZgyV4L12f&2^eIc^dGIJP@ToOgrU_Qe=T)utR;W$_2Vb7NiZ+d z$I0I>GFIutqOWiLmT~-Q<(?n5QaatHWj**>L8sxh1*pAkwG>siFMGEZYuZ)E!^Hfs zYBj`sbMQ5MR;6=1^0W*qO*Zthx-svsYqrUbJW)!vTGhWKGEu8c+=Yc%xi}Rncu3ph zTT1j_>={i3l#~$!rW!%ZtD9e6l6k-k8l{2w53!mmROAD^2yB^e)3f9_Qyf&C#zk`( z|5RL%r&}#t(;vF4nO&n}`iZpIL=p9tYtYv3%r@GzLWJ6%y_D(icSF^sw<wb@QII*N zIcL2!PA5BEP?8US(roVgaqO|81u2kaE>YM`e8-n43iwo$C~>G<)dd0ze@5}n(!^YD zHf#OVbQ$Li@J}-qcOYn_iWF=_%)EXhrVuaYiai<lJG^~V0B<Cr^W<g1jy0+B^NEvb z4j7#wE;1t5pP@6ZuuWqAzp~*d%RwKi(elkGkLYKyvHVTxR`d+IJ;k9ii3IL=SmPiR zU`?F*JZ;X)I}^8p?o1y}9kQW{OTY1c>|B<1tXwNsow(m;XfL6^x~|Tr%L3~cs0@c) zDvOFU-AYn1!A;RBM0S}*EhYK49H$mBAxus)CB*KW(87#!#_C0wDr<0*dZ+GN&(3wR z6)cFLiDvOfs*-7Q75ekTAx)k!dtENUKHbP|2y4=tf*d_BeZ(9kR*m;dVzm&0fkKuD zVw5y9N>pz9C_wR+&Ql&&y{4@2M2?fWx~+>f|F%8E@fIfvSM$Dsk26(UL32oNvTR;M zE?F<7<;;jR<uOuy-9nF@B!%2`b_os1B|(_zjGAz)D3AEc(M#lki>4)ChzQaN((foV z)XqautTdMYtv<=oo-3W-t|gN7Q43N~%fnClny|NNcW9bIPPP5KK7_N8g!LB8{mK#! zH$74|$b4TAy@hAZ!;irT2?^B0kZ)7Dc?(7xawRUpO~AmA#}eX9A>+BA7{oDi)LA?F ze&CT`Cu_2=;8CWI)e~I_65cUmMPw5fqY1^6v))pc_TBArvAw_<e}Qyu^@fep4O3_( z-zOq;K=Ngx`#h`ZvVmAbD8$SWFMtp|t4U4EJGEuTG|#Xk<y4M59W>5Y8v0+fFFT`T zHP3&PYi2>CDO=a|@`asXnwe>W80%%<>JPo(DS}IQiBEBaNN0EF6HQ1L2i6GOPMOdN zjf3EMN!E(ceXhpd8~<6;6k<?WhixDF?(iH52fr=nn}$0p^RTM2`XP%JVi1uYB+dv_ zV-aHGJtI`D<;rrb0)7u%N|RoEM7%V}mACp#7)hd|9<N5OLJ&4o8~H}WM-!`%phBY} zPVV-1tPaK{g~UjrYz0eowyYtG2gu><57OFRs;mpFM6VviPN>p3?NxrpNs0>K&nH_s ze)2#HhR9JHPAXf#viTkbc{-5C7U`N!`>J-$T!T6%=xo-)1_WO=+BG{J<tays^6Bj! zolW}A2d#T#O`J-tar-yZI8ue^u~T1^*Bf7Y$d+ABv<m#1hHVN9S;Y4voy7-uE2Amn z`+1hRGJdvgmL*^6_Tz;4Xkc;}8ZC7RBUpy&$yLS5D58drSy?9QJ8v?wq(tfLY3#If zQvX=H?s0wP`Q_^+xhK@N-O#=lE_y+)xc~G5qV!TmE?Yy;XjUbwZxV-E6Jo!$gGJjf zx!25nE)H>`iIk%tvxF39rJtK49Kj#ne;WG1JF1h7;~wauZ)nMvmBa2PPfrqREMKWX z@v}$0&+|nJrAAfRY-%?hS4+$B%DNMzBb_=Hl*i%euVLI5Ts~UsBVi(QHyKQ2LMXf` z0W+~Kz7$t#MuN|X2BJ(M=xZDRAyTLhPvC8i&<D3c^WV+#&^K5y+Vx@WW)IO#sY2=` z)3YSC2qG+<zf|g~R-(rRvk^0-?IhO*lbwwZ<=HDW{Bu=JQMhZc&H!H@hETzc_YHKv zRjp=~3-pV>9b=rS-T{k34X}|t+FMqf5gwQirD~N1!kK&^#+#8WvcfENOLA`Mcy@u~ zH10E=t+W=Q;gn}&;`R1D$n(8@Nd6f)9=F%l?A>?2w)H}O4avWOP@7IMVRjQ&aQDb) zzj{)MTY~Nk78>B!^Eb<GsbB_HW!Ul2ZmP!MyQ|UOCG(GNTbe0-r?X_qO&tReiU~0l z|C{9h0OrKKma|Tal34KRG%F!yfp{qN4i=$hp6rpEg!!B;qxcXLffx%ed$E0zQyh~v z^(~+OUwZL<uLf@G|Hy}`w0@%DOH_4*^WR*uM0kM&`!2j(-vothM&6qhi{wt>pT{&h zy{wTABQlVVQG<4;UHY?;#Je#-E;cF3gVTx520^#XjvTlEX>+s{?KP#Rh@hM6R;~DE zaQY16$Axm5ycukte}4FtY-VZHc>=Ps8mJDLx3mwVvcF<^`Y6)v5tF`RMXhW1kE-;! z7~tpIQvz5a6~q-8@hTfF9`J;$QGQN%+VF#`>F4K3>h!tFU^L2jEagQ5Pk1U_I5&B> z+i<8EMFGFO$f7Z?pzI(jT0QkKnV)gw=j74h4*jfkk3UsUT5PemxD`pO^Y#~;P2Cte zzZ^pr>SQHC-576SI{p&FRy36<`&{Iej&&A&%>3-L{h(fUbGnb)*b&eaXj>i>gzllk zLXjw`pp#|yQIQ@;?mS=O-1Tj+ZLzy+aqr7%QwWl?j=*6dw5&4}>!wXqh&j%NuF{1q zzx$OXeWiAue+g#nkqQ#Uej@Zu;D+@z^VU*&HuNqqEm?V~(Z%7D`W5KSy^e|yF6kM7 z8Z9fEpcs^ElF9Vnolfs7^4b0fsNt+i?LwUX8Cv|iJeR|GOiFV!JyHdq+XQ<?TmNp; zk=qX)9>&dER(KSqMxW{=M)lA?Exe&ZEB~6SmHg`zkcD7x#myq0h61+zhLr_NzEIjX zr~NGX_Uh~gdcrvjGI(&5K_zaEf}1t*)v3uT>~Gi$r^}R;H+0FEE5El{y;&DniH2@A z@!71_8mFHt1#V8MVsIYn={v&*0;3SWf4M$yLB^BdewOxz;Q=+gakk`S{_R_t!z2b| z+0d<QLl{$J)Jk&<JSywGG~<V+59QQ&3wg5xud86xCw!WCv9BYn<mi*Akn4W2w-Hf3 zlo=HJE*rHN7(Rgy10c>^C?G&7U6$_-W9@eR6SH%+qLx_Tf&Gu5%pn*mOGU0~kv~^K zhPeqYZMWWoA(Y+4GgQo9nNe6S#MZnyce_na@78ZnpwFenVafZC3N2lc5Jk-@V`{|l zhaF`zAL)+($xq8mFm{7fXtHru+DANoGz-A^1*@lTnE;1?03lz8kAnD{zQU=Pb^3f` zT5-g`z5|%qOa!WTBed-8`#AQ~wb9TrUZKU)H*O7!LtNnEd!r8!Oda)u!Gb5P`9(`b z`lMP6CLh4OzvXC#<EYAg)8}W8EN<Y%HmieCWKj5D>CR|@uo$EcHAyGr=)LB7)>=s3 zvU;aR#cN3<5&CLMFU@keW^R-Tqyf4fdkOnwI(H$x#@I1D6#dkUo@YW#7MU0@=NV-4 zEh2K?O@+2e{qW^7r?B~QTO)j}>hR$q9*n$8M(4+DOZ00WXFonLlk^;os8*zI>YG#? z9oq$CD~byz>;`--_NMy|iJRALZ#+qV8OXn=AmL^GL&|q1Qw-^*#~;WNNNbk(96Tnw zGjjscNyIyM2CYwiJ2l-}u_7mUGcvM+puPF^F89eIBx27&$|p_N<UR^kh#Lk?L_3)O zvUs{rv)oeXpzX^L=nrrLLEMP75fF+JvFpz)s?&$m9}oULO;_F(g3w5v0hv`@94jGs zi@pNWeG#^@W`qr_*<EnyB3<Q703$*?%!8r3kD&DnPuo%T56|O~1JqpO9G+GGm&Zk! zWEA8m@xXXmK(A?dZ>G)fOaafGv|_b9G$;1LzZ-1aIE?*R6kHg}dy%~K(Q5S2O6086 z{lN&8;0>!pq^f*Jlh=J%Rmaoed<=uf@$iKl+bieC83IT!09J&IF)9H)C?d!eW<Wk3 ztgK%xQI2}4ijZSd#h0ZPLfoAnQ;{yEa)W%bR2AQ*IX>1UQ}BQwxaqQY47DpOk@`zZ zo>#SM@oI^|nrWm~Ol7=r`!Bp<LpnHxexq`11UUh_V11R#+#`OJvzVNb0P;0gd@PQR z;F$s;t;>9lQNbBCeHcfN&X$kjj0R(@?f$OHHt|fWe6jDrYg3(mdEd$8P2Yzjt9*EM zLE|cp-Tzsdyt(dvLhU8}_IX&I?B=<U%IcwH>|yoZ!&<`9&H5PtApt=VUIB4l0a1NH v0SQqt3DM`an1p};^>=lX|A*k@Y-MNT^ZzF}9G-1G696?OEyXH%^Pv9$0dR%J literal 0 HcmV?d00001 diff --git a/android-scanner/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android-scanner/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..aee44e138434630332d88b1680f33c4b24c70ab3 GIT binary patch literal 10486 zcmai4byOU|lb&5<ao2<ZA-DvG;ERUf?iyTzyX|5Lkl^kf+&u&c0fIZh3GM*`3AQZk z@w@--kGq@qYQCE3S6#2Cr(aiBebE|fukmr7-~a%C|3*<x>k+^GN3bv-?^>(QkVinb zlU9`mfQEQnq$S4VGrg6fmMQ=QFarQQ0ss(?uiys&;LQU7M-~7engIZmZaH5x#UC3m z-zvYBd&I}<R<;xN2-t3lhMoX`OZp!H0a-az0KjtdMowDCZ}}wHca=uB19d$%*4ox{ z=#Tc5EkOoLPEke%Ow6D~jvm&GPR159B3}u=e%-G4mjTBFgG><`b3rPHj1tDgVv1x| zQss$ELI?W?E(!7PKk$lm@;7PwPX3<g&UBUh>o43{Ccd9@_BUsL4kQzSMa&=<MfCjt zR(Q#vm0Zwhk7-9-s_$fi3og<+K+&zT0IDntf@NWIy2sO+O%eJ|xNsRvRlp<x@x(|V zo*G$=)oePUV8ocxV<3cgo?Nf5!wdqEP7x$Q-4$o*`kWni5&%icNQ&n<SUa<mt+{_6 z_%llT%IPR0*r*2+Fb|qK-*@V{A9`;>g{>4wj9#)9wgYw;=H@gH9KK{s?Be8N1_8W< z1Rh%Lm&PAfyYb*rGB%E#3q+}riOBB~+@@X<`9mgIiAex!QP8vg-XT>=+N&y*jC-f< zGihyr7XAly+G)|_e)qA?rnKZGG(x?=lLM7nrPk&93@5eX#7I_$g8kMX`0h=}l`HH) z=bpOkBCx=z*-fyr{yp7A9F=%o*qm93t_#tB2lAM@O{fX9ju%X#0~)nRUMvrXClh9w ze8|a0|0}JJg(_@$2wItI?LUY{zF78o(P2BR7;aC^@(jOp{8RE%U3m>MV5%Lu*46b@ zw*c?Nweu!TULS~}*9mi!ejNfNa=`po1*!jiYK)osxi%<U2ZTZs$e^hoR=#xK`SUvc zlGW0XGj2>b59(thEyUZ>#lX@uEXSb_x?3)0kvB?8*TAh)7}IbzSm}5Ia;_?10{}M; z7vq-OS;Ayk8%_c-gg1Ee0FsrRU5phNs#H9Lp!1t+hwyK~9W0bWCxuG$LM~wQuumEw z=fbBD@sQE%1^j<ehE?CRntk_vUcZzikKrhpkSRZm_yhT2m_LLcpYQ&@|N7L9{P_|~ zY1;Y?0`}aZyC;U84eq0){R=tqy6f!gqB}?GINGR=%&4Eo-B+vqmZA+Dj0$mCa{q<> z`T@`PZLRVyWjX@*tjc7r;w$H~aW&7vu?|war?84^sg!{J*RH|mhq?KTsCVQBC1~fR z>99jeR=g-Q2b=d;pKwzXwYjrG>?pd3tFSsHN4in{usYLdK;01X2BdRLFI`cuB9yI) zI_ZX?7_(bz`MX2@^mCk<h!QGs7qClX!4k}?I)3YyaYH%%b9BFXDg7Yz?SXN@1>nx7 z*f}KV@}TBBc}CXMR8T_5yInD3p`KrNROSA;HoJJtlNG3weri%utO<C=%|D$^aT*}x zU&(ZIG^GEO(&2|dy-Fy)Q(&5_LDMcNE6$_04ZXAQB7nUaCjm17oDj0{S<u(lM=@6~ zai+QLWGg$an=IA*=^q)hiEUD{0oJU`j-$9b(`2UL7c~t3evbv6A8;L?y$(fEAFLI8 zgL6w^?`b?0P=7yW5z}9+YRoe3ERwZ7wj%bcf86!y{KMi?Zr20p!fcy&HaS=>$eeY0 z+w-NEn;(;UCBk=OM$f%=%ma24wV7$idelqyNWI>sz1>BlGwr_3UugqVjY+UYyi9P) zxCB?&rPUetoZN?|*D%=hOOJ_${JU3GRjppY%&8Ws^G6>iokr^Bmv1&*@#2#5mXu05 zhPVXaQ`qe5i0lP-1^XL45x`ertKU5d-8b_?*1+tSU!qCeqD9gZP_>ZLq9p)RKtV(B zOh&^x>gV^eqb&c~Oi0|HgGG|gjpbR`9aRdZhOimvS2Y3e?eCFiw+L#_<Lk_(>mi9j z;nU}gih+zTn{nv_|L}IllD1Dr3~@yitI}+4C&+;SR+cEfelqJ?eUjZ%&Qz)W8S750 z+vG8Lvo}xXz2C}S-m|9*uE?NWQWT#W+p@$DkH8wVn#=gLKa13M!Yv<thkiIruHIC) zDJ!jAuBEHrAd@F@0fgryJ<dywg6f`z!f^1rf!9DkXbxnLKIJw~{yInWx}P_l^kcU& zbZsNXczwn9gw)Bm*SO7zu`BULl+y0z&*rM|M7~tOx}jB>a9qsfE(5Z#0V`A0pN)Ok zP*Eq0(~e$~m@iej0#Av_z703y-7|W6`UuGDS8fpy2rUgINZs#`33@@0(S%~%XUO5G zscEp&x^dU`8syC67USOswNLq>Z_}q#gLh2x`zR)<y_cD0g>0wvor72-IW@oDpnT0x zWn%LZ_yvR*7geY6<}MC~SViD+4`S9XC|L}N0ANpsUU;50sAj<H7{B-{EfJEHck`>L zb5h>&s<-wcdf2>}P91QgeAu~ZnB7;;FkfKJp^8ne8!-`jK0+O(^`s~#RE0@)=IWiQ z@(vh6D^4jN5ih;*c4J48FMC9MwoN(cXk1Wiq55Vi-^X#p8R_(!y81}YDdMefwdl2F zNA0n}-!P4!FaCe-jnf{^I#?5W=%9T1C<d@%NK1iqWG$%R9~d8aV*5-ac*Jnw6lKq7 z`!Xcr<J(chZ%tv;pH1&6-yZ0uT#^u-HY#MML~k=&KTqJ@O!F7*;@HH}l$bvL8Tv-8 zCrLT((^(I!@RzYUch7go7)BOC%T_14^L~ftzdJznp^!V7grcINI^ar{!!Z*ktF>|$ z`+tq*x!rEx)Bkv-eO9$mWML9_yId)A_OltKIH-X=0eJ`Opqqj&s^T;PLIZXJ!p<Ik zXDEN3bQOs;7{kFX@gJO=2=dtbteTHsFoipm)!gELfSJ6o`uBv5^s{h2Y1MWQ({sao z3P?h#7Eh~X0@*hMZ%xVf8B;)<0)qd3OCtN%$?aMVr9|T!Z9?0T0*0OiySaYNSX9SW zhOb<=YlPtgAI2}lT`eTd{CcZSvmS{yHHk!@L2w9?J0D<LYGC$X0#BYQG&h^we=B0i ze*ME}`~^vg*pW;3PW$@mr|)osDnN9LuG7zF+kJn+aP<|R4+c}Fgw|WBF@jxtViSz1 zeUe?$DD2CP9YlP9&(+$$^gA>Ei!=3ZLHPGi*~?<(L&m6;{M(636VC<08tan>&c6fW z%KEuUN9x|i7Wc^-0l&Vf20kI~_XfD4hEac=&}5n&MoYL`Xsx=1po#V*6wUpwB@pu* z*@2n|zglL~zr$9&uOd9_%)GWk&0UN`<&GAm8=Ba-@MT&TH*`NHlt+CMi2Ag;LgGpm zm+ybGL-!1Z$kBYk66=39zAsErw1}|-l1npj-?3g1LE#PXU%%_{8kO=5!W!6pQ?z&i zc_MuV(xKMXSA0ga@IsiwYspm&d4|n@L_zji`zUWxsM}|=@R}BFfT2P!uJcrQf81WG z;7~y_$uMK=ih(2hrfqIGOzb(81e}^7h$dQ*w9&zG_k*kV{ml>Dkn2!p9tb_+Sa82P zf!TC+{4a(i^7UC$53;w?sleb~lFWqeCjv5msi}#JQ!wJtA>=k~`WL0M{^a9PG3%vT z6x=jB0{7wX7$gs%H}xJ&s+hHnzrl#L*=KB8OZd%sPoxKs(`;%|I$(^;nFYa4Cg|3D zmbQ)m6I_Y@t)A~{YBRo!2sYI^n!q)$tPp|m&n1BkYVmX22Z+nY#4N{Bb0!Ko=DOhh z8)8*=>e(W&-%LSWUN;u45Wex{{R747!a~45S>12$wNc{9N95&r%gU+b#-B7PcF%`_ zbDPAsmvpVBsQpf}s{igh23+1)`QSj71!|zjij@kvxgob&J{E97Lwu==Z)RY-lujF1 zts{7+jfS(K5+clZ(CY~%ks(F!=cb)YtqEu(dp_7=A?O!zz8KONrrma{eU-54%}Dm| zMb0!-=YUH?S7JzBX|TVr;=fB(8}a+Mcip|v&=pAeFMCaHj_Nkl!sWeZSb#k<%oczm z#`lGsgJHo7RywsRYYQs4O`J_C=fARQ$)B1peZk)|&ULCaa#RJ45lrml54sxO!CCv< zACe-^PSoZc!)x$#iZa*NuMlS%Jd!_x9|UdgLzlGyF0cI$EUFG4O;L+8*+s;KNL-ld z?R+O)guOt(>{+*e-+_A{1MBbRn&>53j=33ngVZ*A9^^??x8!ww@-m%DVVPmliJh;B zA?gVg!0|Rs7)?hBD^!lSxbI8;-8Q65B4DKw29-K9_w0glvBA&vz=a(hBCWqSnbKS0 zUg%$!iEY%1jOqivHBW;uSX*e&(J!Yr7cborEc&_4TQAAt(Hs@99pynWwVQc-PD)!b zEAfVEq-cX>10nj+=mUt(v;j?>9`bLJayfOcTYEOojVJwg!qg=XHGM<oQ%L5%3zScv z5O;@MCH764`y4bCO$kbE*IT|T|GxGF-b3U-5hNfMJk187`+4ra6Rj?J!>AonnJPa; zUJ!+pYTulTHW%^S;&|h~V3suNSc{q3^zg~L0z(5QQ;Fz}<5*7QiE`G{EY!_Bq6Tf3 z#Y6<%5EL^6+vT44<%^2!TOb&Drb?#eUqR@vqcv<DC1BVy39_1`?zCIccCCK!^=(l; zqmb5x7u9qu+#`N3-O<c^4S*g+`M)#Kn_qwD(#g^2!9FkPKiBqI?H$baWCXvnk}Lix zy5@hJ^vUi&TkeMagF*V$COwgyYq13y*^#I-eZxi%E&G+g8<AOCl@OnC{<9#xrL6O~ z0yZe|ZC!`wVd%Eq07@v~<ean0=|X=Bu@Hwc|B^$^HXQq_>Ad=l_6n*oWcLU38eLio z&XA9a$>+}Po<zR?IqdA)@AS4hT92a{Kc?AGWFR(|Cun%l-6|hBh}-*&^f9cAsr}V` zQ^um6)!^1Y`evE>Z&n7&1;j$MfqAp&SK~ziPsl|%{|CWXWM9wxyVKXe0%lk}rDC8g z8X@%6X|;SG;muLTK4d!cPgVxqjvaX=-$(Q65p5S*rI%=0cH7U(J{e1RPLJ7=nOmA) zMlRB`!r37ZXhzV+&X?quSyu}sbAn^a+S992*Te=%QW1izNzH-(Fc!u`0^%jIwx-q{ zjJ$P>vDS90xVX3yM??JQE(8|%*Ent^LOWJSOM1DpOGR5rG_7xH(O_S<QUZzU7gqGN zK{1$J!s0%NQi1tE8gGB5XuB#xKL*%THH@fLDg`GqrobDm4Eejlv-=~!Cf$PB`{VeU zLH_~y$*{N#`&!IY0VBmyHTXF!p;~IxV~I)2h@CH0W1Z}Fq(68Wg&e6Q^pWlf{=%-L zF-}VlYkRO<e^qUBgxq5}@$uFg?@8MDc!@{Q5Y8BH`jlxv@^|3DK@Uy4MV$ir#!24K zA%lHHb91v?x{2uawDj_<jOBeDryrw~@{@+fhg44(a*{<}?0tS<UlBR$*PCL;GwG^k zFxkm*&)&m;o$_=y##~+chZ}_l3j<@=$X*)_nMXBh=$KA2nD?J{F}Z%2Qas3Og+>iI zQPhe?AtaSr$aWQDFB=s4vG}<t32z}W19>6A7sKS9#`*O?Gvb$VpNFveZ{M$e6gN?k z<T;AAW-o4NdB|}7a`?dI8k{4SN-(XXwGw0Y#qDhQ3?<lik~JvKlB^JOfuF(W{QQUT zq=J)k&S_iioRIU0KRKOO7f^L=PR-}WqVSCjE+aA^=)K6GVxJd2-`-6ts=ZR*VkaTw zCH|q=S(7ksP`;}xk}b(4;Pmcw^(*RAGu!Vpsd{i^%ZgMmQmhQ$b#j$s1dou|P+;O_ zZz)6Uic{`ZbmhRo0XX&%kBARguOIEtW##lO<og10(fVsL=48B8M2l$fx$|&730_m7 z`n*fgj^z_fWZL-q_lJBL@>BAf6x<TAG0E%4ppH<?W_6ZYgqn-r6hkPsaXre4r|pDu z_uhzrsGaq3U}1{0H*ejV3>8lMv8irB7O2F*?SxjQ+G9(Zzcf(-v6B#Che%7km*jk@ z)2}#vcILe$u75B8OqP#aD^OyEpX+8%bA;T*9+xPtBOA56r>VBH?W|l@4D*s*oHF7b zKiEI(=9Q&zzKDNu(c_-(iYp|O=RX90e|T*1D)Vi}F|XXxwzlFY%vI5oyr@gp+zfor zE{L0=4=<&pTg$Vb2&yaL(=zg-A=-V)<6G@}QKeym;mw^FzryGI(YX6E{x5!pKKNFb zX2wUTC}&?H`qv0{Ouyp!O!9>BD+&bp+x5*hFxlEJ|Jlx!dC36CiNWcOOOUw5NPT2n zckQz+nHS7$v`1`e33@@emu_-PmpnE%>A~wldBhO+8|uKd(C<RgF)APRiXcPk!4C&} z19#7b{Mt_!_!M0}oR2qAm+(S<dITHXK9FYZr*Mr%eC~M3XsMxoK9{)9CFX;}zKDBM z0my$axyoA)XzKTv9|VIbxwDQqG5WRwL-$u>XF1LguU>p-iuo+6+#A(zwt<~}iz8;e zi$`F<v&F1aPgx#;+Ycgo*=2L?MWUJ}{Kq@`i=xwQG_(WE^ISmeeO27?c8*;x?$X-4 zoM}lZLut}+(ue%Oam~Aedi8Q<(*lNd*!P^hY<A0g^7<Ey?&YvOyLczJQT|a;qFuZz zv9~+1<x>>cJ*M;o0PM7dMP=uB26set3i}BC!lE@>Gk`4oZQIG&&(O{wh_khwAz^jz zLMdgg*JfCk1{LlNW)C?WLX_!#5OsEIb3ZPWV7*KBWoBhmt&{(fw|eI)9LZTDrF;Cm zrRI0DXcArT*)L<`{Gy!R-`j)ca2)6Ks~48Jcl^Qg{XgWYyo6RpJj`Aq>-T>){#|lR zRPY`?<2vJ#s7v8mNz1zwnz@<9ofov5TnYTqj(PJN^Hv0N1N6rZY2Q2ixJ9IY`5B)j z?o!|2DLA8bc-{QD-^}@UP_JB`BjVr};f3o#5P`$++U2>eVvNM%RKxPV7J0hzme%(z zR7M~;#x=<TXCB95^^DGeny#a{{o852R$>}vL&%^k)1dkFp)ApEinI%CXma_IcfN1= zghNTqbv$mD$mXwAWysU;hUAFR0^jhAYjE}TV=j$O0>v_@{)|7er^HCFN$j4D(Rxa+ zr>@Me?gS|z<XtlztRH-lo(J;{fXHR_w!c5j+v>Vlda*cn+sM7^g8|~YJlBlxK`p<| zo$B!mr$%Z4An3pBbh@BK4Hi-E7l^3GMOiG?^~~z1Oxn$0PAR&}&*9D$O)(_>aB04e z*{ihG%K2UZE9c%O@J$1R+qtuhVW+Li7>Bw~LBLxQ_2GJ6dWmr`sMzGzRfiKQrm?9I zR~`S8uz0=lw5lTY3!?lQ|2LJNx(Ly%0Hkj_Q0C+f8>^@`ot4vM)#Bo9*u)9;#4lPQ zkD$dnQJ;T3;cR_9pRiRuc^MkgYiS>6*;09uV{z*IYw3#i;TH$m(R{*<eO8~)46JW6 z`7=hSMU2sI_dlQNe&}Jkr>3w>BS-cM7T<{u?6<8}o91iDU^B)<6wJwL{eG{=U+MNz z>#f)F`15Bnp|A(04!41E4ixt89MvouKW88SEk-A`6{3;V9M)Ips3VNFol3u5WiBmL ze0Uor5Z+x~NDGz=5gd!i#D5L)gN!7;`5bPc*8~;4hQOzIJ_RM07TD_cA!r1XISg_x z%9r&%6tsJq$>~|UQ1|7AZe{Oeu!2V&rjYX=>T-qb@S?3(7FC=Z^XOYf24G=+FJR;^ z&+s!YCtoncOWkA~zS!&wfYTiV$WJeR&@pINr7!v$Vw3}H92S?Mj>$ckH9eSo<h-bM zY|qU;5zzcgA_&}dEm`WzR?7}?Dud((;caG_zVxwqjCjpSVlj~h#*~@YC>qhxli^L9 zl6?;LH$mT|@_S}#35}P!_7@h%=&<R2fW`vheQK}V7<WsVZCeJgQkf++aBjno5jwL7 zG+=jNKD>u7n2PH0zl8K6L4SX!;*Nkxnnt~qhgVoG_|@w$t9uwee?p`9lo<wmfx>MG zr|Qqo!ws?ZaVp;+zT!zH^@xtf^zzvEF*EJK-3h<FeXb%5)Vfj-XkBsXVoE#Yd=(F+ zhw(tVYiAl0D{3>dBe&e4hTya+V7cwy9k?-&u+1W$J9MsjiXQu0{sN!(0)p=yn;5R~ zm8G1M$wClU4oHZeWuEucT>8fj9@#M0kY>Zjx}{F%fX>qa5#{2}lM>g}Xnjo}l|ew8 zkXA5h=I9hvEufUW_wOT8b^(DlBKCuM+=VI>J`Ua;1OioQTVInOmu*pv>=0&M>MOS| z%x%82SVXH|##aK|&I9<eGy_5v4nG=)7@EyPoWfRQ`;E7Yi3@0<ZMXu{G_F-HmpAb< zHQn4-tHxh+-GU8_V1S~4{2+YO(M?1GE@VXjP}U_cSE4TbVH$6$&Tv)3j}U%xMbfm8 z_bY{lwP-|zc~3p8;1^dHH>wXCi2Kuz8@~`}P*VwE0=zPr%s5aHvFP`<m`a|J_5Qu| zQSE?FO5eF{w$NS3aE{e%!Utpw9ty$cXUY{EQA(ui*Hp4Yj}ysKKs;atPl~iV0?YfQ zJg_IRhmW`JCLn8PIU2gL)t?g0jk}TTWF3Q)j0d=sFrMEomD#0{OuA$9h!cMMXGS0A zCOC~&FHxekb!8@Hg&thmhIeb9QukWJE;K+YJ;J&UkA2s<2v0)>FsjEx2cBo)6ex*A zWp5GPoq0Vy74R>2aPlQP>~oZKw3$U(jAdy#E}=(clqiqe%$7=zb#t<EhDJI&-bS_N zo%HRo_mi(0d#88B&5pKu@_9r65$rG#_%<N3!wOzTE9j0y<0dLe=3~XMu1tBag(Ks| zsr>-GOC`@<-LJz{!m%n21KVT2lg4>F^Qyl9E2SvvZNE^Kq<8~8z*~izg_2G$e)DWZ z&r)^t$fjc4=0*E2GgW8V@;;-uQTLpkoe4G&6_Gi{=*bj1demc_{W*z@M)N3w-y!I2 zxt>0g2bLTSCr87lvU@@<H3k^9x!T@W8N(9Gi`>?w=y0(8-&vH2iDYp1oVatM3hj{k zTI09~y|)(A+XuR&rxolH&~6OyHuw;ul<YhJ{s+ARRJs^})*g0NsDsJ$D*y-|d>gO_ zPuTLyiVw)P|B03nB7klGZ1SdadQT)(_wcJpUd5Dw*Tl^3%=>G;G`B&%wwFm(MjZi# zMzuQuU>R1Zq8as9MkmM~4%8aV4m60Cl4X`?$zw27Nx(x@)C3hiNs$loyeJV|;3R`m z=2BoxiLeZq<yIgS>;~pUpKfO}+8=>;xkRT&Wh?xRT*$vA=e1-1-a(LQ&8&RQ!R;p| z0{dFY6Iuv97U8}VgGV$6PB!6w5}-jehsz>M8R?2d0-?1=<I!s6L4=rR-QrkmfnHaG z6GlP3rX((j7HQ<{N6S5MW@m5!#!#s`n<rT0i{O_h?pV@4-;j`QmnW@9uKfeIrf-v! zhWS?tkQc^~z=6z^>c9Ek)8Yhh)!3TZPk1>d^py>9{d~my1NBGJ)ypHC;!FbEqzyVi zu?k`sqbi!2$c8~?{{=5xCd5}QNx$~UD2(hV0{VWx-}##X2uo*=a!4(~o_<3lOh;=1 zGWy!R&!cXBeOPdKzslPq+FOzt2P)Y6SL*2}8s1q7(#-PEp*Wm`{7r`W-T4WD{gKfb zL=!WtyH86@TGc=5%hW+QVgF5lmp6`bUz|y3kvDq8cEX#Zcon0xK`W6icDQ>?Gb=4k zx9`mayKC`XvhQ;fwwljzxg#~7>oUV^PafLCvQ3GNmYh3%udW9gpP}zdP01_?V#F|} zu+6A+v$!2@w>!LQS}H<v;<czvjhj?22~;{pnD+DE)haTVQ8T^U?o8<zI<YJPYAJuL zP8MeEX_<svS)73nBi>tz#xrDTMCHF(viHn9B@`r*AN^Uh^K1dYX%OU(L;QO-NS7sm zB}n&5G=+cvZdostK<DLf+^gQpf`v;n#_QSQ5coSnsK=~30f$^7ItWW%=<u!R6!Bgg zk%*$>MXC?^Pljs93+p|U_TbCD$_YFH_al)C6D--qOJJg^-4S{e(_Bh(hqonQpIAR3 zLn22yQovcP8^(~lYa;Iw1iN45bC1LAyPgyMn!Us#kC~Od)l{8iBF=vyb{%q5Uo|At z`GioU@7{~W>87(`5`y7oUan|z+y9y6kLnnMdpTsu<aU$*&3n|ISxL{^&n-9%&dvq} zO}Ed)ETyQbTY$_>WXtd+^OE@Rc1&DlS#6q{VJQ~^2R25csGlWAI6%1)G(k1hy(%a6 zP8;j(?t{iGcAAzn*N4^9x1BG`9YQD?lsKuJE}E(!LRb-C04hKL&@?*uDt+rmq#F+E zy;MAG%p~MH`3$_n9%+YIg%-3+vV)5OcqKaeQuCmrhtqvaxZ!JAr|$dSF%)+`Yvoou zOSNuZL?Y9b&gUmyj|pfc5HOzcO#wTn_4)qhXWH?-2h*_V$bXFzOAO}R;U0Utm6jK1 zARXYF88&Au<4<EBj`e(u=0UNO-Pt%1drfwm-IH0)Ou8LHz6^G_skh%dZhj`7cV2hT z`UgB-)gYgM9eUEE!#PzPN9gOAtJl5$end*QJU}r5;aV{i)2yMC-y51AoFQR8F1al^ zx3W7-j=9<PEixhVXn&z!phj|ABQXstyrJ*7cX|;|^(CLF!+Iy~8#0zWTB^Rux>|bU zjIqU6CietjeFXz>A`VLxAln~?Tc3Z$!7ZUwvHhxe6;yAIYyV5DChijA_*mxgWa1Hf zpMe^m_<Dp{lI7SUdaFyK<jOf42oIvV3}8;-4*zwONLT(G1Nf(8@jB$ir`q^dKGR%> zi=Br9$|jmRXy`ALU7%BL%h!;kp0u2jEG>Y(3_SumS4~Ap=R2K`FOb*E9x<!HzJN$S zJN1hz=J<T~t7v}cY+tf0OB(=)ihys@Dx*B2{OJA5-_siptex(c#)h?L#o%Muraoq& z^gZzx0qA%9y`L=(d)WQ4G<PpZPJR^@b-w4c4US>FaK2xw@q5)FC9ki5__UGG^ChH* zg8T@CWK(2ZAhn)tl(@xrQ|@?sJZYbg?<AEkdQH)y@Ss%4Y)a3?pb3XJne(=;oNc!s zj*k|S1s=P8)m%m(NGT(1gIQm5mw#xMVEUau##FRN4rmOb_XiCuPMo!Q1()mc=&xso zw*2%>wPRykjvXSzBgO!5l;~}n=Vx=*>!3~hpG!QO_vZ7nOf(H%X8Zyf5zQI9<;&<J z4E7T=fo}!qK0A}ee)?s`3*X=H=5U6HoW_%i(^;&m4in<>VgO`J^g!d%ci*Gayzi9E zzV{ggWXFU<x+_e-+eV9bc$;~4$N=Cb>OwfXv^Cu9g;LXloZZQq$>osapDJ&dlE+FA zOAq0EeuKAV6~J_=V4ai?3X&T(A2S-Y-bb`Ai`xZ-D`VrnQ>pAdiPR0)l-S!eWp};M zhdf*YpjTWa+F;wAvaF(x6TW7LroZ>f%xX1B>ku{kH<XIFl0_z&%oMTMW0oEMW1G7q zE<#<YxVc4I<J4$v;k#N_Pj9J;mv<mOXpamKGY!nHx2+lRt*-tJHC~j)w4Zoa4PX!r z%5dMmQO|G3>y23f4Gr*{SyBzch&H417J0V$b=yDLEIl7<2;YbKQ&{=ZOVvMR0}AxP zsmR+tme$kQHP;7Yn9&3eFJljv567buHH|D~F|nOk<V#aJN;LD%F)!CP--Zk0ul1%! zEgTO6SpB<Qn0SU5^;OPh008Da7O3Y!{4m|C4L4MuPLofIF$i{T2y;g^QhhqZ(1O^f zE^V6;ywPDwkZW_GYBNsXM=YiekAF|Utzzb|x$GLiVZR0C2f*olylv~X!JX3FxC?{! z_oE%><45BcE*rk)#MT#RvWplVxMlzpi*dmU?7Pzz{?ICX{O>V+&4<<0nM?<?$Lv!< z{{&h7Y~PWt<4vpbwbt~V%}B#ex!UuMNkFpu+|fcYCeeV<YR?bi^`n>7@q6?=qp|+- z^F2j+>w(o9IZ#i9MKt?we*u>AF^=)GwlEo-<8)ZN<mrL!enlx>sl`DO9Ts^3mN?;` zpu-&&=Gn~8C2og^of_Emg!Z)!`}l6?zCnvZ2)$RRO7E_te3B9iY#R5%#LUxR2a$64 zRNuv={A!3W0>=Vd9-Gygqi!GqnO4Wu*hSIx$FOH*78(*CzB@93|C9L^)cR86oytQX zz(VBa;uz&eA4;0&+0T7h>1okMFU4QmpaK8N1A2wlN0S5ncCO%AcYgA${c!kFQ+TiA zSE{2T+HSjei*$%Ai4A}4W1S3}-mXNa1B^jTL+B<x{7!`f&oOroVcIEKe|~A2PryN5 zO59`Q63;mtJ{CjZ^O6Vyn#}ek_3<PC{6xMG=Q_o9){qN%k*G_z{;G3(`jTz!sJJBK zXSXxQ5{C;{=i-xkk5E>i<L=|X016phQlputz30GS1;>w<*SD;pmpz7SdmFu%Z231W zkED`=rBr|FkuV%mCW~b>XQTCw%K0Clxj&QGIm4o%6lpuc4OgwWW<J}Ie99({68`c1 zX-J*Ve%GawdGgYr5zH!DC?<VPz@L-0yUr#FPV~QMb35j2^fW4VA5?-v@Xt^50#8ix zzi(z78Qdo!gXunt1_t&|P|_~lNRoB)YJw@kH@<@L@T?opx^D*5nHo$QMu;DIC(2Z* zQ1y_qlb`R`X-x7j?hqD6!Q4r282+3#iKW@_4S^HB4dJuD29@vC;X%<8?(b{rY7x$( z8&yeTX+d+lJxVfl=sJHFd#b+8pDmcWjfUN{sE4qli3u|;h~JL-nuUGmCq~c~>^N>I z$CiUaixkCEQf)R*DBF6P&%z|)%AGchvGhBH3v_5YPKL6o6gDG~@`ZoTScT$`HQPz7 zQiqt<Ii&{n^GjME5FfbB7;SezKscZUuVrDS-em`-#Z69$`Phh20X}!@%yh3@6q?oS zw_lVn2s7!S&wcNDUJ|tyw<COWKgV1P0V#7E!H3k@5@-t+J48AjPCuF>q$|yTKXN%7 zSaCG2Ucn>5<uLD<gg4O!*Z=l(@wxEn<^_M)5yyS3m~Tuv8+Z$*#8;V{(H=*&yje`h zf5MQWC$TH4{Lm?`rlplBGeS~=u<<%oy8e1T)@nn@9e5(i`+@~jPRM^uSl`jE&eR3a z<IsZ&2%y2Io+?B{64vL<4zmPLZg>0Z`>XxJnz6%(tP<L|S<e(ONzI6op<nW&RShT& z(*&<ghIzv-)t6L+a@7(~&^nXqx~`APs?1>lqY9dGm@zHtV2!nWMmS!~Ac!e66<n@F zBrT0S$C7ua2A|n3uO+EM%FapZkW|fPlaO)L=>nI-(6fh>Qh>8n)+v%wQv>T#tc54h zB%~5--xs;qRhX+bIms&XJP;?K$K2_5H1EpFn-*GyZaD5sGDZ&n5P~FndmWj1xxfxb zSocm{R9OVmD?CfFE;Oebf@%V^7{ZETZUhZ?GM(@uT|gImuIH#AeMtxlE^*teXWH`b z$LnM8?Q_|v<uG??U0tv)@f?c31<8(NpbNcy0<ya>jv^u(kO-Y$cB1?ICmH@j5PY(q zaPxf3LgA{hO>D7{M2?XnUpAsX?0!P#eL3cHStcyY4^PB2N&Y`}U05UvjiREStj@u{ z|B)ET<Rx$5Wo_wYBWmSg^9TSR53c|hj|dl!pbjsOsGzW@;G-@q%ER-dUdiZx7`$_} acChvT-wm8jF7_S`fH(4La<wuRVgChb86-jg literal 0 HcmV?d00001 diff --git a/android-scanner/src/main/res/values-w820dp/dimens.xml b/android-scanner/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..63fc816 --- /dev/null +++ b/android-scanner/src/main/res/values-w820dp/dimens.xml @@ -0,0 +1,6 @@ +<resources> + <!-- Example customization of dimensions originally defined in res/values/dimens.xml + (such as screen margins) for screens with more than 820dp of available width. This + would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> + <dimen name="activity_horizontal_margin">64dp</dimen> +</resources> diff --git a/android-scanner/src/main/res/values/colors.xml b/android-scanner/src/main/res/values/colors.xml new file mode 100644 index 0000000..3ab3e9c --- /dev/null +++ b/android-scanner/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#3F51B5</color> + <color name="colorPrimaryDark">#303F9F</color> + <color name="colorAccent">#FF4081</color> +</resources> diff --git a/android-scanner/src/main/res/values/dimens.xml b/android-scanner/src/main/res/values/dimens.xml new file mode 100644 index 0000000..47c8224 --- /dev/null +++ b/android-scanner/src/main/res/values/dimens.xml @@ -0,0 +1,5 @@ +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> +</resources> diff --git a/android-scanner/src/main/res/values/strings.xml b/android-scanner/src/main/res/values/strings.xml new file mode 100644 index 0000000..e4b3011 --- /dev/null +++ b/android-scanner/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ +<resources> + <string name="app_name">FakeScannerApp</string> + <string name="button_txt">SCAN</string> + <string name="instructions">Please, press the button below to scan the vote receipt.</string> +</resources> diff --git a/android-scanner/src/main/res/values/styles.xml b/android-scanner/src/main/res/values/styles.xml new file mode 100644 index 0000000..5885930 --- /dev/null +++ b/android-scanner/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> diff --git a/android-scanner/src/test/java/com/meerkat/laura/fakescannerapp/ExampleUnitTest.java b/android-scanner/src/test/java/com/meerkat/laura/fakescannerapp/ExampleUnitTest.java new file mode 100644 index 0000000..c637f7c --- /dev/null +++ b/android-scanner/src/test/java/com/meerkat/laura/fakescannerapp/ExampleUnitTest.java @@ -0,0 +1,15 @@ +package com.meerkat.laura.fakescannerapp; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * To work on unit tests, switch the Test Artifact in the Build Variants view. + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 8401a04..0ce23a1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -7,3 +7,10 @@ include 'mixer' include 'bulletin-board-client' include 'distributed-key-generation' include 'voting-booth-gui' + +// Only include the android projects if the android SDK directory is set +// we assume that if you have a local.properties file it contains +// sdk.dir=... +if(file('local.properties').exists() || System.getenv('ANDROID_HOME') != null) { + include 'android-scanner' +}