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.
+ * + *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.
+ * + *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.
+ * + *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 CollectionCall 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 ListEncapsulates 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+ * 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.EnumLiteMapbytes 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
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.Parserrepeated .meerkat.UIAnswer answers = 1;
+ */
+ java.util.Listrepeated .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 extends meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder>
+ 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
repeated .meerkat.UIAnswer answers = 1;
+ */
+ public java.util.Listrepeated .meerkat.UIAnswer answers = 1;
+ */
+ public java.util.List extends meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder>
+ 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
repeated .meerkat.UIAnswer answers = 1;
+ */
+ public java.util.Listrepeated .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 extends meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswer> 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 extends meerkat.protobuf.BallotQuestionUIElementOuterClass.UIAnswerOrBuilder>
+ 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.Listint32 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
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.Parserbytes 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
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.Parserint32 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
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+ * 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+ * 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+ * for easy storing all wanted questions + *+ * + *
repeated .meerkat.BallotQuestionUIElement questions = 1;
+ */
+ java.util.List+ * 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 extends meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder>
+ 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+ * for easy storing all wanted questions + *+ * + *
repeated .meerkat.BallotQuestionUIElement questions = 1;
+ */
+ public java.util.List+ * for easy storing all wanted questions + *+ * + *
repeated .meerkat.BallotQuestionUIElement questions = 1;
+ */
+ public java.util.List extends meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder>
+ 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+ * for easy storing all wanted questions + *+ * + *
repeated .meerkat.BallotQuestionUIElement questions = 1;
+ */
+ public java.util.List+ * 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 extends meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElement> 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 extends meerkat.protobuf.BallotQuestionUIElementOuterClass.BallotQuestionUIElementOrBuilder>
+ 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+ * 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.EnumLiteMapbool 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.Builderbool 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.Parserint32 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.Builderint32 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+ * 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+ * 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+ * Optional tags describing message; Used for message retrieval + *+ * + *
repeated string tag = 1;
+ */
+ java.util.List+ * 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+ * 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+ * 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+ * 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+ * 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 extends meerkat.protobuf.Crypto.SignatureOrBuilder>
+ 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+ * 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+ * Signature of message (and tags), excluding the entry number. + *+ * + *
repeated .meerkat.Signature sig = 3;
+ */
+ public java.util.List+ * Signature of message (and tags), excluding the entry number. + *+ * + *
repeated .meerkat.Signature sig = 3;
+ */
+ public java.util.List extends meerkat.protobuf.Crypto.SignatureOrBuilder>
+ 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+ * 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+ * Signature of message (and tags), excluding the entry number. + *+ * + *
repeated .meerkat.Signature sig = 3;
+ */
+ public java.util.List+ * 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 extends meerkat.protobuf.Crypto.Signature> 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 extends meerkat.protobuf.Crypto.SignatureOrBuilder>
+ 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.Listrepeated .meerkat.BulletinBoardMessage message = 1;
+ */
+ java.util.Listrepeated .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 extends meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder>
+ 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.ArrayListrepeated .meerkat.BulletinBoardMessage message = 1;
+ */
+ public java.util.Listrepeated .meerkat.BulletinBoardMessage message = 1;
+ */
+ public java.util.List extends meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder>
+ 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.Builderrepeated .meerkat.BulletinBoardMessage message = 1;
+ */
+ public java.util.Listrepeated .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 extends meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessage> 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 extends meerkat.protobuf.BulletinBoardAPI.BulletinBoardMessageOrBuilder>
+ 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.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.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+ * Combination of filters. + * To be implemented using intersection ("AND") operations. + *+ * + *
repeated .meerkat.MessageFilter filter = 1;
+ */
+ java.util.List+ * 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 extends meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder>
+ 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+ * Combination of filters. + * To be implemented using intersection ("AND") operations. + *+ * + *
repeated .meerkat.MessageFilter filter = 1;
+ */
+ public java.util.List+ * Combination of filters. + * To be implemented using intersection ("AND") operations. + *+ * + *
repeated .meerkat.MessageFilter filter = 1;
+ */
+ public java.util.List extends meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder>
+ 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+ * Combination of filters. + * To be implemented using intersection ("AND") operations. + *+ * + *
repeated .meerkat.MessageFilter filter = 1;
+ */
+ public java.util.List+ * 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 extends meerkat.protobuf.BulletinBoardAPI.MessageFilter> 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 extends meerkat.protobuf.BulletinBoardAPI.MessageFilterOrBuilder>
+ 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+ * Tags for the batch message + *+ * + *
repeated string tag = 1;
+ */
+ java.util.List+ * 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
+ * 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+ * 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+ * 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+ * 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 extends meerkat.protobuf.Crypto.SignatureOrBuilder>
+ 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
+ * 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+ * Signatures on the (ordered) batch messages + *+ * + *
repeated .meerkat.Signature sig = 4;
+ */
+ public java.util.List+ * Signatures on the (ordered) batch messages + *+ * + *
repeated .meerkat.Signature sig = 4;
+ */
+ public java.util.List extends meerkat.protobuf.Crypto.SignatureOrBuilder>
+ 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
+ * 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+ * Signatures on the (ordered) batch messages + *+ * + *
repeated .meerkat.Signature sig = 4;
+ */
+ public java.util.List+ * 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 extends meerkat.protobuf.Crypto.Signature> 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 extends meerkat.protobuf.Crypto.SignatureOrBuilder>
+ 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.Listbytes 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
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.Parserrepeated .meerkat.BatchChunk data = 1;
+ */
+ java.util.Listrepeated .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 extends meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder>
+ 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
repeated .meerkat.BatchChunk data = 1;
+ */
+ public java.util.Listrepeated .meerkat.BatchChunk data = 1;
+ */
+ public java.util.List extends meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder>
+ 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
repeated .meerkat.BatchChunk data = 1;
+ */
+ public java.util.Listrepeated .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 extends meerkat.protobuf.BulletinBoardAPI.BatchChunk> 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 extends meerkat.protobuf.BulletinBoardAPI.BatchChunkOrBuilder>
+ 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+ * 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
+ * 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.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
.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.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.Listrepeated .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 extends meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder>
+ 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
.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.Listrepeated .meerkat.SingleSyncQuery query = 2;
+ */
+ public java.util.Listrepeated .meerkat.SingleSyncQuery query = 2;
+ */
+ public java.util.List extends meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder>
+ 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
.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.Listrepeated .meerkat.SingleSyncQuery query = 2;
+ */
+ public java.util.Listrepeated .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 extends meerkat.protobuf.BulletinBoardAPI.SingleSyncQuery> 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 extends meerkat.protobuf.BulletinBoardAPI.SingleSyncQueryOrBuilder>
+ 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+ * 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+ * 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
+ * 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+ * 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+ * 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
+ * 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+ * 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+ * 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 extends java.lang.Float> 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+ * 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
+ * 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+ * 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
+ * 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.Parserint32 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.Builderint32 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+ * 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+ * 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.Parserbytes 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
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+ * 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
+ * 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.ParserECDSA = 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.EnumLiteMapbytes 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